modelId stringlengths 4 81 | tags list | pipeline_tag stringclasses 17 values | config dict | downloads int64 0 59.7M | first_commit timestamp[ns, tz=UTC] | card stringlengths 51 438k | embedding list |
|---|---|---|---|---|---|---|---|
albert-base-v1 | [
"pytorch",
"tf",
"safetensors",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"exbert",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 38,156 | 2019-12-20T12:28:51Z | ---
tags:
- exbert
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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>
| [
-0.01628965139389038,
0.004767254460602999,
-0.02520707994699478,
0.06764831393957138,
0.03774816170334816,
0.02252449281513691,
-0.016135185956954956,
-0.03889353945851326,
-0.03518366441130638,
0.058156222105026245,
0.02774147316813469,
-0.0001626275625312701,
0.00031815734109841287,
0.037268541753292084,
-0.04134075343608856,
-0.0036315969191491604,
-0.012459050863981247,
-0.006987232714891434,
-0.016232702881097794,
-0.019890058785676956,
-0.0195907112210989,
0.009417853318154812,
-0.004609730560332537,
0.00688977213576436,
-0.007507434580475092,
0.034347597509622574,
-0.000009679500180936884,
0.04831233620643616,
0.01895037852227688,
-0.06359300762414932,
-0.003466111607849598,
-0.018805908039212227,
-0.04989239200949669,
0.014793946407735348,
-0.01998305693268776,
0.006998972035944462,
0.0004287090268917382,
0.0002497986424714327,
0.04584784060716629,
0.04273021221160889,
-0.010345757938921452,
0.00538135040551424,
-0.01391521841287613,
-0.02958807535469532,
0.03816806897521019,
0.004849668126553297,
-0.04363506659865379,
-0.014685463160276413,
0.05318455770611763,
-0.012958069331943989,
-0.0606808103621006,
-0.05195365473628044,
-0.02620507963001728,
0.028703374788165092,
0.009303653612732887,
-0.018569042906165123,
-0.05993788689374924,
-0.017500249668955803,
0.0636608898639679,
-0.053727056831121445,
-0.04722364619374275,
0.0022511184215545654,
-0.04410918802022934,
0.028352132067084312,
0.048940978944301605,
-0.025113631039857864,
0.014268399216234684,
-0.039157669991254807,
0.02858632430434227,
-0.02501118741929531,
0.05856207013130188,
-0.02531292289495468,
0.006775098852813244,
-0.08484644442796707,
-0.011284952983260155,
-0.010020744055509567,
0.046090640127658844,
0.04401000961661339,
-0.020632000640034676,
0.044057175517082214,
0.011560684069991112,
0.00131238775793463,
0.01572110876441002,
-0.014140280894935131,
-0.017525849863886833,
0.05899422615766525,
-0.05894385278224945,
-0.011950003914535046,
-0.006157570984214544,
0.05074905976653099,
-0.03195175528526306,
-0.014502856880426407,
-0.03128176927566528,
-0.0406196229159832,
-0.03473098576068878,
0.031156783923506737,
0.03776712343096733,
-0.01790299080312252,
0.05586128681898117,
0.02066384069621563,
0.04224882274866104,
0.052159763872623444,
-0.027259791269898415,
0.06310809403657913,
-0.009230747818946838,
-0.023722998797893524,
-0.011690228246152401,
-0.017059247940778732,
-0.042222216725349426,
0.035697974264621735,
0.03098360449075699,
-0.024240992963314056,
-0.05287400260567665,
0.05753479152917862,
0.006707732565701008,
-0.04384364187717438,
0.04639562591910362,
-0.02326352708041668,
-0.0439782477915287,
-0.059552568942308426,
0.040154192596673965,
-0.0035197469405829906,
0.015166005119681358,
0.00039984838804230094,
-0.07150882482528687,
0.016723787412047386,
-0.030185263603925705,
-0.02696550078690052,
-0.001504469313658774,
0.0071314601227641106,
-0.01030946895480156,
0.03989914059638977,
0.0234926026314497,
-0.04665134474635124,
0.01839975267648697,
0.004911566153168678,
-0.06356888264417648,
0.05871402099728584,
0.030111024156212807,
0.13049007952213287,
-0.05747997760772705,
-0.04479290917515755,
0.037535812705755234,
0.031194018200039864,
-0.024454966187477112,
0.008087792433798313,
0.03850329667329788,
-0.024823131039738655,
-0.023006541654467583,
-0.0004959518555551767,
0.0636168122291565,
-0.05646868422627449,
-0.011664272285997868,
0.05200881510972977,
-0.010061124339699745,
0.04831483215093613,
-0.034293752163648605,
-0.0019904410000890493,
-0.014245155267417431,
-0.005888581275939941,
-0.029215119779109955,
0.04866250231862068,
-0.02114785462617874,
-0.021137243136763573,
-0.033367738127708435,
-0.028074990957975388,
0.0013277666876092553,
0.06655726581811905,
-0.011712874285876751,
-0.01301250234246254,
-0.034981321543455124,
0.019379019737243652,
0.05086802691221237,
0.0386330708861351,
-0.03540922328829765,
0.027857860550284386,
0.08125701546669006,
0.02600596658885479,
-0.033209461718797684,
0.05031068995594978,
0.007826640270650387,
-0.03294964134693146,
-0.01977342553436756,
0.023216331377625465,
-0.004339565988630056,
-0.0338439866900444,
0.04160676896572113,
0.03146868944168091,
-0.011351102031767368,
-0.009545041248202324,
-0.025168854743242264,
0.03760846331715584,
0.0052934857085347176,
-0.0025990805588662624,
-0.00018438242841511965,
-0.003176899626851082,
-0.011712286621332169,
0.03542869910597801,
-0.03879363462328911,
0.0065712821669876575,
-0.012551301158964634,
-0.020303482189774513,
0.0301978699862957,
0.03105095401406288,
0.04186907783150673,
0.0554228313267231,
0.018841801211237907,
0.07873900979757309,
-0.03981364145874977,
0.03475238382816315,
-0.0669039711356163,
-0.03316163644194603,
0.013801605440676212,
0.02747764065861702,
0.025237087160348892,
0.03331783041357994,
0.0019181196112185717,
-0.05273229256272316,
0.012712817639112473,
0.06195402145385742,
0.037855908274650574,
0.024619705975055695,
-0.033736325800418854,
-0.03555319830775261,
0.029450055211782455,
0.05782971903681755,
-0.05593982711434364,
-0.04226415231823921,
0.038689106702804565,
0.052804142236709595,
-0.012493093498051167,
0.019450685009360313,
-0.013331517577171326,
0.026331117376685143,
-0.04984021931886673,
-0.053719084709882736,
0.04401203989982605,
0.044139884412288666,
-0.004421400371938944,
0.045458659529685974,
-0.0037162634544074535,
0.0012535973219200969,
0.013799594715237617,
0.017735911533236504,
-0.00782039575278759,
-0.032974231988191605,
0.013405900448560715,
0.018667129799723625,
0.0486602745950222,
-0.045675892382860184,
0.04201079532504082,
0.007868289016187191,
0.024398818612098694,
0.027813151478767395,
-0.011522945016622543,
0.04499967023730278,
0.03755061328411102,
0.016982968896627426,
-0.04205726832151413,
0.025041483342647552,
-0.0006961942999623716,
0.052270568907260895,
0.0653165653347969,
0.0010490677086636424,
0.055735230445861816,
0.01971786841750145,
0.04707381874322891,
0.07742173969745636,
0.0334954671561718,
0.023315822705626488,
0.029418397694826126,
0.07117708772420883,
0.017811238765716553,
-0.011013217270374298,
0.07212135940790176,
-0.03750893473625183,
0.022892117500305176,
-0.04918169602751732,
0.029469048604369164,
0.0022740529384464025,
-0.004210779909044504,
0.06119760870933533,
0.03264287859201431,
0.0037646049167960882,
0.007960359565913677,
-0.008533664979040623,
-0.02491474337875843,
0.06198977679014206,
0.00478377565741539,
0.022185422480106354,
-0.015085786581039429,
-0.01006292924284935,
-0.013050055131316185,
-0.07779627293348312,
-0.04804610460996628,
-0.0014187683118507266,
-0.030736565589904785,
-0.017735322937369347,
-0.0825183168053627,
-0.027967283502221107,
-0.05591738596558571,
-0.013296767137944698,
0.006738399621099234,
0.013351308181881905,
0.017171580344438553,
-0.04518890380859375,
0.016642509028315544,
-0.05306451767683029,
-0.020432813093066216,
-0.03496814891695976,
-0.03448987752199173,
-0.03646750748157501,
-0.05514511093497276,
0.043065764009952545,
0.008965457789599895,
0.02587350644171238,
-0.0192122645676136,
-0.0034591462463140488,
-0.0380297489464283,
-0.035225994884967804,
0.05206378176808357,
0.03446028754115105,
-0.03688383102416992,
-0.04611711949110031,
-0.0012763352133333683,
-0.004407576285302639,
0.019472038373351097,
-0.01725796051323414,
-0.0027097521815449,
0.09202726185321808,
0.07806289941072464,
0.027921762317419052,
0.005649157799780369,
-0.03360764682292938,
-0.04766194894909859,
-0.07600725442171097,
-0.026424862444400787,
-0.03217833861708641,
-0.006954040843993425,
-0.04386162385344505,
-0.03792035952210426,
-0.006044021807610989,
-0.028844140470027924,
-0.009987392462790012,
-0.009757423773407936,
0.01466910820454359,
0.03300134465098381,
0.03705652058124542,
0.02754945494234562,
0.03196308761835098,
-0.017428603023290634,
-0.043466612696647644,
0.06499219685792923,
0.0187620148062706,
0.016566509380936623,
-0.07438140362501144,
-0.05009903013706207,
0.054485104978084564,
0.04835051670670509,
-0.015368460677564144,
-0.012472948990762234,
0.07629749923944473,
0.007439720910042524,
-0.009703142568469048,
0.003733045421540737,
0.009457251988351345,
-0.038503941148519516,
-0.030309215188026428,
-0.0057566179893910885,
-0.00301104923710227,
-0.035861656069755554,
-0.049809638410806656,
-0.01678217202425003,
0.039335522800683975,
-0.06026626378297806,
-0.047025326639413834,
-0.028824320062994957,
0.05222935602068901,
0.03493821248412132,
0.009578639641404152,
-0.031139042228460312,
0.013690263964235783,
-0.04079035669565201,
-0.006488845683634281,
-0.011500687338411808,
0.0008677669102326035,
0.0009745829156599939,
0.025549832731485367,
0.033929720520973206,
-0.026996277272701263,
0.02705175243318081,
0.041659191250801086,
0.05229080840945244,
0.0044074952602386475,
-0.047248926013708115,
0.04434436932206154,
-0.023483596742153168,
0.03223007544875145,
0.015144425444304943,
-0.02387012541294098,
-0.04731530696153641,
-0.09659266471862793,
0.012498476542532444,
-0.007877022959291935,
-0.016351664438843727,
-0.0009112846455536783,
0.034810978919267654,
-0.029279455542564392,
-0.02011243626475334,
0.005970047786831856,
0.022010741755366325,
0.02731078863143921,
-0.04332330450415611,
0.06346963346004486,
-0.01572764851152897,
0.019293084740638733,
-0.05064617842435837,
0.016771255061030388,
-0.04383018612861633,
-0.029942354187369347,
0.0018242287915199995,
0.052247680723667145,
0.02823367901146412,
0.05966385081410408,
0.055184975266456604,
0.05612364038825035,
-0.0587010383605957,
0.047415606677532196,
0.04157067835330963,
0.010531606152653694,
-0.04379894956946373,
-0.01940758153796196,
-0.028305089101195335,
-0.016616908833384514,
-0.03953218087553978,
0.001727516413666308,
0.006860319059342146,
0.02679119072854519,
0.019185669720172882,
-0.008533094078302383,
0.0052405367605388165,
-0.02030397392809391,
-0.03028879687190056,
-0.07480911910533905,
-0.018832117319107056,
-0.0011488008312880993,
-0.02097439020872116,
0.05660349503159523,
0.007231360767036676,
0.017385408282279968,
0.06927704811096191,
0.046520255506038666,
-0.014440254308283329,
-0.04332026466727257,
0.03848769888281822,
0.030890488997101784,
-0.0334334559738636,
-0.05389641597867012,
-0.05987197905778885,
0.05058404058218002,
0.05650091916322708,
-0.0035303528420627117,
-0.08734244108200073,
-0.015466784127056599,
0.036969780921936035,
-0.05360787734389305,
0.041135143488645554,
-0.021366771310567856,
0.05364695563912392,
0.07332444936037064,
-0.010861529968678951,
0.039086878299713135,
-0.027302278205752373,
-0.00789510179311037,
0.017350081354379654,
0.028638094663619995,
-0.04096491262316704,
-0.05146220698952675,
-0.06790264695882797,
0.02829291671514511,
0.03443743288516998,
0.04690038040280342,
0.054936040192842484,
-0.008221915923058987,
-0.0516735278069973,
0.0075495741330087185,
0.022661007940769196,
-0.03483085334300995,
-0.009557816199958324,
0.019515765830874443,
0.062453094869852066,
-0.060930054634809494,
-0.01013338565826416,
-0.035309769213199615,
-0.0047485907562077045,
0.03403690457344055,
0.008885546587407589,
-0.030182363465428352,
-0.04789687320590019,
0.013902434147894382,
-0.024938251823186874,
-0.023661283776164055,
-0.08011773973703384,
0.006502437870949507,
-0.017506523057818413,
-0.017242131754755974,
0.02910642698407173,
0.04280131310224533,
0.0418797992169857,
0.06615780293941498,
0.008389817550778389,
0.018952321261167526,
-0.04625032842159271,
0.03214958682656288,
-0.02085951343178749,
-0.0025734577793627977,
-0.010416201315820217,
-0.043292924761772156,
0.00963914766907692,
-0.04104501008987427,
-0.031002823263406754,
-0.04552758112549782,
-0.0051267254166305065,
0.006590685341507196,
-0.019226059317588806,
0.0011531374184414744,
-0.022060343995690346,
0.025422267615795135,
-0.0345250628888607,
-0.03922523930668831,
-0.02603127434849739,
-0.03513852134346962,
-0.07328423112630844,
-0.059182778000831604,
0.011037028394639492,
0.011174926534295082,
0.03380344435572624,
0.019047921523451805,
0.02154771238565445,
0.021149901673197746,
0.0048116170801222324,
-0.029323894530534744,
0.020623154938220978,
0.007947591133415699,
-0.04912332817912102,
-0.04025297611951828,
0.019719554111361504,
0.0186757929623127,
0.025122663006186485,
-0.03456884250044823,
0.024189915508031845,
0.024455290287733078,
-0.023105716332793236,
-0.017392858862876892,
0.03871483355760574,
0.022216809913516045,
-0.08103777468204498,
-0.0248203594237566,
-0.024258069694042206,
-0.05279886722564697,
0.026926949620246887,
-0.006335540674626827,
-0.014319139532744884,
0.011822751723229885,
0.031147779896855354,
0.04003559425473213,
0.0017666658386588097,
-0.031995486468076706,
0.006136749871075153,
-0.03881188482046127,
0.04271132871508598,
-0.06567684561014175,
0.03446309268474579,
-0.0418892502784729,
0.017028599977493286,
-0.010770472697913647,
0.01205744594335556,
-0.04791161045432091,
0.03172075003385544,
-0.0338812954723835,
-0.005979615263640881,
-0.015515540726482868,
0.01000132318586111,
-0.034136924892663956,
0.0472441203892231,
-0.03399715572595596,
0.01221903134137392,
-0.015492096543312073,
0.0673123300075531,
-0.0394752137362957,
0.0005885758437216282,
-0.021115075796842575,
0.009364016354084015,
-0.04238129407167435,
-0.012332643382251263,
-0.006178661249577999,
-0.022394172847270966,
0.05151126906275749,
0.028562406077980995,
0.03139066696166992,
0.0421740747988224,
0.002318310085684061,
0.00998418964445591,
0.01023823395371437,
-0.05309544503688812,
-0.021667130291461945,
0.0016388531075790524,
0.010343733243644238,
-0.00021214822481852025,
0.05548632889986038,
0.04755697026848793,
-0.04227922856807709,
-0.04989808052778244,
0.060452546924352646,
0.025064617395401,
0.01023096963763237,
-0.002166474936529994,
0.03827124461531639,
0.04621059447526932,
0.0383417047560215,
-0.029828106984496117,
-0.0047392467968165874,
0.008218013681471348,
-0.027169542387127876,
0.015245804563164711,
0.006113613490015268,
0.026265323162078857,
0.02104172669351101,
-0.03219142183661461,
-0.05486853048205376,
0.06774463504552841,
0.02441413700580597,
0.019735239446163177,
0.0136655792593956,
-0.023000435903668404,
0.017742125317454338,
-0.0027581199537962675,
-0.04901239648461342,
-0.015477188862860203,
0.023798201233148575,
-0.033298835158348083,
0.07143191248178482,
-0.025233544409275055,
0.026125909760594368,
0.03460151329636574,
0.007597535382956266,
0.0009816049132496119,
0.0479879193007946,
-0.04043197259306908,
0.012202054262161255,
0.031173638999462128,
-0.03897905349731445,
-0.033065229654312134,
-0.03150344267487526,
0.06755796819925308,
-0.04591365531086922,
0.0456077940762043,
0.03457621484994888,
0.02515692450106144,
0.02633965015411377,
-0.025089481845498085,
-0.04270210489630699,
0.02053166553378105,
-0.05720670521259308,
0.06956898421049118,
0.0072302971966564655,
-0.05758620426058769,
0.0655803307890892,
0.028859077021479607,
-0.06509064137935638,
0.029108380898833275,
0.025462646037340164,
0.036813508719205856,
0.016036979854106903,
0.05695002153515816,
-0.046109363436698914,
0.012076383456587791,
-0.041044607758522034,
0.030581478029489517,
-0.05061555281281471,
-0.035758472979068756,
0.006956706754863262,
-0.04097167029976845,
-0.025145387277007103,
0.047202061861753464,
-0.03178207203745842,
-0.012677405960857868,
0.016755977645516396,
-0.07489185035228729,
-0.06835824996232986,
-0.003923417069017887,
0.004146660678088665,
-0.030218595638871193,
0.007635845802724361,
-0.039361707866191864,
0.02586391568183899,
-0.00453807832673192,
-0.011009154841303825,
-0.06618443876504898,
0.02067333646118641,
0.016961203888058662,
-0.04297872632741928,
-0.04339019954204559,
0.04363103210926056,
-0.005061064846813679,
-0.021753087639808655,
0.02174130640923977,
-0.008179143071174622,
0.005658761598169804,
0.034746184945106506,
0.003409016178920865,
0.021462121978402138,
-0.036382004618644714,
-0.000012909471479360946,
0.010852166451513767,
0.013673365116119385,
0.02558913454413414,
-0.015351097099483013,
0.02941395342350006,
0.03259092941880226,
0.051456768065690994,
-0.005105198826640844,
-0.0397728830575943,
-0.03684817999601364,
0.04141882807016373,
-0.042121775448322296,
0.0028069831896573305,
-0.0025622763205319643,
-0.03023996762931347,
-0.04303524270653725,
-0.009818765334784985,
-0.026327265426516533,
0.04582042247056961,
-0.04977770149707794,
-0.012975060380995274,
0.04082215949892998,
-0.03267855942249298,
-0.05267712101340294,
-0.08617731183767319,
-0.008356775157153606,
-0.03421098366379738,
0.022031597793102264,
0.03096984326839447,
-0.04498852416872978,
0.02154381573200226,
-0.04348241537809372,
-0.04251709207892418,
0.05376814678311348,
0.021596642211079597,
-0.04465516656637192,
0.05529438704252243,
0.046731408685445786,
-0.05946652963757515,
0.0040532061830163,
0.02044459991157055,
-0.04455231502652168,
0.013873578980565071,
0.027840621769428253,
0.023929055780172348,
0.02134709432721138,
0.028692495077848434,
-0.03798808157444,
-0.01668448932468891,
-0.06873094290494919,
-0.059121862053871155,
-0.03807048499584198,
0.005533037707209587,
0.06575039774179459
] |
albert-base-v2 | [
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4,785,283 | 2019-11-04T16:00:52Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.017371734604239464,
0.0015233331359922886,
-0.02679620310664177,
0.06894268840551376,
0.035669613629579544,
0.021609894931316376,
-0.017564035952091217,
-0.037039611488580704,
-0.03948637843132019,
0.05711784213781357,
0.0304550938308239,
0.0007140071247704327,
0.004628319758921862,
0.031277965754270554,
-0.04100007191300392,
-0.0044858758337795734,
-0.011198870837688446,
-0.010228913277387619,
-0.016089949756860733,
-0.01941048540174961,
-0.01517843920737505,
0.008392750285565853,
-0.005224680062383413,
0.004279755055904388,
-0.01108985859900713,
0.03283856809139252,
0.0006732849287800491,
0.047676172107458115,
0.017612982541322708,
-0.06525258719921112,
-0.006036780308932066,
-0.021442122757434845,
-0.052295900881290436,
0.016078371554613113,
-0.02107115462422371,
0.008077619597315788,
-0.0019114000024273992,
0.0005206905188970268,
0.0468793660402298,
0.04373849183320999,
-0.012366998009383678,
0.0010791546665132046,
-0.018190762028098106,
-0.02708374336361885,
0.03965703025460243,
0.003124766517430544,
-0.04549455642700195,
-0.011790024116635323,
0.052663881331682205,
-0.014861284755170345,
-0.060675568878650665,
-0.052903153002262115,
-0.028087910264730453,
0.028959060087800026,
0.01036030799150467,
-0.019890839233994484,
-0.061077915132045746,
-0.01886938139796257,
0.06313374638557434,
-0.05816182121634483,
-0.048776112496852875,
0.004100970923900604,
-0.0432557575404644,
0.028547685593366623,
0.047517795115709305,
-0.025211870670318604,
0.013234667479991913,
-0.03576987236738205,
0.029353808611631393,
-0.02682759054005146,
0.057712260633707047,
-0.027465077117085457,
0.009202132001519203,
-0.08834495395421982,
-0.0058892290107905865,
-0.011050869710743427,
0.045288488268852234,
0.044182635843753815,
-0.020286690443754196,
0.04550255835056305,
0.011558358557522297,
0.001824085833504796,
0.013565017841756344,
-0.006503761745989323,
-0.021380210295319557,
0.06318643689155579,
-0.05889274179935455,
-0.01128874160349369,
-0.009748395532369614,
0.05495382845401764,
-0.0325995571911335,
-0.016722440719604492,
-0.03089221566915512,
-0.0426689088344574,
-0.03621205314993858,
0.030157526955008507,
0.03422478213906288,
-0.022113114595413208,
0.053512368351221085,
0.02089170552790165,
0.04253341630101204,
0.05677544325590134,
-0.029629243537783623,
0.06184929609298706,
-0.006581948138773441,
-0.022845957428216934,
-0.016042044386267662,
-0.022935273125767708,
-0.04060991853475571,
0.03479712828993797,
0.027921559289097786,
-0.025420354679226875,
-0.05194149538874626,
0.05491694062948227,
0.005950638093054295,
-0.04763307049870491,
0.04274245351552963,
-0.023454781621694565,
-0.04620906338095665,
-0.06151578947901726,
0.03976191580295563,
-0.000550566241145134,
0.016983762383461,
-0.00217090523801744,
-0.07055073231458664,
0.021560458466410637,
-0.032862015068531036,
-0.02996251918375492,
-0.0015382315032184124,
0.009475700557231903,
-0.011578892357647419,
0.04045529663562775,
0.029383571818470955,
-0.05014979466795921,
0.02272353507578373,
0.00398927042260766,
-0.0651397630572319,
0.0571102499961853,
0.035290077328681946,
0.12928077578544617,
-0.05947744473814964,
-0.045452263206243515,
0.040882717818021774,
0.03409891575574875,
-0.018380416557192802,
0.011518227867782116,
0.038463883101940155,
-0.024705760180950165,
-0.021353676915168762,
-0.0004466463578864932,
0.0648774653673172,
-0.0525837205350399,
-0.015218171291053295,
0.05024570971727371,
-0.00952939037233591,
0.049504444003105164,
-0.03436094522476196,
-0.004855609964579344,
-0.01064077764749527,
-0.005390868987888098,
-0.02552316151559353,
0.04846544563770294,
-0.02062688209116459,
-0.020348353311419487,
-0.03885194659233093,
-0.027565909549593925,
0.00020348592079244554,
0.07010146230459213,
-0.01130034402012825,
-0.01607597805559635,
-0.035222191363573074,
0.014604663476347923,
0.04672837629914284,
0.03918828070163727,
-0.032350827008485794,
0.027922244742512703,
0.07798778265714645,
0.02577913925051689,
-0.031833115965127945,
0.05218934267759323,
0.007934652268886566,
-0.03302234783768654,
-0.019554559141397476,
0.023136448115110397,
-0.009146597236394882,
-0.033567942678928375,
0.03850896283984184,
0.02844899520277977,
-0.010866927914321423,
-0.005123593844473362,
-0.026361146941781044,
0.040723077952861786,
0.006222293712198734,
0.00030057565891183913,
0.00329591310583055,
0.0006627974798902869,
-0.012370486743748188,
0.03740888833999634,
-0.03728874400258064,
0.011488295160233974,
-0.00986271072179079,
-0.019808191806077957,
0.027981681749224663,
0.03306497260928154,
0.04245610535144806,
0.05150679871439934,
0.01918923296034336,
0.0808376595377922,
-0.03900608420372009,
0.02966209501028061,
-0.06746969372034073,
-0.03339928761124611,
0.013339570723474026,
0.029351919889450073,
0.021657589823007584,
0.037556178867816925,
0.002079444006085396,
-0.05241778865456581,
0.010923756286501884,
0.06215361878275871,
0.03842570632696152,
0.02523263543844223,
-0.032593440264463425,
-0.03640799969434738,
0.028408294543623924,
0.06045655906200409,
-0.061024583876132965,
-0.048293981701135635,
0.039607636630535126,
0.049386799335479736,
-0.011748911812901497,
0.019487852230668068,
-0.012123863212764263,
0.027743307873606682,
-0.048608940094709396,
-0.06028680130839348,
0.04421728476881981,
0.04393386095762253,
-0.0034515834413468838,
0.04076937586069107,
-0.006194428540766239,
0.0047218333929777145,
0.015235094353556633,
0.01550491712987423,
-0.005945494864135981,
-0.027895238250494003,
0.012265902943909168,
0.02054455503821373,
0.045761555433273315,
-0.04550756886601448,
0.038389116525650024,
0.009450534358620644,
0.025157660245895386,
0.026357926428318024,
-0.012081707827746868,
0.043052710592746735,
0.04323555901646614,
0.010453984141349792,
-0.03935800865292549,
0.026353221386671066,
-0.00037509825779125094,
0.05398784577846527,
0.06611718237400055,
0.0013185442658141255,
0.054408926516771317,
0.01766500622034073,
0.048985935747623444,
0.07527779042720795,
0.031126951798796654,
0.025209272280335426,
0.02541269361972809,
0.07360443472862244,
0.012682325206696987,
-0.009418413043022156,
0.07347453385591507,
-0.04674537852406502,
0.019764572381973267,
-0.04760218784213066,
0.03178089112043381,
0.006678619887679815,
-0.00035814326838590205,
0.06129647046327591,
0.03627311810851097,
0.002338011749088764,
0.00954111386090517,
-0.01054943073540926,
-0.025232484564185143,
0.054269492626190186,
-0.00009176114690490067,
0.023252103477716446,
-0.01729653961956501,
-0.010251977480947971,
-0.013128921389579773,
-0.07756773382425308,
-0.04779226332902908,
-0.003954374697059393,
-0.027222393080592155,
-0.018603650853037834,
-0.07850926369428635,
-0.025182873010635376,
-0.05227211117744446,
-0.01934655010700226,
0.008704121224582195,
0.013198411092162132,
0.01760193333029747,
-0.04418230056762695,
0.018971139565110207,
-0.051741473376750946,
-0.01800711452960968,
-0.036499686539173126,
-0.03497922047972679,
-0.039491087198257446,
-0.05671904236078262,
0.04188962280750275,
0.009755744598805904,
0.024817246943712234,
-0.021529346704483032,
-0.0033187158405780792,
-0.03581889346241951,
-0.033558189868927,
0.04901817440986633,
0.03649895265698433,
-0.03345262631773949,
-0.0438765324652195,
0.003676982829347253,
-0.005996678955852985,
0.02182650752365589,
-0.01504332385957241,
-0.0015877092955633998,
0.08907415717840195,
0.08062050491571426,
0.03075517527759075,
0.004843220114707947,
-0.03535011410713196,
-0.048327066004276276,
-0.07628127187490463,
-0.029177701100707054,
-0.03281078860163689,
-0.009854777716100216,
-0.04670950770378113,
-0.039122574031353,
-0.002909609116613865,
-0.028565742075443268,
-0.006191978231072426,
-0.00898105651140213,
0.01728932559490204,
0.03730902075767517,
0.03715945780277252,
0.025686942040920258,
0.029854146763682365,
-0.019160078838467598,
-0.04386023432016373,
0.06449829787015915,
0.021128341555595398,
0.018290286883711815,
-0.07249556481838226,
-0.05161077156662941,
0.05487805977463722,
0.04473769664764404,
-0.01637478917837143,
-0.013444513082504272,
0.07505534589290619,
0.0056905788369476795,
-0.008305374532938004,
0.00011668198567349464,
0.01349822711199522,
-0.03708146512508392,
-0.02569529600441456,
-0.0059331622906029224,
-0.004204380325973034,
-0.03325802460312843,
-0.055371351540088654,
-0.01708970032632351,
0.04215900972485542,
-0.05919605866074562,
-0.04495463892817497,
-0.026277640834450722,
0.052835140377283096,
0.030464118346571922,
0.011700977571308613,
-0.02811761386692524,
0.013083911500871181,
-0.03897380456328392,
-0.009152134880423546,
-0.00931623950600624,
0.0027191624976694584,
0.0022858837619423866,
0.02941069006919861,
0.031559351831674576,
-0.024046847596764565,
0.02258220873773098,
0.044511668384075165,
0.05282783880829811,
0.0031307803001254797,
-0.048601046204566956,
0.04181096330285072,
-0.028181511908769608,
0.03180129453539848,
0.01769130676984787,
-0.02336348034441471,
-0.04884249344468117,
-0.09306389093399048,
0.009104396216571331,
-0.011970051564276218,
-0.01564628817141056,
-0.0017887750873342156,
0.03292552009224892,
-0.0286044180393219,
-0.02655608393251896,
0.010901812463998795,
0.019558880478143692,
0.022496914491057396,
-0.04506840929389,
0.06454547494649887,
-0.015356350690126419,
0.020539266988635063,
-0.05464968830347061,
0.014051690697669983,
-0.047123439610004425,
-0.03131560981273651,
0.004559738095849752,
0.05448508262634277,
0.02587496116757393,
0.0586274079978466,
0.055525071918964386,
0.05477132275700569,
-0.05634676292538643,
0.046374160796403885,
0.039444439113140106,
0.012820689007639885,
-0.03818858414888382,
-0.013773459941148758,
-0.026953978464007378,
-0.01798427477478981,
-0.0312889888882637,
-0.00031129398848861456,
0.007185026537626982,
0.028656143695116043,
0.014750801026821136,
-0.012190801091492176,
0.00548725388944149,
-0.016679396852850914,
-0.028974592685699463,
-0.07369226962327957,
-0.019186940044164658,
-0.0032706940546631813,
-0.019596625119447708,
0.05709286034107208,
0.005259037483483553,
0.018817290663719177,
0.0690566673874855,
0.0475030317902565,
-0.013187008909881115,
-0.04320294409990311,
0.03825164586305618,
0.033823538571596146,
-0.036114733666181564,
-0.05234605818986893,
-0.057928215712308884,
0.052680470049381256,
0.05518363416194916,
-0.008156436495482922,
-0.09020695835351944,
-0.015022484585642815,
0.03626507148146629,
-0.052388790994882584,
0.04005071893334389,
-0.01994594931602478,
0.05113973841071129,
0.06854598969221115,
-0.009630043059587479,
0.03791429474949837,
-0.027952805161476135,
-0.00860713329166174,
0.019663505256175995,
0.03205627575516701,
-0.03939652070403099,
-0.0517713762819767,
-0.07159513235092163,
0.0278617013245821,
0.03178127482533455,
0.050500351935625076,
0.05229545012116432,
-0.004347037989646196,
-0.05190381407737732,
0.009281015023589134,
0.02050696685910225,
-0.03457902744412422,
-0.006476808339357376,
0.019909625872969627,
0.0597882941365242,
-0.05875776708126068,
-0.01243924256414175,
-0.03593366965651512,
-0.006718131713569164,
0.03215523809194565,
0.005849034525454044,
-0.029257846996188164,
-0.04855573549866676,
0.0168616846203804,
-0.018215052783489227,
-0.021219249814748764,
-0.07601699978113174,
0.0013638470554724336,
-0.01313664112240076,
-0.018029605969786644,
0.02672426402568817,
0.03876575082540512,
0.04532016068696976,
0.06681028753519058,
0.011125135235488415,
0.019983937963843346,
-0.044805269688367844,
0.03651242330670357,
-0.02253885753452778,
-0.0022750720381736755,
-0.012320942245423794,
-0.041429948061704636,
0.010304032824933529,
-0.04086759686470032,
-0.03465406596660614,
-0.05028995871543884,
-0.00842131394892931,
0.007974540814757347,
-0.02198350802063942,
0.002244682051241398,
-0.024095024913549423,
0.02825704775750637,
-0.03431465104222298,
-0.04230474680662155,
-0.02979683317244053,
-0.03219735994935036,
-0.07242681086063385,
-0.054405055940151215,
0.01627197116613388,
0.013943401165306568,
0.035770233720541,
0.016986023634672165,
0.021965906023979187,
0.020684221759438515,
0.007120714522898197,
-0.026890454813838005,
0.02597259171307087,
0.007131265942007303,
-0.048469800502061844,
-0.041819024831056595,
0.013807691633701324,
0.020864734426140785,
0.023070843890309334,
-0.03436487913131714,
0.01810847409069538,
0.02491404302418232,
-0.025091048330068588,
-0.014124970883131027,
0.040367692708969116,
0.022573448717594147,
-0.07988759875297546,
-0.02792014554142952,
-0.02098342776298523,
-0.05358953773975372,
0.028645483776926994,
-0.005630418658256531,
-0.014757604338228703,
0.01640903949737549,
0.0264763031154871,
0.04409099742770195,
0.0030743142124265432,
-0.039308857172727585,
0.004303700290620327,
-0.03463658690452576,
0.04468310624361038,
-0.06606321036815643,
0.03241610899567604,
-0.045815106481313705,
0.02018795721232891,
-0.010954635217785835,
0.015005704015493393,
-0.04813949391245842,
0.031135883182287216,
-0.031871311366558075,
-0.0039820000529289246,
-0.01718061789870262,
0.008711080998182297,
-0.03607587143778801,
0.05021262541413307,
-0.03750103712081909,
0.012270241044461727,
-0.015700817108154297,
0.06666112691164017,
-0.03837059810757637,
0.00035021750954911113,
-0.023118285462260246,
0.0077858977019786835,
-0.04475454241037369,
-0.014677392318844795,
-0.006350426003336906,
-0.020690469071269035,
0.053077951073646545,
0.03500264510512352,
0.03149322792887688,
0.04703466221690178,
0.005484756547957659,
0.005884591955691576,
0.005211867392063141,
-0.05678686127066612,
-0.020243007689714432,
0.0020700416062027216,
0.014095688238739967,
-0.0009333034395240247,
0.05819137394428253,
0.04986873269081116,
-0.04255859926342964,
-0.046903207898139954,
0.05617459863424301,
0.024518314749002457,
0.01366945169866085,
-0.00000956030999077484,
0.041185036301612854,
0.04790838435292244,
0.03854764625430107,
-0.032647859305143356,
-0.0009150651167146862,
0.00644656689837575,
-0.025669537484645844,
0.019205952063202858,
0.003977736923843622,
0.02691122703254223,
0.02405393123626709,
-0.03162708505988121,
-0.051429107785224915,
0.06484293192625046,
0.024893559515476227,
0.016931628808379173,
0.014678960666060448,
-0.02569364197552204,
0.013013237155973911,
-0.0020944278221577406,
-0.05119621753692627,
-0.008085296489298344,
0.02146795578300953,
-0.032602567225694656,
0.07114872336387634,
-0.0258487556129694,
0.02449195645749569,
0.03229407221078873,
0.009150958620011806,
-0.0026043078396469355,
0.044740401208400726,
-0.04461441934108734,
0.014099371619522572,
0.032443851232528687,
-0.03621527925133705,
-0.032271698117256165,
-0.03713469207286835,
0.06715349853038788,
-0.04673457518219948,
0.04580634832382202,
0.03517407178878784,
0.022519411519169807,
0.02546112984418869,
-0.02002789080142975,
-0.042601291090250015,
0.018192782998085022,
-0.056005507707595825,
0.06870896369218826,
0.008123325183987617,
-0.06028931960463524,
0.07121249288320541,
0.028871851041913033,
-0.06471583992242813,
0.030982941389083862,
0.027959229424595833,
0.037725843489170074,
0.01974298059940338,
0.05872494354844093,
-0.04300616681575775,
0.01180094201117754,
-0.04087575152516365,
0.028694063425064087,
-0.04687647148966789,
-0.03830331936478615,
0.011172211728990078,
-0.04321005940437317,
-0.025985384359955788,
0.04454740136861801,
-0.0314628966152668,
-0.009708519093692303,
0.015644757077097893,
-0.07759550958871841,
-0.06656017899513245,
-0.0014628012431785464,
0.006745762191712856,
-0.030954301357269287,
0.005616879090666771,
-0.0376790426671505,
0.02728038839995861,
-0.006473275367170572,
-0.009874362498521805,
-0.06307383626699448,
0.02387484908103943,
0.01604919508099556,
-0.04597517102956772,
-0.04182717949151993,
0.04301909729838371,
-0.0008624762995168567,
-0.020801125094294548,
0.025646433234214783,
-0.008241484872996807,
0.002950522117316723,
0.030248450115323067,
0.00411202060058713,
0.02117171883583069,
-0.03705254942178726,
-0.0016651632031425834,
0.007858090102672577,
0.0107598677277565,
0.027667606249451637,
-0.016483359038829803,
0.02459769882261753,
0.03163393959403038,
0.04516911506652832,
0.00022869327221997082,
-0.0397893488407135,
-0.03119368478655815,
0.043417491018772125,
-0.044831033796072006,
0.002129744039848447,
-0.0005216645658947527,
-0.02879445254802704,
-0.039353325963020325,
-0.01608918234705925,
-0.028240738436579704,
0.04472285509109497,
-0.05395839363336563,
-0.01645849645137787,
0.03895055502653122,
-0.03375886380672455,
-0.05018406733870506,
-0.08305881917476654,
-0.006585312075912952,
-0.037088993936777115,
0.026775682345032692,
0.027607640251517296,
-0.040857333689928055,
0.02290942147374153,
-0.045231468975543976,
-0.0480886772274971,
0.04621618613600731,
0.02580060437321663,
-0.04324686899781227,
0.05308305844664574,
0.04635948687791824,
-0.058335620909929276,
0.0013583964901044965,
0.019349945709109306,
-0.04173612222075462,
0.013996541500091553,
0.024969305843114853,
0.022793130949139595,
0.021767789497971535,
0.02769649028778076,
-0.03550349920988083,
-0.014055270701646805,
-0.06519550085067749,
-0.059380847960710526,
-0.03339104726910591,
0.013864257372915745,
0.06562468409538269
] |
albert-large-v1 | [
"pytorch",
"tf",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 687 | 2019-12-20T12:28:51Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.018121063709259033,
0.002527142409235239,
-0.026467183604836464,
0.06899815797805786,
0.035836223512887955,
0.019501175731420517,
-0.017295489087700844,
-0.03910917416214943,
-0.03756653517484665,
0.05714162811636925,
0.030745433643460274,
0.0013536266051232815,
0.004762119147926569,
0.03252556174993515,
-0.04039589315652847,
-0.0023835422471165657,
-0.010240905918180943,
-0.011898408643901348,
-0.016338301822543144,
-0.01962474174797535,
-0.015164855867624283,
0.007658049464225769,
-0.007093182764947414,
0.005506246350705624,
-0.009339699521660805,
0.032194457948207855,
0.0016361381858587265,
0.04879572242498398,
0.01715153083205223,
-0.06589239090681076,
-0.00574342580512166,
-0.021548409014940262,
-0.05204033479094505,
0.015046143904328346,
-0.0206590685993433,
0.0066208927892148495,
-0.0011422830866649747,
0.0003481478779576719,
0.046428337693214417,
0.04154249653220177,
-0.012206296436488628,
0.00042176456190645695,
-0.016612272709608078,
-0.028208265081048012,
0.04061613604426384,
0.0012286902638152242,
-0.04705526679754257,
-0.013825302943587303,
0.05001337453722954,
-0.014076558873057365,
-0.06024441123008728,
-0.053027402609586716,
-0.027891866862773895,
0.029065877199172974,
0.012297925539314747,
-0.019161773845553398,
-0.05935979634523392,
-0.01931423507630825,
0.062386129051446915,
-0.058748338371515274,
-0.04953864589333534,
0.004000738263130188,
-0.04347142577171326,
0.029279202222824097,
0.04749647155404091,
-0.02395683154463768,
0.013543816283345222,
-0.03603773191571236,
0.031045857816934586,
-0.024974605068564415,
0.05734848603606224,
-0.027272555977106094,
0.009686450473964214,
-0.08915930241346359,
-0.0036040032282471657,
-0.009898478165268898,
0.044637855142354965,
0.04270585998892784,
-0.020141378045082092,
0.04610409587621689,
0.012719618156552315,
0.0021522752940654755,
0.01245971117168665,
-0.006354551762342453,
-0.019938243553042412,
0.06390182673931122,
-0.05866004899144173,
-0.010348879732191563,
-0.008873558603227139,
0.0558541938662529,
-0.03287172690033913,
-0.017851395532488823,
-0.031276166439056396,
-0.04255804046988487,
-0.03730565309524536,
0.030780546367168427,
0.03362736105918884,
-0.02371985651552677,
0.05283154174685478,
0.02143268845975399,
0.043588023632764816,
0.055714309215545654,
-0.030434349551796913,
0.06306006014347076,
-0.0047003114596009254,
-0.023621270433068275,
-0.01721493899822235,
-0.022031428292393684,
-0.03945189714431763,
0.036073777824640274,
0.02880786545574665,
-0.026081575080752373,
-0.052027326077222824,
0.054037000983953476,
0.005474121775478125,
-0.045647382736206055,
0.04311317577958107,
-0.023155178874731064,
-0.04587395489215851,
-0.06028671935200691,
0.03817897289991379,
-0.0005456891376525164,
0.016526589170098305,
-0.0013087099650874734,
-0.07083136588335037,
0.021028734743595123,
-0.03219818323850632,
-0.02975001186132431,
-0.0005846886779181659,
0.009392788633704185,
-0.012207084335386753,
0.040209025144577026,
0.0302466731518507,
-0.05153568089008331,
0.02163074165582657,
0.005260271020233631,
-0.06453561037778854,
0.05605872720479965,
0.03399113565683365,
0.1298268586397171,
-0.0578218474984169,
-0.04536281153559685,
0.04051585495471954,
0.034022487699985504,
-0.017503947019577026,
0.01231098547577858,
0.03868185356259346,
-0.02551765739917755,
-0.023680321872234344,
-0.0015716762281954288,
0.06462711840867996,
-0.054156988859176636,
-0.01535184308886528,
0.05209628492593765,
-0.010550257749855518,
0.049511995166540146,
-0.03419109806418419,
-0.004429842345416546,
-0.010252425447106361,
-0.006007398013025522,
-0.02563335932791233,
0.04854933172464371,
-0.02001102827489376,
-0.01995888724923134,
-0.038282569497823715,
-0.028206918388605118,
-0.00011101986456196755,
0.07065114378929138,
-0.010171996429562569,
-0.0148939099162817,
-0.035495009273290634,
0.016627363860607147,
0.04754212126135826,
0.040806226432323456,
-0.03320351988077164,
0.02828698419034481,
0.07652707397937775,
0.025501519441604614,
-0.03110826201736927,
0.05069974437355995,
0.007120626512914896,
-0.03328842669725418,
-0.01994732767343521,
0.024417676031589508,
-0.008010362274944782,
-0.034094929695129395,
0.037632886320352554,
0.027550162747502327,
-0.010797911323606968,
-0.00599766755476594,
-0.025965074077248573,
0.042037270963191986,
0.007810218259692192,
-0.0003052258107345551,
0.003139557084068656,
0.0023064017295837402,
-0.011998165398836136,
0.036531880497932434,
-0.03898615017533302,
0.011241132393479347,
-0.00955260545015335,
-0.02117190882563591,
0.028323324397206306,
0.032618533819913864,
0.04162077233195305,
0.05350951477885246,
0.018808944150805473,
0.07972565293312073,
-0.0400935634970665,
0.028253380209207535,
-0.06726078689098358,
-0.03331363573670387,
0.013029229827225208,
0.02782958745956421,
0.0204392671585083,
0.036899760365486145,
0.0011750778649002314,
-0.05237667262554169,
0.012346415780484676,
0.0636475533246994,
0.038575828075408936,
0.025837065652012825,
-0.03163875639438629,
-0.03605033829808235,
0.027044543996453285,
0.059892453253269196,
-0.06256462633609772,
-0.04814784601330757,
0.039282917976379395,
0.04934142902493477,
-0.01212388463318348,
0.0213499516248703,
-0.014139274135231972,
0.026631299406290054,
-0.04781140759587288,
-0.060432951897382736,
0.044586628675460815,
0.04410184174776077,
-0.003836224554106593,
0.04139912500977516,
-0.007135048508644104,
0.0033721416257321835,
0.015745069831609726,
0.014814783819019794,
-0.005124241579324007,
-0.027205049991607666,
0.01202479563653469,
0.01994158700108528,
0.044484756886959076,
-0.04806476831436157,
0.03793928772211075,
0.009649589657783508,
0.025143977254629135,
0.025456823408603668,
-0.010628576390445232,
0.04474594444036484,
0.04519160836935043,
0.010884650982916355,
-0.038289591670036316,
0.028088543564081192,
-0.0010018678149208426,
0.05199776217341423,
0.0675557553768158,
0.002530854195356369,
0.05216636136174202,
0.019484613090753555,
0.05004143342375755,
0.07393187284469604,
0.030347101390361786,
0.02639925107359886,
0.025809619575738907,
0.07460026443004608,
0.01365735288709402,
-0.009507524780929089,
0.07159903645515442,
-0.04553204029798508,
0.02014107070863247,
-0.046112995594739914,
0.029789533466100693,
0.006446934770792723,
-0.0011994884116575122,
0.06202717870473862,
0.03764097020030022,
0.0028366409242153168,
0.009872809052467346,
-0.011406859382987022,
-0.02420920319855213,
0.055361442267894745,
-0.0016845251666381955,
0.023213602602481842,
-0.017778104171156883,
-0.010300532914698124,
-0.014044894836843014,
-0.07568342238664627,
-0.04752263426780701,
-0.003144770860671997,
-0.027515001595020294,
-0.019002467393875122,
-0.08001680672168732,
-0.02482125349342823,
-0.05360011011362076,
-0.018922194838523865,
0.009435480460524559,
0.013284045271575451,
0.0158554520457983,
-0.04461381956934929,
0.017685208469629288,
-0.052894532680511475,
-0.01705162413418293,
-0.037905771285295486,
-0.03434038907289505,
-0.040997203439474106,
-0.056868258863687515,
0.041375722736120224,
0.011053009890019894,
0.02542242966592312,
-0.023533878847956657,
-0.004698270931839943,
-0.03658686950802803,
-0.03399188444018364,
0.050243958830833435,
0.03429790213704109,
-0.03370846062898636,
-0.04411274194717407,
0.0032089350279420614,
-0.005391755141317844,
0.021957682445645332,
-0.016131065785884857,
-0.0031871770042926073,
0.08935659378767014,
0.08048154413700104,
0.030777527019381523,
0.003450706833973527,
-0.03597279265522957,
-0.049381110817193985,
-0.07447078824043274,
-0.030169306322932243,
-0.03224368020892143,
-0.008035257458686829,
-0.04664154723286629,
-0.03907635435461998,
-0.0025272355414927006,
-0.02836361899971962,
-0.004491324536502361,
-0.00744060380384326,
0.015732433646917343,
0.03583028167486191,
0.0367797315120697,
0.02593453973531723,
0.029659416526556015,
-0.01877911388874054,
-0.04339881241321564,
0.06765604019165039,
0.022590436041355133,
0.018151799216866493,
-0.07131168246269226,
-0.05145774781703949,
0.05530456081032753,
0.04641195014119148,
-0.015752557665109634,
-0.012663965113461018,
0.07334063202142715,
0.005708607845008373,
-0.008455554954707623,
0.0006493624532595277,
0.012222602032124996,
-0.03807485103607178,
-0.027907509356737137,
-0.004665970802307129,
-0.003972699865698814,
-0.03379880264401436,
-0.05352550745010376,
-0.017647797241806984,
0.04289242625236511,
-0.05806710198521614,
-0.04600834101438522,
-0.02787553146481514,
0.051727015525102615,
0.030764712020754814,
0.011817672289907932,
-0.028075315058231354,
0.012030934914946556,
-0.03805915638804436,
-0.009002547711133957,
-0.010188328102231026,
0.0024289926514029503,
0.0034281043335795403,
0.0309015940874815,
0.031143687665462494,
-0.02132374234497547,
0.024660296738147736,
0.0439441055059433,
0.053743746131658554,
0.0031798311974853277,
-0.04930313676595688,
0.04139437526464462,
-0.027988620102405548,
0.030398540198802948,
0.01798703894019127,
-0.02278769388794899,
-0.04978305846452713,
-0.09330758452415466,
0.010628030635416508,
-0.012595399282872677,
-0.01659860834479332,
-0.002964084269478917,
0.032898854464292526,
-0.02806907147169113,
-0.02627570927143097,
0.01108574029058218,
0.018126271665096283,
0.02141750603914261,
-0.04716932028532028,
0.06381141394376755,
-0.013694378547370434,
0.018036119639873505,
-0.053885236382484436,
0.013379713520407677,
-0.04868713766336441,
-0.03159463778138161,
0.005960050970315933,
0.053573042154312134,
0.02854832634329796,
0.05962133780121803,
0.0545501634478569,
0.05563734471797943,
-0.05482308566570282,
0.047513555735349655,
0.040081679821014404,
0.014027723111212254,
-0.038544945418834686,
-0.013713475316762924,
-0.02786266803741455,
-0.017568206414580345,
-0.03308174014091492,
-0.00029864851967431605,
0.006939612329006195,
0.02836056798696518,
0.015372077003121376,
-0.01144954189658165,
0.005258198827505112,
-0.016481522470712662,
-0.028924716636538506,
-0.07386310398578644,
-0.018221374601125717,
-0.0031039186287671328,
-0.01982131227850914,
0.05681193619966507,
0.005809393711388111,
0.019930655136704445,
0.0699632316827774,
0.04844510555267334,
-0.013888412155210972,
-0.04396403208374977,
0.03898601979017258,
0.03320735692977905,
-0.03625812381505966,
-0.051464445888996124,
-0.05617102235555649,
0.05388043448328972,
0.05483599752187729,
-0.0060563646256923676,
-0.0916748121380806,
-0.016623161733150482,
0.036746036261320114,
-0.0534692108631134,
0.03863929212093353,
-0.019616268575191498,
0.05146409571170807,
0.07027032226324081,
-0.010510159656405449,
0.03662903606891632,
-0.02889893762767315,
-0.008145257830619812,
0.019204474985599518,
0.03170204162597656,
-0.039466384798288345,
-0.05072477087378502,
-0.07163719832897186,
0.026902221143245697,
0.03166530281305313,
0.05011419951915741,
0.05233515799045563,
-0.003280735109001398,
-0.050614893436431885,
0.009543819352984428,
0.023132065311074257,
-0.03437768295407295,
-0.007823333144187927,
0.01698496751487255,
0.058775462210178375,
-0.05887264385819435,
-0.011639916338026524,
-0.03582454100251198,
-0.007886037230491638,
0.03229363262653351,
0.005956381093710661,
-0.028623297810554504,
-0.05071054399013519,
0.01710987463593483,
-0.020217537879943848,
-0.021564796566963196,
-0.07470250874757767,
0.0035469362046569586,
-0.012789595872163773,
-0.016675328835844994,
0.02506120502948761,
0.03737437725067139,
0.045473746955394745,
0.06645603477954865,
0.009631316177546978,
0.01710006408393383,
-0.04419728368520737,
0.03582543134689331,
-0.023468054831027985,
-0.0018442132277414203,
-0.012735739350318909,
-0.04097488895058632,
0.009345523081719875,
-0.040267013013362885,
-0.03541674464941025,
-0.04808105155825615,
-0.006381260231137276,
0.007825491949915886,
-0.021810375154018402,
0.0009404468582943082,
-0.02409936673939228,
0.02848280593752861,
-0.035014789551496506,
-0.04109499976038933,
-0.029277633875608444,
-0.03278229758143425,
-0.07160277664661407,
-0.05448419973254204,
0.016056671738624573,
0.015454274602234364,
0.03517194464802742,
0.016253238543868065,
0.023126868531107903,
0.019628526642918587,
0.00709516741335392,
-0.026340100914239883,
0.025816207751631737,
0.006180215626955032,
-0.04889390990138054,
-0.042373064905405045,
0.014986025169491768,
0.022414732724428177,
0.02379019372165203,
-0.03470443934202194,
0.017594022676348686,
0.02415022812783718,
-0.02527364157140255,
-0.013783165253698826,
0.04050204157829285,
0.022495346143841743,
-0.08060593158006668,
-0.026680946350097656,
-0.01998940110206604,
-0.05243049934506416,
0.028422879055142403,
-0.006697971373796463,
-0.01234698947519064,
0.017281025648117065,
0.028375700116157532,
0.04482446238398552,
0.0030784360133111477,
-0.038719721138477325,
0.004102943930774927,
-0.03603849560022354,
0.044621698558330536,
-0.06630627065896988,
0.03292106091976166,
-0.04537804797291756,
0.020207475870847702,
-0.010764534585177898,
0.013999161310493946,
-0.048865754157304764,
0.03130758926272392,
-0.030328013002872467,
-0.0031199182849377394,
-0.01690889149904251,
0.009059452451765537,
-0.03524795547127724,
0.0485416054725647,
-0.03830822929739952,
0.014843892306089401,
-0.015116670168936253,
0.06644219905138016,
-0.03785870596766472,
0.0000783563737059012,
-0.022917484864592552,
0.00813335832208395,
-0.04583840072154999,
-0.015004590153694153,
-0.005534145049750805,
-0.020294170826673508,
0.05315571278333664,
0.03820270672440529,
0.030534222722053528,
0.046623073518276215,
0.0038966480642557144,
0.0042941211722791195,
0.005302241072058678,
-0.05867202952504158,
-0.020896034315228462,
0.0016392049146816134,
0.01381902489811182,
-0.0006807149620726705,
0.05972907692193985,
0.05060398951172829,
-0.04378483444452286,
-0.04793338105082512,
0.05617069453001022,
0.02273855358362198,
0.012097635306417942,
-0.0006473504472523928,
0.04057551547884941,
0.0478648915886879,
0.04066305607557297,
-0.03293398767709732,
0.00035300978925079107,
0.005945342592895031,
-0.022923540323972702,
0.018716147169470787,
0.00435621989890933,
0.02600250206887722,
0.0245850570499897,
-0.032297782599925995,
-0.05118388682603836,
0.06491696834564209,
0.025954488664865494,
0.016031021252274513,
0.014177880249917507,
-0.024893654510378838,
0.012370700016617775,
-0.0027097808197140694,
-0.052498798817396164,
-0.007181850261986256,
0.02185811847448349,
-0.030466899275779724,
0.07200071960687637,
-0.024553470313549042,
0.02564166858792305,
0.0325467474758625,
0.010108761489391327,
-0.0022857992444187403,
0.044595442712306976,
-0.04546128958463669,
0.014446147717535496,
0.031961534172296524,
-0.036181189119815826,
-0.03205132111907005,
-0.03738183155655861,
0.06732083857059479,
-0.04585982486605644,
0.048637423664331436,
0.034759603440761566,
0.022715888917446136,
0.02563668228685856,
-0.019437197595834732,
-0.04133620113134384,
0.015890484675765038,
-0.05669749155640602,
0.06778683513402939,
0.00903342291712761,
-0.05993010103702545,
0.07175391167402267,
0.02926277555525303,
-0.0651206225156784,
0.03252626955509186,
0.029541078954935074,
0.03870157524943352,
0.020408200100064278,
0.05834401026368141,
-0.04157102480530739,
0.012551852501928806,
-0.042848020792007446,
0.02932298742234707,
-0.045219261199235916,
-0.03849666193127632,
0.011209158226847649,
-0.041229892522096634,
-0.02648938074707985,
0.044796399772167206,
-0.03300551697611809,
-0.007954176515340805,
0.016077570617198944,
-0.07700051367282867,
-0.06525225937366486,
-0.0009189842967316508,
0.009363885037600994,
-0.03226315975189209,
0.006547478958964348,
-0.03773585334420204,
0.027714723721146584,
-0.007450363598763943,
-0.010715877637267113,
-0.062286220490932465,
0.023600038141012192,
0.017137560993433,
-0.04627804830670357,
-0.04008035361766815,
0.04340145364403725,
-0.0004839506291318685,
-0.0210746880620718,
0.024233661592006683,
-0.009771041572093964,
0.0008388484129682183,
0.030199073255062103,
0.0038778248708695173,
0.020147815346717834,
-0.03629022091627121,
-0.002640272956341505,
0.007126247510313988,
0.010474584996700287,
0.027776265516877174,
-0.015788117423653603,
0.02388901822268963,
0.0314924456179142,
0.046410609036684036,
0.001076660118997097,
-0.04089986905455589,
-0.030939118936657906,
0.04457854479551315,
-0.043929558247327805,
0.0027512472588568926,
-0.0007187570445239544,
-0.02782001905143261,
-0.04029419645667076,
-0.016515381634235382,
-0.030223878100514412,
0.044532038271427155,
-0.05360420420765877,
-0.015094883739948273,
0.03691680729389191,
-0.032532501965761185,
-0.05052056536078453,
-0.08423534035682678,
-0.0054713040590286255,
-0.035417720675468445,
0.026851648464798927,
0.02585187554359436,
-0.04135230928659439,
0.02293250896036625,
-0.04477303847670555,
-0.0479123555123806,
0.047120437026023865,
0.024204958230257034,
-0.0424182191491127,
0.05203405022621155,
0.044163256883621216,
-0.058598585426807404,
0.0008821322117000818,
0.020278431475162506,
-0.04226139932870865,
0.014715339988470078,
0.024229420349001884,
0.021663200110197067,
0.021967874839901924,
0.027366088703274727,
-0.03442894294857979,
-0.012462896294891834,
-0.0660298690199852,
-0.0594051256775856,
-0.031588975340127945,
0.013699342496693134,
0.06554566323757172
] |
albert-large-v2 | [
"pytorch",
"tf",
"safetensors",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 26,792 | 2019-11-04T16:00:53Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.017891714349389076,
0.002103835577145219,
-0.025990311056375504,
0.0689493864774704,
0.036186132580041885,
0.019427411258220673,
-0.017666058614850044,
-0.03851858526468277,
-0.03691915050148964,
0.0569012388586998,
0.03065728396177292,
0.002100828569382429,
0.00448606489226222,
0.032604191452264786,
-0.040875449776649475,
-0.0027206845115870237,
-0.010042712092399597,
-0.011870712973177433,
-0.0163157619535923,
-0.019660890102386475,
-0.015217650681734085,
0.007821413688361645,
-0.0073954202234745026,
0.005612759850919247,
-0.009325607679784298,
0.03191325441002846,
0.0020855909679085016,
0.04898658022284508,
0.016756104305386543,
-0.0661545842885971,
-0.005994143895804882,
-0.021705059334635735,
-0.05171728879213333,
0.015300176106393337,
-0.02084280364215374,
0.006129692308604717,
-0.0015361304394900799,
0.000777040550019592,
0.046708088368177414,
0.04144705832004547,
-0.012304532341659069,
0.0008250613464042544,
-0.01737109012901783,
-0.028149563819169998,
0.04054263234138489,
0.0013633519411087036,
-0.04684552550315857,
-0.014226138591766357,
0.050285454839468,
-0.014034426771104336,
-0.060387980192899704,
-0.052806347608566284,
-0.027250712737441063,
0.028653083369135857,
0.012349028140306473,
-0.01911451853811741,
-0.059626173228025436,
-0.0190389696508646,
0.06239320710301399,
-0.05874980613589287,
-0.04963298514485359,
0.0038596508093178272,
-0.04341646283864975,
0.029257802292704582,
0.04761694371700287,
-0.024592651054263115,
0.013602463528513908,
-0.03605750575661659,
0.030748959630727768,
-0.024529187008738518,
0.057902827858924866,
-0.027495773509144783,
0.010007338598370552,
-0.08973555266857147,
-0.003819697769358754,
-0.010268858633935452,
0.04468954727053642,
0.0427708700299263,
-0.02018428035080433,
0.04645770788192749,
0.013135870918631554,
0.0025631433818489313,
0.012095464393496513,
-0.006121295038610697,
-0.020076513290405273,
0.06394156068563461,
-0.0586356595158577,
-0.010027150623500347,
-0.008669612929224968,
0.055902719497680664,
-0.0327407643198967,
-0.01757809706032276,
-0.03163502737879753,
-0.04228467121720314,
-0.037414781749248505,
0.030725840479135513,
0.033866845071315765,
-0.023768583312630653,
0.052646052092313766,
0.021250881254673004,
0.04380340874195099,
0.05558111146092415,
-0.03025471605360508,
0.0629827156662941,
-0.004418123513460159,
-0.02333332598209381,
-0.01747073419392109,
-0.022305253893136978,
-0.03984610736370087,
0.0357547327876091,
0.028924832120537758,
-0.026387428864836693,
-0.052398018538951874,
0.05428813025355339,
0.005107610486447811,
-0.04541655257344246,
0.04304421693086624,
-0.023208774626255035,
-0.046325452625751495,
-0.06074768677353859,
0.03851442411541939,
-0.0006535500288009644,
0.016321565955877304,
-0.000824144808575511,
-0.07113362103700638,
0.020950602367520332,
-0.032378699630498886,
-0.029690038412809372,
-0.0005437660729512572,
0.009107628837227821,
-0.012126359157264233,
0.040237605571746826,
0.030105208978056908,
-0.05147145688533783,
0.021804576739668846,
0.005467546172440052,
-0.06532959640026093,
0.0559227392077446,
0.034350037574768066,
0.12983304262161255,
-0.05803627148270607,
-0.04531966149806976,
0.04005292430520058,
0.03382563591003418,
-0.017164044082164764,
0.012125563807785511,
0.038585349917411804,
-0.025677340105175972,
-0.02299046888947487,
-0.001956309424713254,
0.06514272838830948,
-0.05500456690788269,
-0.014827077277004719,
0.052293382585048676,
-0.010515636764466763,
0.04980235546827316,
-0.03447720408439636,
-0.004394184798002243,
-0.009953134693205357,
-0.0057592494413256645,
-0.025064248591661453,
0.04873228445649147,
-0.019672634080052376,
-0.020064665004611015,
-0.038614995777606964,
-0.028343794867396355,
-0.00037067689117975533,
0.07127586007118225,
-0.00987264234572649,
-0.014988133683800697,
-0.035566702485084534,
0.01627420075237751,
0.047987934201955795,
0.04105537384748459,
-0.03250124678015709,
0.028298020362854004,
0.07668851315975189,
0.025526689365506172,
-0.03106573410332203,
0.050617922097444534,
0.007100802380591631,
-0.033452823758125305,
-0.020146319642663002,
0.024045564234256744,
-0.00807042233645916,
-0.0341653935611248,
0.03725254535675049,
0.027444222941994667,
-0.010599339380860329,
-0.005583144258707762,
-0.026002924889326096,
0.04204275459051132,
0.007251549977809191,
-0.0006514270207844675,
0.002983697224408388,
0.0022534511517733335,
-0.012073352001607418,
0.03706275671720505,
-0.03895573318004608,
0.010935691185295582,
-0.009458586573600769,
-0.02070429176092148,
0.028198976069688797,
0.032727621495723724,
0.04206041619181633,
0.053043510764837265,
0.018800491467118263,
0.07983562350273132,
-0.03984036296606064,
0.028476709499955177,
-0.06715654581785202,
-0.03348294273018837,
0.012293781153857708,
0.028271062299609184,
0.020614856854081154,
0.03735152259469032,
0.001496581477113068,
-0.052208393812179565,
0.012637384235858917,
0.06328615546226501,
0.0390179269015789,
0.026194490492343903,
-0.03170675039291382,
-0.0362185575067997,
0.026621105149388313,
0.060048531740903854,
-0.062075480818748474,
-0.0485658198595047,
0.03958691284060478,
0.0497562400996685,
-0.01215372420847416,
0.020889677107334137,
-0.013860579580068588,
0.02685435116291046,
-0.04771619290113449,
-0.06045391410589218,
0.043870940804481506,
0.043642692267894745,
-0.0033789705485105515,
0.04164924845099449,
-0.007390947546809912,
0.003601005068048835,
0.015511835925281048,
0.014323532581329346,
-0.0051353308372199535,
-0.02743399515748024,
0.012084816582500935,
0.02010234259068966,
0.04448104277253151,
-0.04811599478125572,
0.03778443858027458,
0.00924734678119421,
0.024969432502985,
0.025362009182572365,
-0.010671050287783146,
0.04512512683868408,
0.04475238919258118,
0.01094762608408928,
-0.03808992728590965,
0.027612291276454926,
-0.0008821689407341182,
0.051731545478105545,
0.0675404742360115,
0.0024249774869531393,
0.052734676748514175,
0.019069859758019447,
0.05041222646832466,
0.07332407683134079,
0.030586492270231247,
0.026044899597764015,
0.02568480558693409,
0.07416465878486633,
0.014210697263479233,
-0.009536677971482277,
0.07137974351644516,
-0.04609258845448494,
0.019621655344963074,
-0.04582258686423302,
0.030123883858323097,
0.006437397096306086,
-0.0015235122991725802,
0.06169790402054787,
0.0379820391535759,
0.0030061090365052223,
0.010356749407947063,
-0.011575762182474136,
-0.024439511820673943,
0.054523762315511703,
-0.0017198201967403293,
0.023483185097575188,
-0.017692189663648605,
-0.010230201296508312,
-0.014269201084971428,
-0.07593274861574173,
-0.047435030341148376,
-0.0036096780095249414,
-0.02754218317568302,
-0.01870969869196415,
-0.07936450093984604,
-0.024830980226397514,
-0.054059967398643494,
-0.018706899136304855,
0.009330305270850658,
0.013274654746055603,
0.015836071223020554,
-0.04431372880935669,
0.017813118174672127,
-0.052477821707725525,
-0.017168225720524788,
-0.03727729991078377,
-0.03438304737210274,
-0.040894728153944016,
-0.05696869641542435,
0.04136781021952629,
0.011010776273906231,
0.025118397548794746,
-0.022745227441191673,
-0.0045331064611673355,
-0.03613804653286934,
-0.034062568098306656,
0.05046089366078377,
0.03476008400321007,
-0.03403749316930771,
-0.04438602924346924,
0.0039583551697432995,
-0.005383775569498539,
0.021579314023256302,
-0.01603379100561142,
-0.002971288748085499,
0.08916845917701721,
0.08051832020282745,
0.03080233931541443,
0.0035129806492477655,
-0.03604850918054581,
-0.04910171777009964,
-0.07475226372480392,
-0.030219364911317825,
-0.032363638281822205,
-0.007941684685647488,
-0.047375500202178955,
-0.03894171118736267,
-0.002454994712024927,
-0.02881135232746601,
-0.005155239254236221,
-0.007762545254081488,
0.015749309211969376,
0.03619479760527611,
0.0364074669778347,
0.025618523359298706,
0.029436849057674408,
-0.018954826518893242,
-0.043055515736341476,
0.06747350841760635,
0.022390197962522507,
0.018117638304829597,
-0.071455217897892,
-0.05162712186574936,
0.05512440204620361,
0.04625624045729637,
-0.015896180644631386,
-0.012615889310836792,
0.07347434759140015,
0.005600037053227425,
-0.00795074924826622,
0.0006966262008063495,
0.012274055741727352,
-0.03779274597764015,
-0.027812227606773376,
-0.004237302113324404,
-0.004140154458582401,
-0.03366769850254059,
-0.053741637617349625,
-0.01807154342532158,
0.042534973472356796,
-0.05783125013113022,
-0.04596313089132309,
-0.027161264792084694,
0.051928382366895676,
0.030720790848135948,
0.011942542158067226,
-0.027948442846536636,
0.011805630289018154,
-0.0384385772049427,
-0.009027841500937939,
-0.01050861831754446,
0.002296586986631155,
0.0034875052515417337,
0.030681556090712547,
0.031159311532974243,
-0.021734988316893578,
0.025165706872940063,
0.04357457160949707,
0.0540287084877491,
0.0032343852799385786,
-0.04933123290538788,
0.04151318967342377,
-0.027166925370693207,
0.030779751017689705,
0.018056096509099007,
-0.02267187088727951,
-0.04994884505867958,
-0.09364546090364456,
0.010558023117482662,
-0.013009096495807171,
-0.016692008823156357,
-0.0030287092085927725,
0.03285916522145271,
-0.02801990695297718,
-0.02593834139406681,
0.011018023826181889,
0.018426306545734406,
0.022047095000743866,
-0.04648352786898613,
0.06359501928091049,
-0.013814326375722885,
0.01818663254380226,
-0.053950872272253036,
0.012956543825566769,
-0.049061596393585205,
-0.03157469630241394,
0.005880904849618673,
0.05379795283079147,
0.028499171137809753,
0.05925107002258301,
0.0547986701130867,
0.0549747459590435,
-0.05451177805662155,
0.04751252382993698,
0.04000930115580559,
0.013493744656443596,
-0.03848585858941078,
-0.013925007544457912,
-0.027661796659231186,
-0.017699463292956352,
-0.03263432905077934,
0.000017293417840846814,
0.007311824709177017,
0.028530126437544823,
0.014401530846953392,
-0.011803548783063889,
0.005085132550448179,
-0.016429608687758446,
-0.028863798826932907,
-0.07348354160785675,
-0.018354332074522972,
-0.0031749780755490065,
-0.019853269681334496,
0.05668402090668678,
0.005458991974592209,
0.020137200132012367,
0.07025346904993057,
0.04834280535578728,
-0.013881904073059559,
-0.04454438015818596,
0.039068713784217834,
0.033599164336919785,
-0.03604026511311531,
-0.051243409514427185,
-0.056230928748846054,
0.054302461445331573,
0.05436934903264046,
-0.006445461418479681,
-0.09153887629508972,
-0.016265347599983215,
0.03650388866662979,
-0.05377606675028801,
0.038840632885694504,
-0.0193199273198843,
0.05105239897966385,
0.0696960911154747,
-0.010377397760748863,
0.036445390433073044,
-0.028259454295039177,
-0.008205356076359749,
0.019827768206596375,
0.031789373606443405,
-0.03923066332936287,
-0.050979986786842346,
-0.07174350321292877,
0.027185916900634766,
0.031503207981586456,
0.05006101727485657,
0.05237993970513344,
-0.0035433860030025244,
-0.05034085735678673,
0.00921005941927433,
0.02312169410288334,
-0.03404289484024048,
-0.007645837496966124,
0.017478588968515396,
0.05865921080112457,
-0.05863810330629349,
-0.011792873032391071,
-0.036015585064888,
-0.007369795814156532,
0.0324229896068573,
0.006073996890336275,
-0.028370101004838943,
-0.050950631499290466,
0.016653209924697876,
-0.0202392116189003,
-0.02100284956395626,
-0.07448868453502655,
0.0029828858096152544,
-0.012629037722945213,
-0.016842257231473923,
0.024874810129404068,
0.037405386567115784,
0.046100467443466187,
0.06654755026102066,
0.0096068000420928,
0.017391005530953407,
-0.044069692492485046,
0.03590735048055649,
-0.023293476551771164,
-0.0022839801385998726,
-0.012262393720448017,
-0.04061521962285042,
0.008942540735006332,
-0.03992639482021332,
-0.034680936485528946,
-0.048656828701496124,
-0.006835171487182379,
0.007561460603028536,
-0.0218556746840477,
0.0011999108828604221,
-0.024085702374577522,
0.02859516255557537,
-0.03457232937216759,
-0.041669026017189026,
-0.0288867000490427,
-0.032516781240701675,
-0.0716906264424324,
-0.05434936285018921,
0.01647534780204296,
0.014868173748254776,
0.03504328057169914,
0.01617705263197422,
0.02326427400112152,
0.01937621831893921,
0.006722207181155682,
-0.026635661721229553,
0.025997301563620567,
0.006076253484934568,
-0.04856092855334282,
-0.042382095009088516,
0.01517005916684866,
0.022088099271059036,
0.023597637191414833,
-0.03426898643374443,
0.01729653775691986,
0.02395867370069027,
-0.025518245995044708,
-0.013519338332116604,
0.040423572063446045,
0.022458218038082123,
-0.08050230145454407,
-0.026473814621567726,
-0.020533094182610512,
-0.05255602300167084,
0.02842511422932148,
-0.006269766483455896,
-0.012365832924842834,
0.017224730923771858,
0.02836761064827442,
0.04467266425490379,
0.0029484396800398827,
-0.0388898141682148,
0.0043899063020944595,
-0.03604697063565254,
0.04426120966672897,
-0.06635765731334686,
0.032915230840444565,
-0.045332614332437515,
0.01999550312757492,
-0.010753491893410683,
0.014200233854353428,
-0.04884355515241623,
0.03124082088470459,
-0.030282936990261078,
-0.002567193703725934,
-0.017486590892076492,
0.008744214661419392,
-0.0352848544716835,
0.04855775833129883,
-0.038127705454826355,
0.014769038185477257,
-0.015365887433290482,
0.06650114804506302,
-0.037886250764131546,
-0.000051291583076817915,
-0.022836649790406227,
0.00839328859001398,
-0.04568129777908325,
-0.014849883504211903,
-0.006248351652175188,
-0.020481057465076447,
0.053009383380413055,
0.0382440984249115,
0.030522121116518974,
0.046430524438619614,
0.0033099239226430655,
0.0050501637160778046,
0.005840919446200132,
-0.05832603946328163,
-0.020550597459077835,
0.0016834817361086607,
0.013789174146950245,
-0.001067283214069903,
0.05979839339852333,
0.050808049738407135,
-0.04380389675498009,
-0.04761648178100586,
0.05627204105257988,
0.02258330211043358,
0.012478671967983246,
-0.0011151341022923589,
0.04004374146461487,
0.04818614944815636,
0.040489837527275085,
-0.033130619674921036,
0.00017312212730757892,
0.005907536018639803,
-0.023122606799006462,
0.0193904060870409,
0.004222070798277855,
0.025702711194753647,
0.024523254483938217,
-0.03305082768201828,
-0.05090942978858948,
0.06454676389694214,
0.02578909508883953,
0.016161097213625908,
0.014073379337787628,
-0.025136882439255714,
0.012329695746302605,
-0.002776668407022953,
-0.052170831710100174,
-0.007801032159477472,
0.02117779850959778,
-0.030923932790756226,
0.07160453498363495,
-0.024976342916488647,
0.02507041022181511,
0.03253810852766037,
0.010193007998168468,
-0.0023920638486742973,
0.04482772946357727,
-0.04539066553115845,
0.014843563549220562,
0.032385654747486115,
-0.036085162311792374,
-0.03153836354613304,
-0.03738144785165787,
0.06736616045236588,
-0.046624407172203064,
0.0480838268995285,
0.03488888964056969,
0.02301681600511074,
0.025731593370437622,
-0.019625209271907806,
-0.041693348437547684,
0.015472677536308765,
-0.0566210001707077,
0.06818519532680511,
0.009041964076459408,
-0.05970117077231407,
0.07196402549743652,
0.029179923236370087,
-0.06505754590034485,
0.03254653885960579,
0.029163464903831482,
0.03868543356657028,
0.02024005725979805,
0.05851629748940468,
-0.041651684790849686,
0.012644627131521702,
-0.04274049028754234,
0.02829733118414879,
-0.04520612582564354,
-0.03832666203379631,
0.01138662826269865,
-0.04204613342881203,
-0.026533126831054688,
0.04466119408607483,
-0.033179543912410736,
-0.00840325653553009,
0.016046175733208656,
-0.077430859208107,
-0.06536589562892914,
-0.0006851497455500066,
0.009407903999090195,
-0.03259652480483055,
0.006383362226188183,
-0.03760604187846184,
0.027263974770903587,
-0.007200338877737522,
-0.00994817167520523,
-0.061875082552433014,
0.02364066056907177,
0.017437197268009186,
-0.04622133821249008,
-0.03991583362221718,
0.04333729296922684,
-0.00015102299221325666,
-0.021051375195384026,
0.024275029078125954,
-0.009553852491080761,
0.001157207414507866,
0.030384745448827744,
0.003807203145697713,
0.020622335374355316,
-0.03613272309303284,
-0.0025035168509930372,
0.006901911459863186,
0.01019334141165018,
0.027662375941872597,
-0.016074717044830322,
0.023806223645806313,
0.03165595605969429,
0.04582807049155235,
0.0013231673510745168,
-0.04058774188160896,
-0.030762534588575363,
0.044204749166965485,
-0.044020384550094604,
0.0031530107371509075,
-0.0011457980144768953,
-0.028076931834220886,
-0.040001071989536285,
-0.01631411351263523,
-0.029565885663032532,
0.04459844529628754,
-0.05374874174594879,
-0.015457809902727604,
0.03696455806493759,
-0.03262227773666382,
-0.05059317126870155,
-0.08461495488882065,
-0.005446108523756266,
-0.0352846123278141,
0.026754889637231827,
0.026120495051145554,
-0.04122736304998398,
0.023061828687787056,
-0.0449419841170311,
-0.048042673617601395,
0.04699438065290451,
0.024724582210183144,
-0.04307357594370842,
0.05233369395136833,
0.04515282064676285,
-0.05847378075122833,
0.0012107028160244226,
0.020471297204494476,
-0.04240885376930237,
0.014934695325791836,
0.024644717574119568,
0.022125106304883957,
0.02170354314148426,
0.027912672609090805,
-0.03468850255012512,
-0.0125485360622406,
-0.06603102385997772,
-0.05958354473114014,
-0.03210673853754997,
0.013743716292083263,
0.06517713516950607
] |
albert-xlarge-v1 | [
"pytorch",
"tf",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 341 | 2019-12-20T12:28:51Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.017884569242596626,
0.006399250589311123,
-0.020775070413947105,
0.06745092570781708,
0.03645424172282219,
0.019362691789865494,
-0.020082443952560425,
-0.04499386250972748,
-0.031038735061883926,
0.05520254373550415,
0.03186742216348648,
-0.0028629458975046873,
0.0012352790217846632,
0.034431349486112595,
-0.039962898939847946,
-0.0012284412514418364,
-0.01774800382554531,
-0.014558740891516209,
-0.021708989515900612,
-0.02317291684448719,
-0.01711682230234146,
0.00847511738538742,
-0.011496283113956451,
0.005705614574253559,
-0.005505786743015051,
0.033117055892944336,
0.001378035987727344,
0.05531831085681915,
0.01861521601676941,
-0.06307173520326614,
0.0011455696076154709,
-0.019507810473442078,
-0.04624874144792557,
0.01248176395893097,
-0.017614999786019325,
0.006754390895366669,
-0.001004877150990069,
-0.00034049549140036106,
0.044124703854322433,
0.03669904172420502,
-0.011054250411689281,
0.004402171820402145,
-0.01246498990803957,
-0.03263283148407936,
0.03699086979031563,
-0.001973305596038699,
-0.04913276433944702,
-0.017461754381656647,
0.04858456552028656,
-0.012330365367233753,
-0.054965320974588394,
-0.054353587329387665,
-0.02708548679947853,
0.03198648616671562,
0.010704061016440392,
-0.012812616303563118,
-0.05484067648649216,
-0.017688896507024765,
0.06217214837670326,
-0.05635084956884384,
-0.04584544897079468,
0.005306321196258068,
-0.04687441512942314,
0.029882678762078285,
0.04894629865884781,
-0.02218814380466938,
0.011873607523739338,
-0.03434488922357559,
0.033574335277080536,
-0.022280253469944,
0.06370257586240768,
-0.02460140734910965,
0.006899179890751839,
-0.08698104321956635,
-0.0005916075897403061,
-0.009612517431378365,
0.04387354105710983,
0.039859432727098465,
-0.021441318094730377,
0.04418572410941124,
0.014042451977729797,
0.004065500106662512,
0.007561136037111282,
-0.008010751567780972,
-0.01498011127114296,
0.062362316995859146,
-0.05915788561105728,
-0.009869935922324657,
-0.0010431308764964342,
0.05673285573720932,
-0.03286565840244293,
-0.02559998817741871,
-0.028695618733763695,
-0.04183168709278107,
-0.03722217306494713,
0.033601004630327225,
0.030351703986525536,
-0.025133004412055016,
0.0511687770485878,
0.023711130023002625,
0.04053305462002754,
0.04971066489815712,
-0.030277566984295845,
0.06393152475357056,
-0.0058097271248698235,
-0.02689102292060852,
-0.01710800640285015,
-0.021349050104618073,
-0.03538312762975693,
0.041809290647506714,
0.030888302251696587,
-0.0278557687997818,
-0.05186457931995392,
0.050071969628334045,
0.004124921280890703,
-0.04299004375934601,
0.04697106033563614,
-0.0232490636408329,
-0.048662569373846054,
-0.05722169950604439,
0.035606853663921356,
0.0005854762275703251,
0.022713424637913704,
0.001415538601577282,
-0.07617434859275818,
0.01861463114619255,
-0.03799345716834068,
-0.028472386300563812,
0.0026520336978137493,
0.007517555728554726,
-0.016441036015748978,
0.03880338370800018,
0.03188686445355415,
-0.05336727201938629,
0.01968376152217388,
0.01293044164776802,
-0.05964117497205734,
0.062141966074705124,
0.02834170125424862,
0.12822993099689484,
-0.05336522310972214,
-0.04919608682394028,
0.03751222789287567,
0.036497700959444046,
-0.02049422264099121,
0.01098631788045168,
0.0372765026986599,
-0.02909601293504238,
-0.02591533213853836,
-0.004230744671076536,
0.06508238613605499,
-0.055732645094394684,
-0.017189646139740944,
0.05664556100964546,
-0.017634568735957146,
0.048794087022542953,
-0.03286042436957359,
0.0006478389259427786,
-0.006950131617486477,
-0.00602975208312273,
-0.022106211632490158,
0.0528196282684803,
-0.018366528674960136,
-0.01771846041083336,
-0.04255744814872742,
-0.03179556876420975,
0.0008704274077899754,
0.07042109966278076,
-0.008919110521674156,
-0.014247233048081398,
-0.030824966728687286,
0.022684501484036446,
0.04391489923000336,
0.04500263184309006,
-0.03675011917948723,
0.031907323747873306,
0.08137844502925873,
0.030690133571624756,
-0.0313338078558445,
0.044853903353214264,
0.0092152189463377,
-0.03170286864042282,
-0.020610792562365532,
0.028153588995337486,
-0.0076372576877474785,
-0.033274732530117035,
0.03586379811167717,
0.03087517060339451,
-0.011300685815513134,
-0.008235820569097996,
-0.02409369684755802,
0.04741566628217697,
0.008828281424939632,
-0.006222747266292572,
0.005945373326539993,
-0.00379942380823195,
-0.0061860461719334126,
0.038030046969652176,
-0.04043981805443764,
0.01292415615171194,
-0.009892229922115803,
-0.02565521001815796,
0.026635384187102318,
0.032188426703214645,
0.0415852852165699,
0.055808499455451965,
0.015509159304201603,
0.07784010469913483,
-0.04170224443078041,
0.028649501502513885,
-0.06967370212078094,
-0.03693024069070816,
0.008472009561955929,
0.02755752019584179,
0.023575402796268463,
0.029694566503167152,
0.0012010501231998205,
-0.0569082647562027,
0.011484730057418346,
0.06561721861362457,
0.036686353385448456,
0.026396451517939568,
-0.032387588173151016,
-0.03556247800588608,
0.02970547042787075,
0.05715814232826233,
-0.06214305758476257,
-0.046996936202049255,
0.04266895353794098,
0.048298876732587814,
-0.011545193381607533,
0.02353462390601635,
-0.01273771096020937,
0.024519022554159164,
-0.05206836014986038,
-0.05742551013827324,
0.04130063205957413,
0.043356362730264664,
0.004407700151205063,
0.03893586993217468,
-0.007876265794038773,
-0.0005722336936742067,
0.015748878940939903,
0.011192976497113705,
-0.00151462247595191,
-0.025182602927088737,
0.010257406160235405,
0.01619131676852703,
0.03918541967868805,
-0.04848279803991318,
0.04053246229887009,
0.011175130493938923,
0.02519098110496998,
0.027196358889341354,
-0.007644506637006998,
0.04901358485221863,
0.04911405220627785,
0.012849204242229462,
-0.037369366735219955,
0.027138810604810715,
0.00006081237006583251,
0.05215517431497574,
0.0696549117565155,
0.005487304646521807,
0.04948081448674202,
0.022042082622647285,
0.05352109670639038,
0.07768750190734863,
0.026323186233639717,
0.023378394544124603,
0.030358953401446342,
0.07468580454587936,
0.01835482008755207,
-0.015183622017502785,
0.06758583337068558,
-0.03865616023540497,
0.024022052064538002,
-0.04454892501235008,
0.027284318581223488,
0.0032409874256700277,
-0.0065188840962946415,
0.06595363467931747,
0.039508674293756485,
0.006006655748933554,
0.010981493629515171,
-0.021543558686971664,
-0.021757319569587708,
0.05820934474468231,
-0.005529323592782021,
0.02259122021496296,
-0.01824336312711239,
-0.01349281519651413,
-0.013865645974874496,
-0.07528576254844666,
-0.047352515161037445,
0.0013898201286792755,
-0.027646921575069427,
-0.016147110611200333,
-0.07863925397396088,
-0.024655280634760857,
-0.05856115370988846,
-0.016412178054451942,
0.012115712277591228,
0.010701220482587814,
0.012372013181447983,
-0.043570470064878464,
0.019610796123743057,
-0.05243593081831932,
-0.01158218365162611,
-0.03882209211587906,
-0.03509414941072464,
-0.04226451367139816,
-0.052596814930438995,
0.044227685779333115,
0.009503846988081932,
0.028618022799491882,
-0.022653300315141678,
-0.004382800776511431,
-0.03382847458124161,
-0.03673423081636429,
0.05258091539144516,
0.03520515561103821,
-0.034564077854156494,
-0.0476052351295948,
0.00011578985140658915,
-0.005367668811231852,
0.020457889884710312,
-0.02292722649872303,
-0.00546725420281291,
0.09009141474962234,
0.07819516956806183,
0.031020669266581535,
-0.00169668672606349,
-0.032510098069906235,
-0.05355004221200943,
-0.07153317332267761,
-0.03167734667658806,
-0.029576357454061508,
-0.007854760624468327,
-0.04638923332095146,
-0.036986131221055984,
-0.002506947610527277,
-0.02911410853266716,
-0.0035324522759765387,
-0.005797457415610552,
0.009886642917990685,
0.03429912403225899,
0.03555119037628174,
0.02633649669587612,
0.02876262553036213,
-0.019071608781814575,
-0.04578870162367821,
0.07060348987579346,
0.026644140481948853,
0.013904920779168606,
-0.06855390965938568,
-0.054365597665309906,
0.05447143688797951,
0.04804589971899986,
-0.016648609191179276,
-0.013483582064509392,
0.07295651733875275,
0.008198467083275318,
-0.011168329045176506,
0.0009795778896659613,
0.0082801952958107,
-0.0393010750412941,
-0.031617097556591034,
-0.00019117441843263805,
-0.0003234671603422612,
-0.038881681859493256,
-0.0444784015417099,
-0.02070663310587406,
0.04193122684955597,
-0.054012324661016464,
-0.04670534282922745,
-0.025579845532774925,
0.04959285259246826,
0.030462084338068962,
0.011142711155116558,
-0.03013538010418415,
0.011851280927658081,
-0.041621819138526917,
-0.009161858819425106,
-0.007123219780623913,
0.0032396228052675724,
0.008651341311633587,
0.03646334260702133,
0.03356540575623512,
-0.011893621645867825,
0.026504211127758026,
0.047174468636512756,
0.05449976027011871,
0.006452260538935661,
-0.047869082540273666,
0.040419451892375946,
-0.02311978116631508,
0.029220374301075935,
0.015878066420555115,
-0.022188810631632805,
-0.05044333264231682,
-0.09510786086320877,
0.01322915405035019,
-0.009139412082731724,
-0.01676417887210846,
-0.0052270954474806786,
0.032108087092638016,
-0.029740657657384872,
-0.023394549265503883,
0.0136112617328763,
0.019973112270236015,
0.018801378086209297,
-0.05126483365893364,
0.06495434045791626,
-0.007779938634485006,
0.01158897951245308,
-0.050613872706890106,
0.016948794946074486,
-0.04756682738661766,
-0.030360106378793716,
0.011154990643262863,
0.05105412006378174,
0.02769860439002514,
0.05935636907815933,
0.05185994878411293,
0.053949810564517975,
-0.05257969722151756,
0.048436567187309265,
0.03760714456439018,
0.012831815518438816,
-0.04153687134385109,
-0.011964188888669014,
-0.031182337552309036,
-0.01797798089683056,
-0.04114401713013649,
-0.002346977824345231,
0.007875070907175541,
0.027405789121985435,
0.02037607505917549,
-0.011777694337069988,
0.007716469932347536,
-0.01576405204832554,
-0.030377810820937157,
-0.06981629133224487,
-0.018482984974980354,
-0.0008476715302094817,
-0.022755006328225136,
0.05451568216085434,
0.006722788326442242,
0.022533584386110306,
0.06868752837181091,
0.050824373960494995,
-0.01733231544494629,
-0.04761132597923279,
0.04372572526335716,
0.032065361738204956,
-0.03715377673506737,
-0.04774631932377815,
-0.05236688256263733,
0.05471540242433548,
0.04897201433777809,
-0.0012253469321876764,
-0.09319053590297699,
-0.015678970143198967,
0.040024109184741974,
-0.05113440379500389,
0.03721996769309044,
-0.01786341518163681,
0.054928265511989594,
0.07777904719114304,
-0.012871715240180492,
0.03465893864631653,
-0.028189530596137047,
-0.008397058583796024,
0.015888826921582222,
0.029515553265810013,
-0.036658547818660736,
-0.04690298065543175,
-0.06638149172067642,
0.030078299343585968,
0.03212236985564232,
0.051731228828430176,
0.05070478841662407,
-0.004979673773050308,
-0.05271933600306511,
0.0056370156817138195,
0.029826508834958076,
-0.03424105793237686,
-0.011927938088774681,
0.016667060554027557,
0.05646650493144989,
-0.06037035584449768,
-0.011748865246772766,
-0.03819798678159714,
-0.00918466318398714,
0.03957969695329666,
0.0042618089355528355,
-0.024831272661685944,
-0.055137794464826584,
0.01446524914354086,
-0.03145929425954819,
-0.022487366572022438,
-0.0730520635843277,
0.008291488513350487,
-0.009764857590198517,
-0.01584644801914692,
0.02695971168577671,
0.039967939257621765,
0.044694870710372925,
0.06375278532505035,
0.012420574203133583,
0.015197678469121456,
-0.04380013048648834,
0.03543604165315628,
-0.025493882596492767,
-0.004807560704648495,
-0.011391566134989262,
-0.040823642164468765,
0.007147967349737883,
-0.03900666907429695,
-0.03396361321210861,
-0.041309405118227005,
-0.0010759789729490876,
0.007923656143248081,
-0.020441720262169838,
-0.0009751827456057072,
-0.017505424097180367,
0.024865148589015007,
-0.03592829778790474,
-0.037128299474716187,
-0.03378281742334366,
-0.032061733305454254,
-0.06368251144886017,
-0.04836228862404823,
0.014960713684558868,
0.01856636255979538,
0.034070707857608795,
0.013376169838011265,
0.019036458805203438,
0.018886718899011612,
0.003768017515540123,
-0.025261452421545982,
0.03324815630912781,
0.005432349629700184,
-0.045657929033041,
-0.04264287278056145,
0.01743161678314209,
0.022816581651568413,
0.0295392032712698,
-0.03716840222477913,
0.019498266279697418,
0.02013951539993286,
-0.023211007937788963,
-0.012751825153827667,
0.03635600209236145,
0.020493874326348305,
-0.08218441903591156,
-0.030275797471404076,
-0.018114859238266945,
-0.0494769923388958,
0.028210826218128204,
-0.008151700720191002,
-0.014276194386184216,
0.01815446838736534,
0.02737092785537243,
0.041818201541900635,
0.003878154559060931,
-0.03185278922319412,
0.005834526848047972,
-0.04087483137845993,
0.046281009912490845,
-0.06608820706605911,
0.037012360990047455,
-0.03912585228681564,
0.017601629719138145,
-0.0121958302333951,
0.013190681114792824,
-0.04898197948932648,
0.028705991804599762,
-0.029313985258340836,
0.00024025292077567428,
-0.014547828584909439,
0.01297286618500948,
-0.02943684346973896,
0.038442522287368774,
-0.04115895554423332,
0.019002694636583328,
-0.019119227305054665,
0.0668376013636589,
-0.03400822728872299,
-0.0005075096269138157,
-0.024348849430680275,
0.01020218525081873,
-0.045333247631788254,
-0.012005176395177841,
-0.0020674006082117558,
-0.022928716614842415,
0.05522528663277626,
0.0449162982404232,
0.033508773893117905,
0.04408971592783928,
-0.0019836111459881067,
0.002390790032222867,
0.0020435142796486616,
-0.0587710440158844,
-0.024520911276340485,
0.0028238226659595966,
0.013495652936398983,
-0.002974903676658869,
0.05174344778060913,
0.044795941561460495,
-0.042314812541007996,
-0.048830606043338776,
0.06168664991855621,
0.021789714694023132,
0.010975459590554237,
-0.005630230065435171,
0.03731846064329147,
0.04403126612305641,
0.04098595678806305,
-0.03153404965996742,
-0.0037025264464318752,
0.007169636897742748,
-0.022655064240098,
0.016234762966632843,
0.004248206503689289,
0.031053241342306137,
0.026146434247493744,
-0.03660544380545616,
-0.048033177852630615,
0.06416889280080795,
0.02502417378127575,
0.013216730207204819,
0.013332768343389034,
-0.02246716059744358,
0.018637074157595634,
0.0010291675571352243,
-0.051536381244659424,
-0.007248833775520325,
0.021679652854800224,
-0.02499486692249775,
0.0721488893032074,
-0.02021470107138157,
0.019140904769301414,
0.03285619989037514,
0.012083183042705059,
-0.0028064765501767397,
0.0457238107919693,
-0.045410752296447754,
0.015894543379545212,
0.024154208600521088,
-0.039747606962919235,
-0.028620140627026558,
-0.036140311509370804,
0.0701705664396286,
-0.04911672696471214,
0.05535256862640381,
0.04028042405843735,
0.02280452661216259,
0.02430954948067665,
-0.018310273066163063,
-0.04026412218809128,
0.013577757403254509,
-0.05048978328704834,
0.06457993388175964,
0.007403084076941013,
-0.06112997233867645,
0.07421651482582092,
0.02956952527165413,
-0.06296547502279282,
0.04012197628617287,
0.03082283027470112,
0.03962242975831032,
0.021569332107901573,
0.05089642107486725,
-0.03971831500530243,
0.014847944490611553,
-0.046790316700935364,
0.032917570322752,
-0.04387446120381355,
-0.03888251259922981,
0.011982371099293232,
-0.03781883418560028,
-0.02724161185324192,
0.046049050986766815,
-0.033769842237234116,
-0.006179297808557749,
0.0224724393337965,
-0.07453141361474991,
-0.06800168752670288,
-0.002173046814277768,
0.00980202667415142,
-0.038551848381757736,
0.0035859195049852133,
-0.037686724215745926,
0.028979428112506866,
-0.0033713646698743105,
-0.009644227102398872,
-0.06122458353638649,
0.019449733197689056,
0.024492815136909485,
-0.04905685782432556,
-0.03919355571269989,
0.03585067763924599,
0.0021910774521529675,
-0.021958526223897934,
0.02072400413453579,
-0.012128079310059547,
-0.000024635994122945704,
0.029082713648676872,
-0.0010597791988402605,
0.021985219791531563,
-0.03944190964102745,
-0.006379838101565838,
0.009444460272789001,
0.012171725742518902,
0.02346682921051979,
-0.015131080523133278,
0.026749763637781143,
0.032512545585632324,
0.048906125128269196,
0.0032739744056016207,
-0.042591799050569534,
-0.030029751360416412,
0.04846252128481865,
-0.03742164745926857,
0.004484699573367834,
-0.002548733726143837,
-0.02676718682050705,
-0.0434141680598259,
-0.019485242664813995,
-0.030673878267407417,
0.049078959971666336,
-0.04817318543791771,
-0.012920811772346497,
0.036257553845644,
-0.02890145033597946,
-0.05168015509843826,
-0.090462826192379,
-0.00795056950300932,
-0.03469765931367874,
0.022876214236021042,
0.027128072455525398,
-0.04400124028325081,
0.02320464700460434,
-0.0446242094039917,
-0.04582363739609718,
0.04711348935961723,
0.022852838039398193,
-0.04025983065366745,
0.057064298540353775,
0.04057469964027405,
-0.056704822927713394,
0.005027454812079668,
0.01969406194984913,
-0.043276213109493256,
0.015456834807991982,
0.025059150531888008,
0.023551682010293007,
0.02816808596253395,
0.02410578541457653,
-0.03140411153435707,
-0.01784103363752365,
-0.0685914158821106,
-0.06053297594189644,
-0.03524146229028702,
0.006390563677996397,
0.06665100902318954
] |
albert-xlarge-v2 | [
"pytorch",
"tf",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 2,973 | 2019-11-04T16:00:53Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.017797056585550308,
0.005246325396001339,
-0.020524784922599792,
0.06777287274599075,
0.03693637624382973,
0.019691655412316322,
-0.020058730617165565,
-0.043487515300512314,
-0.03131895139813423,
0.055198222398757935,
0.031354181468486786,
-0.0017217992572113872,
0.0013881685445085168,
0.034538015723228455,
-0.04043368622660637,
-0.001968951430171728,
-0.016744770109653473,
-0.013965905643999577,
-0.02129516936838627,
-0.022490523755550385,
-0.01689256727695465,
0.009018550626933575,
-0.011154329404234886,
0.005446887109428644,
-0.006268882658332586,
0.03290485963225365,
0.0019500736379995942,
0.05451801046729088,
0.01806940883398056,
-0.06391815841197968,
-0.0002875839709304273,
-0.01977771706879139,
-0.04655296355485916,
0.013367792591452599,
-0.017765140160918236,
0.0064765820279717445,
-0.001690406003035605,
0.000024212105927290395,
0.04469369724392891,
0.03767510503530502,
-0.011603581719100475,
0.0047009726986289024,
-0.0138877984136343,
-0.032023344188928604,
0.03706474229693413,
-0.0013316506519913673,
-0.04841450974345207,
-0.017124932259321213,
0.04915495216846466,
-0.012247422710061073,
-0.0558234304189682,
-0.054316021502017975,
-0.026737017557024956,
0.03143123909831047,
0.010520215146243572,
-0.013537381775677204,
-0.055626410990953445,
-0.018169227987527847,
0.06178664416074753,
-0.05660700425505638,
-0.046180155128240585,
0.0053174253553152084,
-0.04642986133694649,
0.029782650992274284,
0.04861335828900337,
-0.023004405200481415,
0.011764632537961006,
-0.034517936408519745,
0.03269726783037186,
-0.02273421734571457,
0.06343762576580048,
-0.025093326345086098,
0.007617051247507334,
-0.08836730569601059,
-0.0013639081735163927,
-0.00959352869540453,
0.04430566728115082,
0.040453679859638214,
-0.02106826938688755,
0.044988490641117096,
0.014064489863812923,
0.004180812276899815,
0.007831478491425514,
-0.00796128623187542,
-0.015726005658507347,
0.062456127256155014,
-0.059114009141922,
-0.009547744877636433,
-0.0018143662018701434,
0.0567953884601593,
-0.03242942690849304,
-0.02417439967393875,
-0.029731951653957367,
-0.0418645478785038,
-0.03762240707874298,
0.03302353248000145,
0.031046269461512566,
-0.024367107078433037,
0.05110972374677658,
0.023269478231668472,
0.04047431796789169,
0.050059232860803604,
-0.02987590990960598,
0.0638151615858078,
-0.005503620486706495,
-0.026215728372335434,
-0.017123887315392494,
-0.021997570991516113,
-0.03615635260939598,
0.04082506150007248,
0.03051718883216381,
-0.02774977870285511,
-0.05242843180894852,
0.05053892359137535,
0.004155101254582405,
-0.04302410036325455,
0.0465635284781456,
-0.0230755265802145,
-0.048597630113363266,
-0.05793995410203934,
0.036215025931596756,
0.00037063536001369357,
0.02169279009103775,
0.001573160756379366,
-0.07552773505449295,
0.019085031002759933,
-0.037503354251384735,
-0.02892555668950081,
0.002678734716027975,
0.007484759204089642,
-0.015647826716303825,
0.03901168331503868,
0.03126395121216774,
-0.05294666066765785,
0.02008797787129879,
0.012330368161201477,
-0.060988884419202805,
0.06144527345895767,
0.029219811782240868,
0.12887291610240936,
-0.05461028218269348,
-0.04866001754999161,
0.0377182774245739,
0.03622497618198395,
-0.019781338050961494,
0.011021364480257034,
0.03744128718972206,
-0.02892877161502838,
-0.024831444025039673,
-0.004484629258513451,
0.06576135009527206,
-0.0568382553756237,
-0.01635335013270378,
0.05614132061600685,
-0.016270287334918976,
0.048970792442560196,
-0.03362671658396721,
-0.00023029714066069573,
-0.007494644727557898,
-0.005633372347801924,
-0.022243527695536613,
0.052281398326158524,
-0.018442697823047638,
-0.018245145678520203,
-0.042559292167425156,
-0.03174936771392822,
0.000554910278879106,
0.07089096307754517,
-0.009041891433298588,
-0.014593834988772869,
-0.03161901235580444,
0.021624159067869186,
0.04472614824771881,
0.04447690770030022,
-0.03606801480054855,
0.03130029886960983,
0.08117740601301193,
0.030143680050969124,
-0.03140716627240181,
0.04540574550628662,
0.008845598436892033,
-0.03200105205178261,
-0.020805776119232178,
0.02670951746404171,
-0.008010811172425747,
-0.033501144498586655,
0.03549608588218689,
0.030362339690327644,
-0.010863007977604866,
-0.007416737265884876,
-0.024405760690569878,
0.046640750020742416,
0.008464416489005089,
-0.005728903226554394,
0.0055911666713654995,
-0.003412333084270358,
-0.00690845213830471,
0.03832262009382248,
-0.04000405967235565,
0.012751634232699871,
-0.009557994082570076,
-0.024465681985020638,
0.027010109275579453,
0.032411910593509674,
0.041909974068403244,
0.05495280399918556,
0.015978196635842323,
0.07824108749628067,
-0.04105890169739723,
0.02901621162891388,
-0.06915305554866791,
-0.03664647415280342,
0.008601740933954716,
0.02762477472424507,
0.0235308725386858,
0.031062012538313866,
0.0015855879755690694,
-0.05598592385649681,
0.011447801254689693,
0.06474827229976654,
0.03726137429475784,
0.026861557736992836,
-0.03206817805767059,
-0.035590726882219315,
0.028943704441189766,
0.0578257218003273,
-0.06186332926154137,
-0.04754099249839783,
0.042499713599681854,
0.048890288919210434,
-0.011832569725811481,
0.022546838968992233,
-0.012448988854885101,
0.025239476934075356,
-0.05185567960143089,
-0.05829142406582832,
0.040699392557144165,
0.04308469593524933,
0.004091000184416771,
0.03949882835149765,
-0.007738884538412094,
0.00011755762534448877,
0.015722433105111122,
0.011032339185476303,
-0.0020056571811437607,
-0.025997523218393326,
0.010670256800949574,
0.017249107360839844,
0.039465125650167465,
-0.04844935983419418,
0.04033970460295677,
0.010431812144815922,
0.024679455906152725,
0.027050364762544632,
-0.00845034047961235,
0.04851736128330231,
0.0479237399995327,
0.01264958456158638,
-0.03746635839343071,
0.02659858763217926,
0.000028259848477318883,
0.05168990418314934,
0.06903021037578583,
0.004888060502707958,
0.05077033117413521,
0.02067423425614834,
0.05354843661189079,
0.07702327519655228,
0.026896147057414055,
0.02332347258925438,
0.02996600978076458,
0.07398860156536102,
0.01818055845797062,
-0.014661528170108795,
0.06803181022405624,
-0.039763882756233215,
0.02323038876056671,
-0.044604331254959106,
0.02809537760913372,
0.0033695646561682224,
-0.0062696062959730625,
0.06536078453063965,
0.03975192457437515,
0.005600681062787771,
0.01107695885002613,
-0.020345337688922882,
-0.02232479304075241,
0.05703280121088028,
-0.005076543428003788,
0.02274276688694954,
-0.0185135155916214,
-0.013183733448386192,
-0.01413227990269661,
-0.07586543262004852,
-0.04726417735219002,
0.00045075660455040634,
-0.027619147673249245,
-0.016692331060767174,
-0.07855737954378128,
-0.02449054829776287,
-0.058099016547203064,
-0.016701746731996536,
0.011444365605711937,
0.01135279331356287,
0.013162886723876,
-0.043786656111478806,
0.019623946398496628,
-0.052163925021886826,
-0.012291672639548779,
-0.03801601380109787,
-0.0347515232861042,
-0.04230663925409317,
-0.05322364345192909,
0.04381207004189491,
0.009700281545519829,
0.027715658769011497,
-0.021896425634622574,
-0.004323652014136314,
-0.03389729931950569,
-0.035863567143678665,
0.05252018943428993,
0.035686083137989044,
-0.03469043970108032,
-0.04747604578733444,
0.0010787920327857137,
-0.005576940719038248,
0.02035367861390114,
-0.022245613858103752,
-0.005204617045819759,
0.08994323015213013,
0.0788733959197998,
0.030814865604043007,
-0.000731302541680634,
-0.033013153821229935,
-0.05255940556526184,
-0.07214567810297012,
-0.031530991196632385,
-0.030079782009124756,
-0.007771913427859545,
-0.04703586921095848,
-0.03717384859919548,
-0.002115370938554406,
-0.029210690408945084,
-0.004500475246459246,
-0.0062388768419623375,
0.010644849389791489,
0.03465753048658371,
0.03564488887786865,
0.025867538526654243,
0.028356444090604782,
-0.01915542222559452,
-0.04535556212067604,
0.06982377171516418,
0.025766611099243164,
0.014568205922842026,
-0.06953068822622299,
-0.054160039871931076,
0.05436036363244057,
0.04755599796772003,
-0.01661173440515995,
-0.013494843617081642,
0.07306225597858429,
0.007327092345803976,
-0.010307163931429386,
0.0011789487907662988,
0.009074953384697437,
-0.03870335966348648,
-0.030965618789196014,
-0.0002598677237983793,
-0.000872280914336443,
-0.038345929235219955,
-0.045842625200748444,
-0.020825766026973724,
0.041700780391693115,
-0.05437888950109482,
-0.04652051255106926,
-0.02549222856760025,
0.05031837522983551,
0.03047851286828518,
0.011513691395521164,
-0.02964254468679428,
0.01175523828715086,
-0.041971638798713684,
-0.009161362424492836,
-0.007455040700733662,
0.0036640597973018885,
0.007967473939061165,
0.03568960726261139,
0.033313896507024765,
-0.014175649732351303,
0.026594974100589752,
0.046562302857637405,
0.05436660349369049,
0.005972473882138729,
-0.04818787798285484,
0.040618572384119034,
-0.022618768736720085,
0.03026977740228176,
0.015919804573059082,
-0.022215597331523895,
-0.05058601498603821,
-0.09523236751556396,
0.01264757290482521,
-0.009731207974255085,
-0.017030319198966026,
-0.005240080878138542,
0.032727666199207306,
-0.02949632704257965,
-0.023336214944720268,
0.013058650307357311,
0.020060185343027115,
0.020175950601696968,
-0.049938447773456573,
0.06427615880966187,
-0.00880364514887333,
0.012542414478957653,
-0.05122513696551323,
0.016344748437404633,
-0.047513775527477264,
-0.03036590665578842,
0.010548122227191925,
0.05205536261200905,
0.027875032275915146,
0.05897412821650505,
0.052464138716459274,
0.053772903978824615,
-0.05289172753691673,
0.048299312591552734,
0.037724122405052185,
0.012072778306901455,
-0.04141291230916977,
-0.012257388792932034,
-0.030607309192419052,
-0.018256811425089836,
-0.03994264453649521,
-0.0016919411718845367,
0.007924015633761883,
0.027945132926106453,
0.01938771829009056,
-0.012312151491641998,
0.007407478988170624,
-0.016316184774041176,
-0.030113978311419487,
-0.06953959912061691,
-0.018667632713913918,
-0.0013252119533717632,
-0.022517414763569832,
0.0545647107064724,
0.006454364396631718,
0.022473754361271858,
0.06918318569660187,
0.05062847211956978,
-0.017030449584126472,
-0.047625645995140076,
0.043404821306467056,
0.032418180257081985,
-0.03677577152848244,
-0.047834593802690506,
-0.052743274718523026,
0.05490885302424431,
0.04924899339675903,
-0.0021183860953897238,
-0.09258489310741425,
-0.015286335721611977,
0.03940500319004059,
-0.05151859670877457,
0.037539172917604446,
-0.018270784988999367,
0.05414487421512604,
0.07657122611999512,
-0.012220722623169422,
0.035116516053676605,
-0.028128061443567276,
-0.008010889403522015,
0.016881495714187622,
0.02976887673139572,
-0.036603670567274094,
-0.04810835421085358,
-0.06727539747953415,
0.029708020389080048,
0.031900662928819656,
0.05172165483236313,
0.05130546912550926,
-0.004598311614245176,
-0.052230723202228546,
0.005367938429117203,
0.02895629033446312,
-0.03424900397658348,
-0.011351527646183968,
0.016974180936813354,
0.05690179765224457,
-0.06019788235425949,
-0.012074597179889679,
-0.03820038586854935,
-0.00851444248110056,
0.03910842537879944,
0.004619717597961426,
-0.025294559076428413,
-0.05449541658163071,
0.01453323382884264,
-0.029559174552559853,
-0.021868247538805008,
-0.07256415486335754,
0.007738023530691862,
-0.009928284212946892,
-0.01640360616147518,
0.026329930871725082,
0.040099408477544785,
0.04529327154159546,
0.06402332335710526,
0.011812658049166203,
0.016208017244935036,
-0.04359077662229538,
0.0358821302652359,
-0.02549310401082039,
-0.004496339242905378,
-0.011173649691045284,
-0.04042063653469086,
0.007309611886739731,
-0.03912431001663208,
-0.03359752893447876,
-0.04290110990405083,
-0.00276375375688076,
0.007274786476045847,
-0.02053254097700119,
-0.00025200578966178,
-0.018435675650835037,
0.025260161608457565,
-0.03534941002726555,
-0.03811216354370117,
-0.03336314484477043,
-0.03214922547340393,
-0.06480928510427475,
-0.049230579286813736,
0.0157504603266716,
0.017480239272117615,
0.034018028527498245,
0.013864886946976185,
0.019507816061377525,
0.01867237500846386,
0.0038393638096749783,
-0.025178924202919006,
0.03269549831748009,
0.00526498444378376,
-0.0457819439470768,
-0.04266320541501045,
0.017436854541301727,
0.022204352542757988,
0.02839713543653488,
-0.03628811612725258,
0.01847846806049347,
0.02055114507675171,
-0.023506993427872658,
-0.012328175827860832,
0.03701815381646156,
0.020653516054153442,
-0.0821523442864418,
-0.02994384430348873,
-0.018844561651349068,
-0.0500442199409008,
0.028416667133569717,
-0.007283474318683147,
-0.01426716148853302,
0.017494261264801025,
0.027389226481318474,
0.04194434732198715,
0.00395695585757494,
-0.03258245810866356,
0.006060193758457899,
-0.040301159024238586,
0.04569519683718681,
-0.06610438972711563,
0.03651047497987747,
-0.04014411196112633,
0.018130794167518616,
-0.012153423391282558,
0.013354753144085407,
-0.04859749972820282,
0.029168667271733284,
-0.029372019693255424,
0.00014676200225949287,
-0.015221654437482357,
0.01188559178262949,
-0.030046243220567703,
0.04009336233139038,
-0.04056563228368759,
0.01828240416944027,
-0.01901303417980671,
0.06693493574857712,
-0.034220773726701736,
-0.00023979991965461522,
-0.024035615846514702,
0.010128305293619633,
-0.045444101095199585,
-0.012177259661257267,
-0.0032641233410686255,
-0.022788526490330696,
0.055049970746040344,
0.04383542761206627,
0.0330461747944355,
0.04418450593948364,
-0.0015528758522123098,
0.00329585000872612,
0.002998962299898267,
-0.05853332579135895,
-0.02369723469018936,
0.002973529975861311,
0.013271302916109562,
-0.0031287341844290495,
0.052684273570775986,
0.04578244313597679,
-0.042328182607889175,
-0.04840638116002083,
0.06123774126172066,
0.021588822826743126,
0.011510586366057396,
-0.0052169510163366795,
0.03733771666884422,
0.04478408023715019,
0.040434375405311584,
-0.03231612965464592,
-0.0037016153801232576,
0.007498708087950945,
-0.022982405498623848,
0.017277760431170464,
0.004362524952739477,
0.029985692352056503,
0.026074808090925217,
-0.03676217421889305,
-0.048189371824264526,
0.06421451270580292,
0.02477845549583435,
0.013664480298757553,
0.013255172409117222,
-0.023094888776540756,
0.017657360062003136,
0.0006907084607519209,
-0.0513688288629055,
-0.0077722566202282906,
0.02100219577550888,
-0.02616620436310768,
0.07173468917608261,
-0.02117505669593811,
0.019419850781559944,
0.032622575759887695,
0.0121767558157444,
-0.003154133912175894,
0.04545585811138153,
-0.04523191228508949,
0.01586621254682541,
0.025512205436825752,
-0.03920350968837738,
-0.028315356001257896,
-0.03637363016605377,
0.07044821232557297,
-0.04949946328997612,
0.054088134318590164,
0.03952466696500778,
0.023330168798565865,
0.024678688496351242,
-0.018776865676045418,
-0.040732987225055695,
0.013440198265016079,
-0.05124368518590927,
0.0656517818570137,
0.007479018531739712,
-0.06076953932642937,
0.07413095980882645,
0.029096605256199837,
-0.06340005993843079,
0.03922547399997711,
0.03015146777033806,
0.03969462215900421,
0.021321680396795273,
0.05246010795235634,
-0.039974626153707504,
0.014738424681127071,
-0.04619220644235611,
0.03156692534685135,
-0.04397055134177208,
-0.03828135132789612,
0.01180817186832428,
-0.03906901925802231,
-0.02724331244826317,
0.046136435121297836,
-0.033813390880823135,
-0.006884218193590641,
0.021589726209640503,
-0.07562625408172607,
-0.06785815209150314,
-0.0021514601539820433,
0.009725715033710003,
-0.0378292053937912,
0.003982879687100649,
-0.03743143007159233,
0.028771109879016876,
-0.0035809301771223545,
-0.009201840497553349,
-0.060854241251945496,
0.020071042701601982,
0.02414301224052906,
-0.048913806676864624,
-0.03929978981614113,
0.03676866367459297,
0.0022072589490562677,
-0.02168281376361847,
0.02086997963488102,
-0.011580711230635643,
0.0005257126758806407,
0.029483338817954063,
-0.0003666604170575738,
0.022049475461244583,
-0.0390145406126976,
-0.005984733812510967,
0.009168091230094433,
0.011454069055616856,
0.024160534143447876,
-0.015692809596657753,
0.026458894833922386,
0.032631631940603256,
0.04800809174776077,
0.0033664358779788017,
-0.042009830474853516,
-0.03006679378449917,
0.047337692230939865,
-0.0382823720574379,
0.004618362057954073,
-0.0025425292551517487,
-0.027311338111758232,
-0.04266749694943428,
-0.018953021615743637,
-0.02993851713836193,
0.048862334340810776,
-0.04899326339364052,
-0.013418463058769703,
0.03660013899207115,
-0.02969384752213955,
-0.05117173492908478,
-0.08984661847352982,
-0.007836176082491875,
-0.03471914306282997,
0.023182455450296402,
0.02720344252884388,
-0.043651923537254333,
0.023236602544784546,
-0.04483754187822342,
-0.04603886604309082,
0.04674492031335831,
0.023873312398791313,
-0.04069508612155914,
0.0565030612051487,
0.04218752682209015,
-0.0567513182759285,
0.00492971483618021,
0.019837630912661552,
-0.04282494634389877,
0.01498342677950859,
0.025463320314884186,
0.023395564407110214,
0.02746262401342392,
0.025315087288618088,
-0.03220053389668465,
-0.017090274021029472,
-0.06839768588542938,
-0.060307543724775314,
-0.035953324288129807,
0.00743471784517169,
0.06622860580682755
] |
albert-xxlarge-v1 | [
"pytorch",
"tf",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7,091 | 2019-12-20T12:28:51Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.02078196220099926,
0.006141583435237408,
-0.0204166267067194,
0.0693066269159317,
0.036629922688007355,
0.01839315891265869,
-0.018037041649222374,
-0.04531469568610191,
-0.03084694966673851,
0.05282839015126228,
0.03224258869886398,
-0.0016929764533415437,
0.0014640215085819364,
0.034402281045913696,
-0.04069865122437477,
-0.002480484778061509,
-0.01506753358989954,
-0.016673428937792778,
-0.02075018733739853,
-0.020075788721442223,
-0.01678597740828991,
0.008580503985285759,
-0.012852311134338379,
0.0055734096094965935,
-0.004648313391953707,
0.032455459237098694,
0.002929830923676491,
0.054302118718624115,
0.0191076397895813,
-0.06401120126247406,
0.0005515934317372739,
-0.02036820538341999,
-0.04621811956167221,
0.0130638862028718,
-0.015879813581705093,
0.005697641987353563,
-0.0011890273308381438,
-0.00041014805901795626,
0.04347142204642296,
0.036575108766555786,
-0.009314753115177155,
0.003895113943144679,
-0.012079082429409027,
-0.03201041370630264,
0.03773609921336174,
-0.0017178530106320977,
-0.048746369779109955,
-0.01716814748942852,
0.04808756709098816,
-0.01298637967556715,
-0.05516720563173294,
-0.05307886376976967,
-0.026979532092809677,
0.03180230036377907,
0.011376784183084965,
-0.011767786927521229,
-0.05416271090507507,
-0.016226086765527725,
0.06213323026895523,
-0.055705476552248,
-0.04456758126616478,
0.0050614760257303715,
-0.04707528278231621,
0.029733503237366676,
0.04946175590157509,
-0.02335546724498272,
0.013291050679981709,
-0.03405933082103729,
0.03435802832245827,
-0.02371343784034252,
0.06364822387695312,
-0.025898544117808342,
0.00583623955026269,
-0.08708591014146805,
-0.001003801473416388,
-0.011576882563531399,
0.04427100345492363,
0.04172993451356888,
-0.022220155224204063,
0.0448264479637146,
0.015763333067297935,
0.0059090000577270985,
0.008622878231108189,
-0.006243928801268339,
-0.01563369482755661,
0.06167462468147278,
-0.059388019144535065,
-0.010496468283236027,
-0.0010412066476419568,
0.05590922385454178,
-0.03317202255129814,
-0.025049766525626183,
-0.028218243271112442,
-0.041900403797626495,
-0.03771688789129257,
0.032387733459472656,
0.029039060696959496,
-0.024954983964562416,
0.05172095447778702,
0.023021141067147255,
0.03830985724925995,
0.04902193322777748,
-0.02982998639345169,
0.06365060806274414,
-0.005156282335519791,
-0.02684233896434307,
-0.017032019793987274,
-0.0214807391166687,
-0.0365431122481823,
0.04165235161781311,
0.030616723001003265,
-0.026963839307427406,
-0.0537986233830452,
0.04948103055357933,
0.004482595715671778,
-0.04128342121839523,
0.0472969226539135,
-0.02451603300869465,
-0.048178743571043015,
-0.05675072595477104,
0.03635462746024132,
-0.00011022241233149543,
0.021361680701375008,
0.0027913625817745924,
-0.07656336575746536,
0.016298726201057434,
-0.03737741708755493,
-0.02847272716462612,
0.0028371999505907297,
0.007017546333372593,
-0.01804148219525814,
0.03749185800552368,
0.03067171201109886,
-0.05471207946538925,
0.018933948129415512,
0.013708295300602913,
-0.059021957218647,
0.0626109391450882,
0.0291727427393198,
0.1280815750360489,
-0.0530489943921566,
-0.0491652637720108,
0.03765575587749481,
0.03615111485123634,
-0.02033134736120701,
0.011976976878941059,
0.034778889268636703,
-0.02908182702958584,
-0.025698387995362282,
-0.003793710842728615,
0.06634590029716492,
-0.056392569094896317,
-0.01606757752597332,
0.0566207580268383,
-0.017331905663013458,
0.04837387427687645,
-0.03300518915057182,
-0.0004256365355104208,
-0.006851676851511002,
-0.007239844650030136,
-0.024227339774370193,
0.053730227053165436,
-0.018826238811016083,
-0.019192306324839592,
-0.043623920530080795,
-0.03149048238992691,
0.0018729889998212457,
0.06999591737985611,
-0.007802846375852823,
-0.01352025382220745,
-0.030547823756933212,
0.020290883257985115,
0.041765887290239334,
0.04451204091310501,
-0.03865138068795204,
0.03167746216058731,
0.07995149493217468,
0.029057873412966728,
-0.03182531148195267,
0.04470689967274666,
0.007141109090298414,
-0.03093878924846649,
-0.021017257124185562,
0.026773428544402122,
-0.005059937480837107,
-0.03296928107738495,
0.03673812374472618,
0.02878597378730774,
-0.01144048385322094,
-0.00953248143196106,
-0.023993125185370445,
0.04896369203925133,
0.006751286331564188,
-0.005618500988930464,
0.00747819896787405,
-0.0022666745353490114,
-0.006465342361479998,
0.03929825499653816,
-0.039137404412031174,
0.012333963997662067,
-0.011609339155256748,
-0.024917908012866974,
0.026945827528834343,
0.03217671439051628,
0.04218381270766258,
0.05815493315458298,
0.01496889814734459,
0.07739774882793427,
-0.040891971439123154,
0.028989609330892563,
-0.07028589397668839,
-0.03743975982069969,
0.00828836765140295,
0.027130763977766037,
0.02493048831820488,
0.030739810317754745,
0.002379824174568057,
-0.054861024022102356,
0.010249041020870209,
0.0645434707403183,
0.03759082406759262,
0.028676016256213188,
-0.03375442326068878,
-0.034125685691833496,
0.029505951330065727,
0.05926018953323364,
-0.061706505715847015,
-0.04725595936179161,
0.04196087270975113,
0.04726465046405792,
-0.012292595580220222,
0.024787144735455513,
-0.012860771268606186,
0.02645288035273552,
-0.05131271481513977,
-0.05907754227519035,
0.04139252007007599,
0.04263486713171005,
0.0036339343059808016,
0.03936626389622688,
-0.008257855661213398,
-0.00009410148049937561,
0.016535837203264236,
0.012040602043271065,
-0.0012446631444618106,
-0.024819262325763702,
0.011753370054066181,
0.016830215230584145,
0.040643010288476944,
-0.04870619252324104,
0.04142848402261734,
0.010840791277587414,
0.024083858355879784,
0.026794912293553352,
-0.007873382419347763,
0.047425009310245514,
0.04982500523328781,
0.012026951648294926,
-0.03773535043001175,
0.026039578020572662,
0.000007350157375185518,
0.05218222737312317,
0.0686715617775917,
0.0050976891070604324,
0.049868322908878326,
0.023068154230713844,
0.05207538977265358,
0.0762273445725441,
0.02769034542143345,
0.022799013182520866,
0.02980775386095047,
0.07546836137771606,
0.01957814209163189,
-0.014558685943484306,
0.06746581941843033,
-0.04086587578058243,
0.022813210263848305,
-0.04538388550281525,
0.027675943449139595,
0.003864480648189783,
-0.008707573637366295,
0.06731287389993668,
0.040364526212215424,
0.006632481701672077,
0.010684498585760593,
-0.019237928092479706,
-0.020992163568735123,
0.057768020778894424,
-0.006533374078571796,
0.0212411992251873,
-0.018579188734292984,
-0.014560958370566368,
-0.014236122369766235,
-0.07487457990646362,
-0.04637560993432999,
0.0018987772054970264,
-0.027301540598273277,
-0.016701819375157356,
-0.08040253072977066,
-0.024561429396271706,
-0.05708356201648712,
-0.016554461792111397,
0.013393664732575417,
0.01123781781643629,
0.01548297330737114,
-0.04343239963054657,
0.018241574987769127,
-0.050524577498435974,
-0.01062071043998003,
-0.038622938096523285,
-0.035720087587833405,
-0.04414338245987892,
-0.051344286650419235,
0.04460068419575691,
0.008525660261511803,
0.02805793099105358,
-0.021705633029341698,
-0.005290842615067959,
-0.03325122222304344,
-0.03617140278220177,
0.05111650004982948,
0.034782297909259796,
-0.03544853255152702,
-0.04864605888724327,
0.000673511007335037,
-0.00480708247050643,
0.02070179395377636,
-0.02357305958867073,
-0.005566461477428675,
0.09099036455154419,
0.07627331465482712,
0.033619485795497894,
-0.0015587357338517904,
-0.032811980694532394,
-0.05177514627575874,
-0.07340160012245178,
-0.031483668833971024,
-0.028679173439741135,
-0.010837504640221596,
-0.04455757141113281,
-0.03743836656212807,
-0.000571738404687494,
-0.02773936651647091,
-0.002534763887524605,
-0.004435302689671516,
0.009238616563379765,
0.033265504986047745,
0.03239121288061142,
0.027249524369835854,
0.028766490519046783,
-0.015934837982058525,
-0.044226255267858505,
0.07041839510202408,
0.025218935683369637,
0.013577752746641636,
-0.07093695551156998,
-0.05387011915445328,
0.05438774824142456,
0.04566922038793564,
-0.01642499677836895,
-0.01278163306415081,
0.07179589569568634,
0.007827894762158394,
-0.010813239961862564,
0.0027873495128005743,
0.008934770710766315,
-0.037890054285526276,
-0.029729433357715607,
0.00172413547988981,
-0.001766677713021636,
-0.03633497655391693,
-0.04819336533546448,
-0.02202730067074299,
0.04229174926877022,
-0.05184973031282425,
-0.04573293402791023,
-0.024740101769566536,
0.0484728068113327,
0.03166423365473747,
0.010635687038302422,
-0.030627485364675522,
0.01244167611002922,
-0.041371285915374756,
-0.012091078795492649,
-0.008661080151796341,
0.002627273090183735,
0.007542330306023359,
0.03710392117500305,
0.03299516811966896,
-0.012698132544755936,
0.027082951739430428,
0.04771563783288002,
0.053987596184015274,
0.005356914829462767,
-0.049057360738515854,
0.04106336086988449,
-0.02204030565917492,
0.028492020443081856,
0.015714362263679504,
-0.020780062302947044,
-0.051344405859708786,
-0.09551525861024857,
0.012125713750720024,
-0.008433732204139233,
-0.015403497964143753,
-0.004880407825112343,
0.031434930860996246,
-0.0285133458673954,
-0.024190234020352364,
0.013265435583889484,
0.021097563207149506,
0.019518261775374413,
-0.05099526047706604,
0.06483147293329239,
-0.006509654223918915,
0.012119707651436329,
-0.050423212349414825,
0.01824318990111351,
-0.047076039016246796,
-0.032600220292806625,
0.01010693609714508,
0.05217445269227028,
0.0283631794154644,
0.06055296212434769,
0.05373167246580124,
0.05454062297940254,
-0.050810039043426514,
0.049121368676424026,
0.03796520456671715,
0.011869892477989197,
-0.042748890817165375,
-0.010544474236667156,
-0.029482318088412285,
-0.01656307652592659,
-0.03951839730143547,
-0.001690718811005354,
0.007306830957531929,
0.02846096269786358,
0.020059999078512192,
-0.011167916469275951,
0.007632566150277853,
-0.015589841641485691,
-0.029889456927776337,
-0.0709317997097969,
-0.016966698691248894,
-0.0008986035245470703,
-0.02403412200510502,
0.05369294807314873,
0.005081767216324806,
0.023572133854031563,
0.07045146822929382,
0.0507105328142643,
-0.017480548471212387,
-0.04687996581196785,
0.04239686205983162,
0.03294559568166733,
-0.039472874253988266,
-0.048061396926641464,
-0.05445939674973488,
0.056467726826667786,
0.04917048290371895,
-0.0010663220891728997,
-0.09199679642915726,
-0.013771981000900269,
0.039958976209163666,
-0.050710391253232956,
0.037928126752376556,
-0.017557956278324127,
0.05497060343623161,
0.07874058187007904,
-0.01292045321315527,
0.034743696451187134,
-0.028006909415125847,
-0.009144076146185398,
0.01730194501578808,
0.031048666685819626,
-0.03640459477901459,
-0.049790482968091965,
-0.06577453762292862,
0.03008684515953064,
0.032403308898210526,
0.05121241509914398,
0.05240432545542717,
-0.005758363287895918,
-0.0517122857272625,
0.006464792415499687,
0.02969370037317276,
-0.031953368335962296,
-0.012181046418845654,
0.016541752964258194,
0.056600309908390045,
-0.06237492710351944,
-0.013509968295693398,
-0.038137685507535934,
-0.008445937186479568,
0.03950473666191101,
0.0034465468488633633,
-0.024232201278209686,
-0.055658113211393356,
0.014296162873506546,
-0.030080521479249,
-0.023007666692137718,
-0.07312469929456711,
0.00927363708615303,
-0.0093467952683568,
-0.01689836010336876,
0.02690640278160572,
0.03891470655798912,
0.042984943836927414,
0.06399652361869812,
0.012873530387878418,
0.013873696327209473,
-0.04380214214324951,
0.03613031655550003,
-0.0266039427369833,
-0.004906980786472559,
-0.014018767513334751,
-0.04109174385666847,
0.00675572594627738,
-0.040884800255298615,
-0.03275911137461662,
-0.04011081904172897,
-0.004259434994310141,
0.007869930937886238,
-0.020710613578557968,
-0.0013795344857499003,
-0.01881418190896511,
0.025263527408242226,
-0.03694446384906769,
-0.038254208862781525,
-0.03406732156872749,
-0.03151644021272659,
-0.06415365636348724,
-0.04851085692644119,
0.013901414349675179,
0.01580769009888172,
0.03366479277610779,
0.013077118434011936,
0.01965361461043358,
0.02003292180597782,
0.004042400978505611,
-0.02583969756960869,
0.033502258360385895,
0.005880177021026611,
-0.04697239026427269,
-0.04433417692780495,
0.01909179426729679,
0.024333711713552475,
0.028127407655119896,
-0.03740566223859787,
0.020997870713472366,
0.020005227997899055,
-0.02371918223798275,
-0.012777537107467651,
0.03582854941487312,
0.01990398019552231,
-0.08128618448972702,
-0.028396395966410637,
-0.019030122086405754,
-0.04881902039051056,
0.029601888731122017,
-0.00862950086593628,
-0.012191005051136017,
0.018501482903957367,
0.027412302792072296,
0.0443120077252388,
0.003598097711801529,
-0.029516804963350296,
0.005252196919173002,
-0.04083717241883278,
0.04689599201083183,
-0.06640557944774628,
0.03684154897928238,
-0.03885622322559357,
0.01872425526380539,
-0.011632650159299374,
0.012049652636051178,
-0.04837459698319435,
0.029297545552253723,
-0.03111460618674755,
-0.0008964907028712332,
-0.01509943138808012,
0.01178654283285141,
-0.030902395024895668,
0.03831259906291962,
-0.042019836604595184,
0.018703671172261238,
-0.017919639125466347,
0.06814506649971008,
-0.03426508232951164,
-0.0005110081401653588,
-0.0260110292583704,
0.01030449103564024,
-0.0440339595079422,
-0.013952337205410004,
-0.0017028116853907704,
-0.021410949528217316,
0.05572817102074623,
0.04235061630606651,
0.03553706035017967,
0.045636098831892014,
-0.002062327228486538,
0.003425205359235406,
0.0033183398190885782,
-0.058482155203819275,
-0.024297021329402924,
0.003982220310717821,
0.015715591609477997,
-0.00436537666246295,
0.05373664200305939,
0.04468071460723877,
-0.0427401140332222,
-0.05063977092504501,
0.06343309581279755,
0.020089147612452507,
0.010747815482318401,
-0.0057766493409872055,
0.03787139058113098,
0.044660892337560654,
0.038980916142463684,
-0.031248563900589943,
-0.004001153167337179,
0.0063947709277272224,
-0.02284768782556057,
0.01766536943614483,
0.0044220974668860435,
0.030296780169010162,
0.026866091415286064,
-0.03775182366371155,
-0.047514911741018295,
0.0643102377653122,
0.0256024319678545,
0.012484419159591198,
0.012367093935608864,
-0.02239811234176159,
0.017366768792271614,
0.0010858102468773723,
-0.05348644033074379,
-0.008522775955498219,
0.023803835734725,
-0.024592142552137375,
0.07264530658721924,
-0.020460166037082672,
0.017641372978687286,
0.03387068212032318,
0.011285368353128433,
-0.0031249369494616985,
0.044691167771816254,
-0.04518106207251549,
0.014384503476321697,
0.026610806584358215,
-0.038944270461797714,
-0.029450850561261177,
-0.03794974833726883,
0.07032505422830582,
-0.04977353289723396,
0.055672671645879745,
0.039583709090948105,
0.020630870014429092,
0.02364243194460869,
-0.01727929897606373,
-0.038207195699214935,
0.012769533321261406,
-0.05110081285238266,
0.06361100822687149,
0.007557922508567572,
-0.06166120991110802,
0.07308262586593628,
0.02989792451262474,
-0.062803253531456,
0.04280775412917137,
0.0313592255115509,
0.0391879677772522,
0.022575385868549347,
0.050828900188207626,
-0.039168454706668854,
0.013890250585973263,
-0.04594048112630844,
0.03135565668344498,
-0.0430753268301487,
-0.03997010737657547,
0.011621026322245598,
-0.03660830110311508,
-0.026469292119145393,
0.04579518735408783,
-0.033785365521907806,
-0.005779741797596216,
0.02167953923344612,
-0.07533141225576401,
-0.06585969030857086,
-0.003153331810608506,
0.010181804187595844,
-0.04039543494582176,
0.0029772245325148106,
-0.03759268298745155,
0.028522247448563576,
-0.002834631595760584,
-0.008616022765636444,
-0.0601477175951004,
0.021032163873314857,
0.02438065968453884,
-0.0503658801317215,
-0.04072260111570358,
0.03715796396136284,
0.0023648240603506565,
-0.021539753302931786,
0.01854565553367138,
-0.013004434294998646,
0.0015622872160747647,
0.029451247304677963,
0.0009438620763830841,
0.022698665037751198,
-0.03887803480029106,
-0.008561419323086739,
0.010619604028761387,
0.011351744644343853,
0.023573901504278183,
-0.0126875638961792,
0.026448538526892662,
0.03170851618051529,
0.047112252563238144,
0.0010056623723357916,
-0.04189743846654892,
-0.03111773170530796,
0.04866599291563034,
-0.03647056594491005,
0.003080427646636963,
-0.004680836573243141,
-0.027361465618014336,
-0.044783394783735275,
-0.019015083089470863,
-0.03159505873918533,
0.04990382492542267,
-0.04985639080405235,
-0.012234622612595558,
0.03456459194421768,
-0.03175709396600723,
-0.0513015016913414,
-0.08795422315597534,
-0.006398538593202829,
-0.03330666199326515,
0.02438352257013321,
0.02628196030855179,
-0.04243891313672066,
0.02580556459724903,
-0.04537977650761604,
-0.044410429894924164,
0.047325506806373596,
0.02365722507238388,
-0.039496950805187225,
0.05482005700469017,
0.03964724391698837,
-0.05600439012050629,
0.0049736821092665195,
0.018237736076116562,
-0.04288693889975548,
0.014201045967638493,
0.02506188675761223,
0.022783391177654266,
0.0276027824729681,
0.02563108503818512,
-0.031917981803417206,
-0.017305318266153336,
-0.07020960003137589,
-0.06027529761195183,
-0.03353346511721611,
0.005815528333187103,
0.06505618989467621
] |
albert-xxlarge-v2 | [
"pytorch",
"tf",
"safetensors",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"transformers",
"exbert",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"AlbertForMaskedLM"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 42,640 | 2019-11-04T16:00:52Z | ---
tags:
- exbert
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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> | [
-0.019903937354683876,
0.008878600783646107,
-0.02040528692305088,
0.06702258437871933,
0.03765907511115074,
0.02060181088745594,
-0.01716987043619156,
-0.045623209327459335,
-0.027434248477220535,
0.053571511059999466,
0.029728639870882034,
-0.0004125060513615608,
-0.001796863623894751,
0.03951360285282135,
-0.04188426956534386,
-0.0008125030435621738,
-0.01423989050090313,
-0.011798196472227573,
-0.0210270956158638,
-0.020159119740128517,
-0.01940269209444523,
0.009496130980551243,
-0.011957628652453423,
0.007130342070013285,
-0.002591781783849001,
0.03384958952665329,
0.003419622778892517,
0.05488697066903114,
0.01895829103887081,
-0.06364551931619644,
0.0011193412356078625,
-0.01902787946164608,
-0.04550566524267197,
0.012921337969601154,
-0.016479508951306343,
0.004015146289020777,
0.0007207861635833979,
-0.0016306662000715733,
0.04381440207362175,
0.03751838579773903,
-0.007863746955990791,
0.006391834933310747,
-0.010033834725618362,
-0.03254442289471626,
0.036705296486616135,
0.0010059090564027429,
-0.04704128950834274,
-0.019493337720632553,
0.04981214553117752,
-0.011861346662044525,
-0.0552908219397068,
-0.05266163870692253,
-0.025123512372374535,
0.03196636214852333,
0.010351181030273438,
-0.010848497040569782,
-0.05452440679073334,
-0.014810504391789436,
0.062523752450943,
-0.05290760099887848,
-0.044300295412540436,
0.002934314776211977,
-0.04718714952468872,
0.028547484427690506,
0.05163053423166275,
-0.02291196770966053,
0.014013299718499184,
-0.03662605211138725,
0.03308899328112602,
-0.02176816016435623,
0.06355267763137817,
-0.024785254150629044,
0.005266574211418629,
-0.08684313297271729,
-0.006229258142411709,
-0.011811118572950363,
0.04543014243245125,
0.04177467152476311,
-0.022980324923992157,
0.043857987970113754,
0.01518224086612463,
0.005666752811521292,
0.011018330231308937,
-0.013239847496151924,
-0.014094737358391285,
0.0590599924325943,
-0.059710513800382614,
-0.011983388103544712,
0.0013446550583466887,
0.051873110234737396,
-0.032169654965400696,
-0.021570643410086632,
-0.030189616605639458,
-0.0415373332798481,
-0.037109483033418655,
0.032301608473062515,
0.03313359245657921,
-0.022054290398955345,
0.05411839857697487,
0.022713473066687584,
0.039317965507507324,
0.04599757492542267,
-0.02760470286011696,
0.06512116640806198,
-0.007198574487119913,
-0.026517467573285103,
-0.014058361761271954,
-0.01729218289256096,
-0.03847955912351608,
0.041412170976400375,
0.03266090527176857,
-0.026446811854839325,
-0.05502841994166374,
0.05249651521444321,
0.005456527229398489,
-0.039675455540418625,
0.04959450662136078,
-0.024237321689724922,
-0.045503780245780945,
-0.05567801743745804,
0.036619991064071655,
-0.0028226447757333517,
0.0189689788967371,
0.005339968018233776,
-0.0775538980960846,
0.01298581250011921,
-0.03290898725390434,
-0.026195796206593513,
0.0029761907644569874,
0.0049782064743340015,
-0.01573227345943451,
0.03726302832365036,
0.024966638535261154,
-0.05204475671052933,
0.015059597790241241,
0.014169297181069851,
-0.05914505943655968,
0.06151353940367699,
0.02656043879687786,
0.12952357530593872,
-0.05204985290765762,
-0.04709605500102043,
0.035084497183561325,
0.03382318094372749,
-0.024041227996349335,
0.007249519228935242,
0.035862259566783905,
-0.028970858082175255,
-0.025987403467297554,
-0.0036093792878091335,
0.06500381231307983,
-0.0610111802816391,
-0.011687728576362133,
0.05702342465519905,
-0.015253745019435883,
0.04669608920812607,
-0.035255346447229385,
0.00026657505077309906,
-0.009075053036212921,
-0.0072226389311254025,
-0.026595044881105423,
0.052810799330472946,
-0.019400354474782944,
-0.020740918815135956,
-0.03949335217475891,
-0.031205786392092705,
0.0020326634403318167,
0.06827966868877411,
-0.007680746726691723,
-0.011879385448992252,
-0.030676594004034996,
0.024678794667124748,
0.046102125197649,
0.04358110576868057,
-0.03980712592601776,
0.03096347488462925,
0.08162844181060791,
0.028571167960762978,
-0.030736632645130157,
0.04426315799355507,
0.006328416056931019,
-0.031870391219854355,
-0.022214006632566452,
0.0267365463078022,
-0.0022831258829683065,
-0.033416856080293655,
0.03952591493725777,
0.030824225395917892,
-0.01139322854578495,
-0.012456043623387814,
-0.022597910836338997,
0.04626551643013954,
0.005488481838256121,
-0.008094518445432186,
0.004705304745584726,
-0.003959145396947861,
-0.006722602061927319,
0.03866029158234596,
-0.03928070887923241,
0.00892210379242897,
-0.014180394820868969,
-0.024259664118289948,
0.029139172285795212,
0.03019043616950512,
0.041445303708314896,
0.06089453771710396,
0.015009861439466476,
0.0753469243645668,
-0.03992781415581703,
0.03291018307209015,
-0.06984855234622955,
-0.03495585545897484,
0.008955685421824455,
0.02568158321082592,
0.02723158709704876,
0.02865729108452797,
0.003966955468058586,
-0.0552646778523922,
0.012137609533965588,
0.06461790949106216,
0.03666535019874573,
0.027316462248563766,
-0.03445621579885483,
-0.032572902739048004,
0.0307497326284647,
0.058082181960344315,
-0.05810236558318138,
-0.043464601039886475,
0.040386199951171875,
0.050183311104774475,
-0.013014615513384342,
0.023942463099956512,
-0.014378274790942669,
0.025340884923934937,
-0.05129619315266609,
-0.053530093282461166,
0.04078797250986099,
0.04259820654988289,
0.002507068682461977,
0.0449475459754467,
-0.007023487705737352,
-0.003449971554800868,
0.014930978417396545,
0.012625143863260746,
-0.0026175847742706537,
-0.03052242286503315,
0.012176800519227982,
0.015778766945004463,
0.04347684234380722,
-0.04884284734725952,
0.043366674333810806,
0.009447078220546246,
0.02383049577474594,
0.02803402580320835,
-0.007967648096382618,
0.049337271600961685,
0.04272274672985077,
0.01836184412240982,
-0.03892430290579796,
0.02410421147942543,
0.0004194460925646126,
0.05170672386884689,
0.0664353221654892,
0.004820008762180805,
0.051790501922369,
0.024209357798099518,
0.05039665475487709,
0.07690104842185974,
0.030947251245379448,
0.020884159952402115,
0.03236214816570282,
0.07307297736406326,
0.022861067205667496,
-0.014129133895039558,
0.06737692654132843,
-0.03450312837958336,
0.024730298668146133,
-0.047588199377059937,
0.026032790541648865,
0.00031182487145997584,
-0.010910131968557835,
0.06574473530054092,
0.037044744938611984,
0.008134128525853157,
0.008149671368300915,
-0.01722380705177784,
-0.02209663577377796,
0.06343862414360046,
-0.002263384172692895,
0.02094249613583088,
-0.016399487853050232,
-0.013570359908044338,
-0.01309234369546175,
-0.07441376894712448,
-0.04720441997051239,
0.003751111216843128,
-0.03115151822566986,
-0.016368737444281578,
-0.08201547712087631,
-0.027483347803354263,
-0.06000594049692154,
-0.011534261517226696,
0.008851718157529831,
0.012599253095686436,
0.016062242910265923,
-0.04495910555124283,
0.016539249569177628,
-0.05149025097489357,
-0.014887618832290173,
-0.036873143166303635,
-0.03368321433663368,
-0.040345627814531326,
-0.05115611106157303,
0.04503076151013374,
0.008903820998966694,
0.027899304404854774,
-0.019632546231150627,
-0.0038128902669996023,
-0.034377750009298325,
-0.03686361387372017,
0.05238218978047371,
0.03296709060668945,
-0.03771142661571503,
-0.049949873238801956,
-0.003924750257283449,
-0.0032041091471910477,
0.019331194460392,
-0.024768907576799393,
-0.005371097940951586,
0.0925271064043045,
0.07475937902927399,
0.030479924753308296,
0.0005855814670212567,
-0.03235035389661789,
-0.05071823298931122,
-0.07341793924570084,
-0.02907627262175083,
-0.029128778725862503,
-0.00854017585515976,
-0.04301166534423828,
-0.03719337284564972,
-0.002985611092299223,
-0.02775414101779461,
-0.007672420237213373,
-0.0053146397694945335,
0.007835210300981998,
0.028862031176686287,
0.032134413719177246,
0.028006363660097122,
0.031315118074417114,
-0.015019992366433144,
-0.04315745085477829,
0.07054116576910019,
0.023160278797149658,
0.014302588999271393,
-0.07355600595474243,
-0.05310918018221855,
0.05408582463860512,
0.04770603030920029,
-0.015211543068289757,
-0.011679823510348797,
0.07175576686859131,
0.009420160204172134,
-0.010740881785750389,
0.00447087874636054,
0.005944862961769104,
-0.038558561354875565,
-0.033607807010412216,
0.0019283746369183064,
-0.00033815891947597265,
-0.03671501576900482,
-0.04425235837697983,
-0.021556073799729347,
0.03926125913858414,
-0.05360005050897598,
-0.047028377652168274,
-0.026213306933641434,
0.04804028570652008,
0.03559344261884689,
0.010565375909209251,
-0.03306043520569801,
0.012467771768569946,
-0.0422685332596302,
-0.010531493462622166,
-0.011073868721723557,
0.0004439840849954635,
0.006240492686629295,
0.03385753929615021,
0.035259708762168884,
-0.0162966288626194,
0.03104398399591446,
0.04415200650691986,
0.05337221547961235,
0.00638750521466136,
-0.04759683832526207,
0.04483642056584358,
-0.01832766830921173,
0.02903676964342594,
0.015371323563158512,
-0.020329954102635384,
-0.049891527742147446,
-0.09814045578241348,
0.01609666459262371,
-0.006174430251121521,
-0.017433099448680878,
-0.003617717884480953,
0.033679183572530746,
-0.02926197275519371,
-0.019172303378582,
0.00920964777469635,
0.02290322072803974,
0.02371392399072647,
-0.048286885023117065,
0.06376726180315018,
-0.008401147089898586,
0.013475172221660614,
-0.047971248626708984,
0.01927093230187893,
-0.04413541033864021,
-0.03232145309448242,
0.006938085425645113,
0.051306258887052536,
0.030337372794747353,
0.061859797686338425,
0.055116359144449234,
0.05600586161017418,
-0.05274306237697601,
0.048471324145793915,
0.03958332911133766,
0.010782085359096527,
-0.04563380032777786,
-0.01652892306447029,
-0.031015882268548012,
-0.01672365702688694,
-0.04638857766985893,
0.0006940258899703622,
0.006826214492321014,
0.027480188757181168,
0.022591331973671913,
-0.008273919112980366,
0.007299894001334906,
-0.018865980207920074,
-0.0292065292596817,
-0.07268866151571274,
-0.019192900508642197,
0.0003802677383646369,
-0.02453838288784027,
0.05428723245859146,
0.004689264576882124,
0.02160578966140747,
0.07061997056007385,
0.05015460029244423,
-0.016253016889095306,
-0.04636560007929802,
0.04116431623697281,
0.031560514122247696,
-0.03770243376493454,
-0.05056062340736389,
-0.057094357907772064,
0.054381344467401505,
0.05100490525364876,
0.002642090432345867,
-0.08929754048585892,
-0.01504408661276102,
0.03809602931141853,
-0.05223759636282921,
0.03786902129650116,
-0.020042652264237404,
0.055082354694604874,
0.08070258051156998,
-0.013134571723639965,
0.035136085003614426,
-0.027897898107767105,
-0.007364233024418354,
0.017256615683436394,
0.027647079899907112,
-0.03781739994883537,
-0.05016461759805679,
-0.06430135667324066,
0.02972925454378128,
0.03448869287967682,
0.04727540537714958,
0.05380659177899361,
-0.007462470326572657,
-0.05182803049683571,
0.006138516124337912,
0.029773658141493797,
-0.0319686196744442,
-0.013438875786960125,
0.01641845516860485,
0.06013927608728409,
-0.06312740594148636,
-0.011243163608014584,
-0.03760579973459244,
-0.005824487656354904,
0.039972979575395584,
0.006238911766558886,
-0.02523626759648323,
-0.05552367866039276,
0.011201181448996067,
-0.034506574273109436,
-0.024308515712618828,
-0.07602914422750473,
0.011724472977221012,
-0.013337508775293827,
-0.016662223264575005,
0.026546984910964966,
0.041268110275268555,
0.041114430874586105,
0.06340625882148743,
0.008901582099497318,
0.012848107144236565,
-0.04489579051733017,
0.03170028701424599,
-0.02283116616308689,
-0.005360347218811512,
-0.012604196555912495,
-0.041603706777095795,
0.00651967478916049,
-0.03979623317718506,
-0.029868794605135918,
-0.038110293447971344,
-0.0031918503809720278,
0.005753898061811924,
-0.01792219839990139,
-0.001208344241604209,
-0.01762326806783676,
0.023958120495080948,
-0.036861758679151535,
-0.03622842952609062,
-0.0291991475969553,
-0.03442835807800293,
-0.06652625650167465,
-0.05218111723661423,
0.00967173557728529,
0.013800657354295254,
0.03197115659713745,
0.014054219238460064,
0.018877852708101273,
0.019775139167904854,
0.002684224396944046,
-0.027919810265302658,
0.027760790660977364,
0.005034272558987141,
-0.04827696457505226,
-0.04257018491625786,
0.023243406787514687,
0.021753720939159393,
0.028834575787186623,
-0.03701598569750786,
0.02470528893172741,
0.02071836218237877,
-0.02381698600947857,
-0.015143699012696743,
0.035182930529117584,
0.019993461668491364,
-0.08207707107067108,
-0.024468129500746727,
-0.023340919986367226,
-0.04935924708843231,
0.02771557867527008,
-0.008724958635866642,
-0.010860844515264034,
0.014751237817108631,
0.03204149007797241,
0.041607566177845,
0.0018737823702394962,
-0.024696316570043564,
0.007067441940307617,
-0.0435379333794117,
0.04366802051663399,
-0.0651736706495285,
0.03849351778626442,
-0.03812084719538689,
0.017098309472203255,
-0.011413905769586563,
0.010995631106197834,
-0.047318220138549805,
0.029031533747911453,
-0.03311769664287567,
-0.0017681180033832788,
-0.013747192919254303,
0.01205760519951582,
-0.03072849102318287,
0.038254138082265854,
-0.03844201937317848,
0.017910538241267204,
-0.016999565064907074,
0.06882559508085251,
-0.03643528372049332,
-0.0008798828348517418,
-0.024385396391153336,
0.01178573165088892,
-0.04193275421857834,
-0.012038199231028557,
-0.001991469878703356,
-0.021761007606983185,
0.054862771183252335,
0.035971660166978836,
0.035253897309303284,
0.0415121428668499,
-0.004349876660853624,
0.00708181643858552,
0.0074173882603645325,
-0.055403757840394974,
-0.02425452508032322,
0.0036708994302898645,
0.01267722062766552,
-0.0031222577672451735,
0.05356459319591522,
0.044580988585948944,
-0.042739659547805786,
-0.053283434361219406,
0.06534597277641296,
0.020101407542824745,
0.008661562576889992,
-0.007950494065880775,
0.035522378981113434,
0.0439552441239357,
0.038175616413354874,
-0.029033053666353226,
-0.006343517918139696,
0.007421738933771849,
-0.024560771882534027,
0.01498719397932291,
0.006349390838295221,
0.028521878644824028,
0.024010302498936653,
-0.03826341778039932,
-0.0513279065489769,
0.06631004810333252,
0.02508566528558731,
0.015200766734778881,
0.01300021167844534,
-0.02023630402982235,
0.01994842104613781,
-0.00227956916205585,
-0.05102872475981712,
-0.014837466180324554,
0.02496635913848877,
-0.02552144229412079,
0.07275255769491196,
-0.02209559641778469,
0.018609177321195602,
0.03568998724222183,
0.008447485975921154,
0.000058276036725146696,
0.047505561262369156,
-0.0397644080221653,
0.01231901254504919,
0.02706674300134182,
-0.04096682369709015,
-0.030526870861649513,
-0.03315878286957741,
0.0704306811094284,
-0.04937954992055893,
0.05274423211812973,
0.039323970675468445,
0.022852428257465363,
0.025234755128622055,
-0.02184775471687317,
-0.039305429905653,
0.014761969447135925,
-0.05319671705365181,
0.06644360721111298,
0.007095245644450188,
-0.05788498371839523,
0.06755759567022324,
0.02978590503334999,
-0.0634300708770752,
0.03903602436184883,
0.02879762090742588,
0.037435609847307205,
0.018959173932671547,
0.05149579420685768,
-0.04216058924794197,
0.014608228579163551,
-0.044189270585775375,
0.03175406903028488,
-0.04715527966618538,
-0.038459304720163345,
0.008134122006595135,
-0.035913851112127304,
-0.025846051052212715,
0.047967176884412766,
-0.03431849181652069,
-0.010289712809026241,
0.021464424207806587,
-0.07483894377946854,
-0.06597168743610382,
-0.004112749360501766,
0.007755137048661709,
-0.03847810998558998,
0.005135106388479471,
-0.03812946006655693,
0.026463178917765617,
-0.0009250117582269013,
-0.00968356616795063,
-0.061804115772247314,
0.018359679728746414,
0.023702865466475487,
-0.045492976903915405,
-0.041985150426626205,
0.03881603479385376,
-0.001935298671014607,
-0.02293330430984497,
0.01646638847887516,
-0.011631946079432964,
0.005397183354943991,
0.032941002398729324,
0.0007067507249303162,
0.023446116596460342,
-0.038526277989149094,
-0.007009218912571669,
0.013868407346308231,
0.013424430042505264,
0.021029876545071602,
-0.011943879537284374,
0.030332151800394058,
0.03266936540603638,
0.05297267809510231,
-0.0032680570147931576,
-0.041981011629104614,
-0.03535322844982147,
0.04642527550458908,
-0.035414163023233414,
0.005503718741238117,
-0.005738136358559132,
-0.029252592474222183,
-0.04611266404390335,
-0.013952741399407387,
-0.029011180624365807,
0.05107014998793602,
-0.04734175279736519,
-0.01017020083963871,
0.03711610287427902,
-0.03180072084069252,
-0.05237165093421936,
-0.09058452397584915,
-0.006429491098970175,
-0.03151309862732887,
0.02074172906577587,
0.029167333617806435,
-0.04548078402876854,
0.023939361795783043,
-0.044874127954244614,
-0.0396762490272522,
0.0530078262090683,
0.022193336859345436,
-0.04152044653892517,
0.05648079141974449,
0.04242357611656189,
-0.055779241025447845,
0.0051027946174144745,
0.0196182020008564,
-0.04441261291503906,
0.015356121584773064,
0.02784538082778454,
0.02285291813313961,
0.02608492225408554,
0.02801056019961834,
-0.034234676510095596,
-0.018385276198387146,
-0.07199960947036743,
-0.060079269111156464,
-0.03786622732877731,
0.0003026289923582226,
0.06415636092424393
] |
bert-base-cased | [
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"exbert",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8,621,271 | 2018-11-14T23:35:08Z | ---
language: en
tags:
- exbert
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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>
| [
-0.005537884775549173,
0.0068740639835596085,
-0.01787860319018364,
0.06503400951623917,
0.026847530156373978,
0.033723000437021255,
-0.01929895021021366,
-0.03633744642138481,
-0.03174727410078049,
0.04941345006227493,
0.015982916578650475,
-0.005766472313553095,
0.016170065850019455,
0.042682185769081116,
-0.027035832405090332,
-0.014117388054728508,
-0.01082460954785347,
0.0017356734024360776,
-0.029752185568213463,
-0.014334860257804394,
-0.014681276865303516,
0.007212179712951183,
0.00742457015439868,
0.013578220270574093,
-0.0024629742838442326,
0.025698913261294365,
0.0067449104972183704,
0.04498117044568062,
0.010044588707387447,
-0.07519712299108505,
-0.0011536306701600552,
-0.023558154702186584,
-0.05138729140162468,
0.012579334899783134,
-0.009276709519326687,
0.0056177363730967045,
-0.0064362939447164536,
0.0020800153724849224,
0.04711052030324936,
0.05224147439002991,
-0.005395334679633379,
-0.0003043155593331903,
-0.019465921446681023,
-0.03425170108675957,
0.03145285323262215,
0.005477391183376312,
-0.046219486743211746,
-0.012797816656529903,
0.04345521703362465,
-0.018868338316679,
-0.05240979045629501,
-0.06389307975769043,
-0.028620462864637375,
0.024568233639001846,
0.012379009276628494,
-0.027974627912044525,
-0.0596090704202652,
-0.018795961514115334,
0.06483844667673111,
-0.042583294212818146,
-0.05026058107614517,
0.00044242694275453687,
-0.04337746277451515,
0.023376140743494034,
0.036618415266275406,
-0.0298176072537899,
0.011770455166697502,
-0.04269889369606972,
0.02439342625439167,
-0.03395674377679825,
0.04675212875008583,
-0.030101800337433815,
0.011834186501801014,
-0.10172400623559952,
-0.012362578883767128,
-0.01896352879703045,
0.05005097761750221,
0.042376697063446045,
-0.028324108570814133,
0.04512178897857666,
0.013734285719692707,
-0.0030038286931812763,
0.016237691044807434,
-0.015331696718931198,
-0.014753220602869987,
0.06374773383140564,
-0.05074974521994591,
-0.009941229596734047,
0.004139058291912079,
0.044453591108322144,
-0.029604824259877205,
-0.009436734020709991,
-0.0371084101498127,
-0.03992103785276413,
-0.025833657011389732,
0.026693720370531082,
0.02316342666745186,
-0.013172747567296028,
0.04877777025103569,
0.02518116682767868,
0.030657481402158737,
0.05422678962349892,
-0.021371668204665184,
0.07767974585294724,
-0.016752293333411217,
-0.022183820605278015,
-0.02240985818207264,
-0.03315233439207077,
-0.04412037879228592,
0.024994146078824997,
0.027736607939004898,
-0.03712782263755798,
-0.05740123987197876,
0.05999351665377617,
0.00017720175674185157,
-0.04475567862391472,
0.052759960293769836,
-0.021442368626594543,
-0.04298244044184685,
-0.05046049505472183,
0.030068224295973778,
-0.00927977729588747,
0.021930547431111336,
0.0041853091679513454,
-0.07707330584526062,
0.019503269344568253,
-0.03321944922208786,
-0.024251820519566536,
-0.002602864522486925,
0.013324176892638206,
-0.008434508927166462,
0.041263677179813385,
0.023092182353138924,
-0.05989845469594002,
0.02002858743071556,
0.0031873108819127083,
-0.058195874094963074,
0.053029708564281464,
0.04116751626133919,
0.12836121022701263,
-0.055802855640649796,
-0.04807687923312187,
0.03357566520571709,
0.04082445800304413,
-0.019086290150880814,
0.005779612343758345,
0.03785732761025429,
-0.015439452603459358,
-0.014887853525578976,
-0.007232929114252329,
0.058105919510126114,
-0.05544769763946533,
-0.009513731114566326,
0.0434395857155323,
-0.0067614042200148106,
0.0448332242667675,
-0.049628350883722305,
-0.012705935165286064,
-0.015595341101288795,
-0.003701661014929414,
-0.02777627483010292,
0.03912585228681564,
-0.022339344024658203,
-0.02915414422750473,
-0.03635568171739578,
-0.03265785425901413,
-0.003484388580545783,
0.06928224861621857,
-0.012920615263283253,
-0.018295198678970337,
-0.03428680822253227,
0.016717856749892235,
0.05221052095293999,
0.04145113006234169,
-0.03568194434046745,
0.020629117265343666,
0.07208014279603958,
0.031645696610212326,
-0.02986576221883297,
0.0617893822491169,
0.0021221977658569813,
-0.03585389256477356,
-0.029900845140218735,
0.016437195241451263,
-0.01148412749171257,
-0.03624334931373596,
0.04972679540514946,
0.029638836160302162,
-0.013617139309644699,
-0.012853064574301243,
-0.02693137899041176,
0.04539087787270546,
0.00837527122348547,
-0.001958438428118825,
0.01783307082951069,
-0.0037633676547557116,
-0.02648170478641987,
0.046226825565099716,
-0.02380960062146187,
0.014683174900710583,
-0.0032113315537571907,
-0.017781196162104607,
0.013849114067852497,
0.02142561785876751,
0.04381264001131058,
0.049421943724155426,
0.011108540929853916,
0.0694953203201294,
-0.03245412930846214,
0.03165873885154724,
-0.06603389978408813,
-0.03707203269004822,
0.001367508783005178,
0.029111022129654884,
0.0218613613396883,
0.03926684707403183,
0.0005388083518482745,
-0.0458979532122612,
0.00848401989787817,
0.0637781098484993,
0.05117495730519295,
0.025843221694231033,
-0.0341879203915596,
-0.02273581735789776,
0.03172815963625908,
0.05676529183983803,
-0.057023756206035614,
-0.045250747352838516,
0.028908956795930862,
0.04797187075018883,
-0.017401158809661865,
0.0024520286824554205,
-0.016356194391846657,
0.03338906168937683,
-0.0381096787750721,
-0.060313720256090164,
0.04339050129055977,
0.040245477110147476,
-0.0010101654333993793,
0.038468051701784134,
-0.014510306529700756,
-0.00009810300980461761,
0.019803959876298904,
0.023077089339494705,
-0.000987902982160449,
-0.04015449061989784,
0.010176707990467548,
0.03115980327129364,
0.04914306476712227,
-0.04576506093144417,
0.038898807018995285,
0.00532419141381979,
0.02349810115993023,
0.04011676833033562,
-0.006494298577308655,
0.033985838294029236,
0.04162352904677391,
0.009951763786375523,
-0.030826477333903313,
0.01693829335272312,
0.0029095434583723545,
0.058254897594451904,
0.055618688464164734,
-0.003908582031726837,
0.060968104749917984,
0.011998378671705723,
0.03990653529763222,
0.07124102115631104,
0.03213914483785629,
0.023447809740900993,
0.020938755944371223,
0.07128752768039703,
0.005353520158678293,
-0.013479124754667282,
0.07649935036897659,
-0.04724370688199997,
0.01435550395399332,
-0.05201101675629616,
0.03621530905365944,
0.012285392731428146,
-0.007974561303853989,
0.05489213764667511,
0.027089923620224,
0.0013529341667890549,
0.004292070399969816,
0.004342890810221434,
-0.029356639832258224,
0.053142745047807693,
-0.0026552309282124043,
0.0264322217553854,
-0.00919572077691555,
-0.026688797399401665,
-0.010974651202559471,
-0.0757836326956749,
-0.05640094727277756,
0.004834358114749193,
-0.0331462100148201,
-0.004795277491211891,
-0.09655579924583435,
-0.03578581288456917,
-0.0530426949262619,
-0.015245478600263596,
0.014880860224366188,
0.018441321328282356,
0.01851092278957367,
-0.02632657065987587,
0.017927385866642,
-0.04849270358681679,
-0.02133365534245968,
-0.035795461386442184,
-0.03183383494615555,
-0.04899502918124199,
-0.051217835396528244,
0.040108684450387955,
0.018272528424859047,
0.02235109731554985,
-0.004426541738212109,
0.003998217172920704,
-0.034911639988422394,
-0.017125820741057396,
0.04845361039042473,
0.03604437783360481,
-0.04598989710211754,
-0.04169340804219246,
0.0045541455037891865,
-0.007093807682394981,
0.010220986790955067,
-0.025531399995088577,
-0.0056480602361261845,
0.09174066036939621,
0.08273011445999146,
0.02807566151022911,
0.009174492210149765,
-0.021581808105111122,
-0.03752123564481735,
-0.06818298250436783,
-0.02500210516154766,
-0.045396093279123306,
-0.009823452681303024,
-0.055228427052497864,
-0.04366599768400192,
-0.006792095489799976,
-0.02541222982108593,
-0.009273571893572807,
-0.006017736159265041,
0.022810418158769608,
0.0331939272582531,
0.03866078332066536,
0.01863745041191578,
0.03244226425886154,
-0.02204062230885029,
-0.022334570065140724,
0.06288024038076401,
0.01058202050626278,
0.01644817180931568,
-0.08110880851745605,
-0.04391247406601906,
0.04170255362987518,
0.036619193851947784,
-0.0047510601580142975,
-0.011008983477950096,
0.08416535705327988,
0.011528372764587402,
-0.010199293494224548,
-0.0014481452526524663,
0.00868557021021843,
-0.029739292338490486,
-0.02882954850792885,
-0.0006125788786448538,
-0.014321751892566681,
-0.034572210162878036,
-0.049116767942905426,
-0.021058546379208565,
0.037667542695999146,
-0.06338899582624435,
-0.05288536846637726,
-0.021319348365068436,
0.04864973947405815,
0.023975525051355362,
0.004915804602205753,
-0.02674591913819313,
-0.0019994431640952826,
-0.03695714473724365,
-0.021178290247917175,
-0.003092545084655285,
-0.002258758759126067,
0.011033434420824051,
0.03111753799021244,
0.031337156891822815,
-0.027538912370800972,
0.028566859662532806,
0.049963753670454025,
0.05267404392361641,
-0.001171092502772808,
-0.052640970796346664,
0.03317497298121452,
-0.0250887218862772,
0.03119886852800846,
0.005810107570141554,
-0.031996071338653564,
-0.056859273463487625,
-0.08558589965105057,
0.007487177383154631,
-0.014796007424592972,
-0.006584198214113712,
-0.008408201858401299,
0.03424271196126938,
-0.02633267268538475,
-0.01979120634496212,
-0.0010162213584408164,
0.01836114376783371,
0.015239626169204712,
-0.032819993793964386,
0.06564515829086304,
-0.026960641145706177,
0.01229288149625063,
-0.05772903561592102,
0.02278219722211361,
-0.05503325164318085,
-0.030142823234200478,
0.0019875233992934227,
0.05628182366490364,
0.02823568508028984,
0.06333442777395248,
0.06642476469278336,
0.0621977262198925,
-0.06069876253604889,
0.04076601192355156,
0.03168712928891182,
0.0012569966493174434,
-0.04412661865353584,
-0.025303395465016365,
-0.018019942566752434,
-0.0227292999625206,
-0.03304731473326683,
-0.0050485567189753056,
0.012534658424556255,
0.02712700515985489,
0.007348473649471998,
-0.009527248330414295,
0.008541740477085114,
-0.031223468482494354,
-0.022568825632333755,
-0.07261580973863602,
-0.025735925883054733,
-0.013921927660703659,
-0.02315237745642662,
0.06632877886295319,
0.010756811127066612,
0.0008360923966392875,
0.07287677377462387,
0.048745047301054,
-0.010621835477650166,
-0.03743917495012283,
0.032380253076553345,
0.031575996428728104,
-0.04359125345945358,
-0.060810547322034836,
-0.05287083238363266,
0.05299881473183632,
0.060945332050323486,
-0.007522955071181059,
-0.07566119730472565,
0.0015099616721272469,
0.04734262451529503,
-0.041143447160720825,
0.05918627977371216,
-0.02466898038983345,
0.06438238173723221,
0.06359241902828217,
-0.0001614540524315089,
0.03988435119390488,
-0.025937117636203766,
0.004493324551731348,
0.015022588893771172,
0.025078285485506058,
-0.04359801113605499,
-0.05412065610289574,
-0.062372829765081406,
0.03023342788219452,
0.03246424347162247,
0.052942074835300446,
0.05338548496365547,
-0.008868194185197353,
-0.04405374452471733,
0.008416167460381985,
0.017419012263417244,
-0.037686776369810104,
-0.0037350975908339024,
0.012088065966963768,
0.06542988866567612,
-0.06007600575685501,
-0.023259343579411507,
-0.04373851418495178,
-0.0040526422671973705,
0.04106545075774193,
0.009466752409934998,
-0.03332971781492233,
-0.058104246854782104,
0.011109543964266777,
-0.008480283431708813,
-0.01516354363411665,
-0.0705358162522316,
0.002073507057502866,
-0.01787387952208519,
-0.01842169463634491,
0.020162779837846756,
0.04537935182452202,
0.04741603136062622,
0.05766630917787552,
0.008546163327991962,
0.012362576089799404,
-0.046529628336429596,
0.030562369152903557,
-0.02685546688735485,
-0.01238142792135477,
-0.021593695506453514,
-0.03732123225927353,
0.0030288139823824167,
-0.04003601148724556,
-0.027180571109056473,
-0.058793555945158005,
-0.012410661205649376,
0.008248478174209595,
-0.020867493003606796,
0.016389548778533936,
-0.023407001048326492,
0.026732640340924263,
-0.03113834373652935,
-0.041719336062669754,
-0.02405485138297081,
-0.029298046603798866,
-0.06449898332357407,
-0.05041753128170967,
0.011591333895921707,
0.01058971043676138,
0.02134636417031288,
0.02751445211470127,
0.017848249524831772,
0.011539638042449951,
0.010309744626283646,
-0.035124052315950394,
0.03070029243826866,
0.009577577002346516,
-0.04387389123439789,
-0.03918209671974182,
0.01929853856563568,
0.013075183145701885,
0.019294017925858498,
-0.0357234850525856,
0.030611950904130936,
0.019025497138500214,
-0.02167619951069355,
-0.01361940335482359,
0.0454125814139843,
0.016935942694544792,
-0.08659899979829788,
-0.0410538986325264,
-0.014857735484838486,
-0.042778145521879196,
0.047576677054166794,
-0.018217673525214195,
-0.032727181911468506,
0.01816527731716633,
0.034182384610176086,
0.053403742611408234,
-0.0002730956475716084,
-0.03811228275299072,
0.007766792085021734,
-0.03281503915786743,
0.035112980753183365,
-0.05961575359106064,
0.04071144759654999,
-0.05805007368326187,
0.03274909779429436,
-0.008662411011755466,
0.011279633268713951,
-0.04249447211623192,
0.028188854455947876,
-0.022092172876000404,
-0.009544769302010536,
-0.01657971739768982,
0.007337746676057577,
-0.028837265446782112,
0.04277078062295914,
-0.028389472514390945,
0.0001298352872254327,
-0.014735362492501736,
0.07089746743440628,
-0.04152362793684006,
-0.008725865744054317,
-0.023599404841661453,
0.0019076295429840684,
-0.0496206097304821,
-0.015126914717257023,
0.0016587653663009405,
-0.029879333451390266,
0.04609183222055435,
0.018152732402086258,
0.034368861466646194,
0.04772239550948143,
0.0008786849793978035,
0.0020565481390804052,
0.015389923937618732,
-0.05484187230467796,
-0.02311220020055771,
-0.002129433210939169,
0.014631463214755058,
-0.002995166229084134,
0.06218278035521507,
0.051811475306749344,
-0.060077156871557236,
-0.045242708176374435,
0.06383609771728516,
0.01852717250585556,
0.005475450772792101,
-0.005124732851982117,
0.04080565273761749,
0.037359122186899185,
0.040543437004089355,
-0.026588618755340576,
-0.009836378507316113,
0.0120561383664608,
-0.03383301571011543,
0.012989909388124943,
0.0035081682726740837,
0.018856428563594818,
0.029896875843405724,
-0.027380023151636124,
-0.05327795818448067,
0.06243011727929115,
0.028827253729104996,
0.018386952579021454,
0.015579820610582829,
-0.03580252453684807,
0.0035846270620822906,
0.007701320108026266,
-0.047786030918359756,
-0.011551662348210812,
0.018901215866208076,
-0.02419987879693508,
0.08109164983034134,
-0.03324756398797035,
0.020833149552345276,
0.04650374874472618,
0.003636252600699663,
-0.013835766352713108,
0.04424469918012619,
-0.039548635482788086,
0.016690168529748917,
0.0399075448513031,
-0.03572622314095497,
-0.02298596128821373,
-0.030285637825727463,
0.06486184149980545,
-0.058827195316553116,
0.04955924674868584,
0.029494116082787514,
0.023562684655189514,
0.018730703741312027,
-0.020586246624588966,
-0.03931659832596779,
0.011559280566871166,
-0.05294417217373848,
0.07418536394834518,
-0.0011186026968061924,
-0.056073158979415894,
0.06940615922212601,
0.019817912951111794,
-0.056887317448854446,
0.04185563325881958,
0.029601173475384712,
0.027036184445023537,
0.015862345695495605,
0.055654533207416534,
-0.04279759153723717,
0.009063093923032284,
-0.03961532562971115,
0.028888210654258728,
-0.047275226563215256,
-0.03356369212269783,
0.010421610437333584,
-0.03367706760764122,
-0.013284278102219105,
0.052024923264980316,
-0.03296775370836258,
-0.015125438570976257,
0.020435737445950508,
-0.07356654107570648,
-0.06506623327732086,
-0.001842886209487915,
0.015148594975471497,
-0.021186374127864838,
-0.013403283432126045,
-0.031382545828819275,
0.026445742696523666,
0.0018939246656373143,
-0.0070496792905032635,
-0.05074169486761093,
0.009180261753499508,
0.020145626738667488,
-0.044090304523706436,
-0.04496061056852341,
0.048508308827877045,
0.00790767464786768,
-0.019714416936039925,
0.027381040155887604,
-0.012884801253676414,
-0.00004057576006744057,
0.02706068567931652,
0.0013718801783397794,
0.021936800330877304,
-0.02265743911266327,
0.0038451431319117546,
0.006755441892892122,
0.018266387283802032,
0.032529160380363464,
-0.023257168009877205,
0.026150312274694443,
0.028660310432314873,
0.05902901664376259,
-0.00003965685027651489,
-0.03894590586423874,
-0.02747892029583454,
0.02847518026828766,
-0.04271335154771805,
-0.0025886285584419966,
-0.010165797546505928,
-0.04148609936237335,
-0.03182463347911835,
-0.00889348704367876,
-0.025396030396223068,
0.05134125053882599,
-0.07034618407487869,
0.011573980562388897,
0.049320921301841736,
-0.047000136226415634,
-0.047996193170547485,
-0.08522563427686691,
-0.014456291683018208,
-0.04435548186302185,
0.03193018585443497,
0.0246526338160038,
-0.029099928215146065,
0.017656894400715828,
-0.03873962536454201,
-0.0376199409365654,
0.04414670541882515,
0.026812290772795677,
-0.04102715104818344,
0.058148063719272614,
0.04488237574696541,
-0.058325935155153275,
0.005745026748627424,
0.03026038594543934,
-0.04299880936741829,
0.02039244771003723,
0.02610967308282852,
0.017533298581838608,
0.012400833889842033,
0.03658191114664078,
-0.037562545388936996,
-0.022987550124526024,
-0.06303700059652328,
-0.04287455603480339,
-0.034592099487781525,
0.010257570073008537,
0.059492889791727066
] |
bert-base-chinese | [
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"zh",
"arxiv:1810.04805",
"transformers",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 3,377,486 | 2018-11-14T23:35:08Z | ---
language: zh
---
# 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")
```
| [
-0.027363037690520287,
-0.012506258673965931,
-0.0041877892799675465,
0.06901980191469193,
0.015909267589449883,
0.01630205661058426,
-0.006000135093927383,
-0.02104058675467968,
-0.01659931242465973,
0.05400661751627922,
-0.006732940208166838,
-0.02970108948647976,
0.032426174730062485,
0.026761697605252266,
-0.025996683165431023,
-0.005110971163958311,
-0.011983140371739864,
-0.010224835947155952,
-0.05567975342273712,
0.001454520388506353,
0.0010166838765144348,
0.014129371382296085,
-0.014379817061126232,
0.035982999950647354,
0.0014330525882542133,
0.02736945077776909,
-0.01964106783270836,
0.0414699912071228,
0.02686084806919098,
-0.07209321856498718,
-0.00816862378269434,
-0.043959978967905045,
-0.02966037206351757,
-0.018188903108239174,
-0.007190408650785685,
-0.01688433438539505,
-0.0005018330411985517,
-0.006204285193234682,
0.04004073515534401,
0.06828055530786514,
0.0034565539099276066,
-0.020865369588136673,
-0.017855294048786163,
-0.04113831743597984,
0.04336803779006004,
0.00639375438913703,
-0.039971284568309784,
0.0041795638389885426,
0.03362349048256874,
-0.0244330745190382,
-0.022574713453650475,
-0.06848569959402084,
-0.02253689616918564,
0.01804020069539547,
-0.029243938624858856,
-0.03482109308242798,
-0.05930878221988678,
0.0023825746029615402,
0.07588246464729309,
-0.034878432750701904,
-0.04613938182592392,
-0.008809760212898254,
-0.05908748134970665,
0.024554723873734474,
0.04301935434341431,
-0.04965897649526596,
0.007103967946022749,
-0.031835440546274185,
0.027835214510560036,
-0.030081281438469887,
0.03868889436125755,
-0.020709196105599403,
0.002327363006770611,
-0.1045982763171196,
0.016084063798189163,
-0.012320705689489841,
0.05820813030004501,
0.034430813044309616,
-0.02486942894756794,
0.06479523330926895,
0.028769124299287796,
0.0018406760646030307,
0.026528244838118553,
-0.015975989401340485,
-0.01247356552630663,
0.03727363422513008,
-0.041495271027088165,
0.005890932399779558,
0.006639032159000635,
0.047866903245449066,
-0.02410610392689705,
-0.03027293272316456,
-0.02331267111003399,
-0.025026127696037292,
-0.03310540318489075,
0.006427797023206949,
0.028090830892324448,
-0.012643503025174141,
0.06985480338335037,
0.03204651549458504,
0.01712423749268055,
0.051683686673641205,
-0.0060920980758965015,
0.0485089085996151,
-0.0241220872849226,
-0.0018923827446997166,
-0.01764625869691372,
-0.018599430099129677,
-0.06710590422153473,
0.03213127702474594,
0.03345642611384392,
-0.03155246004462242,
-0.048912763595581055,
0.048854224383831024,
0.002615818055346608,
-0.02155647985637188,
0.046780556440353394,
-0.03752744942903519,
-0.04019651934504509,
-0.06163050979375839,
0.022592691704630852,
-0.0013261039275676012,
0.008104649372398853,
0.0036705010570585728,
-0.07320309430360794,
0.03186910226941109,
-0.026607347652316093,
-0.020398322492837906,
-0.002686253748834133,
0.028099456802010536,
-0.015627125278115273,
0.04638555273413658,
0.02065117470920086,
-0.049957454204559326,
0.0001167831287602894,
-0.0016413447447121143,
-0.05776714161038399,
0.051992226392030716,
0.03033377230167389,
0.13216735422611237,
-0.050829868763685226,
-0.045481402426958084,
0.009227929636836052,
0.01619277335703373,
-0.037500593811273575,
0.007684925105422735,
0.029209960252046585,
-0.02129979431629181,
-0.009443484246730804,
-0.017340756952762604,
0.04714753478765488,
-0.051566753536462784,
0.0052254353649914265,
0.06726083904504776,
0.0012442126171663404,
0.03266497701406479,
-0.07205072045326233,
-0.000331498944433406,
0.0038452795706689358,
-0.0036536268889904022,
-0.01949285715818405,
0.03418552875518799,
-0.009881674312055111,
-0.0254967100918293,
-0.04760364815592766,
-0.07050410658121109,
0.02416147105395794,
0.06734176725149155,
-0.011587772518396378,
-0.01508838776499033,
-0.03561592847108841,
0.028624625876545906,
0.05477970466017723,
0.026143671944737434,
-0.03496415540575981,
0.011409527622163296,
0.056307073682546616,
0.014742343686521053,
-0.024731477722525597,
0.06782490760087967,
0.014352534897625446,
-0.026584818959236145,
-0.015546570532023907,
-0.003166201990097761,
0.010970919393002987,
-0.033855095505714417,
0.039862509816884995,
0.03650475665926933,
0.0015166342491284013,
-0.04298609495162964,
-0.012351001612842083,
0.06041345000267029,
-0.011468054726719856,
-0.0025932989083230495,
0.0008377465419471264,
-0.0005467476439662278,
-0.025934480130672455,
0.05155234783887863,
-0.022637618705630302,
-0.007949664257466793,
-0.028572257608175278,
-0.03049371764063835,
0.0009551661205478013,
0.03349017724394798,
0.030388392508029938,
0.04294887185096741,
-0.022811848670244217,
0.042012233287096024,
-0.020269259810447693,
0.012327030301094055,
-0.059829868376255035,
-0.037743471562862396,
-0.01033251266926527,
0.04057934507727623,
0.04819454252719879,
0.044963281601667404,
-0.010595165193080902,
-0.050861556082963943,
0.015088518150150776,
0.0751829519867897,
0.06654196977615356,
0.015219474211335182,
-0.024942288175225258,
-0.007078513037413359,
0.04421473667025566,
0.06437044590711594,
-0.08283200114965439,
-0.020588301122188568,
0.009361702017486095,
0.04420515522360802,
-0.02037864178419113,
0.01857609860599041,
-0.013226610608398914,
0.03423156216740608,
-0.04813327640295029,
-0.07498432695865631,
0.05155076086521149,
0.023584574460983276,
0.007430126424878836,
0.036921560764312744,
-0.019510699436068535,
0.03503468260169029,
0.027058256790041924,
0.040309105068445206,
0.010808931663632393,
-0.04545118287205696,
0.0024573162663728,
0.01464503537863493,
0.054473165422677994,
-0.0521559938788414,
0.03502298519015312,
-0.003681618720293045,
0.01957741379737854,
0.010223958641290665,
-0.03875541314482689,
0.02907913736999035,
0.021453382447361946,
-0.00239946274086833,
-0.047903597354888916,
0.018932389095425606,
0.010752025060355663,
0.043615393340587616,
0.04192568361759186,
-0.008954736404120922,
0.07289667427539825,
0.004172471351921558,
0.04630701616406441,
0.09442032873630524,
0.017548639327287674,
0.021785272285342216,
-0.00018115324201062322,
0.060264308005571365,
0.006865828298032284,
-0.005795403849333525,
0.08834266662597656,
-0.02274913340806961,
0.007880829274654388,
-0.06426432728767395,
0.026728039607405663,
0.008897473104298115,
-0.02108778990805149,
0.035549428313970566,
0.009406969882547855,
-0.006267005577683449,
0.007800803054124117,
-0.013190863654017448,
-0.004611901938915253,
0.06210479140281677,
-0.014597042463719845,
0.002452776301652193,
-0.0064476910047233105,
-0.05334016680717468,
-0.006960979662835598,
-0.07275907695293427,
-0.05764344334602356,
0.0005926006124354899,
-0.03195642679929733,
-0.004172155167907476,
-0.08121128380298615,
-0.029886312782764435,
-0.05256269872188568,
-0.017485512420535088,
0.026707565411925316,
0.022158343344926834,
0.011932546272873878,
-0.04578353092074394,
0.03915591537952423,
-0.03632204234600067,
-0.021408002823591232,
-0.018674366176128387,
-0.037944063544273376,
-0.028842058032751083,
-0.049679651856422424,
0.029206285253167152,
0.03775203227996826,
0.03905134275555611,
-0.002536613726988435,
0.011149341240525246,
-0.01714644394814968,
-0.03212518244981766,
0.02218746580183506,
0.04313505068421364,
-0.05753736197948456,
-0.06710200011730194,
0.016309915110468864,
0.004909036681056023,
0.009071877226233482,
0.000552802870515734,
-0.0265347883105278,
0.07287183403968811,
0.10118125379085541,
0.01600896194577217,
0.012884228490293026,
-0.0028623915277421474,
-0.044575873762369156,
-0.0552801787853241,
-0.037722762674093246,
-0.05191252753138542,
-0.021652745082974434,
-0.030140582472085953,
-0.04473930597305298,
-0.004293950740247965,
-0.0178834181278944,
-0.0079325707629323,
-0.013434488326311111,
0.004728059284389019,
0.015541000291705132,
0.0350242555141449,
0.02088937722146511,
0.05188543349504471,
-0.01634807325899601,
-0.013966250233352184,
0.06847444921731949,
-0.009451879188418388,
0.02548719383776188,
-0.07023633271455765,
-0.03477678820490837,
0.046430476009845734,
0.024271955713629723,
0.012250227853655815,
-0.022838233038783073,
0.08306223899126053,
0.006709245499223471,
-0.01215436216443777,
-0.011067932471632957,
-0.015553552657365799,
-0.030107710510492325,
-0.002102681202813983,
0.013694237917661667,
-0.008345716632902622,
-0.06740939617156982,
-0.04647797346115112,
0.0037032400723546743,
0.0566694438457489,
-0.05618906021118164,
-0.06899386644363403,
-0.03212541714310646,
0.038473743945360184,
0.029073452576994896,
-0.030161049216985703,
-0.03108293004333973,
0.003226298838853836,
-0.063003309071064,
-0.03713548928499222,
-0.016786307096481323,
-0.017975227907299995,
0.01400292944163084,
0.05112254247069359,
0.028891855850815773,
-0.036635663360357285,
0.008756393566727638,
0.04735465347766876,
0.06000949442386627,
0.003138067666441202,
-0.05734628438949585,
0.005414088722318411,
-0.014847978949546814,
0.03555301949381828,
0.0005681055481545627,
-0.025694968178868294,
-0.03586750105023384,
-0.09585180133581161,
0.012035819701850414,
0.008609234355390072,
-0.007440794724971056,
-0.016048971563577652,
0.05366810783743858,
-0.04393475130200386,
0.007779634557664394,
0.004873103462159634,
0.012397111393511295,
0.04402344301342964,
-0.05328204855322838,
0.05573606118559837,
0.007337023504078388,
0.027433497831225395,
-0.04785114526748657,
0.046006787568330765,
-0.021237406879663467,
-0.007744453381747007,
-0.02909660153090954,
0.05448996275663376,
0.029876714572310448,
0.04272505268454552,
0.06267862021923065,
0.04655216261744499,
-0.051828183233737946,
0.03699373081326485,
0.025723494589328766,
-0.01990804634988308,
-0.046822529286146164,
-0.002317032776772976,
-0.029597748070955276,
-0.019530555233359337,
-0.02370877005159855,
-0.022279774770140648,
0.016731547191739082,
0.03289182111620903,
0.004560484085232019,
-0.028148069977760315,
0.023410115391016006,
-0.02749408781528473,
-0.029417088255286217,
-0.0640186220407486,
-0.017882240936160088,
0.004348567686975002,
-0.029748741537332535,
0.03700359910726547,
0.03273165598511696,
0.005224849563091993,
0.060481004416942596,
0.0436764732003212,
-0.030094088986516,
-0.018688084557652473,
0.02274343930184841,
0.01106170006096363,
-0.040327370166778564,
-0.06146441400051117,
-0.057121455669403076,
0.05284964293241501,
0.039964959025382996,
0.02048627845942974,
-0.06490936130285263,
0.02992873638868332,
0.04967646673321724,
-0.05169662460684776,
0.04399046301841736,
-0.02692321687936783,
0.051747437566518784,
0.0584915392100811,
-0.009615388698875904,
0.02535281702876091,
0.00939474068582058,
-0.004581456538289785,
0.005133471917361021,
0.02519982121884823,
-0.04615848883986473,
-0.03930766507983208,
-0.06512707471847534,
0.008483772166073322,
0.027640772983431816,
0.027875225991010666,
0.03243371471762657,
-0.028008827939629555,
-0.03709130361676216,
0.036124978214502335,
0.024579038843512535,
-0.043192241340875626,
0.01581873744726181,
0.036732353270053864,
0.044105205684900284,
-0.04233616590499878,
-0.037086959928274155,
-0.020803600549697876,
0.0046097286976873875,
0.02264329046010971,
-0.010452610440552235,
-0.04251345992088318,
-0.043673690408468246,
0.02917359583079815,
-0.01546767633408308,
-0.023368455469608307,
-0.043700024485588074,
0.020842261612415314,
-0.03309955447912216,
-0.017279205843806267,
0.018966900184750557,
0.016816765069961548,
0.04863032326102257,
0.05491788685321808,
0.007461915723979473,
-0.0076986136846244335,
-0.05724594369530678,
0.03542158752679825,
-0.02547897957265377,
-0.01813964545726776,
-0.015897642821073532,
-0.03402821719646454,
0.00036310311406850815,
-0.042641837149858475,
-0.05942349135875702,
-0.0469881035387516,
0.007971405982971191,
0.029193731024861336,
-0.015118377283215523,
0.01361156813800335,
-0.023227229714393616,
0.029476124793291092,
-0.013306893408298492,
-0.027941931039094925,
-0.006250880658626556,
-0.025235509499907494,
-0.059026412665843964,
-0.06153862550854683,
0.01737925224006176,
0.006964983884245157,
0.02578597702085972,
0.012746776454150677,
0.010051862336695194,
0.007892684079706669,
0.00032290766830556095,
-0.0195115078240633,
0.03066512569785118,
-0.017195390537381172,
-0.04722470045089722,
-0.036411434412002563,
-0.0019759584683924913,
-0.006967063061892986,
0.03325625881552696,
-0.04658299684524536,
0.03362908959388733,
0.015707572922110558,
-0.034820400178432465,
-0.018957199528813362,
0.02669195458292961,
0.02482733502984047,
-0.08708518743515015,
-0.06756012886762619,
-0.004785601049661636,
-0.030273407697677612,
0.04640966281294823,
-0.023071616888046265,
-0.02877875603735447,
0.06307413429021835,
0.03461702913045883,
0.04903345927596092,
-0.007797566242516041,
-0.015840614214539528,
0.02189532294869423,
-0.01443169079720974,
0.014085449278354645,
-0.051746219396591187,
0.03542245551943779,
-0.04864346235990524,
0.026044609025120735,
-0.013161621056497097,
-0.0013203161070123315,
-0.06673122942447662,
0.021641602739691734,
-0.013597722165286541,
-0.03042030707001686,
-0.002896222285926342,
0.02565886825323105,
-0.04434150457382202,
0.030703600496053696,
-0.049179572612047195,
0.020415185019373894,
-0.04291923716664314,
0.04680396243929863,
-0.03611036762595177,
-0.005937974900007248,
-0.012473578564822674,
0.008237081579864025,
-0.05378246679902077,
-0.006439571734517813,
-0.002072380855679512,
-0.041693978011608124,
0.043097566813230515,
0.010954408906400204,
0.026040999218821526,
0.04161880537867546,
-0.011366710998117924,
0.01992849074304104,
-0.0088762566447258,
-0.05718830227851868,
-0.005784382112324238,
-0.003555998671799898,
0.02829352393746376,
0.008305375464260578,
0.05166395753622055,
0.05080839991569519,
-0.06932630389928818,
-0.04483296722173691,
0.059339575469493866,
0.02002488262951374,
-0.004767832811921835,
0.0011023525148630142,
0.037220679223537445,
0.017241142690181732,
0.02397621050477028,
-0.029736775904893875,
-0.010733971372246742,
-0.020047109574079514,
-0.0472620353102684,
0.035298604518175125,
0.011765201576054096,
0.01933085173368454,
0.021635863929986954,
-0.0187537781894207,
-0.05149426683783531,
0.0709589421749115,
0.020164912566542625,
0.015009257011115551,
-0.0003317816590424627,
-0.03244001045823097,
0.019224416464567184,
-0.00913228839635849,
-0.043832045048475266,
0.005340110044926405,
0.01152040995657444,
-0.019543468952178955,
0.07885544747114182,
-0.012451577931642532,
0.014569162391126156,
0.047634366899728775,
0.0061031063087284565,
-0.01837642304599285,
0.036222271621227264,
-0.037310995161533356,
0.033300142735242844,
0.04271666705608368,
-0.04106314852833748,
-0.012822550721466541,
-0.046321600675582886,
0.06566151231527328,
-0.0708574503660202,
0.06387967616319656,
0.06426640599966049,
-0.013242382556200027,
0.03232959657907486,
-0.033876098692417145,
-0.033460892736911774,
0.03292728215456009,
-0.02312806434929371,
0.053268734365701675,
-0.007388776633888483,
-0.07662501186132431,
0.06205063685774803,
0.01739407330751419,
-0.056991517543792725,
0.046864692121744156,
0.048200540244579315,
0.023037439212203026,
0.01533233281224966,
0.03454229608178139,
-0.03929268196225166,
-0.007930763997137547,
-0.03962041810154915,
0.022624513134360313,
-0.04698970168828964,
-0.034375786781311035,
0.04029664397239685,
-0.03160674497485161,
-0.026617197319865227,
0.020581714808940887,
-0.008579607121646404,
-0.021564750000834465,
0.034776460379362106,
-0.06125964969396591,
-0.05648059770464897,
-0.0139738405123353,
0.013347579166293144,
-0.0024786503054201603,
-0.027203600853681564,
-0.03983573243021965,
0.02325289323925972,
0.00970205944031477,
-0.008409768342971802,
-0.03385913372039795,
-0.007552756927907467,
0.04088359326124191,
-0.06704840064048767,
-0.03063962794840336,
0.048544567078351974,
0.00930111389607191,
-0.023517940193414688,
0.034697555005550385,
0.003738343482837081,
-0.016735997051000595,
0.0009655995527282357,
0.01150226965546608,
0.03707941994071007,
-0.03976425528526306,
-0.023276207968592644,
0.01823301613330841,
0.011674096807837486,
0.018822284415364265,
-0.015789061784744263,
0.02888222597539425,
0.04488570615649223,
0.02793615497648716,
-0.001535405870527029,
-0.05063794553279877,
-0.03615577891469002,
0.03212318196892738,
-0.03759537637233734,
0.025377104058861732,
0.0034664783161133528,
-0.05726522207260132,
-0.038154423236846924,
-0.011658863164484501,
-0.022342903539538383,
0.04326770827174187,
-0.04246019944548607,
-0.000612931267824024,
0.05931827798485756,
-0.02898806519806385,
-0.03566304221749306,
-0.07664230465888977,
-0.02463376894593239,
-0.05229766294360161,
0.028385551646351814,
0.036057181656360626,
-0.04628949612379074,
0.02477596327662468,
-0.04670950397849083,
-0.051932960748672485,
0.020142683759331703,
0.02566431649029255,
-0.04468743875622749,
0.05078970268368721,
0.03200468793511391,
-0.04657161980867386,
-0.0049333227798342705,
0.02272760681807995,
-0.051299694925546646,
0.010303822346031666,
0.024059180170297623,
0.011892707087099552,
0.030263550579547882,
0.025034967809915543,
-0.015035923570394516,
-0.018733857199549675,
-0.07611224800348282,
-0.021894169971346855,
-0.04349721595644951,
0.013735707849264145,
0.07340597361326218
] |
bert-base-german-cased | [
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"de",
"transformers",
"exbert",
"license:mit",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 175,983 | 2019-06-18T09:14:06Z | ---
language: de
license: mit
thumbnail: https://static.tildacdn.com/tild6438-3730-4164-b266-613634323466/german_bert.png
tags:
- exbert
---
<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

## 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.

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).

## 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

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)
| [
-0.004065467044711113,
0.0007318712305277586,
-0.0237592626363039,
0.0700923278927803,
0.03437672182917595,
0.029773039743304253,
-0.0022655632346868515,
-0.024777282029390335,
-0.024793291464447975,
0.06250905990600586,
-0.00813546497374773,
-0.00507994694635272,
0.018282661214470863,
0.031359199434518814,
-0.014220176264643669,
-0.03299298509955406,
-0.003266951534897089,
0.009863977320492268,
-0.049686625599861145,
-0.006183971185237169,
-0.0033599911257624626,
0.007240648847073317,
0.00518006132915616,
0.02904399298131466,
0.0186598002910614,
0.02457313984632492,
-0.008445589803159237,
0.041161417961120605,
0.010387110523879528,
-0.07133832573890686,
0.0037182006053626537,
-0.012948847375810146,
-0.038444019854068756,
-0.019622959196567535,
-0.01869659498333931,
-0.010777780786156654,
0.01574680209159851,
0.016456423327326775,
0.017648596316576004,
0.03802376240491867,
-0.008992210030555725,
-0.0006126385414972901,
0.025478819385170937,
-0.04798314720392227,
0.05560366064310074,
0.009733310900628567,
-0.05013245344161987,
-0.01910650171339512,
0.03196045383810997,
-0.034448880702257156,
-0.05592898651957512,
-0.06922902166843414,
-0.030046634376049042,
0.02514171600341797,
-0.00067045510513708,
-0.010568080469965935,
-0.07215429842472076,
-0.004865583498030901,
0.0601281113922596,
-0.04219507798552513,
-0.04047064483165741,
0.0213925801217556,
-0.05224995315074921,
0.009613939560949802,
0.03773636743426323,
-0.02242244966328144,
0.009927291423082352,
-0.02480807714164257,
0.02573850005865097,
-0.009021596983075142,
0.04367222264409065,
-0.01891489140689373,
0.011223667301237583,
-0.0887497067451477,
-0.01575596258044243,
-0.009577029384672642,
0.053181033581495285,
0.0476788766682148,
-0.041324492543935776,
0.05184055492281914,
0.008980833925306797,
0.011426481418311596,
0.04066194221377373,
-0.01877880096435547,
-0.020624171942472458,
0.040068063884973526,
-0.03513281047344208,
0.009375532157719135,
0.019857103005051613,
0.04827447235584259,
-0.03847184404730797,
-0.016423067077994347,
-0.024214034900069237,
-0.04227357357740402,
-0.02675499953329563,
0.028920482844114304,
0.019747339189052582,
0.01807601936161518,
0.03182213008403778,
0.03365897387266159,
0.024826936423778534,
0.06075208634138107,
-0.018778815865516663,
0.04201299697160721,
0.0022343324963003397,
0.0001530005392851308,
0.002749964827671647,
-0.02222052961587906,
-0.06055803224444389,
0.029753023758530617,
0.025757769122719765,
-0.01932825706899166,
-0.038024213165044785,
0.03909602761268616,
-0.0028250771574676037,
-0.015095124021172523,
0.05497724935412407,
-0.009759115055203438,
-0.04913998022675514,
-0.03740891441702843,
0.038509808480739594,
-0.007611599750816822,
0.009048382751643658,
0.016687732189893723,
-0.06454108655452728,
0.0020770684350281954,
-0.03866655007004738,
-0.02285945601761341,
-0.01278961542993784,
0.005466709844768047,
0.0011340558994561434,
0.04253890737891197,
0.006057232152670622,
-0.05476774647831917,
-0.005526034161448479,
0.010009540244936943,
-0.04650389030575752,
0.04601743444800377,
0.016359584406018257,
0.11416105180978775,
-0.056150276213884354,
-0.034725580364465714,
0.018775328993797302,
0.02365644834935665,
-0.04040318354964256,
0.0027054823003709316,
0.021451495587825775,
-0.019797801971435547,
-0.021011967211961746,
0.0020239928271621466,
0.05098370835185051,
-0.04568975418806076,
0.00042719129123724997,
0.055060975253582,
-0.014314250089228153,
0.04795657843351364,
-0.04296119883656502,
-0.016888029873371124,
-0.0048201116733253,
-0.01253652386367321,
-0.02337159775197506,
0.0329151526093483,
-0.02215070091187954,
-0.026055019348859787,
-0.03514248505234718,
-0.03452760726213455,
0.03145734965801239,
0.07892433553934097,
0.012316052801907063,
-0.03145132213830948,
-0.03071281500160694,
0.020653460174798965,
0.05400461331009865,
0.02617182955145836,
-0.028305096551775932,
0.026756856590509415,
0.0484161414206028,
0.032498739659786224,
-0.018765762448310852,
0.04202134907245636,
-0.009117666631937027,
-0.030940119177103043,
-0.03359386697411537,
0.029088113456964493,
-0.011005813255906105,
-0.024190284311771393,
0.03287414088845253,
0.04619195684790611,
-0.0007034098380245268,
-0.036080967634916306,
-0.0281294547021389,
0.06789138168096542,
-0.024734359234571457,
-0.001977822044864297,
0.017053725197911263,
-0.0029208145570009947,
-0.013642196543514729,
0.04863899201154709,
-0.027232781052589417,
-0.004784088581800461,
-0.04912053421139717,
-0.017952067777514458,
0.015149813145399094,
0.005064706318080425,
0.06420085579156876,
0.03869021683931351,
-0.012768949382007122,
0.09629209339618683,
-0.04705389216542244,
0.010120426304638386,
-0.07219822704792023,
-0.06644055992364883,
-0.008949195966124535,
0.04381997138261795,
0.05840084329247475,
0.054594751447439194,
-0.008519520983099937,
-0.047796592116355896,
0.019176648929715157,
0.07370927184820175,
0.05254757031798363,
0.012935850769281387,
-0.02612483687698841,
-0.011092640459537506,
0.0598989762365818,
0.05129076540470123,
-0.03947834670543671,
-0.04573672637343407,
0.009111185558140278,
0.04306388646364212,
-0.013948183506727219,
0.011348141357302666,
-0.019810635596513748,
0.024896439164876938,
-0.04152485728263855,
-0.04613715037703514,
0.0550415962934494,
0.013615175150334835,
0.0029475500341504812,
0.05711029842495918,
-0.016541199758648872,
0.0028075403533875942,
0.018489351496100426,
0.02434512786567211,
0.014044789597392082,
-0.044625066220760345,
-0.004206325393170118,
0.018972298130393028,
0.060021404176950455,
-0.040825895965099335,
0.05080200359225273,
0.011964143253862858,
0.015127940103411674,
0.025983748957514763,
-0.019969217479228973,
0.040640898048877716,
0.037663500756025314,
0.01326384674757719,
-0.01751376874744892,
0.040891923010349274,
0.007271612528711557,
0.03776326775550842,
0.051369842141866684,
0.009018832817673683,
0.05365554243326187,
0.02202266827225685,
0.03868274763226509,
0.07981545478105545,
0.02709265425801277,
0.03591812029480934,
0.04846883937716484,
0.0678642988204956,
0.02774590253829956,
-0.024164754897356033,
0.0578116737306118,
-0.034518688917160034,
0.005524586886167526,
-0.043431010097265244,
0.013020306825637817,
0.0032657752744853497,
0.01239796169102192,
0.02051079086959362,
0.007564289961010218,
-0.01595744676887989,
0.013147028163075447,
0.013347520492970943,
0.0037952044513076544,
0.05384707823395729,
0.007128462661057711,
0.0165706817060709,
-0.01682736910879612,
-0.05099549889564514,
0.006496356334537268,
-0.07276009768247604,
-0.05899938568472862,
-0.011176480911672115,
-0.021973099559545517,
0.012420304119586945,
-0.0957709327340126,
-0.0558507964015007,
-0.08343108743429184,
-0.0025740335695445538,
0.04416606202721596,
0.0348091647028923,
-0.011653766967356205,
-0.03158381208777428,
0.030222643166780472,
-0.04029393568634987,
-0.05354238301515579,
-0.053784001618623734,
-0.037879541516304016,
-0.04509425535798073,
-0.07255195081233978,
0.03699631989002228,
0.010004522278904915,
0.03379802405834198,
0.01205787155777216,
0.0027944939211010933,
-0.024775909259915352,
-0.027728227898478508,
0.05725546181201935,
0.059499725699424744,
-0.04397488385438919,
-0.033370666205883026,
0.006302494555711746,
-0.0202629417181015,
0.013413061387836933,
-0.0029004111420363188,
-0.023218723013997078,
0.07255663722753525,
0.0805448517203331,
0.007062666118144989,
0.03027324005961418,
-0.011612221598625183,
-0.04332853853702545,
-0.07123512774705887,
-0.02294706180691719,
-0.034960079938173294,
-0.0036541728768497705,
-0.029474273324012756,
-0.05325241759419441,
-0.02788720466196537,
-0.037229396402835846,
-0.006074097938835621,
-0.015299121849238873,
0.013534203171730042,
0.004854829516261816,
0.033547885715961456,
0.026850271970033646,
0.05203542485833168,
-0.0297725610435009,
-0.007488188333809376,
0.07844216376543045,
0.002908795839175582,
0.002333101350814104,
-0.09800512343645096,
-0.005437721032649279,
0.01845892332494259,
0.03235764801502228,
0.012523503042757511,
-0.0209453534334898,
0.07218240201473236,
-0.00029497346258722246,
0.011287241242825985,
-0.01013108529150486,
-0.00530794495716691,
-0.04919079691171646,
0.016586583107709885,
0.017888618633151054,
-0.016913464292883873,
-0.05428130552172661,
-0.037106990814208984,
0.007485492154955864,
0.031462863087654114,
-0.05957943573594093,
-0.048514507710933685,
-0.006241436116397381,
0.02351653017103672,
0.01449101883918047,
-0.021490685641765594,
-0.051178351044654846,
-0.01122428197413683,
-0.04614478722214699,
-0.03753145411610603,
-0.018776744604110718,
-0.010773819871246815,
0.029158877208828926,
0.03509542718529701,
0.033303435891866684,
-0.02973518893122673,
0.028058962896466255,
0.02320029027760029,
0.05200125277042389,
0.008759322576224804,
-0.061267953366041183,
0.0391182042658329,
-0.019539203494787216,
0.024548672139644623,
0.008520008996129036,
-0.02747083455324173,
-0.03920843079686165,
-0.0732644721865654,
0.008790972642600536,
0.0022020742762833834,
0.01316551398485899,
-0.009756260551512241,
0.04963618889451027,
0.0012170610716566443,
-0.011971286498010159,
-0.020905373618006706,
0.007092392072081566,
0.021117305383086205,
-0.030973633751273155,
0.05584564432501793,
-0.01573633961379528,
0.034557241946458817,
-0.06448251008987427,
0.017665544524788857,
-0.03674619272351265,
-0.028385097160935402,
-0.008000453934073448,
0.05415704473853111,
0.027138601988554,
0.04122700169682503,
0.07327629625797272,
0.0318957157433033,
-0.04950924962759018,
0.04673527926206589,
0.04381900280714035,
0.0032156272791326046,
-0.04232555627822876,
-0.017212126404047012,
-0.022194020450115204,
-0.021506594493985176,
-0.0038562973495572805,
-0.02143181301653385,
0.014235074631869793,
0.03570226579904556,
0.0057341367937624454,
-0.02417774125933647,
0.007289542350918055,
-0.01551940105855465,
-0.03875310719013214,
-0.07438181340694427,
-0.02436142973601818,
0.01384182833135128,
-0.030374139547348022,
0.03427405655384064,
0.051107946783304214,
0.014395489357411861,
0.06706392019987106,
0.03561065346002579,
-0.016899473965168,
-0.018784718587994576,
0.04061681032180786,
0.039698805660009384,
-0.05380960553884506,
-0.057170093059539795,
-0.04488390311598778,
0.03897101432085037,
0.06446018815040588,
0.003707114839926362,
-0.07430830597877502,
0.008664038963615894,
0.06427937746047974,
-0.03841838613152504,
0.05470605567097664,
-0.009713037870824337,
0.05601856857538223,
0.07066872715950012,
0.0011977560352534056,
0.01668618991971016,
-0.013656044378876686,
0.0051032425835728645,
-0.01588081382215023,
0.03507209196686745,
-0.04468504339456558,
-0.05414878949522972,
-0.04151386022567749,
0.031710945069789886,
0.02667500451207161,
0.038380175828933716,
0.04019559547305107,
-0.039455920457839966,
-0.045029208064079285,
0.0327298678457737,
0.03737172856926918,
-0.04947963356971741,
0.009782165288925171,
0.02569045126438141,
0.051379021257162094,
-0.058488812297582626,
-0.025335222482681274,
-0.04517265409231186,
-0.007309973239898682,
0.03900153562426567,
0.006220960523933172,
-0.04512031748890877,
-0.06407475471496582,
0.015188908204436302,
-0.020376455038785934,
-0.046603623777627945,
-0.0701957643032074,
0.02749992161989212,
-0.011920314282178879,
-0.025452440604567528,
0.024260831996798515,
0.006870717741549015,
0.03755127638578415,
0.059167131781578064,
-0.009722753427922726,
-0.002881039632484317,
-0.04705116152763367,
0.022353267297148705,
-0.03159364312887192,
-0.010867863893508911,
-0.01639639213681221,
-0.02630104497075081,
-0.019168958067893982,
-0.024018414318561554,
-0.06239917874336243,
-0.053772956132888794,
-0.004802287556231022,
0.024501480162143707,
-0.0026213685050606728,
0.0002692921261768788,
-0.006238974165171385,
0.030325355008244514,
-0.0313633494079113,
-0.02917485497891903,
-0.01254008524119854,
-0.027951473370194435,
-0.06074683368206024,
-0.05928134545683861,
-0.005543242208659649,
0.013350851833820343,
0.027614383026957512,
0.018857646733522415,
0.015411809086799622,
0.0062097650952637196,
-0.0012781472178176045,
-0.02591361664235592,
0.010996934026479721,
0.006439622957259417,
-0.03951947018504143,
-0.027340993285179138,
0.029853224754333496,
0.012634878046810627,
0.0445394292473793,
-0.028626451268792152,
0.05531114712357521,
0.02793361432850361,
-0.022524813190102577,
-0.013774831779301167,
0.037029415369033813,
0.01394276600331068,
-0.08603914082050323,
-0.03290259838104248,
-0.023921994492411613,
-0.03829795494675636,
0.04189968481659889,
-0.028798380866646767,
-0.032552655786275864,
0.030762668699026108,
0.02784259244799614,
0.04934926703572273,
-0.018790101632475853,
-0.026341034099459648,
0.03367237001657486,
-0.02409164421260357,
0.03897950425744057,
-0.06042862683534622,
0.04033459722995758,
-0.03183649480342865,
0.0025788694620132446,
-0.02021718956530094,
-0.002600372303277254,
-0.0561382919549942,
0.01598421111702919,
-0.02893289364874363,
-0.018280062824487686,
-0.009767814539372921,
0.027419552206993103,
-0.020273542031645775,
0.026729563251137733,
-0.04090483859181404,
0.018292447552084923,
-0.024737147614359856,
0.04639749601483345,
-0.05379543825984001,
-0.014291420578956604,
-0.02723572961986065,
0.024407321587204933,
-0.030666332691907883,
-0.0138368159532547,
0.014020485803484917,
-0.04076091945171356,
0.03981822356581688,
0.030991392210125923,
0.027569755911827087,
0.035373132675886154,
-0.020876338705420494,
0.01745683327317238,
0.02389330230653286,
-0.060001783072948456,
-0.03186191990971565,
-0.00873622391372919,
0.018177200108766556,
-0.02400892786681652,
0.047989651560783386,
0.026271307840943336,
-0.05564618483185768,
-0.05326695367693901,
0.05119554325938225,
0.0008728071697987616,
-0.014170627109706402,
0.0045980350114405155,
0.021442484110593796,
0.02289130538702011,
0.04551098868250847,
-0.0317402258515358,
-0.03119061514735222,
0.003834928385913372,
-0.015367674641311169,
0.027471235021948814,
-0.009504619985818863,
0.02808612398803234,
-0.005368150305002928,
-0.031054826453328133,
-0.03654225543141365,
0.07200846821069717,
0.019085975363850594,
0.010580130852758884,
-0.011343596503138542,
-0.04999871551990509,
0.030231012031435966,
0.001618963317014277,
-0.035684749484062195,
-0.0027799541130661964,
0.017536481842398643,
-0.0360444113612175,
0.07674610614776611,
-0.010868909768760204,
0.020470483228564262,
0.06027153506875038,
0.008881894871592522,
-0.029198266565799713,
0.05737392231822014,
-0.02076106332242489,
-0.012055585160851479,
0.04878738522529602,
-0.06227662041783333,
-0.004248386714607477,
-0.04713258892297745,
0.08204446732997894,
-0.06611756980419159,
0.05199258029460907,
0.04994615167379379,
-0.00019812611571978778,
0.04421193525195122,
-0.024652350693941116,
-0.031711459159851074,
0.0305678378790617,
-0.05023813247680664,
0.07861192524433136,
0.00936847273260355,
-0.04665626212954521,
0.05041756480932236,
0.014358588494360447,
-0.049582187086343765,
0.014601237140595913,
0.04880683496594429,
0.022978713735938072,
0.023600585758686066,
0.05101979151368141,
-0.044783398509025574,
0.014084522612392902,
-0.06388506293296814,
0.03185058757662773,
-0.05629714950919151,
-0.01876201294362545,
0.027264723554253578,
-0.035052090883255005,
-0.00694576371461153,
0.04462113976478577,
-0.02827795036137104,
-0.007930031977593899,
0.03602876886725426,
-0.07182860374450684,
-0.033020611852407455,
0.0014547365717589855,
0.010769851505756378,
-0.041453104466199875,
0.009493494406342506,
-0.04532643035054207,
0.013748539611697197,
0.009175888262689114,
-0.004522427450865507,
-0.028861254453659058,
0.003900936571881175,
0.022668849676847458,
-0.053350698202848434,
-0.04682909697294235,
0.035482726991176605,
-0.019804975017905235,
-0.024426108226180077,
0.022955600172281265,
-0.013640324585139751,
0.007481194566935301,
0.02774345688521862,
0.007618993520736694,
0.013009310699999332,
-0.026810964569449425,
0.0028049959801137447,
-0.01186506450176239,
0.029410818591713905,
0.023299237713217735,
-0.01137566938996315,
0.023254550993442535,
0.03664720803499222,
0.040167033672332764,
-0.022070154547691345,
-0.05253903567790985,
-0.0323769748210907,
0.032311372458934784,
-0.0326068215072155,
-0.007695038337260485,
-0.01837880164384842,
-0.06428476423025131,
-0.02720903605222702,
0.01228325255215168,
-0.015725690871477127,
0.04474277049303055,
-0.050509944558143616,
0.03316500782966614,
0.054961204528808594,
-0.021244782954454422,
-0.05485386401414871,
-0.08589108288288116,
-0.018656857311725616,
-0.0453939214348793,
0.021624024957418442,
0.03940247371792793,
-0.029556861147284508,
0.007378360256552696,
-0.04396709427237511,
-0.04157229885458946,
0.04002271592617035,
0.037917185574769974,
-0.06643456965684891,
0.0717916339635849,
0.0468195341527462,
-0.04519399255514145,
-0.0011393488384783268,
0.0063130795024335384,
-0.03294461593031883,
0.021555328741669655,
0.03151268884539604,
0.0027920487336814404,
0.020146405324339867,
0.07509926706552505,
-0.03317181020975113,
-0.029269371181726456,
-0.06528137624263763,
-0.032057881355285645,
-0.030786575749516487,
0.014077858068048954,
0.07629445195198059
] |
bert-base-german-dbmdz-cased | [
"pytorch",
"jax",
"bert",
"fill-mask",
"de",
"transformers",
"license:mit",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 1,814 | 2019-09-25T16:48:39Z | ---
language: de
license: mit
---
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. | [
-0.048520587384700775,
-0.01363783422857523,
-0.021567007526755333,
0.04094906896352768,
0.030024362727999687,
0.02876911871135235,
-0.017450902611017227,
-0.015293032862246037,
-0.03592192009091377,
0.055546943098306656,
0.011228273622691631,
-0.02746684104204178,
0.02676054835319519,
0.036746613681316376,
-0.00989691261202097,
-0.001530660898424685,
0.028132058680057526,
0.006049494259059429,
-0.056559860706329346,
-0.009297195822000504,
-0.004548945464193821,
0.0035648809280246496,
-0.0042398106306791306,
0.0409981906414032,
0.018886219710111618,
-0.000617217505350709,
-0.0210827998816967,
0.05443386733531952,
0.01531425304710865,
-0.0566616915166378,
-0.01903463341295719,
-0.028293883427977562,
-0.038729552179574966,
-0.05401927977800369,
-0.0342058427631855,
-0.006004734896123409,
0.027993803843855858,
-0.006834970787167549,
0.027743523940443993,
0.03470023721456528,
-0.027211394160985947,
0.023746510967612267,
-0.003792840987443924,
-0.027506547048687935,
0.05190863832831383,
0.01865008845925331,
-0.04271741211414337,
-0.046944599598646164,
0.036565691232681274,
-0.042343128472566605,
-0.06460556387901306,
-0.06372285634279251,
-0.030753416940569878,
0.01430570799857378,
0.024324558675289154,
-0.02411786839365959,
-0.04399879649281502,
0.008019271306693554,
0.059382643550634384,
-0.0536515936255455,
-0.037484291940927505,
0.003822404658421874,
-0.07133319228887558,
0.0026294465642422438,
0.0400858037173748,
-0.0299846138805151,
0.0077767930924892426,
-0.008541411720216274,
0.04609473794698715,
-0.013750765472650528,
0.06107286363840103,
-0.010074817575514317,
0.009126249700784683,
-0.06986534595489502,
-0.04127669706940651,
-0.02984006516635418,
0.04402860626578331,
0.04244609177112579,
-0.048904310911893845,
0.05951166898012161,
0.013614598661661148,
-0.01170269027352333,
0.04031595587730408,
-0.0405607745051384,
-0.05031268298625946,
0.0446954183280468,
-0.026749633252620697,
-0.007821058854460716,
-0.008469881489872932,
0.020763758569955826,
-0.026939935982227325,
-0.031041795387864113,
-0.007579791825264692,
-0.032099463045597076,
-0.00030471020727418363,
0.01801641844213009,
0.03512872755527496,
-0.02525133080780506,
0.021232685074210167,
0.045302022248506546,
0.00846068374812603,
0.0561000294983387,
-0.014300283044576645,
0.039980631321668625,
-0.004261530004441738,
-0.006800278555601835,
0.0035436630714684725,
-0.035489849746227264,
-0.025858353823423386,
0.005427578464150429,
0.03973668813705444,
-0.031053904443979263,
-0.02817409113049507,
0.07273820787668228,
-0.013940360397100449,
-0.009773166850209236,
0.0769462138414383,
-0.00856141746044159,
-0.03915400803089142,
-0.059327974915504456,
0.052221715450286865,
-0.00019967382831964642,
-0.01246667467057705,
0.027916954830288887,
-0.07883045077323914,
-0.003073351690545678,
-0.05558914691209793,
-0.029795754700899124,
0.0002949335321318358,
-0.0007339114090427756,
-0.016758408397436142,
0.07244384288787842,
0.039159126579761505,
-0.08078448474407196,
0.010083667002618313,
0.0085594542324543,
-0.030621524900197983,
0.05202513933181763,
0.006219312082976103,
0.11887382715940475,
-0.03691193833947182,
-0.029656371101737022,
0.011068933643400669,
0.014983534812927246,
-0.042033497244119644,
0.002109195338562131,
0.026760516688227654,
-0.01409006305038929,
-0.013343353755772114,
-0.015583434142172337,
0.04032334312796593,
-0.03960314020514488,
0.006594215054064989,
0.06059432402253151,
-0.025335155427455902,
0.025286965072155,
-0.036024563014507294,
-0.02225063182413578,
-0.016892733052372932,
-0.0021390567999333143,
-0.05814206600189209,
0.038455553352832794,
-0.022022442892193794,
-0.02978893741965294,
-0.028155691921710968,
-0.054109957069158554,
0.02305774949491024,
0.0754401907324791,
-0.006890378426760435,
-0.024973472580313683,
-0.035541728138923645,
0.018268311396241188,
0.04342102259397507,
0.014876912347972393,
-0.049931760877370834,
0.0319007933139801,
0.05642048269510269,
0.017498679459095,
-0.00917886570096016,
0.06050173565745354,
-0.011327657848596573,
-0.0410279706120491,
-0.05375733971595764,
0.02618422731757164,
0.013934268616139889,
-0.04119892418384552,
0.029330957680940628,
0.06202061101794243,
-0.007568885572254658,
-0.06866380572319031,
-0.012392299249768257,
0.04330768808722496,
-0.03340654820203781,
0.000007441128218488302,
0.04158724844455719,
-0.002111886627972126,
-0.028443753719329834,
0.040920764207839966,
-0.005370896775275469,
0.007227437105029821,
-0.029901809990406036,
0.01599370688199997,
0.013600287958979607,
0.037040673196315765,
0.0616023950278759,
0.04718317836523056,
-0.022317375987768173,
0.08288197219371796,
-0.04690971225500107,
-0.0014750505797564983,
-0.06640642881393433,
-0.04106294363737106,
-0.010662226006388664,
0.06223279610276222,
0.06747208535671234,
0.03781918063759804,
-0.008185252547264099,
-0.049457840621471405,
0.042894359678030014,
0.08720126748085022,
0.04654133319854736,
-0.010610791854560375,
-0.028976384550333023,
-0.01982656493782997,
0.05765004828572273,
0.033401038497686386,
-0.06969830393791199,
-0.03809572756290436,
-0.002488086000084877,
0.024748466908931732,
-0.02406206540763378,
-0.0023113423958420753,
-0.01776600442826748,
0.008446109481155872,
-0.021759632974863052,
-0.06070687621831894,
0.02316669002175331,
0.021995630115270615,
0.003600049065425992,
0.013465525582432747,
-0.005159307736903429,
-0.0009512305841781199,
0.007217163685709238,
0.03516971692442894,
0.003305320395156741,
-0.07808174937963486,
0.01569594442844391,
0.008251728489995003,
0.0744067132472992,
-0.03447874262928963,
0.05272362381219864,
0.0031070623081177473,
0.037617459893226624,
0.017468390986323357,
-0.0229069571942091,
0.020910385996103287,
0.052759453654289246,
-0.002138465642929077,
-0.053844597190618515,
0.04124002158641815,
0.018451252952218056,
0.026980895549058914,
0.05426667630672455,
0.003981121350079775,
0.05555199459195137,
0.016877513378858566,
0.035520635545253754,
0.05679167062044144,
0.04139591008424759,
0.0365835465490818,
-0.012209591455757618,
0.06670229136943817,
-0.02067928947508335,
-0.011366989463567734,
0.06545065343379974,
-0.02581755258142948,
0.014426329173147678,
-0.051233191043138504,
0.004227929282933474,
0.0030891846399754286,
-0.020560337230563164,
0.03219923377037048,
-0.017622072249650955,
-0.010931534692645073,
0.00397280789911747,
0.00748562254011631,
0.010912202298641205,
0.04973075911402702,
0.0011232614051550627,
0.01754928007721901,
-0.014970851130783558,
-0.025586619973182678,
0.01645204983651638,
-0.07689570635557175,
-0.041495390236377716,
-0.009718398563563824,
-0.037330057471990585,
0.01630701683461666,
-0.07109484076499939,
-0.010690051130950451,
-0.06529894471168518,
-0.002051310380920768,
0.048116154968738556,
0.007150337100028992,
0.0010451676789671183,
-0.022115284577012062,
0.026862921193242073,
-0.014175278134644032,
-0.042839061468839645,
-0.052210960537195206,
-0.04199613630771637,
-0.04471417888998985,
-0.0690324530005455,
0.007688472513109446,
0.0032630176283419132,
0.024276698008179665,
0.005396945867687464,
0.034101203083992004,
0.002124657155945897,
-0.03030402585864067,
0.04410794377326965,
0.04157450422644615,
-0.0475526824593544,
-0.04751523584127426,
-0.0030796669889241457,
-0.01468492578715086,
0.014496455900371075,
-0.010583676397800446,
-0.025084350258111954,
0.08814668655395508,
0.05862048640847206,
0.0029491970781236887,
0.02757173962891102,
0.0217429306358099,
-0.03832545503973961,
-0.04465218260884285,
-0.01710246130824089,
-0.03427886217832565,
-0.02407940663397312,
-0.04127447307109833,
-0.038497194647789,
-0.03849092870950699,
-0.050073809921741486,
0.02400115877389908,
-0.02677055262029171,
0.010680118575692177,
0.019578445702791214,
0.027694687247276306,
0.018411211669445038,
0.030032087117433548,
-0.0032915431074798107,
-0.008095405995845795,
0.07900884747505188,
0.011352038942277431,
-0.028924399986863136,
-0.07838007807731628,
-0.047047924250364304,
0.03465108200907707,
0.037915389984846115,
0.019509758800268173,
-0.03483651950955391,
0.05939232185482979,
0.019178161397576332,
0.005652544554322958,
-0.0071258326061069965,
-0.025717660784721375,
-0.013998236507177353,
0.0077229635789990425,
-0.0077777220867574215,
-0.0056764474138617516,
-0.04463222622871399,
-0.04094170033931732,
0.03615044429898262,
0.04105450585484505,
-0.04745646193623543,
-0.0450938455760479,
-0.018151305615901947,
0.03417513519525528,
0.04091738536953926,
-0.01120125874876976,
-0.04679238051176071,
0.0006751481560058892,
-0.03769085556268692,
-0.03309094160795212,
-0.006036772858351469,
-0.002933440962806344,
0.015211701393127441,
0.042232245206832886,
0.019593462347984314,
-0.053981389850378036,
0.006475201807916164,
0.045939769595861435,
0.03754778578877449,
0.02837851457297802,
-0.055874552577733994,
0.025196680799126625,
-0.02293923683464527,
0.01573275215923786,
-0.005863288417458534,
-0.041490767151117325,
-0.04410899057984352,
-0.07437916845083237,
0.003576930845156312,
0.00018207618268206716,
0.0024063298478722572,
-0.005320132244378328,
0.058358363807201385,
-0.025395885109901428,
0.00031421962194144726,
0.020615961402654648,
-0.004978220909833908,
0.024865416809916496,
0.015840992331504822,
0.0710330605506897,
-0.03201892599463463,
0.02236357145011425,
-0.029850170016288757,
0.006309990305453539,
-0.024920986965298653,
-0.03082849830389023,
-0.0007904154481366277,
0.0632462427020073,
0.028626082465052605,
0.04699580371379852,
0.07876081764698029,
0.03178579360246658,
-0.066280297935009,
0.04524338245391846,
0.04765169695019722,
-0.013548211194574833,
-0.0429144911468029,
-0.015264483168721199,
-0.007872099056839943,
-0.03470052778720856,
0.014867180958390236,
-0.008663958869874477,
0.030747784301638603,
0.01943482831120491,
0.004247155971825123,
0.000896104087587446,
0.003674439387395978,
-0.0033900768030434847,
-0.03114752098917961,
-0.05779300630092621,
-0.02257414534687996,
0.01720823161303997,
-0.023366369307041168,
0.03626307472586632,
0.05946056544780731,
0.013743914663791656,
0.06330316513776779,
0.023768585175275803,
-0.03345470130443573,
-0.02974763885140419,
0.034483298659324646,
0.02031431719660759,
-0.03193313628435135,
-0.0703725665807724,
-0.05240972340106964,
0.02816607989370823,
0.06358684599399567,
0.02650611847639084,
-0.07172103971242905,
0.02545623853802681,
0.05227253586053848,
-0.039387863129377365,
0.04792744293808937,
-0.03275764361023903,
0.053170204162597656,
0.06238425523042679,
-0.015031530521810055,
0.039422329515218735,
-0.024616023525595665,
0.000460578128695488,
0.0010935504687950015,
0.017254315316677094,
-0.05206440016627312,
-0.048510316759347916,
-0.03817633166909218,
0.00747629813849926,
0.024989493191242218,
0.027021393179893494,
0.04294881224632263,
-0.05255759879946709,
-0.04420582205057144,
0.020479347556829453,
0.029875505715608597,
-0.05384843796491623,
-0.0015523380134254694,
0.049845583736896515,
0.02587883174419403,
-0.03602162003517151,
-0.015337866730988026,
-0.03899325802922249,
0.0009038985008373857,
0.04069031402468681,
-0.009493812918663025,
-0.04072142392396927,
-0.04393790662288666,
0.01972292549908161,
-0.017790792509913445,
-0.04526686295866966,
-0.086590975522995,
0.023474199697375298,
-0.00988733395934105,
-0.046118009835481644,
0.04608038440346718,
0.03645945340394974,
0.033440299332141876,
0.059892989695072174,
-0.0066513060592114925,
-0.013110138475894928,
-0.04223373904824257,
0.042129676789045334,
-0.025805212557315826,
-0.021512089297175407,
-0.016028711572289467,
-0.040183186531066895,
-0.01971377246081829,
-0.012384697794914246,
-0.04117302969098091,
-0.04213347285985947,
0.0010716990800574422,
0.011559071019291878,
0.0017420572694391012,
0.009674432687461376,
-0.018586192280054092,
0.02201354131102562,
-0.03406763821840286,
-0.026745714247226715,
-0.0034842982422560453,
-0.02063041739165783,
-0.0750126838684082,
-0.04652678966522217,
-0.0006158871110528708,
-0.00918037723749876,
0.020987898111343384,
0.012024839408695698,
0.02583790197968483,
0.010272199288010597,
-0.0028940485790371895,
-0.04363531619310379,
0.02089003100991249,
-0.0016101422952488065,
-0.04756889119744301,
-0.025818634778261185,
0.014871582388877869,
0.012791438959538937,
0.049333877861499786,
-0.04933442175388336,
0.02658466435968876,
0.023653922602534294,
-0.040499430149793625,
-0.010624947026371956,
0.05251021310687065,
0.004092714283615351,
-0.0699346587061882,
-0.04124949872493744,
-0.03832875192165375,
-0.03361601009964943,
0.041688695549964905,
-0.0700630396604538,
-0.04678384214639664,
0.039852168411016464,
0.05067770555615425,
0.03686804696917534,
0.0010272307554259896,
-0.021957220509648323,
0.04709300026297569,
-0.02758055180311203,
0.016442542895674706,
-0.04945451766252518,
0.044130366295576096,
-0.029806524515151978,
0.03139692544937134,
-0.007242336869239807,
-0.006776631344109774,
-0.03783456236124039,
0.035784680396318436,
-0.03855418041348457,
-0.026074334979057312,
0.002292645862326026,
0.018950261175632477,
0.006329366005957127,
0.05063258484005928,
-0.015027882531285286,
0.008644833229482174,
-0.003400475485250354,
0.04294544830918312,
-0.0413317009806633,
0.0034980333875864744,
-0.031913693994283676,
0.033078763633966446,
-0.0715913400053978,
-0.015380429103970528,
0.0176928099244833,
-0.055125851184129715,
0.030957527458667755,
0.01984577625989914,
0.010698030702769756,
0.006011103745549917,
-0.015152601525187492,
-0.013735270127654076,
0.02460082434117794,
-0.054368890821933746,
-0.012891366146504879,
-0.017014790326356888,
0.028625942766666412,
0.008935564197599888,
0.07429493218660355,
0.025313984602689743,
-0.045548610389232635,
-0.0621395967900753,
0.03185912221670151,
0.01868722029030323,
-0.014393556863069534,
0.014890202321112156,
0.028535271063447,
0.021392961964011192,
0.02787094935774803,
-0.024389073252677917,
-0.005275859031826258,
-0.0006693979375995696,
-0.02881418727338314,
-0.010787508450448513,
0.01021145936101675,
0.00990537740290165,
0.0290935467928648,
-0.01710321567952633,
-0.03930000588297844,
0.0943036749958992,
0.0033950854558497667,
0.034613706171512604,
-0.005885246675461531,
-0.04599273204803467,
0.03323984146118164,
0.028947262093424797,
-0.01888340525329113,
0.005086936987936497,
0.02644461765885353,
-0.058544401079416275,
0.061305493116378784,
0.006550165358930826,
0.013243992812931538,
0.05766090005636215,
0.019628971815109253,
-0.014356039464473724,
0.06366303563117981,
-0.03372049704194069,
-0.005654823035001755,
0.0476103350520134,
-0.06730495393276215,
-0.011549127288162708,
-0.02542085014283657,
0.06039362773299217,
-0.06628512591123581,
0.06126212701201439,
0.05705713480710983,
-0.0062341233715415,
0.03315512835979462,
-0.05602574348449707,
-0.029658295214176178,
0.018997130915522575,
-0.04603280872106552,
0.03518328815698624,
-0.010013184510171413,
-0.056444499641656876,
0.05456952750682831,
-0.0007785646012052894,
-0.05815377086400986,
0.03835837543010712,
0.02154613845050335,
0.02519909292459488,
0.022942323237657547,
0.008402892388403416,
-0.05833975225687027,
0.03859146311879158,
-0.044011734426021576,
0.04907149448990822,
-0.07027745991945267,
-0.013155234046280384,
0.03133995831012726,
-0.03569192811846733,
0.0027009081095457077,
0.02828184701502323,
-0.013468795455992222,
-0.0027451750356703997,
0.042097415775060654,
-0.031879596412181854,
-0.04285048320889473,
0.009635201655328274,
0.0017763563664630055,
-0.011714018881320953,
-0.0067247990518808365,
-0.04973066598176956,
0.005502822808921337,
0.022007396444678307,
-0.019044578075408936,
-0.015373745001852512,
0.0007738448912277818,
0.043785303831100464,
-0.0805337056517601,
-0.04706180468201637,
0.023421604186296463,
-0.0030880048871040344,
-0.03514508157968521,
0.03813091292977333,
-0.0012095737038180232,
-0.015823889523744583,
0.02492641471326351,
0.022277502343058586,
0.006917084101587534,
-0.005133236292749643,
-0.010293250903487206,
0.010278006084263325,
0.009326658211648464,
0.03988821804523468,
-0.025897786021232605,
0.02999732457101345,
0.034914981573820114,
0.06219343841075897,
-0.018460938706994057,
-0.03759212791919708,
-0.035366494208574295,
0.018430251628160477,
-0.029822565615177155,
-0.001546200830489397,
-0.0163134578615427,
-0.0431380569934845,
-0.039977993816137314,
0.01306039560586214,
-0.021826162934303284,
0.0413777157664299,
-0.06195831298828125,
0.05027111619710922,
0.04919489845633507,
-0.015593724325299263,
-0.057070840150117874,
-0.08227410167455673,
-0.02271932177245617,
-0.02841363660991192,
0.022816194221377373,
0.018362870439887047,
-0.042279116809368134,
0.015574892051517963,
-0.02102421224117279,
-0.03497180715203285,
0.02046916075050831,
0.01610453426837921,
-0.05537966266274452,
0.08515970408916473,
0.030539128929376602,
-0.026037132367491722,
-0.015482614748179913,
0.02191154658794403,
-0.05021645128726959,
0.03447158634662628,
0.02263190597295761,
0.009848970919847488,
0.01714857667684555,
0.010123785585165024,
-0.028608478605747223,
-0.03690984100103378,
-0.059812281280756,
-0.04350532218813896,
-0.02722238004207611,
0.007821254432201385,
0.0672241598367691
] |
bert-base-german-dbmdz-uncased | [
"pytorch",
"jax",
"safetensors",
"bert",
"fill-mask",
"de",
"transformers",
"license:mit",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 68,305 | 2019-09-25T16:50:02Z | ---
language: de
license: mit
---
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.
| [
-0.04549082741141319,
-0.015838054940104485,
-0.02329784259200096,
0.03793869912624359,
0.026241527870297432,
0.02944178320467472,
-0.01881193369626999,
-0.014970763586461544,
-0.03462523967027664,
0.05449669808149338,
0.015074321068823338,
-0.028820615261793137,
0.02868707664310932,
0.03749996796250343,
-0.010041245259344578,
-0.005020624492317438,
0.023574525490403175,
0.0020113668870180845,
-0.06274541467428207,
-0.005119768902659416,
-0.006831178907305002,
0.0040694777853786945,
-0.0038434520829468966,
0.04206250235438347,
0.018026726320385933,
-0.0032311321701854467,
-0.021377936005592346,
0.054572343826293945,
0.01690559647977352,
-0.05433095991611481,
-0.025776760652661324,
-0.030574262142181396,
-0.041285984218120575,
-0.05300996080040932,
-0.039028264582157135,
-0.01133248582482338,
0.026571502909064293,
-0.00104700424708426,
0.022804301232099533,
0.03232167661190033,
-0.024213576689362526,
0.026986051350831985,
-0.0036805043928325176,
-0.025743549689650536,
0.052571337670087814,
0.020017877221107483,
-0.0434131883084774,
-0.04770180955529213,
0.04163150116801262,
-0.046520672738552094,
-0.06556449085474014,
-0.06430847942829132,
-0.030369862914085388,
0.01253572478890419,
0.018330683931708336,
-0.018944421783089638,
-0.045654598623514175,
0.005940050818026066,
0.05934838578104973,
-0.051946528255939484,
-0.03629769757390022,
0.0064377388916909695,
-0.07415654510259628,
0.004643168766051531,
0.03762231394648552,
-0.028274424374103546,
0.004120744299143553,
-0.010153612121939659,
0.04423895105719566,
-0.015453018248081207,
0.05961509048938751,
-0.014011722058057785,
0.011201189830899239,
-0.06776842474937439,
-0.0411963053047657,
-0.031232187524437904,
0.043341170996427536,
0.04648261517286301,
-0.04927912726998329,
0.06148123741149902,
0.014953217469155788,
-0.015562531538307667,
0.03672599419951439,
-0.04336196929216385,
-0.05162324756383896,
0.0450749397277832,
-0.02305811084806919,
-0.009011647664010525,
-0.007018480449914932,
0.020628778263926506,
-0.024783365428447723,
-0.03271070122718811,
-0.004780650604516268,
-0.031197912991046906,
-0.0025439707096666098,
0.01701018586754799,
0.036224495619535446,
-0.01804243214428425,
0.019272929057478905,
0.04592413455247879,
0.00697293458506465,
0.05474184826016426,
-0.010414357297122478,
0.03770714998245239,
-0.0017639485886320472,
-0.007225384004414082,
0.010392569936811924,
-0.03734314441680908,
-0.025609737262129784,
0.001268103951588273,
0.03654139116406441,
-0.03046482987701893,
-0.029768940061330795,
0.06830455362796783,
-0.013982796110212803,
-0.011579876765608788,
0.07105834782123566,
-0.010715818032622337,
-0.03717198967933655,
-0.06083516404032707,
0.05006450042128563,
0.00044546721619553864,
-0.01575620286166668,
0.028678137809038162,
-0.07500716298818588,
-0.0017111455090343952,
-0.06061248853802681,
-0.03474925085902214,
0.0020503331907093525,
0.0013589562149718404,
-0.022084590047597885,
0.07506600022315979,
0.035649728029966354,
-0.07855400443077087,
0.011291589587926865,
0.0082540949806571,
-0.03113563172519207,
0.0530206523835659,
0.008276357315480709,
0.12383530288934708,
-0.03440968319773674,
-0.03209571912884712,
0.009912488050758839,
0.012592984363436699,
-0.04531385377049446,
-0.00149717612657696,
0.021211892366409302,
-0.016620460897684097,
-0.009156650863587856,
-0.023879053071141243,
0.03749321028590202,
-0.038477856665849686,
0.006498103495687246,
0.06443646550178528,
-0.026276573538780212,
0.02683846652507782,
-0.03913257643580437,
-0.019532011821866035,
-0.022065546363592148,
0.0034768914338201284,
-0.0587494783103466,
0.03913804888725281,
-0.018895206972956657,
-0.034777991473674774,
-0.02981935814023018,
-0.05427829176187515,
0.0234538521617651,
0.07322007417678833,
-0.0036932628136128187,
-0.026355773210525513,
-0.03605576604604721,
0.017383430153131485,
0.04159946367144585,
0.015153167769312859,
-0.04486444965004921,
0.038652777671813965,
0.05468981713056564,
0.020223528146743774,
-0.00904063694179058,
0.06267590075731277,
-0.008794059976935387,
-0.0449034608900547,
-0.050338368862867355,
0.02652665600180626,
0.014916803687810898,
-0.04224644973874092,
0.02135334350168705,
0.062207095324993134,
-0.0058638472110033035,
-0.06658898293972015,
-0.013550356030464172,
0.04139218479394913,
-0.031582579016685486,
-0.00024243829830083996,
0.0433247908949852,
-0.003844016697257757,
-0.026967190206050873,
0.04637138172984123,
-0.0016116118058562279,
0.00531084043905139,
-0.026578610762953758,
0.012129400856792927,
0.016359180212020874,
0.03595331311225891,
0.05867210030555725,
0.0406147725880146,
-0.024103369563817978,
0.08272470533847809,
-0.04569698125123978,
-0.0025468054227530956,
-0.06250523775815964,
-0.04280763864517212,
-0.009272054769098759,
0.06719116121530533,
0.06740021705627441,
0.03650832921266556,
-0.0061761243268847466,
-0.05477093532681465,
0.04146575927734375,
0.09017810970544815,
0.04402988776564598,
-0.011046303436160088,
-0.028844786807894707,
-0.01507835928350687,
0.06399941444396973,
0.03250386565923691,
-0.06924529373645782,
-0.03264437988400459,
0.0022730363998562098,
0.030601978302001953,
-0.026404518634080887,
-0.004566665273159742,
-0.01870691031217575,
0.0056396787986159325,
-0.02713862992823124,
-0.060628846287727356,
0.023187635466456413,
0.026376493275165558,
0.0019415230490267277,
0.012725543230772018,
0.0020488430745899677,
0.0013685849262401462,
0.011022057384252548,
0.03259654715657234,
0.00952005572617054,
-0.07247088104486465,
0.01636531390249729,
0.006360621191561222,
0.07833552360534668,
-0.03355691581964493,
0.04945359751582146,
0.002464727032929659,
0.033838607370853424,
0.01317153126001358,
-0.02773607335984707,
0.016556624323129654,
0.05131949111819267,
-0.00024051187210716307,
-0.057510457932949066,
0.0385577492415905,
0.018866458907723427,
0.02901100181043148,
0.055807411670684814,
0.0052535948343575,
0.05581964924931526,
0.018086200580000877,
0.03695391118526459,
0.05453423410654068,
0.04137848690152168,
0.034158337861299515,
-0.011348382569849491,
0.060987818986177444,
-0.01753976382315159,
-0.008360954001545906,
0.0668109804391861,
-0.024651911109685898,
0.014947633258998394,
-0.04946458712220192,
0.002979791024699807,
-0.0007166840368881822,
-0.025614166632294655,
0.037709787487983704,
-0.018851464614272118,
-0.011878831312060356,
0.004470233339816332,
0.010068204253911972,
0.008074043318629265,
0.04854859784245491,
0.0020036452915519476,
0.020211409777402878,
-0.01411793939769268,
-0.024600164964795113,
0.01459603849798441,
-0.07516563683748245,
-0.04086977243423462,
-0.015724293887615204,
-0.03844250738620758,
0.014208594337105751,
-0.06723202019929886,
-0.01066118199378252,
-0.061709944158792496,
-0.00012043010065099224,
0.05331289395689964,
0.0018399371765553951,
-0.0008850381709635258,
-0.024451974779367447,
0.026381321251392365,
-0.017459582537412643,
-0.04714876040816307,
-0.052788957953453064,
-0.040287651121616364,
-0.042069900780916214,
-0.06377789378166199,
0.00710663665086031,
0.0009850406786426902,
0.02335815690457821,
0.0031178826466202736,
0.03737449645996094,
-0.0008503943681716919,
-0.029710344970226288,
0.04838552698493004,
0.042404867708683014,
-0.042422160506248474,
-0.04916628077626228,
-0.003569051856175065,
-0.009863149374723434,
0.01566237024962902,
-0.0064344401471316814,
-0.027693254873156548,
0.09065649658441544,
0.06312641501426697,
0.008243264630436897,
0.022674500942230225,
0.021107489243149757,
-0.03594468906521797,
-0.043067846447229385,
-0.015887338668107986,
-0.04033280536532402,
-0.022264644503593445,
-0.03947490081191063,
-0.03801659122109413,
-0.04033612832427025,
-0.04397575184702873,
0.024907786399126053,
-0.023659085854887962,
0.010784423910081387,
0.02104143425822258,
0.0238200593739748,
0.01943369396030903,
0.02953306958079338,
-0.003269196953624487,
-0.011079225689172745,
0.07910216599702835,
0.011380190029740334,
-0.03219924867153168,
-0.07888387143611908,
-0.04919256269931793,
0.03320080414414406,
0.03894633427262306,
0.02014925517141819,
-0.03824814781546593,
0.0589219331741333,
0.022560929879546165,
-0.0003241487720515579,
0.00004321788946981542,
-0.02358044497668743,
-0.01755361445248127,
0.005524058360606432,
-0.011119709350168705,
0.0007412043632939458,
-0.04697816073894501,
-0.04229622706770897,
0.033158812671899796,
0.04564039036631584,
-0.04703747481107712,
-0.04419957846403122,
-0.020765211433172226,
0.03318267688155174,
0.04363543912768364,
-0.012246372178196907,
-0.04873456060886383,
0.00003774573633563705,
-0.0359441414475441,
-0.030875971540808678,
-0.0037025779020041227,
-0.008995824493467808,
0.013818861916661263,
0.043006908148527145,
0.025163797661662102,
-0.0536716990172863,
0.0035685249604284763,
0.04319699481129646,
0.03954493999481201,
0.03289932385087013,
-0.05002843588590622,
0.026254696771502495,
-0.021013479679822922,
0.014913481660187244,
-0.004836635198444128,
-0.03954431042075157,
-0.04263576492667198,
-0.07995197921991348,
-0.004479647614061832,
0.0008737698080949485,
0.004398522898554802,
-0.003716851118952036,
0.053721167147159576,
-0.022953588515520096,
-0.00181035534478724,
0.01858842372894287,
-0.0021335615310817957,
0.029478183016180992,
0.015775073319673538,
0.06858563423156738,
-0.03012915328145027,
0.024898411706089973,
-0.02812424674630165,
0.005566335748881102,
-0.024919724091887474,
-0.033294472843408585,
-0.003662228351458907,
0.06600237637758255,
0.023393521085381508,
0.052242863923311234,
0.07474565505981445,
0.02862722799181938,
-0.06321316957473755,
0.04640147462487221,
0.04929643124341965,
-0.010408991016447544,
-0.04227297753095627,
-0.014290500432252884,
-0.00592696713283658,
-0.03405687212944031,
0.009702347218990326,
-0.008857494220137596,
0.02043840102851391,
0.019101280719041824,
0.008873765356838703,
0.004288129508495331,
0.001623267075046897,
-0.005645608529448509,
-0.03095526061952114,
-0.06159909814596176,
-0.021840209141373634,
0.015451141633093357,
-0.023095427080988884,
0.033442843705415726,
0.05171582102775574,
0.010989019647240639,
0.06676038354635239,
0.02069167234003544,
-0.03574828803539276,
-0.033971693366765976,
0.032249048352241516,
0.021738948300480843,
-0.02990548126399517,
-0.06877250969409943,
-0.05459435284137726,
0.032508525997400284,
0.05954887717962265,
0.025337213650345802,
-0.07074352353811264,
0.02620898000895977,
0.051202304661273956,
-0.04550880193710327,
0.04921024665236473,
-0.031681228429079056,
0.056553129106760025,
0.061565130949020386,
-0.017259793356060982,
0.042035676538944244,
-0.022312847897410393,
0.003285233397036791,
0.007182328496128321,
0.011460667476058006,
-0.047253336757421494,
-0.0427398756146431,
-0.03450332581996918,
0.008667126297950745,
0.025492528453469276,
0.027458300814032555,
0.04345149174332619,
-0.05156559497117996,
-0.04707176238298416,
0.020223334431648254,
0.030904827639460564,
-0.056313902139663696,
-0.0008655841229483485,
0.053760141134262085,
0.028054824098944664,
-0.033824048936367035,
-0.02137940749526024,
-0.03851912543177605,
-0.0019051926210522652,
0.03642352670431137,
-0.006158488802611828,
-0.04049383103847504,
-0.04284456744790077,
0.021618032827973366,
-0.014331056736409664,
-0.04690255597233772,
-0.09155504405498505,
0.02270491234958172,
-0.009891337715089321,
-0.0472649522125721,
0.05315563082695007,
0.04165613278746605,
0.03226742148399353,
0.05937216430902481,
-0.009099009446799755,
-0.013790016062557697,
-0.03963816538453102,
0.03834887593984604,
-0.02353057637810707,
-0.02062356472015381,
-0.009844653308391571,
-0.03833946958184242,
-0.01753193326294422,
-0.010838978923857212,
-0.03912089765071869,
-0.040920160710811615,
0.0005669232923537493,
0.016432493925094604,
0.001314810593612492,
0.008679521270096302,
-0.016885917633771896,
0.01690743863582611,
-0.031991105526685715,
-0.030764732509851456,
-0.0032336139120161533,
-0.02172044664621353,
-0.07340244203805923,
-0.04829626902937889,
0.0007621725671924651,
-0.011689255945384502,
0.018413476645946503,
0.010830443352460861,
0.027763767167925835,
0.012965040281414986,
0.0012115314602851868,
-0.04311436414718628,
0.0216682031750679,
-0.004889820236712694,
-0.047055434435606,
-0.029135866090655327,
0.013525828719139099,
0.0064192828722298145,
0.04747550189495087,
-0.053135648369789124,
0.027615845203399658,
0.020317282527685165,
-0.041129108518362045,
-0.01399520505219698,
0.05124124512076378,
0.0036256674211472273,
-0.06661108136177063,
-0.04608863592147827,
-0.03579754754900932,
-0.04028034210205078,
0.04152080416679382,
-0.0666118785738945,
-0.044199295341968536,
0.03694648668169975,
0.049967750906944275,
0.03253393620252609,
-0.00002299069456057623,
-0.015249479562044144,
0.048826683312654495,
-0.026079276576638222,
0.014745828695595264,
-0.05293261632323265,
0.04443610459566116,
-0.03219830244779587,
0.032819002866744995,
-0.007705632597208023,
-0.010418186895549297,
-0.03645928576588631,
0.03626658767461777,
-0.03592902794480324,
-0.031196104362607002,
0.0030562151223421097,
0.023610983043909073,
0.007383482996374369,
0.04969486966729164,
-0.015227367170155048,
0.011386830359697342,
-0.004540793597698212,
0.040950000286102295,
-0.043518099933862686,
0.00005363846503314562,
-0.031238354742527008,
0.030460700392723083,
-0.06950075179338455,
-0.015591735951602459,
0.013476205058395863,
-0.056821245700120926,
0.030195482075214386,
0.020455431193113327,
0.009387875907123089,
0.005653100088238716,
-0.01766340062022209,
-0.011159543879330158,
0.02222951501607895,
-0.054107967764139175,
-0.013722917065024376,
-0.0181818138808012,
0.024958305060863495,
0.01133753452450037,
0.07448349893093109,
0.030491704121232033,
-0.047315604984760284,
-0.06224534288048744,
0.033957771956920624,
0.013376248069107533,
-0.012811743654310703,
0.0213935449719429,
0.02413192018866539,
0.014607059769332409,
0.02397862821817398,
-0.020196091383695602,
-0.005597501527518034,
-0.0008476328221149743,
-0.029630547389388084,
-0.012295075692236423,
0.008692975156009197,
0.01377104502171278,
0.028127703815698624,
-0.020612027496099472,
-0.03547844663262367,
0.0953824520111084,
0.008596829138696194,
0.03535826876759529,
-0.0009024900500662625,
-0.047482628375291824,
0.033807262778282166,
0.03235642984509468,
-0.016353711485862732,
0.0057007079012691975,
0.02495855838060379,
-0.05513206869363785,
0.05675007402896881,
0.005051753483712673,
0.014292190782725811,
0.057697709649801254,
0.02181289717555046,
-0.019363634288311005,
0.06472756713628769,
-0.03644450381398201,
-0.0030691034626215696,
0.04589925706386566,
-0.06788043677806854,
-0.014138040132820606,
-0.0296873040497303,
0.06470301747322083,
-0.0681450143456459,
0.057236239314079285,
0.05881872400641441,
-0.011370796710252762,
0.03472518548369408,
-0.05259682238101959,
-0.033342890441417694,
0.02037140354514122,
-0.04084376245737076,
0.03585880622267723,
-0.005855882540345192,
-0.06091781705617905,
0.06136254593729973,
0.002969574648886919,
-0.06116829067468643,
0.035787127912044525,
0.01983344368636608,
0.027406541630625725,
0.027109576389193535,
0.008944391272962093,
-0.06532358378171921,
0.03961782902479172,
-0.034534797072410583,
0.05095493420958519,
-0.069373719394207,
-0.012684335932135582,
0.03376685827970505,
-0.03576602786779404,
0.005179352592676878,
0.022465631365776062,
-0.01821809634566307,
0.0009708938887342811,
0.04303598403930664,
-0.02967330627143383,
-0.046597231179475784,
0.003429743694141507,
-0.0003052499087061733,
-0.004780524875968695,
-0.0030250069685280323,
-0.04950892552733421,
0.005211477633565664,
0.023285526782274246,
-0.015594339929521084,
-0.013256016187369823,
-0.0017112117493525147,
0.04770038649439812,
-0.07935557514429092,
-0.04617635905742645,
0.025991220027208328,
-0.00594968069344759,
-0.037825807929039,
0.03842785954475403,
0.001266647595912218,
-0.01610485650599003,
0.023236127570271492,
0.021367255598306656,
0.00981206726282835,
-0.005133394151926041,
-0.010700087063014507,
0.011720753274857998,
0.0018896247493103147,
0.040164314210414886,
-0.021588429808616638,
0.031958162784576416,
0.030615435913205147,
0.0583704337477684,
-0.016541069373488426,
-0.04118676856160164,
-0.034857749938964844,
0.021790726110339165,
-0.032343339174985886,
-0.0007898351177573204,
-0.01381108071655035,
-0.04292367771267891,
-0.04270698130130768,
0.005642434116452932,
-0.01691218465566635,
0.04206841066479683,
-0.06080704182386398,
0.049489885568618774,
0.04806928709149361,
-0.01291183102875948,
-0.05312298238277435,
-0.07629154622554779,
-0.025986220687627792,
-0.030993284657597542,
0.023665353655815125,
0.015626654028892517,
-0.04303662106394768,
0.018783515319228172,
-0.023175666108727455,
-0.03822266682982445,
0.019769132137298584,
0.013900656253099442,
-0.050815194845199585,
0.08818384259939194,
0.02603979781270027,
-0.026642179116606712,
-0.020747656002640724,
0.019390355795621872,
-0.04785202071070671,
0.036117229610681534,
0.017894906923174858,
0.007958631962537766,
0.01551048643887043,
0.00803297758102417,
-0.033055391162633896,
-0.0404045470058918,
-0.057937681674957275,
-0.04399029165506363,
-0.02582414634525776,
0.005609920714050531,
0.07036063820123672
] |
bert-base-multilingual-cased | [
"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",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4,749,504 | 2018-11-30T13:36:24Z | ---
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
---
# 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}
}
```
| [
-0.01246543601155281,
-0.013974811881780624,
-0.011870586313307285,
0.06439980119466782,
0.026871293783187866,
0.022756872698664665,
0.013229860924184322,
-0.00970689207315445,
-0.041041050106287,
0.044759251177310944,
-0.003977108281105757,
-0.03387429937720299,
0.01188259944319725,
0.020985715091228485,
-0.026506051421165466,
0.016086788848042488,
-0.003240291029214859,
-0.023323727771639824,
-0.07855706661939621,
-0.017791204154491425,
0.002367425011470914,
-0.004546969663351774,
-0.01058111060410738,
0.03954770416021347,
0.010887712240219116,
0.013161604292690754,
-0.02607589215040207,
0.04092123359441757,
0.021692615002393723,
-0.06486181169748306,
-0.022344235330820084,
-0.04169565439224243,
-0.05869503319263458,
-0.03126302734017372,
-0.02768123336136341,
-0.03199930489063263,
-0.01657893694937229,
0.00037403838359750807,
0.034252699464559555,
0.055471669882535934,
-0.012893030419945717,
0.019096383824944496,
-0.010843731462955475,
-0.04149095341563225,
0.040944721549749374,
-0.01292746514081955,
-0.02204766683280468,
-0.032852817326784134,
0.02274187281727791,
-0.02280772663652897,
-0.03922044485807419,
-0.06557706743478775,
-0.052269719541072845,
0.01355948206037283,
-0.020785337314009666,
-0.007260422222316265,
-0.04972677677869797,
0.022511010989546776,
0.06217850744724274,
-0.03813925385475159,
-0.04082360118627548,
0.018641993403434753,
-0.07240530848503113,
0.02469097264111042,
0.035828396677970886,
-0.029988626018166542,
-0.002372125396504998,
-0.04445333406329155,
0.04707467555999756,
-0.013067496940493584,
0.04290136322379112,
-0.03690279275178909,
0.0165199413895607,
-0.09816925972700119,
-0.0025337329134345055,
-0.012182452715933323,
0.05150122568011284,
0.018085811287164688,
-0.03850589692592621,
0.06332259625196457,
0.02173473685979843,
-0.01684165932238102,
0.019578678533434868,
-0.0023147957399487495,
-0.01473656389862299,
0.037795569747686386,
-0.05067583546042442,
0.003011693013831973,
0.01388828456401825,
0.060533326119184494,
-0.04257504642009735,
-0.01668352633714676,
0.002534552477300167,
-0.024231554940342903,
-0.0120136309415102,
0.02292579784989357,
0.02677098847925663,
-0.015033633448183537,
0.03111013025045395,
0.027935348451137543,
0.000379714067094028,
0.04326698184013367,
-0.014410541392862797,
0.06543506681919098,
0.010843858122825623,
0.00005056501686340198,
-0.03475191444158554,
-0.019807422533631325,
-0.02136160619556904,
0.03350808098912239,
0.03241647034883499,
-0.05196301266551018,
-0.03886188566684723,
0.05026066675782204,
0.009161669760942459,
-0.04293321073055267,
0.03740115463733673,
-0.015922414138913155,
-0.04952653869986534,
-0.04267238825559616,
0.059540532529354095,
0.011037450283765793,
-0.0001792225375538692,
0.0368524007499218,
-0.0464203879237175,
0.031558651477098465,
-0.04777779057621956,
-0.005446959752589464,
0.013188187964260578,
0.018496191129088402,
-0.045005712658166885,
0.0446966253221035,
0.05233520641922951,
-0.08178739994764328,
0.01926484890282154,
-0.0040443227626383305,
-0.07113555818796158,
0.03293244168162346,
0.0012315530329942703,
0.09406638890504837,
-0.03858106955885887,
-0.03076712228357792,
0.01680947281420231,
0.004565810319036245,
-0.02217087149620056,
0.003210154129192233,
-0.00026911497116088867,
-0.00975536648184061,
-0.007392881438136101,
-0.017978297546505928,
0.03979168459773064,
-0.050045572221279144,
0.009147009812295437,
0.06487603485584259,
-0.03288840129971504,
0.03374164551496506,
-0.0499785840511322,
-0.005100226495414972,
0.021400149911642075,
-0.015600896440446377,
-0.011014814488589764,
0.023115260526537895,
0.02383033186197281,
-0.013266123831272125,
-0.05266880244016647,
-0.05089659243822098,
-0.009222017601132393,
0.062196917831897736,
0.0033321562223136425,
-0.012407907284796238,
-0.048055849969387054,
0.01723746582865715,
0.045687995851039886,
0.025576382875442505,
-0.029679765924811363,
0.03665303811430931,
0.03491787612438202,
0.02967022731900215,
0.006234364118427038,
0.04103477671742439,
0.012078351341187954,
-0.03593800216913223,
-0.038357846438884735,
0.03217655047774315,
0.02475915476679802,
-0.032326553016901016,
-0.007080115843564272,
0.044770363718271255,
0.010958717204630375,
-0.028133517131209373,
-0.015689825639128685,
0.07403659075498581,
-0.010619621723890305,
-0.013022875413298607,
0.005935126915574074,
0.00022598217765334994,
-0.04753446951508522,
0.04052760824561119,
-0.03339559957385063,
0.00775300245732069,
-0.007340628653764725,
-0.03222420811653137,
-0.005613855551928282,
0.03980189934372902,
0.05802185833454132,
0.04591285064816475,
0.002852770034223795,
0.08600258082151413,
-0.028360478579998016,
-0.006002188194543123,
-0.059000443667173386,
-0.03842763602733612,
-0.027703242376446724,
0.0529085248708725,
0.022312888875603676,
0.06283117085695267,
-0.02292991429567337,
-0.026275115087628365,
0.01838703453540802,
0.0838363915681839,
0.05665493384003639,
0.039473678916692734,
-0.008056682534515858,
-0.0068199411034584045,
0.05165118724107742,
0.0643935576081276,
-0.057835523039102554,
-0.04510759934782982,
0.031292371451854706,
0.016142837703227997,
-0.03210495039820671,
0.02373460866510868,
-0.0014526831218972802,
0.04370170459151268,
-0.03628453239798546,
-0.06440480798482895,
0.04887224733829498,
0.020717419683933258,
-0.0032485390547662973,
0.010762594640254974,
-0.019040711224079132,
0.023024022579193115,
0.03272932767868042,
0.04292121157050133,
-0.00043823401210829616,
-0.034495048224925995,
-0.013576232828199863,
0.007474283687770367,
0.0442110151052475,
-0.055038709193468094,
0.022913571447134018,
0.0009925697231665254,
0.024162426590919495,
0.039781924337148666,
-0.0449850931763649,
0.018199749290943146,
0.013247358612716198,
-0.036206457763910294,
-0.05195286124944687,
0.018917962908744812,
0.015720797702670097,
0.012874498032033443,
0.07037994265556335,
0.007941587828099728,
0.057673122733831406,
0.012573820538818836,
0.047933418303728104,
0.07116985321044922,
0.010783840902149677,
0.019877886399626732,
0.02887430600821972,
0.06883986294269562,
-0.009322348050773144,
0.0044258893467485905,
0.054089635610580444,
-0.04073010012507439,
-0.006630816031247377,
-0.02578081749379635,
-0.0014439565129578114,
0.008393299765884876,
-0.0006197264883667231,
0.018257353454828262,
0.0037521093618124723,
-0.017507445067167282,
0.009623435325920582,
-0.03509761393070221,
-0.012920794077217579,
0.030932622030377388,
-0.02536686882376671,
-0.0025149246212095022,
0.001182398060336709,
-0.0026518236845731735,
0.03158609941601753,
-0.06574933230876923,
-0.059969477355480194,
0.015626003965735435,
-0.019741954281926155,
0.0017384006641805172,
-0.05479465797543526,
-0.028724823147058487,
-0.05903852730989456,
-0.00629763538017869,
0.03069373220205307,
0.027321813628077507,
-0.02022257260978222,
-0.02841649390757084,
0.006926674861460924,
-0.04158809781074524,
-0.03192173317074776,
-0.05152089521288872,
-0.04286002367734909,
-0.04706035181879997,
-0.07566747069358826,
0.03191819787025452,
0.043396979570388794,
0.021328920498490334,
-0.003334824461489916,
0.020537953823804855,
-0.026687778532505035,
-0.034770336002111435,
0.04371544346213341,
0.06415516883134842,
-0.030318548902869225,
-0.03240249305963516,
0.04029605910181999,
-0.010244651697576046,
0.027773277834057808,
-0.0006939857266843319,
-0.012682508677244186,
0.06886854767799377,
0.07382280379533768,
0.03051963448524475,
-0.007771758362650871,
0.0054772039875388145,
-0.04926418513059616,
-0.06748252362012863,
-0.04691338911652565,
-0.03184735029935837,
-0.020803045481443405,
-0.04913262650370598,
-0.0301970224827528,
-0.009143097326159477,
-0.030599320307374,
0.013525460846722126,
-0.012674057856202126,
-0.0047431946732103825,
0.041231025010347366,
0.036317501217126846,
0.026593897491693497,
0.04420413449406624,
-0.034439247101545334,
-0.025133052840828896,
0.07703106850385666,
0.0169148538261652,
0.012365128844976425,
-0.049266133457422256,
-0.03151888772845268,
0.04386574774980545,
0.02661007083952427,
-0.011510297656059265,
-0.020164785906672478,
0.0712704285979271,
0.023902548477053642,
-0.005844840779900551,
-0.008989878930151463,
-0.040491148829460144,
-0.03721684217453003,
0.027212809771299362,
-0.003426923416554928,
-0.0283949114382267,
-0.06373479217290878,
-0.00622106296941638,
0.019345028325915337,
0.054472822695970535,
-0.05807718634605408,
-0.060443319380283356,
-0.012367484159767628,
0.013626009225845337,
0.024023786187171936,
-0.0036312933079898357,
-0.04293501377105713,
0.015931516885757446,
-0.04704183340072632,
-0.017313873395323753,
0.00247358251363039,
0.01373276486992836,
0.010813997127115726,
0.052235253155231476,
0.026909468695521355,
-0.026425780728459358,
0.04563609138131142,
0.030352819710969925,
0.057246360927820206,
0.02468591369688511,
-0.0513969361782074,
0.02034292370080948,
-0.0348895825445652,
0.011706937104463577,
-0.026521746069192886,
-0.017957394942641258,
-0.033753927797079086,
-0.06651874631643295,
-0.00685631250962615,
0.026297735050320625,
-0.028414811939001083,
-0.024333003908395767,
0.058248747140169144,
-0.0195720586925745,
-0.005381133873015642,
-0.002661653095856309,
0.009446050971746445,
0.009837832301855087,
-0.03469314053654671,
0.043178461492061615,
-0.025413747876882553,
0.026082517579197884,
-0.08630848675966263,
0.020798081532120705,
-0.021876132115721703,
-0.0033367860596626997,
-0.002212643390521407,
0.06654339283704758,
0.014097670093178749,
0.043054837733507156,
0.08077453821897507,
0.0382038876414299,
-0.039986610412597656,
0.0456228144466877,
0.02714829333126545,
-0.004308976233005524,
-0.031809911131858826,
0.028313135728240013,
-0.03983775153756142,
-0.03140108659863472,
0.023333635181188583,
-0.0456620417535305,
0.03895401209592819,
0.0265357606112957,
-0.008667928166687489,
-0.024921026080846786,
0.022935986518859863,
-0.02636556513607502,
-0.04019965976476669,
-0.061441775411367416,
-0.01971118152141571,
0.0043694027699530125,
-0.03193998709321022,
0.04044678434729576,
0.03498297184705734,
0.026063578203320503,
0.07478965073823929,
0.04383697360754013,
-0.04734775424003601,
-0.03397713229060173,
0.025985920801758766,
0.03364388644695282,
-0.043757364153862,
-0.05442231893539429,
-0.050077617168426514,
0.060415979474782944,
0.04393113777041435,
0.005783886183053255,
-0.07119040936231613,
0.003488329704850912,
0.03859593719244003,
-0.02448081225156784,
0.04291911795735359,
0.009356258437037468,
0.04488034546375275,
0.05112045630812645,
-0.04238874092698097,
0.005836053751409054,
-0.010674340650439262,
0.026904484257102013,
-0.027386972680687904,
0.029068078845739365,
-0.013817333616316319,
-0.05127882957458496,
-0.031869690865278244,
0.010598964989185333,
0.026240350678563118,
0.043732527643442154,
0.029464462772011757,
-0.019020067527890205,
-0.05200744792819023,
-0.00024220574414357543,
0.04451369121670723,
-0.04936981946229935,
0.024555783718824387,
0.02172720432281494,
0.030951494351029396,
-0.05766327679157257,
-0.02054048888385296,
-0.009574422612786293,
0.01683652214705944,
0.026779329404234886,
-0.00565232802182436,
-0.0400099977850914,
-0.07174871861934662,
0.020977361127734184,
-0.012036813423037529,
-0.0015877388650551438,
-0.08975382149219513,
0.028029197826981544,
-0.025168629363179207,
-0.025746457278728485,
0.04205501079559326,
0.028992142528295517,
0.037668805569410324,
0.03880846127867699,
0.01204534899443388,
-0.0076402523554861546,
-0.05445891246199608,
0.054334856569767,
-0.01066588331013918,
-0.00834187213331461,
-0.00324561120942235,
-0.030093872919678688,
0.001938219415023923,
-0.04530080407857895,
-0.057731423527002335,
-0.034895628690719604,
0.006398472003638744,
0.04941459745168686,
-0.01150574255734682,
0.006398607976734638,
-0.023522712290287018,
0.043477751314640045,
-0.029546648263931274,
-0.040270257741212845,
-0.034315306693315506,
-0.03099518083035946,
-0.07525227218866348,
-0.03716576099395752,
0.020997123792767525,
0.004569835029542446,
0.016967184841632843,
-0.0025734691880643368,
0.0074463943019509315,
0.03824959322810173,
-0.004145571030676365,
-0.027822984382510185,
0.0345936119556427,
-0.0016343320021405816,
-0.03361042961478233,
-0.0446019284427166,
0.016160598024725914,
0.027634460479021072,
0.03253484517335892,
-0.03238964453339577,
0.019293904304504395,
0.012044343166053295,
-0.017536791041493416,
-0.023039402440190315,
0.022582652047276497,
0.03309376910328865,
-0.0600595660507679,
-0.058642610907554626,
-0.01627320423722267,
-0.0560060553252697,
0.05797382816672325,
-0.03364688530564308,
-0.041850075125694275,
0.048058319836854935,
0.04196006804704666,
0.05268216133117676,
0.0005248716333881021,
-0.04361055791378021,
0.01042723935097456,
-0.013858874328434467,
0.019200604408979416,
-0.07205890864133835,
0.03510686755180359,
-0.031224623322486877,
0.015577549114823341,
-0.015532306395471096,
-0.010558652691543102,
-0.04489077627658844,
0.011675907298922539,
-0.01771687902510166,
-0.031209653243422508,
-0.022799009457230568,
0.01261855848133564,
-0.022879596799612045,
0.04348406568169594,
-0.03226316347718239,
0.01977146789431572,
-0.01986086368560791,
0.03732903301715851,
-0.05538124218583107,
0.003659950103610754,
-0.02330019697546959,
-0.003081690287217498,
-0.03750776872038841,
-0.016440724954009056,
-0.013364669866859913,
-0.05787835642695427,
0.032661501318216324,
0.01869949698448181,
0.014993089251220226,
0.029059460386633873,
-0.028212914243340492,
-0.0036061001010239124,
0.010173600167036057,
-0.07821527868509293,
-0.0043236021883785725,
-0.0013764536706730723,
0.022142916917800903,
-0.014549070969223976,
0.06815946847200394,
0.02819315902888775,
-0.06431261450052261,
-0.04366739094257355,
0.036857858300209045,
0.010143387131392956,
-0.00902613252401352,
0.00901774875819683,
0.024706823751330376,
0.04888227954506874,
0.05608639121055603,
-0.04337024688720703,
0.015553519129753113,
-0.005069398321211338,
-0.04578964412212372,
0.03395523130893707,
-0.003108873264864087,
0.016938578337430954,
0.03498563542962074,
-0.0017770970007404685,
-0.021513953804969788,
0.07052068412303925,
0.026544328778982162,
0.020309951156377792,
-0.014265966601669788,
-0.04479922354221344,
0.034840818494558334,
0.010198638774454594,
-0.07601068168878555,
0.014565806835889816,
0.008032314479351044,
-0.022268136963248253,
0.07182537764310837,
-0.02026204764842987,
0.007317152805626392,
0.03787752240896225,
0.016751354560256004,
-0.0003776530793402344,
0.04527110978960991,
-0.040442392230033875,
0.0009150258847512305,
0.04561406746506691,
-0.05323443561792374,
-0.00885363481938839,
-0.012676733545958996,
0.0750538781285286,
-0.05845275893807411,
0.05405203998088837,
0.05168801546096802,
0.00031212810426950455,
0.040767181664705276,
-0.022588808089494705,
-0.028461601585149765,
0.024081699550151825,
-0.01634758710861206,
0.07714883238077164,
0.0085983257740736,
-0.06325837969779968,
0.07272668182849884,
0.024076417088508606,
-0.07850068062543869,
0.04658801108598709,
0.02822047844529152,
0.017728565260767937,
0.03616630658507347,
0.02182137221097946,
-0.061586201190948486,
0.019786493852734566,
-0.0265255905687809,
0.028368765488266945,
-0.02837969735264778,
-0.01657218299806118,
0.030062654986977577,
-0.044013701379299164,
-0.006045346613973379,
0.021514395251870155,
-0.022771786898374557,
0.0026293164119124413,
0.00934794545173645,
-0.07589827477931976,
-0.04093002527952194,
0.012828104197978973,
0.04636460542678833,
-0.05381488427519798,
-0.018368350341916084,
-0.05313081294298172,
0.04196208715438843,
0.010374325327575207,
0.00819856021553278,
-0.026752669364213943,
-0.003461516695097089,
0.040879588574171066,
-0.08953795582056046,
-0.05019222944974899,
0.06055883318185806,
0.024955108761787415,
-0.039577629417181015,
0.030272824689745903,
-0.007429194170981646,
-0.00862695649266243,
0.02046482264995575,
-0.010786979459226131,
0.023627107962965965,
-0.05733111873269081,
-0.0011836560443043709,
0.017512496560811996,
0.01075240969657898,
0.029284175485372543,
-0.016805006191134453,
0.016911137849092484,
0.030411578714847565,
0.060371190309524536,
-0.0041034226305782795,
-0.06724441796541214,
-0.014101204462349415,
0.016183951869606972,
-0.06712432950735092,
0.008278788067400455,
0.024357987567782402,
-0.05725130811333656,
-0.03282490000128746,
0.0014599963324144483,
0.0021532143000513315,
0.03186499699950218,
-0.04449242353439331,
0.007526812143623829,
0.011583917774260044,
-0.020166071131825447,
-0.04848823323845863,
-0.08549676090478897,
-0.03597867116332054,
-0.03652622550725937,
0.02548799104988575,
0.033030688762664795,
-0.05346809700131416,
0.014431779272854328,
-0.0426025465130806,
-0.07195161283016205,
0.02726718783378601,
0.032848507165908813,
-0.030309638008475304,
0.04349558800458908,
0.04661151394248009,
-0.05206378549337387,
0.015338070690631866,
0.05233815684914589,
-0.02792193368077278,
0.04288274422287941,
0.010032043792307377,
0.00009565830259816721,
0.020195530727505684,
0.03730595484375954,
-0.009474449791014194,
-0.012513619847595692,
-0.06126705929636955,
-0.050754379481077194,
-0.013789646327495575,
0.017960483208298683,
0.04882358759641647
] |
bert-base-multilingual-uncased | [
"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",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 328,585 | 2018-11-30T13:36:23Z | ---
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
---
# 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}
}
```
| [
-0.0103159099817276,
-0.01097841840237379,
-0.011103062890470028,
0.06341356784105301,
0.02764466032385826,
0.02311810851097107,
0.013504192233085632,
-0.01322674099355936,
-0.03739003464579582,
0.04429417848587036,
0.00044902466470375657,
-0.03863493353128433,
0.011513454839587212,
0.020638786256313324,
-0.02753574214875698,
0.015231842175126076,
-0.002534890314564109,
-0.025233004242181778,
-0.07826419919729233,
-0.014291150495409966,
0.0016411772230640054,
-0.009008441120386124,
-0.013766707852482796,
0.04315819591283798,
0.01216892246156931,
0.01377322617918253,
-0.02889649011194706,
0.046456970274448395,
0.020290272310376167,
-0.06519363820552826,
-0.02167779579758644,
-0.04277690872550011,
-0.05228989198803902,
-0.028655780479311943,
-0.027716616168618202,
-0.031071210280060768,
-0.012486620806157589,
-0.0023564468137919903,
0.03451057896018028,
0.05584827437996864,
-0.012554697692394257,
0.02244020625948906,
-0.00926944613456726,
-0.03839823976159096,
0.04651832580566406,
-0.01580517739057541,
-0.020177699625492096,
-0.0334889218211174,
0.030747057870030403,
-0.02296469919383526,
-0.04051246866583824,
-0.06092899665236473,
-0.05304151773452759,
0.017557373270392418,
-0.019637195393443108,
-0.004891932476311922,
-0.052247002720832825,
0.022716060280799866,
0.06189470738172531,
-0.03547307476401329,
-0.04134811833500862,
0.015239899046719074,
-0.0691651776432991,
0.020637618377804756,
0.03533661738038063,
-0.027518335729837418,
-0.005149520933628082,
-0.04498868063092232,
0.05251181498169899,
-0.014736799523234367,
0.04523728787899017,
-0.03973063454031944,
0.013132038526237011,
-0.09277808666229248,
-0.010586791671812534,
-0.012129462324082851,
0.051817670464515686,
0.02444312907755375,
-0.03659527376294136,
0.06786493957042694,
0.021247975528240204,
-0.01842038705945015,
0.019029436632990837,
-0.003199661383405328,
-0.010463106445968151,
0.040148571133613586,
-0.04779202491044998,
-0.0018274710746482015,
0.014907161705195904,
0.05288098379969597,
-0.04135404899716377,
-0.01611870341002941,
0.0012862937292084098,
-0.026582222431898117,
-0.007051975000649691,
0.023693537339568138,
0.029782027006149292,
-0.013054750859737396,
0.03057989664375782,
0.027364524081349373,
0.0032659026328474283,
0.047007013112306595,
-0.01224434282630682,
0.06654337048530579,
0.007053673733025789,
0.00025475365691818297,
-0.031586118042469025,
-0.018139515072107315,
-0.020943576470017433,
0.028937645256519318,
0.03090800531208515,
-0.05765301361680031,
-0.038260530680418015,
0.049535129219293594,
0.008044261485338211,
-0.051233936101198196,
0.04043388366699219,
-0.013074753805994987,
-0.04924047365784645,
-0.048508137464523315,
0.0602041594684124,
0.008486258797347546,
0.003055031644180417,
0.03832978010177612,
-0.048109013587236404,
0.027184579521417618,
-0.05462124943733215,
-0.005860890261828899,
0.015992287546396255,
0.016181014478206635,
-0.042003437876701355,
0.04538961127400398,
0.053812090307474136,
-0.07929694652557373,
0.020797664299607277,
-0.00896532740443945,
-0.07092297822237015,
0.03691665828227997,
0.004554906394332647,
0.08766993135213852,
-0.03732715919613838,
-0.034025851637125015,
0.01661636307835579,
-0.0002158922579837963,
-0.023177171126008034,
0.0009572981507517397,
0.000619082129560411,
-0.008734308183193207,
-0.00633055018261075,
-0.015328453853726387,
0.037111151963472366,
-0.05089819058775902,
0.005075979046523571,
0.06498225778341293,
-0.035358279943466187,
0.034531328827142715,
-0.049487821757793427,
-0.008269873447716236,
0.022559015080332756,
-0.01986473612487316,
-0.015414298512041569,
0.02188943885266781,
0.023980634286999702,
-0.012973526492714882,
-0.05098441615700722,
-0.04971901699900627,
-0.004547016695141792,
0.06521202623844147,
0.002330237068235874,
-0.011420365422964096,
-0.046098414808511734,
0.018340513110160828,
0.04099443182349205,
0.02380448952317238,
-0.028253020718693733,
0.036389272660017014,
0.037636153399944305,
0.028825795277953148,
0.007990766316652298,
0.04041755944490433,
0.012102139182388783,
-0.0328993946313858,
-0.03823070973157883,
0.032002080231904984,
0.023919837549328804,
-0.026871323585510254,
-0.0026031637098640203,
0.04694565385580063,
0.016261843964457512,
-0.026232926174998283,
-0.006592566147446632,
0.07141484320163727,
-0.01110482681542635,
-0.014237003400921822,
0.0064430576749145985,
-0.002570292679592967,
-0.0424368716776371,
0.03737162426114082,
-0.03551814705133438,
0.007257194723933935,
-0.005411082413047552,
-0.02829059399664402,
-0.0041391015984117985,
0.0408458411693573,
0.06354480981826782,
0.04217106103897095,
0.0028678334783762693,
0.08920730650424957,
-0.02609478496015072,
-0.004388709086924791,
-0.06260937452316284,
-0.0328577421605587,
-0.0204754751175642,
0.05628652125597,
0.01911783032119274,
0.05986989289522171,
-0.020539402961730957,
-0.030774297192692757,
0.0199135709553957,
0.08607953786849976,
0.056104108691215515,
0.03647029027342796,
-0.01282932236790657,
-0.009035567753016949,
0.052323780953884125,
0.06446954607963562,
-0.05784258246421814,
-0.051705118268728256,
0.029372142627835274,
0.017089426517486572,
-0.03490147367119789,
0.020750747993588448,
-0.00010141568054677919,
0.03878723829984665,
-0.03216957673430443,
-0.06386663764715195,
0.046786751598119736,
0.018988758325576782,
-0.002992103574797511,
0.00956571102142334,
-0.020659800618886948,
0.028219109401106834,
0.030497843399643898,
0.0400569848716259,
-0.0007956335321068764,
-0.04012708738446236,
-0.012089526280760765,
0.009043519385159016,
0.043378815054893494,
-0.05422791466116905,
0.02624695748090744,
-0.004051248077303171,
0.026988927274942398,
0.04351066052913666,
-0.046411510556936264,
0.01647183485329151,
0.012338121421635151,
-0.03510495647788048,
-0.0513359010219574,
0.01725666970014572,
0.018593329936265945,
0.012133892625570297,
0.07123585045337677,
0.008195990696549416,
0.0570187009871006,
0.015804115682840347,
0.04520505294203758,
0.07099409401416779,
0.010408228263258934,
0.02251512184739113,
0.028117410838603973,
0.06942768394947052,
-0.007245371583849192,
0.003586006350815296,
0.052451394498348236,
-0.03998458385467529,
-0.010507822036743164,
-0.02715175226330757,
-0.00227427389472723,
0.009958988055586815,
-0.0019675514195114374,
0.026094496250152588,
0.0034596212208271027,
-0.015121400356292725,
0.010617000050842762,
-0.034771695733070374,
-0.011759044602513313,
0.03176417946815491,
-0.023334819823503494,
0.0002507449535187334,
-0.0026171451900154352,
-0.0031537131872028112,
0.03175566717982292,
-0.06504013389348984,
-0.05771470069885254,
0.01307758130133152,
-0.02097049355506897,
0.0038617386016994715,
-0.0505913645029068,
-0.029388926923274994,
-0.055406082421541214,
-0.005927505437284708,
0.03148863837122917,
0.02487669140100479,
-0.02211088500916958,
-0.02419828064739704,
0.0021512608509510756,
-0.03683141618967056,
-0.031427428126335144,
-0.05187484994530678,
-0.04282654821872711,
-0.04585187882184982,
-0.07461943477392197,
0.03482507914304733,
0.040024202316999435,
0.02038276568055153,
-0.0021310411393642426,
0.02394978515803814,
-0.02567458525300026,
-0.03431228548288345,
0.04490835219621658,
0.06193242222070694,
-0.02951280027627945,
-0.0356079638004303,
0.03762119263410568,
-0.007083503063768148,
0.031580060720443726,
-0.0017506437143310905,
-0.015305696055293083,
0.06941232085227966,
0.06966905295848846,
0.03342688828706741,
-0.0074941255152225494,
0.01154780387878418,
-0.04678262025117874,
-0.06294738501310349,
-0.045500703155994415,
-0.032985709607601166,
-0.020301038399338722,
-0.05057632178068161,
-0.027522407472133636,
-0.008136775344610214,
-0.03167470917105675,
0.012660395354032516,
-0.016980014741420746,
-0.0015733361942693591,
0.036376968026161194,
0.031186550855636597,
0.02788367122411728,
0.04295554757118225,
-0.03840288519859314,
-0.02640894427895546,
0.07752982527017593,
0.021645965054631233,
0.011309381574392319,
-0.04928937181830406,
-0.029779165983200073,
0.03973701596260071,
0.027566619217395782,
-0.01279464177787304,
-0.02121911756694317,
0.06764720380306244,
0.02547779493033886,
-0.009134945459663868,
-0.009991420432925224,
-0.04444800317287445,
-0.03982565179467201,
0.023912962526082993,
0.0004989781300537288,
-0.028990231454372406,
-0.05897918716073036,
-0.004701191559433937,
0.017765812575817108,
0.05256755277514458,
-0.05402997136116028,
-0.05541698634624481,
-0.01209506206214428,
0.016925109550356865,
0.021087074652314186,
0.00007054235902614892,
-0.04477569833397865,
0.015713786706328392,
-0.04575900360941887,
-0.020443221554160118,
0.0024505520705133677,
0.015663690865039825,
0.012806566432118416,
0.05150832608342171,
0.02738802321255207,
-0.032094862312078476,
0.04444833844900131,
0.02878922037780285,
0.054093826562166214,
0.026852238923311234,
-0.04877212643623352,
0.021088771522045135,
-0.03384451940655708,
0.008361734449863434,
-0.026622861623764038,
-0.019299976527690887,
-0.03283604979515076,
-0.07260025292634964,
-0.01015248242765665,
0.028870007023215294,
-0.03127054497599602,
-0.025210043415427208,
0.05723622813820839,
-0.0202220119535923,
-0.0029020612128078938,
-0.0057867588475346565,
0.009129638783633709,
0.013331227004528046,
-0.03440312668681145,
0.046975187957286835,
-0.02409978024661541,
0.025944991037249565,
-0.08687780052423477,
0.01583690010011196,
-0.022548440843820572,
0.0014391684671863914,
0.001507495646364987,
0.06883206963539124,
0.013525567948818207,
0.04381881654262543,
0.0815175250172615,
0.03523140400648117,
-0.04153156653046608,
0.04240977019071579,
0.029238693416118622,
0.0012803588761016726,
-0.028185134753584862,
0.023183120414614677,
-0.044441308826208115,
-0.032052308320999146,
0.02136186882853508,
-0.044952064752578735,
0.03867151960730553,
0.02543831802904606,
-0.009521096013486385,
-0.028008315712213516,
0.026182981207966805,
-0.027057161554694176,
-0.0362418070435524,
-0.0663737803697586,
-0.017685167491436005,
0.0033539365977048874,
-0.035877835005521774,
0.041114602237939835,
0.03933035209774971,
0.027166757732629776,
0.0704447478055954,
0.04988626390695572,
-0.04514668509364128,
-0.040235020220279694,
0.02278704009950161,
0.030871819704771042,
-0.041435420513153076,
-0.059697553515434265,
-0.04915619641542435,
0.060527216643095016,
0.04522959887981415,
0.007949343882501125,
-0.07018662244081497,
0.005646354518830776,
0.04229502007365227,
-0.024049093946814537,
0.042776741087436676,
0.011718099005520344,
0.047333817929029465,
0.04912414774298668,
-0.04323781281709671,
0.003408714896067977,
-0.0060022808611392975,
0.02252177707850933,
-0.02729484811425209,
0.030343733727931976,
-0.013934368267655373,
-0.04996022954583168,
-0.03606143221259117,
0.009442894719541073,
0.025777073577046394,
0.04623303562402725,
0.026715701445937157,
-0.023230643942952156,
-0.05232487618923187,
-0.006095296237617731,
0.04927786439657211,
-0.04664519056677818,
0.02184026502072811,
0.02008780650794506,
0.02431740052998066,
-0.05304282158613205,
-0.02060781978070736,
-0.011221705935895443,
0.01623336412012577,
0.02626904845237732,
-0.00278660049661994,
-0.03496253862977028,
-0.0705762580037117,
0.0208914652466774,
-0.014377211220562458,
-0.0035527925938367844,
-0.09791336953639984,
0.030272535979747772,
-0.02458556368947029,
-0.025894874706864357,
0.04197265952825546,
0.030402157455682755,
0.042967863380908966,
0.04020151123404503,
0.013705876655876637,
-0.012011731043457985,
-0.051937591284513474,
0.062302812933921814,
-0.002957941498607397,
-0.008278225548565388,
-0.0008189927903003991,
-0.033427756279706955,
0.003415768500417471,
-0.0446578711271286,
-0.05521739274263382,
-0.03744078055024147,
0.00641226302832365,
0.05036541819572449,
-0.012513676658272743,
0.01072368398308754,
-0.02307680808007717,
0.04767601937055588,
-0.030972449108958244,
-0.03754272684454918,
-0.03549516201019287,
-0.035535696893930435,
-0.07599525153636932,
-0.035542167723178864,
0.017829323187470436,
0.008432025089859962,
0.017745550721883774,
-0.0005201002350077033,
0.004666293505579233,
0.033930160105228424,
-0.005819394718855619,
-0.02584511786699295,
0.03369364142417908,
0.0038837934844195843,
-0.03531147912144661,
-0.0468488447368145,
0.015120506286621094,
0.02615295723080635,
0.03148620203137398,
-0.03475077822804451,
0.020468564704060555,
0.014074175618588924,
-0.01753111369907856,
-0.019757011905312538,
0.02427912876009941,
0.03099829889833927,
-0.06267964094877243,
-0.05871301889419556,
-0.019124595448374748,
-0.056331533938646317,
0.05957748740911484,
-0.03228618949651718,
-0.040526971220970154,
0.04634617641568184,
0.04304025322198868,
0.050932854413986206,
-0.0008697838056832552,
-0.04446091875433922,
0.012232659384608269,
-0.019087040796875954,
0.020792176946997643,
-0.06687933206558228,
0.037892427295446396,
-0.033188510686159134,
0.017199913039803505,
-0.015742074698209763,
-0.017798125743865967,
-0.048217881470918655,
0.009205788373947144,
-0.018527906388044357,
-0.026701172813773155,
-0.021287597715854645,
0.008333967998623848,
-0.025016069412231445,
0.04228333756327629,
-0.032129205763339996,
0.021818358451128006,
-0.019014503806829453,
0.03658704087138176,
-0.05698629096150398,
0.006617730483412743,
-0.02549402415752411,
0.0002127789193764329,
-0.03293025866150856,
-0.011420327238738537,
-0.0164411049336195,
-0.05937745422124863,
0.03356853872537613,
0.017020948231220245,
0.01707480289041996,
0.03138718754053116,
-0.03196496516466141,
-0.004489419516175985,
0.010653589852154255,
-0.0766441822052002,
-0.0015313613694161177,
-0.0004455587186384946,
0.02606998011469841,
-0.013476567342877388,
0.06438964605331421,
0.031535614281892776,
-0.0673961341381073,
-0.04504166543483734,
0.036089349538087845,
0.011861483566462994,
-0.010308273136615753,
0.006275412160903215,
0.02158292569220066,
0.051412343978881836,
0.05550207197666168,
-0.04043286293745041,
0.011142589151859283,
-0.00969794113188982,
-0.04508090019226074,
0.030208630487322807,
-0.0022695986554026604,
0.017634090036153793,
0.03728749230504036,
-0.006091850344091654,
-0.02114086225628853,
0.07323762029409409,
0.024454107508063316,
0.022099751979112625,
-0.013656026683747768,
-0.04100802168250084,
0.03975797817111015,
0.010641450993716717,
-0.07449456304311752,
0.011896250769495964,
0.00513520697131753,
-0.023363301530480385,
0.07338615506887436,
-0.022552795708179474,
0.004042626824229956,
0.03693193197250366,
0.014389898627996445,
-0.0002247230731882155,
0.04419280216097832,
-0.03732319548726082,
0.001999446889385581,
0.038724422454833984,
-0.052037596702575684,
-0.0103058572858572,
-0.013452589511871338,
0.07420631498098373,
-0.061266619712114334,
0.05399633198976517,
0.05026613548398018,
0.001619221642613411,
0.03806799650192261,
-0.022327397018671036,
-0.029745932668447495,
0.016469893977046013,
-0.012545893900096416,
0.07035423815250397,
0.004293227568268776,
-0.06086729094386101,
0.06723393499851227,
0.032691556960344315,
-0.07833195477724075,
0.04519979655742645,
0.028636084869503975,
0.0165640190243721,
0.031639017164707184,
0.022616151720285416,
-0.06079000234603882,
0.022207600995898247,
-0.02930685505270958,
0.027411535382270813,
-0.03316489979624748,
-0.015006710775196552,
0.035342175513505936,
-0.04222993180155754,
-0.0025023315101861954,
0.019771380349993706,
-0.029035884886980057,
0.005234869197010994,
0.007198122330009937,
-0.07764839380979538,
-0.04669031873345375,
0.008951122872531414,
0.044105011969804764,
-0.053762003779411316,
-0.013474760577082634,
-0.054008156061172485,
0.04363049939274788,
0.013819334097206593,
0.012992139905691147,
-0.027067096903920174,
-0.0030548316426575184,
0.038131233304739,
-0.08900429308414459,
-0.049297116696834564,
0.06528326123952866,
0.026191391050815582,
-0.03975636139512062,
0.030402835458517075,
-0.011238288134336472,
-0.01196651067584753,
0.018863869830965996,
-0.011211799457669258,
0.028420772403478622,
-0.05585353821516037,
0.0013914164155721664,
0.020569831132888794,
0.011402906849980354,
0.029425259679555893,
-0.013242962770164013,
0.01727442257106304,
0.026348931714892387,
0.05904499068856239,
-0.004606780130416155,
-0.06971161812543869,
-0.012039616703987122,
0.01695052906870842,
-0.06853976845741272,
0.011198082007467747,
0.02517595887184143,
-0.06411848962306976,
-0.0307373758405447,
0.00009955787390936166,
0.003201528685167432,
0.03157486021518707,
-0.0443306565284729,
0.007123657502233982,
0.011343620717525482,
-0.021964916959404945,
-0.04817013442516327,
-0.08397623151540756,
-0.0330270379781723,
-0.035269029438495636,
0.022086823359131813,
0.033635105937719345,
-0.055125005543231964,
0.010331882163882256,
-0.04595334455370903,
-0.06960608810186386,
0.028036661446094513,
0.03003591112792492,
-0.029877707362174988,
0.04798537865281105,
0.045177437365055084,
-0.054016437381505966,
0.014021102339029312,
0.056716736406087875,
-0.02869897522032261,
0.04211951792240143,
0.01226635742932558,
-0.00009579180914442986,
0.019211947917938232,
0.0377158559858799,
-0.010852332226932049,
-0.01332692988216877,
-0.05933643504977226,
-0.05184687301516533,
-0.013954422436654568,
0.014729754067957401,
0.05169516056776047
] |
bert-base-uncased | [
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"exbert",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 59,663,489 | 2018-11-14T23:35:08Z | ---
language: en
tags:
- exbert
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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>
| [
-0.0042279125191271305,
0.0030666447710245848,
-0.018318351358175278,
0.06348302215337753,
0.02924499846994877,
0.03182365372776985,
-0.019427748396992683,
-0.03530840948224068,
-0.028829434886574745,
0.049393828958272934,
0.017601648345589638,
-0.007109126076102257,
0.017407912760972977,
0.042005665600299835,
-0.027623094618320465,
-0.01432978454977274,
-0.012478316202759743,
-0.001705262460745871,
-0.030483203008770943,
-0.012323416769504547,
-0.015575254335999489,
0.008333529345691204,
0.004916944541037083,
0.014187910594046116,
-0.003513363189995289,
0.02551994100213051,
0.006524521857500076,
0.04422508180141449,
0.009918661788105965,
-0.07283615320920944,
-0.002362682716920972,
-0.025215009227395058,
-0.05226437747478485,
0.011564926244318485,
-0.011194673366844654,
0.004606315400451422,
-0.006154129281640053,
0.000997265218757093,
0.045886874198913574,
0.052392810583114624,
-0.006169200409203768,
0.0015881351428106427,
-0.021204210817813873,
-0.033882010728120804,
0.03361231088638306,
0.0034686054568737745,
-0.046998944133520126,
-0.010169772431254387,
0.04446157440543175,
-0.018547141924500465,
-0.05370893329381943,
-0.06368955969810486,
-0.027595043182373047,
0.022778937593102455,
0.009967024438083172,
-0.03142976760864258,
-0.06214672327041626,
-0.017279835417866707,
0.06676623970270157,
-0.04277769476175308,
-0.05335153639316559,
0.0020970897749066353,
-0.04160888493061066,
0.02373930811882019,
0.0353100411593914,
-0.031685054302215576,
0.011640219017863274,
-0.04088350012898445,
0.025828463956713676,
-0.03322567418217659,
0.048994384706020355,
-0.032119374722242355,
0.012770489789545536,
-0.10052929818630219,
-0.011689282022416592,
-0.01988271251320839,
0.048387933522462845,
0.042157724499702454,
-0.02823033183813095,
0.047527093440294266,
0.014497349970042706,
-0.003656699089333415,
0.015148881822824478,
-0.015070168301463127,
-0.016985902562737465,
0.06046093627810478,
-0.05234377086162567,
-0.008986388333141804,
0.002562861889600754,
0.04439472779631615,
-0.028231585398316383,
-0.009843481704592705,
-0.03665575757622719,
-0.03858936205506325,
-0.024822814390063286,
0.025854121893644333,
0.026568854227662086,
-0.012753047049045563,
0.04566710814833641,
0.023361943662166595,
0.02800668217241764,
0.05629000440239906,
-0.021363869309425354,
0.07513477653265,
-0.014646436087787151,
-0.02242298051714897,
-0.023139577358961105,
-0.031772833317518234,
-0.04477284103631973,
0.02363164722919464,
0.028915276750922203,
-0.03543666750192642,
-0.0591176301240921,
0.060089386999607086,
-0.0008044631103985012,
-0.04532288387417793,
0.04904152452945709,
-0.02241421677172184,
-0.042113788425922394,
-0.0517641119658947,
0.0306845773011446,
-0.007145012263208628,
0.02333812788128853,
0.0034008098300546408,
-0.07599690556526184,
0.020597031340003014,
-0.031532347202301025,
-0.025700382888317108,
-0.00042669454705901444,
0.013113179244101048,
-0.010131416842341423,
0.04117756336927414,
0.023164553567767143,
-0.05636218935251236,
0.019950170069932938,
0.0020899795927107334,
-0.05851968750357628,
0.05438946187496185,
0.04207869619131088,
0.12950308620929718,
-0.05481324717402458,
-0.05202675238251686,
0.033163297921419144,
0.03928179293870926,
-0.01750483177602291,
0.006179130636155605,
0.03599568083882332,
-0.01545791793614626,
-0.01513939630240202,
-0.007809908594936132,
0.05808786675333977,
-0.054660383611917496,
-0.00844195019453764,
0.04523150622844696,
-0.006652939133346081,
0.04599772021174431,
-0.048009298741817474,
-0.012452504597604275,
-0.01692795753479004,
-0.002162726130336523,
-0.026232589036226273,
0.040313176810741425,
-0.020925156772136688,
-0.027188356965780258,
-0.03646746650338173,
-0.032712701708078384,
-0.001777147175744176,
0.06831606477499008,
-0.011490345932543278,
-0.02088213711977005,
-0.03736912086606026,
0.01775481179356575,
0.05340384691953659,
0.04267975687980652,
-0.032766129821538925,
0.020647387951612473,
0.07368290424346924,
0.03148427978157997,
-0.03249179944396019,
0.06193212792277336,
0.0025050481781363487,
-0.03661280497908592,
-0.029379811137914658,
0.015941506251692772,
-0.009963986463844776,
-0.036079321056604385,
0.04773883521556854,
0.031870897859334946,
-0.012443996965885162,
-0.015415706671774387,
-0.02850467525422573,
0.04246988520026207,
0.00669197179377079,
-0.00033252561115659773,
0.02027021534740925,
-0.008909878320991993,
-0.02568647637963295,
0.04819593206048012,
-0.022527335211634636,
0.014736325480043888,
-0.0005428086733445525,
-0.016666483134031296,
0.01462840661406517,
0.024151256307959557,
0.04524843767285347,
0.04722908139228821,
0.012591168284416199,
0.06768105924129486,
-0.031603239476680756,
0.030250100418925285,
-0.06394166499376297,
-0.03675990179181099,
-0.00015658284246455878,
0.030190186575055122,
0.02312687411904335,
0.03844224289059639,
0.0013559790095314384,
-0.04773714393377304,
0.008914840407669544,
0.06208056956529617,
0.05174093320965767,
0.026487162336707115,
-0.03304702416062355,
-0.02180786244571209,
0.03364703059196472,
0.056575875729322433,
-0.05778183043003082,
-0.04480830579996109,
0.03140268102288246,
0.051268164068460464,
-0.016840260475873947,
0.0008104696753434837,
-0.014151006937026978,
0.03394410014152527,
-0.03961188718676567,
-0.06263348460197449,
0.044693589210510254,
0.041232433170080185,
-0.001586406258866191,
0.03727971762418747,
-0.013028832152485847,
0.0018570770043879747,
0.021390466019511223,
0.023546816781163216,
-0.0007806195644661784,
-0.03962469473481178,
0.01290986593812704,
0.031954325735569,
0.04944036900997162,
-0.04435101896524429,
0.03942682966589928,
0.0032664581667631865,
0.02451080083847046,
0.03771355003118515,
-0.009642090648412704,
0.03143536299467087,
0.04096979647874832,
0.012885735370218754,
-0.031948741525411606,
0.016692137345671654,
0.005456715822219849,
0.05930452048778534,
0.057630788534879684,
-0.005164023023098707,
0.05927383154630661,
0.011512181721627712,
0.040186312049627304,
0.07193655520677567,
0.030271615833044052,
0.02293645404279232,
0.020599910989403725,
0.07107075303792953,
0.004579015541821718,
-0.012114213779568672,
0.07736139744520187,
-0.04936616122722626,
0.014538787305355072,
-0.05137547478079796,
0.036523737013339996,
0.01265430636703968,
-0.008778287097811699,
0.054825637489557266,
0.03047800250351429,
0.00023305391368921846,
0.00515587767586112,
0.003865156089887023,
-0.02945268526673317,
0.05255090445280075,
-0.004570371005684137,
0.025674499571323395,
-0.011449373327195644,
-0.026654545217752457,
-0.010436248034238815,
-0.07541374862194061,
-0.05443805828690529,
0.004207470454275608,
-0.032403599470853806,
-0.003773077856749296,
-0.09484370797872543,
-0.03377890586853027,
-0.053147897124290466,
-0.01679055392742157,
0.013758343644440174,
0.01697448268532753,
0.019427580758929253,
-0.02572762779891491,
0.017662810161709785,
-0.04904307797551155,
-0.022823015227913857,
-0.03726554289460182,
-0.031208336353302002,
-0.04743194580078125,
-0.05145638808608055,
0.03896747902035713,
0.021947793662548065,
0.02447430044412613,
-0.005456304643303156,
0.0041838595643639565,
-0.03593166172504425,
-0.017246192321181297,
0.04825142025947571,
0.037286773324012756,
-0.044453948736190796,
-0.044455092400312424,
0.005727630108594894,
-0.006544408854097128,
0.010148460976779461,
-0.024332283064723015,
-0.0036878809332847595,
0.0920286625623703,
0.08370126038789749,
0.027524074539542198,
0.0068830642849206924,
-0.021298738196492195,
-0.03585167974233627,
-0.06832762807607651,
-0.023319369181990623,
-0.046775564551353455,
-0.011619671247899532,
-0.05555497109889984,
-0.04277485981583595,
-0.007486873771995306,
-0.02724972926080227,
-0.013720273971557617,
-0.0048578050918877125,
0.0227606650441885,
0.034578800201416016,
0.03927203267812729,
0.01863144338130951,
0.031056661158800125,
-0.021694472059607506,
-0.022100405767560005,
0.06245553866028786,
0.009363281540572643,
0.015591689385473728,
-0.0802537053823471,
-0.046115148812532425,
0.041988302022218704,
0.036299604922533035,
-0.006553140934556723,
-0.013946332037448883,
0.08460204303264618,
0.011504750698804855,
-0.011885303072631359,
-0.0020033875480294228,
0.008088258095085621,
-0.030924370512366295,
-0.02721492014825344,
-0.0010433464776724577,
-0.013015156611800194,
-0.035198554396629333,
-0.047607988119125366,
-0.020830536261200905,
0.039473798125982285,
-0.06308107078075409,
-0.05311330407857895,
-0.02387438900768757,
0.048343874514102936,
0.025816190987825394,
0.003028720850124955,
-0.025871608406305313,
0.00032406169339083135,
-0.04006987437605858,
-0.019192276522517204,
-0.0019643425475806,
-0.004784892778843641,
0.010462693870067596,
0.03248777985572815,
0.031148266047239304,
-0.024760188534855843,
0.029602158814668655,
0.050380971282720566,
0.05392173305153847,
0.0001370318786939606,
-0.0517667792737484,
0.03245466947555542,
-0.025912772864103317,
0.032686177641153336,
0.007402867544442415,
-0.02957119233906269,
-0.05736730247735977,
-0.08638861775398254,
0.004138389136642218,
-0.015516454353928566,
-0.007114470936357975,
-0.007238139398396015,
0.035514213144779205,
-0.0278518944978714,
-0.019758252426981926,
-0.0008877617074176669,
0.019109025597572327,
0.018333472311496735,
-0.0348593033850193,
0.06558702886104584,
-0.025709491223096848,
0.014877676032483578,
-0.05934521183371544,
0.021972909569740295,
-0.05410544201731682,
-0.027909155935049057,
0.0012879911810159683,
0.05461883172392845,
0.026990540325641632,
0.06514187157154083,
0.06485090404748917,
0.06228519231081009,
-0.0606522411108017,
0.04133046418428421,
0.031764350831508636,
0.0000783524228609167,
-0.043747320771217346,
-0.024989154189825058,
-0.01675487495958805,
-0.021556196734309196,
-0.03369387239217758,
-0.0021489758510142565,
0.012385447509586811,
0.02596113830804825,
0.009042417630553246,
-0.00882919505238533,
0.008513612672686577,
-0.030424216762185097,
-0.022358838468790054,
-0.07146541029214859,
-0.026242442429065704,
-0.01635010354220867,
-0.021434051916003227,
0.06419408321380615,
0.009422024711966515,
0.0013705349992960691,
0.07170123606920242,
0.04861563444137573,
-0.011966296471655369,
-0.039493948221206665,
0.03330443799495697,
0.03198637440800667,
-0.041931796818971634,
-0.06112471595406532,
-0.052013762295246124,
0.052996885031461716,
0.059086475521326065,
-0.006850173231214285,
-0.0747501328587532,
0.0005846756976097822,
0.04527460038661957,
-0.042498450726270676,
0.055491551756858826,
-0.02266833931207657,
0.06451575458049774,
0.06476327031850815,
0.0000844411042635329,
0.03985501080751419,
-0.023779701441526413,
0.0036944483872503042,
0.01421314850449562,
0.023039940744638443,
-0.04299929365515709,
-0.05286799371242523,
-0.06354442983865738,
0.03215189278125763,
0.030644243583083153,
0.05377429351210594,
0.054090745747089386,
-0.010029315948486328,
-0.04326436668634415,
0.007715413346886635,
0.01632085070014,
-0.041308142244815826,
-0.003392997197806835,
0.014265930280089378,
0.06626909226179123,
-0.059166379272937775,
-0.027620933949947357,
-0.040308427065610886,
-0.0034034179989248514,
0.04150191694498062,
0.00929575227200985,
-0.03206004202365875,
-0.05498741939663887,
0.012554367072880268,
-0.0090584522113204,
-0.0156557634472847,
-0.0709930881857872,
-0.0009904411854222417,
-0.020044034346938133,
-0.017098097130656242,
0.021841108798980713,
0.045163143426179886,
0.04567001760005951,
0.05861307308077812,
0.009277807548642159,
0.014180432073771954,
-0.04754725098609924,
0.030412061139941216,
-0.025600316002964973,
-0.01124783605337143,
-0.020156610757112503,
-0.038510289043188095,
0.003880265401676297,
-0.0415433868765831,
-0.027755672112107277,
-0.05601608753204346,
-0.013068757019937038,
0.009890204295516014,
-0.02126169577240944,
0.014282171614468098,
-0.02392411231994629,
0.024827731773257256,
-0.030307093635201454,
-0.040988489985466,
-0.024379268288612366,
-0.029359960928559303,
-0.0641854926943779,
-0.05104001238942146,
0.014070209115743637,
0.00801046285778284,
0.024019090458750725,
0.027474258095026016,
0.019687671214342117,
0.012658032588660717,
0.010685366578400135,
-0.033144813030958176,
0.030954431742429733,
0.00803364533931017,
-0.045518770813941956,
-0.03992682322859764,
0.01872009038925171,
0.010837918147444725,
0.02209172211587429,
-0.035283710807561874,
0.029738182201981544,
0.016917062923312187,
-0.02106682024896145,
-0.014193148352205753,
0.04477803409099579,
0.02018490806221962,
-0.08737063407897949,
-0.04359932988882065,
-0.013908278197050095,
-0.043393656611442566,
0.04462915658950806,
-0.016397323459386826,
-0.0325542651116848,
0.016889745369553566,
0.03386540710926056,
0.051386892795562744,
-0.0000997160968836397,
-0.03859195113182068,
0.008837918750941753,
-0.03200302645564079,
0.03367284685373306,
-0.05955317243933678,
0.03877269849181175,
-0.055586282163858414,
0.03082318790256977,
-0.008799752220511436,
0.012943128123879433,
-0.04193194583058357,
0.029102817177772522,
-0.02057461626827717,
-0.0079989954829216,
-0.017322959378361702,
0.006384743377566338,
-0.028844209387898445,
0.04143565893173218,
-0.029346855357289314,
0.0021461874712258577,
-0.014441126026213169,
0.0708325132727623,
-0.041514549404382706,
-0.007664955221116543,
-0.023487351834774017,
0.00125229568220675,
-0.05105363205075264,
-0.013780567795038223,
-0.0015734886983409524,
-0.03004070371389389,
0.044029757380485535,
0.017377808690071106,
0.03563243895769119,
0.04677758738398552,
0.0015466479817405343,
0.0024120172020047903,
0.015326518565416336,
-0.054177116602659225,
-0.02243245206773281,
-0.0029119576793164015,
0.014393429271876812,
-0.003210785100236535,
0.06092799827456474,
0.05379161983728409,
-0.05798666179180145,
-0.04545627161860466,
0.06366173923015594,
0.01695634238421917,
0.007602972909808159,
-0.004014076665043831,
0.04255082458257675,
0.036420777440071106,
0.041104696691036224,
-0.0269699115306139,
-0.009948810562491417,
0.011099354363977909,
-0.032082896679639816,
0.013078897260129452,
0.0045562563464045525,
0.01978158950805664,
0.03198815882205963,
-0.028222324326634407,
-0.05249014496803284,
0.06335975229740143,
0.02865028940141201,
0.01794540509581566,
0.01613292098045349,
-0.03711095079779625,
0.004490784835070372,
0.007576651871204376,
-0.05015921965241432,
-0.011212379671633244,
0.020718930289149284,
-0.022426771000027657,
0.07992062717676163,
-0.034586675465106964,
0.023106001317501068,
0.04693159461021423,
0.004952794406563044,
-0.01374045480042696,
0.04295991361141205,
-0.040023889392614365,
0.018497005105018616,
0.03898845613002777,
-0.03777613490819931,
-0.02225550264120102,
-0.03428781405091286,
0.06672221422195435,
-0.06149699538946152,
0.04959855601191521,
0.03204265981912613,
0.02474549040198326,
0.019005272537469864,
-0.018170196563005447,
-0.03852680325508118,
0.009658406488597393,
-0.05128045380115509,
0.07417694479227066,
0.0011800434440374374,
-0.05610639229416847,
0.07195202261209488,
0.016709547489881516,
-0.05566304177045822,
0.045439060777425766,
0.029985278844833374,
0.027662968263030052,
0.016401655972003937,
0.054427847266197205,
-0.04498894885182381,
0.008792252279818058,
-0.036684345453977585,
0.030081134289503098,
-0.04724797233939171,
-0.033693380653858185,
0.011092915199697018,
-0.03648248314857483,
-0.01483058463782072,
0.049947042018175125,
-0.033663079142570496,
-0.01530695240944624,
0.020783863961696625,
-0.07208859175443649,
-0.06777025014162064,
-0.0005842236569151282,
0.016748039051890373,
-0.020578719675540924,
-0.015401463024318218,
-0.0307807344943285,
0.028554996475577354,
0.002314607612788677,
-0.005450683180242777,
-0.0521007739007473,
0.009926071390509605,
0.021028218790888786,
-0.0470651350915432,
-0.04498570039868355,
0.0500362254679203,
0.005824515130370855,
-0.016752954572439194,
0.027243103832006454,
-0.01071152463555336,
0.002166074700653553,
0.027513818815350533,
0.001249618479050696,
0.020520878955721855,
-0.025399159640073776,
0.0034450192470103502,
0.0067411730997264385,
0.017200378701090813,
0.031639743596315384,
-0.021700089797377586,
0.023142371326684952,
0.02791123278439045,
0.056722741574048996,
0.0016060024499893188,
-0.038334861397743225,
-0.026751689612865448,
0.030641566962003708,
-0.04412591829895973,
-0.001960698515176773,
-0.008066195994615555,
-0.042525485157966614,
-0.03466470167040825,
-0.008269308134913445,
-0.025048207491636276,
0.05127454176545143,
-0.07124187797307968,
0.012745578773319721,
0.04833991825580597,
-0.0453849695622921,
-0.04838402941823006,
-0.08548341691493988,
-0.0156780444085598,
-0.04390021413564682,
0.03106965683400631,
0.02422645315527916,
-0.02961331233382225,
0.01892402395606041,
-0.03741193562746048,
-0.03775934502482414,
0.04386606439948082,
0.024879418313503265,
-0.03931477293372154,
0.05627306178212166,
0.0450119823217392,
-0.059564266353845596,
0.00556227657943964,
0.030558034777641296,
-0.04183913767337799,
0.017290927469730377,
0.024560678750276566,
0.017385700717568398,
0.011548762209713459,
0.03512556105852127,
-0.03929023817181587,
-0.02085753343999386,
-0.061790868639945984,
-0.044836029410362244,
-0.034765660762786865,
0.010704337619245052,
0.062406182289123535
] |
bert-large-cased-whole-word-masking-finetuned-squad | [
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"bert",
"question-answering",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | question-answering | {
"architectures": [
"BertForQuestionAnswering"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8,214 | 2019-06-18T21:49:26Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.012906759046018124,
0.0037411816883832216,
-0.013025769963860512,
0.05689029395580292,
0.022575486451387405,
0.026862403377890587,
-0.017131082713603973,
-0.02745896764099598,
-0.028134431689977646,
0.047932159155607224,
0.008765504695475101,
0.0010784948244690895,
0.011876181699335575,
0.038451481610536575,
-0.017646424472332,
-0.02126169204711914,
-0.01073484681546688,
-0.014673497527837753,
-0.03604884073138237,
-0.012153653427958488,
-0.005899983458220959,
0.0008880208479240537,
0.008754468522965908,
0.018916988745331764,
-0.001100338064134121,
0.027853723615407944,
0.005877159535884857,
0.040525466203689575,
0.02093230001628399,
-0.06916145980358124,
-0.0005472691846080124,
-0.025616716593503952,
-0.05161406099796295,
0.01070487406104803,
-0.016521604731678963,
0.007276464253664017,
-0.004336898680776358,
-0.0003661968803498894,
0.05311891436576843,
0.06296669691801071,
-0.004569657146930695,
-0.0052992175333201885,
-0.017514310777187347,
-0.043326105922460556,
0.02866269089281559,
0.0025508198887109756,
-0.05221150815486908,
-0.00442249933257699,
0.04120788350701332,
-0.016443397849798203,
-0.05623198673129082,
-0.06504493206739426,
-0.026280878111720085,
0.029820792376995087,
0.0074493237771093845,
-0.02403603121638298,
-0.0630858987569809,
-0.016703259199857712,
0.05871914327144623,
-0.04493098706007004,
-0.04384112358093262,
0.0005943067953921854,
-0.036898862570524216,
0.030354999005794525,
0.03483036532998085,
-0.031688589602708817,
0.015547084622085094,
-0.050300050526857376,
0.024019882082939148,
-0.029546307399868965,
0.03901178017258644,
-0.033276986330747604,
0.004536470398306847,
-0.10145767033100128,
-0.00021166160877328366,
-0.016033226624131203,
0.04643959924578667,
0.03833756223320961,
-0.028049901127815247,
0.05502499267458916,
0.018728194758296013,
0.0029801097698509693,
0.017395881935954094,
-0.010802551172673702,
-0.013493619859218597,
0.06248410418629646,
-0.04599256068468094,
-0.003417100990191102,
-0.00395009433850646,
0.04613383486866951,
-0.022210050374269485,
-0.0033939583227038383,
-0.03482392057776451,
-0.041871123015880585,
-0.04090474545955658,
0.021454723551869392,
0.020520400255918503,
0.000434015499195084,
0.04254530742764473,
0.02514331229031086,
0.028449755162000656,
0.05601656064391136,
-0.01477667037397623,
0.0765361487865448,
-0.012133358046412468,
-0.020825736224651337,
-0.03358675166964531,
-0.03228246420621872,
-0.042368367314338684,
0.027864402160048485,
0.02686394564807415,
-0.03861880674958229,
-0.059899020940065384,
0.04592707008123398,
-0.0022254677023738623,
-0.043148599565029144,
0.04836110770702362,
-0.015091022476553917,
-0.041582901030778885,
-0.04832495376467705,
0.030728261917829514,
-0.008758330717682838,
0.025779705494642258,
-0.0009251604788005352,
-0.06581144034862518,
0.019458390772342682,
-0.03743118420243263,
-0.030100887641310692,
0.0024222475476562977,
0.022909533232450485,
-0.018931696191430092,
0.04077902063727379,
0.031723782420158386,
-0.05853910744190216,
0.017555342987179756,
0.010029096156358719,
-0.06675667315721512,
0.04312115162611008,
0.044010184705257416,
0.13354501128196716,
-0.05004720017313957,
-0.0514136366546154,
0.037107571959495544,
0.02828110381960869,
-0.015302075073122978,
0.008738311938941479,
0.03229040652513504,
-0.01961890608072281,
-0.01610780879855156,
-0.003184760455042124,
0.05193538963794708,
-0.05301538482308388,
0.0015494318213313818,
0.050233639776706696,
-0.00600363640114665,
0.04248400405049324,
-0.05473850667476654,
-0.005855472292751074,
-0.013272476382553577,
-0.0015276361955329776,
-0.024292076006531715,
0.04715026915073395,
-0.020410647615790367,
-0.020157238468527794,
-0.038223061710596085,
-0.03779524564743042,
-0.0017664527986198664,
0.06829007714986801,
-0.003990445751696825,
-0.015233471058309078,
-0.040238071233034134,
0.015559377148747444,
0.04445759207010269,
0.04368932545185089,
-0.03214788809418678,
0.02352423593401909,
0.06395649164915085,
0.0296221561729908,
-0.029117634519934654,
0.057935427874326706,
0.002308388939127326,
-0.034223753958940506,
-0.031163299456238747,
0.011769254691898823,
-0.01487356424331665,
-0.045520275831222534,
0.03330349922180176,
0.0318622924387455,
-0.004066715482622385,
-0.020984763279557228,
-0.024513188749551773,
0.05193120986223221,
0.007713666185736656,
0.0054368190467357635,
0.025107035413384438,
-0.0025628486182540655,
-0.024855999276041985,
0.05078267678618431,
-0.027814554050564766,
0.014856582507491112,
-0.0067860037088394165,
-0.018742920830845833,
0.006220178212970495,
0.0316840223968029,
0.043656475841999054,
0.050892267376184464,
0.001776624470949173,
0.0722762867808342,
-0.0267912857234478,
0.022486472502350807,
-0.058683522045612335,
-0.043786607682704926,
0.0002087619504891336,
0.030636390671133995,
0.020335137844085693,
0.04284173622727394,
-0.0014170357026159763,
-0.04494185000658035,
0.003948675002902746,
0.06497199833393097,
0.045920733362436295,
0.02450910024344921,
-0.03022618778049946,
-0.018213901668787003,
0.03701047599315643,
0.05958697944879532,
-0.057860080152750015,
-0.04670969396829605,
0.03909367322921753,
0.0443841777741909,
-0.012642852030694485,
0.010349426418542862,
-0.017899947240948677,
0.029310911893844604,
-0.04169900715351105,
-0.06822674721479416,
0.03910450637340546,
0.03405247628688812,
-0.009882112964987755,
0.03247939795255661,
-0.029226936399936676,
0.004891744814813137,
0.02286176010966301,
0.01696033775806427,
-0.001963934861123562,
-0.02900475636124611,
0.013793978840112686,
0.03426649048924446,
0.043068788945674896,
-0.04988650605082512,
0.03630232438445091,
0.002582465996965766,
0.014196784235537052,
0.04371345788240433,
-0.012299695052206516,
0.029797393828630447,
0.03776512295007706,
0.0068806675262749195,
-0.03221650794148445,
0.017803097143769264,
0.00320075755007565,
0.062369298189878464,
0.06763727962970734,
0.009013500064611435,
0.05831507220864296,
0.007160878740251064,
0.046489253640174866,
0.07376078516244888,
0.02204088121652603,
0.01614452712237835,
0.013388575054705143,
0.07060960680246353,
0.0015979409217834473,
-0.009908992797136307,
0.09096939861774445,
-0.04924369603395462,
0.007985846139490604,
-0.052640315145254135,
0.03563705086708069,
0.01211295835673809,
-0.008872129023075104,
0.05401286110281944,
0.026107309386134148,
0.0017549613257870078,
0.0030984878540039062,
-0.00097930571064353,
-0.036142222583293915,
0.05953439325094223,
-0.017449934035539627,
0.024211766198277473,
-0.007349569816142321,
-0.02680317685008049,
-0.011149872094392776,
-0.06879743188619614,
-0.04722941294312477,
0.004827993921935558,
-0.023871775716543198,
-0.01155086513608694,
-0.10077999532222748,
-0.025044720619916916,
-0.04470187798142433,
-0.020517492666840553,
0.024027695879340172,
0.01836531050503254,
0.019273463636636734,
-0.03188083693385124,
0.028111375868320465,
-0.04259040206670761,
-0.020032702013850212,
-0.041067756712436676,
-0.03420446068048477,
-0.0516175851225853,
-0.055301327258348465,
0.048136550933122635,
0.02229950949549675,
0.02900732308626175,
-0.0032936278730630875,
0.0031762670259922743,
-0.028345026075839996,
-0.006453363690525293,
0.03824903070926666,
0.03625614941120148,
-0.041548196226358414,
-0.045625630766153336,
0.011495091952383518,
-0.005192580632865429,
0.00583639508113265,
-0.024441823363304138,
-0.0069989426992833614,
0.09535956382751465,
0.09032464027404785,
0.04136836156249046,
0.006682840175926685,
-0.014456786215305328,
-0.04772857576608658,
-0.07438413053750992,
-0.02988690882921219,
-0.04011116549372673,
-0.011023013852536678,
-0.05951924994587898,
-0.04125836491584778,
0.0034775163512676954,
-0.027961688116192818,
0.000597848033066839,
-0.004053452052175999,
0.03283431753516197,
0.037497200071811676,
0.04415613040328026,
0.015955733135342598,
0.026560792699456215,
-0.02243882790207863,
-0.029183434322476387,
0.057693805545568466,
0.006682639941573143,
0.02109910547733307,
-0.07057024538516998,
-0.04994272068142891,
0.03844858705997467,
0.029534269124269485,
-0.001476322184316814,
-0.004379251040518284,
0.08367886394262314,
0.006876778788864613,
-0.018383771181106567,
-0.004298157524317503,
0.011572550050914288,
-0.028763851150870323,
-0.012759103439748287,
-0.004874106030911207,
-0.021867668256163597,
-0.033992230892181396,
-0.05023789033293724,
-0.015090432949364185,
0.03972100839018822,
-0.055970776826143265,
-0.056331880390644073,
-0.027707600966095924,
0.05418092757463455,
0.01990109495818615,
-0.0029995893128216267,
-0.03002086654305458,
-0.009510246105492115,
-0.04620935395359993,
-0.01602247543632984,
-0.0017618564888834953,
0.0033105493057519197,
0.014589395374059677,
0.03331181779503822,
0.02591162547469139,
-0.026515355333685875,
0.02434365637600422,
0.04127909988164902,
0.05766434594988823,
-0.0027664091903716326,
-0.05335363745689392,
0.0279984213411808,
-0.02854064479470253,
0.025339847430586815,
0.002414073096588254,
-0.02829771861433983,
-0.05586821958422661,
-0.08765825629234314,
0.006076119840145111,
-0.018923567607998848,
-0.005885808728635311,
-0.012057284824550152,
0.03189938887953758,
-0.03367919474840164,
-0.0300330501049757,
0.005601093173027039,
0.016027268022298813,
0.0292916651815176,
-0.04026198759675026,
0.06784311681985855,
-0.023175673559308052,
0.016895338892936707,
-0.05626905336976051,
0.020304294303059578,
-0.04954780638217926,
-0.02179683744907379,
0.0031595411710441113,
0.05780957639217377,
0.02032649517059326,
0.05502576380968094,
0.06745672971010208,
0.05327432230114937,
-0.059799674898386,
0.03626970574259758,
0.04069310799241066,
-0.006421276368200779,
-0.03356647863984108,
-0.009688407182693481,
-0.01914730668067932,
-0.02293018251657486,
-0.025479979813098907,
-0.012423197738826275,
0.01438872143626213,
0.029526887461543083,
0.0024862883146852255,
-0.011879166588187218,
0.01837596297264099,
-0.022576434537768364,
-0.03280852735042572,
-0.06807675957679749,
-0.02383473515510559,
-0.0008809477440081537,
-0.027746446430683136,
0.0637681856751442,
0.009605314582586288,
0.004099529702216387,
0.06637631356716156,
0.052024565637111664,
-0.020592279732227325,
-0.04101499915122986,
0.02620154432952404,
0.03045632131397724,
-0.043498143553733826,
-0.06267412006855011,
-0.054620858281850815,
0.05306757986545563,
0.06291832774877548,
-0.0016652533086016774,
-0.075218066573143,
-0.0071173240430653095,
0.03677621856331825,
-0.03976849839091301,
0.06366195529699326,
-0.02861744910478592,
0.06403981894254684,
0.05589134991168976,
0.000595912046264857,
0.03907327353954315,
-0.02808641828596592,
-0.002638227539137006,
0.010565642267465591,
0.02879437804222107,
-0.04211415350437164,
-0.047589726746082306,
-0.06036720424890518,
0.02533506415784359,
0.025682883337140083,
0.06206647306680679,
0.04842549189925194,
-0.012121167965233326,
-0.044592831283807755,
0.024528298527002335,
0.01900421269237995,
-0.04989160597324371,
-0.006781275849789381,
0.010912650264799595,
0.05680704861879349,
-0.05540400743484497,
-0.03361634537577629,
-0.05160250887274742,
-0.010552744381129742,
0.03668973222374916,
0.006542057264596224,
-0.033791035413742065,
-0.05753206089138985,
0.011322644539177418,
-0.0011357355397194624,
-0.013552261516451836,
-0.06766830384731293,
0.004002473782747984,
-0.017513824626803398,
-0.009551498107612133,
0.020711181685328484,
0.04389775171875954,
0.0468050017952919,
0.06096179038286209,
0.010234147310256958,
0.018365932628512383,
-0.04851981997489929,
0.031799037009477615,
-0.029157627373933792,
-0.007958361878991127,
-0.018228113651275635,
-0.03164615482091904,
0.004538586363196373,
-0.04015059396624565,
-0.02939085103571415,
-0.06617431342601776,
-0.012756609357893467,
0.006022522691637278,
-0.020369766280055046,
0.019890882074832916,
-0.03193945810198784,
0.031195135787129402,
-0.02350008673965931,
-0.038274023681879044,
-0.02761109545826912,
-0.026479071006178856,
-0.06996874511241913,
-0.055430904030799866,
0.01730925776064396,
0.004594688769429922,
0.035175301134586334,
0.021772410720586777,
0.02418023906648159,
0.0028155995532870293,
0.007150937803089619,
-0.03786538541316986,
0.03688757121562958,
0.011179666966199875,
-0.0363255999982357,
-0.03381788730621338,
0.020473375916481018,
0.020999716594815254,
0.019771641120314598,
-0.03803328052163124,
0.025309959426522255,
0.02471253089606762,
-0.01774420589208603,
-0.005944755394011736,
0.04544638842344284,
0.01731487363576889,
-0.08724579215049744,
-0.04992567002773285,
-0.014591836370527744,
-0.04628197103738785,
0.04507773369550705,
-0.017044780775904655,
-0.027476126328110695,
0.024256128817796707,
0.019260553643107414,
0.05719498544931412,
0.004524608142673969,
-0.036179348826408386,
0.0034984424710273743,
-0.029621560126543045,
0.0366324745118618,
-0.0551488995552063,
0.04560518264770508,
-0.05734580382704735,
0.02928123064339161,
-0.007769221905618906,
0.016405493021011353,
-0.04051797464489937,
0.031099136918783188,
-0.01669158786535263,
-0.012121190316975117,
-0.01963949017226696,
0.007844463922083378,
-0.03986967355012894,
0.045109424740076065,
-0.03971649706363678,
0.007395666558295488,
-0.014079511165618896,
0.06625170260667801,
-0.03857079893350601,
-0.0009788728784769773,
-0.02113104797899723,
0.001968037337064743,
-0.04912078380584717,
-0.02708549238741398,
-0.009960656054317951,
-0.0302147027105093,
0.044914670288562775,
0.02644972689449787,
0.03163837641477585,
0.047828469425439835,
0.002674129791557789,
-0.0013678405666723847,
0.021794393658638,
-0.061355751007795334,
-0.016477031633257866,
0.0016172451432794333,
0.015368535183370113,
-0.007866756059229374,
0.05892671272158623,
0.053099505603313446,
-0.04751582071185112,
-0.04851736128330231,
0.06171848252415657,
0.016808602958917618,
0.01576145365834236,
-0.0055016567930579185,
0.0496799610555172,
0.0382477231323719,
0.041322194039821625,
-0.0286665391176939,
-0.011594854295253754,
0.015457790344953537,
-0.029545675963163376,
0.03032209351658821,
0.0065358174033463,
0.025299767032265663,
0.022503478452563286,
-0.02813209965825081,
-0.050015054643154144,
0.052741874009370804,
0.03863315284252167,
0.02123061940073967,
0.01287386566400528,
-0.03602815791964531,
0.012389523908495903,
0.0003154063306283206,
-0.054816726595163345,
0.002624382032081485,
0.01580633595585823,
-0.031567905098199844,
0.07206469029188156,
-0.03256768733263016,
0.02587316930294037,
0.03409875929355621,
0.010647494345903397,
-0.009574553929269314,
0.03662377968430519,
-0.05507601425051689,
0.028423167765140533,
0.04339659959077835,
-0.029615264385938644,
-0.014263545162975788,
-0.030168458819389343,
0.06610526889562607,
-0.06226871907711029,
0.05141778662800789,
0.03678509593009949,
0.010399352759122849,
0.016171228140592575,
-0.010152220726013184,
-0.04269072413444519,
0.0091371089220047,
-0.041336700320243835,
0.0796850323677063,
0.006569052115082741,
-0.06262137740850449,
0.06844830513000488,
0.014997572638094425,
-0.058901749551296234,
0.0437651090323925,
0.03413626551628113,
0.02762172929942608,
0.02030211128294468,
0.05795912817120552,
-0.037599917501211166,
0.010489776730537415,
-0.04213878884911537,
0.01921192742884159,
-0.0440649576485157,
-0.03593684360384941,
0.02317003533244133,
-0.037329453974962234,
-0.022408191114664078,
0.04576960951089859,
-0.03165171667933464,
-0.009623241610825062,
0.014044559560716152,
-0.07613031566143036,
-0.05101465433835983,
0.0026012714952230453,
0.022931750863790512,
-0.025754665955901146,
-0.014899598434567451,
-0.02777675725519657,
0.019703635945916176,
0.0013474409934133291,
-0.0116521455347538,
-0.051842767745256424,
0.012717430479824543,
0.021277476102113724,
-0.05167671665549278,
-0.04050648212432861,
0.05812714248895645,
0.016663404181599617,
-0.020289083942770958,
0.029146596789360046,
-0.011441017501056194,
-0.0056024887599051,
0.019808223471045494,
0.0033618982415646315,
0.013753815554082394,
-0.032087698578834534,
-0.005560483783483505,
0.007515693549066782,
0.014011983759701252,
0.03263436630368233,
-0.020969003438949585,
0.02448870614171028,
0.040913019329309464,
0.05970225855708122,
-0.006542867980897427,
-0.03200407698750496,
-0.023623626679182053,
0.030874956399202347,
-0.04670119285583496,
-0.0024185471702367067,
-0.006599988788366318,
-0.040411997586488724,
-0.03567613661289215,
-0.00501340301707387,
-0.025871172547340393,
0.05146218091249466,
-0.07861877977848053,
0.009099761955440044,
0.05031644552946091,
-0.03568604961037636,
-0.05146093666553497,
-0.08535252511501312,
-0.018030637875199318,
-0.04753747582435608,
0.032170265913009644,
0.015349626541137695,
-0.038344670087099075,
0.025749849155545235,
-0.04258959740400314,
-0.04340178519487381,
0.04316515102982521,
0.0223477091640234,
-0.03499958664178848,
0.043330419808626175,
0.036250535398721695,
-0.057408612221479416,
-0.00028146631666459143,
0.03129495307803154,
-0.03869006410241127,
0.016888251528143883,
0.022813282907009125,
0.007392499595880508,
0.01499943621456623,
0.027118556201457977,
-0.03388982638716698,
-0.02363690920174122,
-0.05871479958295822,
-0.04593556001782417,
-0.030953101813793182,
0.010282479226589203,
0.05693559721112251
] |
bert-large-cased-whole-word-masking | [
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 2,316 | 2019-06-15T21:59:11Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.013023896142840385,
0.004246004857122898,
-0.013001266866922379,
0.056599222123622894,
0.022739851847290993,
0.02895577996969223,
-0.0168935414403677,
-0.03000759333372116,
-0.026967283338308334,
0.048546336591243744,
0.010901414789259434,
-0.0011269774986431003,
0.011947228573262691,
0.03743385151028633,
-0.017436204478144646,
-0.018760686740279198,
-0.013491420075297356,
-0.010750951245427132,
-0.03363046795129776,
-0.009648962877690792,
-0.0052656494081020355,
0.00045149269863031805,
0.006947143003344536,
0.019754111766815186,
-0.00261080265045166,
0.027352603152394295,
0.011634355410933495,
0.04037681967020035,
0.01637842319905758,
-0.07269439101219177,
-0.00043852359522134066,
-0.02453962340950966,
-0.051587123423814774,
0.015241855755448341,
-0.015329083427786827,
0.005715992301702499,
-0.005008965265005827,
-0.00009044630132848397,
0.05008510500192642,
0.06198963522911072,
-0.0030686859972774982,
-0.007324513979256153,
-0.01652015931904316,
-0.04329972714185715,
0.029405975714325905,
0.0011520673288032413,
-0.05157341808080673,
-0.0070473626255989075,
0.04302981123328209,
-0.013074834831058979,
-0.05706748738884926,
-0.0626518726348877,
-0.025786852464079857,
0.026255710050463676,
0.006565255578607321,
-0.02610781602561474,
-0.06263240426778793,
-0.015212208032608032,
0.059079211205244064,
-0.04434917867183685,
-0.047250859439373016,
-0.002932841656729579,
-0.04006776586174965,
0.03136701509356499,
0.03687579929828644,
-0.03304709121584892,
0.01722891256213188,
-0.04710713028907776,
0.02361277863383293,
-0.029985466971993446,
0.03747794032096863,
-0.03372941538691521,
0.006107470951974392,
-0.10477128624916077,
-0.002529381075873971,
-0.019592247903347015,
0.045914847403764725,
0.04059058055281639,
-0.0257564764469862,
0.055250756442546844,
0.017237059772014618,
0.0010820856550708413,
0.016977952793240547,
-0.012301953509449959,
-0.009900340810418129,
0.06401816010475159,
-0.048006292432546616,
-0.006206477526575327,
-0.005618007853627205,
0.04706428200006485,
-0.023127423599362373,
-0.002230620477348566,
-0.0329420380294323,
-0.040629711002111435,
-0.039247363805770874,
0.01892155595123768,
0.01972731202840805,
-0.0010837186127901077,
0.04558900371193886,
0.021497339010238647,
0.02919023483991623,
0.055517300963401794,
-0.013903413899242878,
0.07735921442508698,
-0.011291556060314178,
-0.022751295939087868,
-0.032089196145534515,
-0.03381066024303436,
-0.045068539679050446,
0.023615160956978798,
0.025682231411337852,
-0.03669522702693939,
-0.05795176327228546,
0.05205259472131729,
-0.006794337183237076,
-0.04532794654369354,
0.04877736046910286,
-0.017013749107718468,
-0.04256967455148697,
-0.047005657106637955,
0.03055909462273121,
-0.009696834720671177,
0.023686276748776436,
0.00036683137295767665,
-0.06810393929481506,
0.019523655995726585,
-0.03654420003294945,
-0.026616474613547325,
0.004009457770735025,
0.019565796479582787,
-0.01990332268178463,
0.03916655108332634,
0.033358436077833176,
-0.05434247851371765,
0.016642961651086807,
0.00874805822968483,
-0.06405206024646759,
0.04423623904585838,
0.0454438216984272,
0.13072726130485535,
-0.05328742042183876,
-0.05091392621397972,
0.0358438566327095,
0.0306343212723732,
-0.016870327293872833,
0.006439612712711096,
0.03589446097612381,
-0.018917078152298927,
-0.0152087127789855,
-0.006372961215674877,
0.05174534022808075,
-0.054942164570093155,
-0.002176072681322694,
0.050493497401475906,
-0.008055632002651691,
0.04140990599989891,
-0.05195315554738045,
-0.00908154807984829,
-0.01467361580580473,
-0.004064902663230896,
-0.024615652859210968,
0.04577557370066643,
-0.020143847912549973,
-0.021229609847068787,
-0.03941510617733002,
-0.03781774640083313,
-0.0023295017890632153,
0.06626018136739731,
-0.006311745382845402,
-0.014950553886592388,
-0.04215207323431969,
0.016021765768527985,
0.044734153896570206,
0.04337448254227638,
-0.033834367990493774,
0.02454056590795517,
0.065079465508461,
0.031374573707580566,
-0.03168526291847229,
0.05956023558974266,
0.00031787040643393993,
-0.03229464963078499,
-0.033409155905246735,
0.014597934670746326,
-0.011976792477071285,
-0.04614255949854851,
0.03333449736237526,
0.029994266107678413,
-0.0050325896590948105,
-0.01747819036245346,
-0.021474065259099007,
0.050315700471401215,
0.010342203080654144,
0.00454645836725831,
0.025942090898752213,
-0.003896470181643963,
-0.02369006723165512,
0.05080597475171089,
-0.027079802006483078,
0.014065816067159176,
-0.0016950065037235618,
-0.015201622620224953,
0.006810287944972515,
0.029632646590471268,
0.04749961942434311,
0.04802095517516136,
0.003733719466254115,
0.07074442505836487,
-0.02836710773408413,
0.024898165836930275,
-0.05818023160099983,
-0.04393550008535385,
-0.003548272419720888,
0.028389573097229004,
0.025632336735725403,
0.04190675541758537,
-0.0026820795610547066,
-0.04609500989317894,
0.004015815444290638,
0.06492846459150314,
0.050304122269153595,
0.026125624775886536,
-0.03312544897198677,
-0.014968808740377426,
0.029482455924153328,
0.05973270907998085,
-0.059939995408058167,
-0.04654102027416229,
0.04052412137389183,
0.04931555315852165,
-0.018110817298293114,
0.009077598340809345,
-0.019129524007439613,
0.029153328388929367,
-0.04106263816356659,
-0.06616269797086716,
0.03777987137436867,
0.03539104387164116,
-0.0072592333890497684,
0.030122552067041397,
-0.02209758758544922,
0.008148915134370327,
0.02259795553982258,
0.018604235723614693,
0.0002573678211774677,
-0.03285403549671173,
0.011805526912212372,
0.035979680716991425,
0.04301643744111061,
-0.04856419935822487,
0.036235954612493515,
0.004163969308137894,
0.015923505648970604,
0.041762348264455795,
-0.008990841917693615,
0.028599813580513,
0.041612837463617325,
0.00503634475171566,
-0.034114375710487366,
0.019079625606536865,
0.0013825187925249338,
0.059301380068063736,
0.06494902819395065,
0.005912354215979576,
0.05947412550449371,
0.009488585405051708,
0.04508121311664581,
0.07297036051750183,
0.02171967178583145,
0.014273115433752537,
0.014979877509176731,
0.0709935650229454,
0.0028089710976928473,
-0.011136184446513653,
0.08744160085916519,
-0.04782404378056526,
0.010862987488508224,
-0.05331961065530777,
0.036992378532886505,
0.012075960636138916,
-0.011961085721850395,
0.055032506585121155,
0.02551327459514141,
0.0021573519334197044,
0.004961884580552578,
-0.0014163512969389558,
-0.03663483262062073,
0.06009091064333916,
-0.0170685313642025,
0.02567421831190586,
-0.011903789825737476,
-0.027227651327848434,
-0.011398589238524437,
-0.07286102324724197,
-0.045955050736665726,
0.004475375171750784,
-0.02405872568488121,
-0.010110180824995041,
-0.09990546107292175,
-0.02479902282357216,
-0.044286999851465225,
-0.02110321819782257,
0.022572388872504234,
0.015745485201478004,
0.018170399591326714,
-0.027662362903356552,
0.027491720393300056,
-0.04195025563240051,
-0.016921168193221092,
-0.040093839168548584,
-0.03265620768070221,
-0.05428601801395416,
-0.055064063519239426,
0.04484451189637184,
0.023328788578510284,
0.028905609622597694,
-0.0037857103161513805,
-0.0007140134111978114,
-0.03348013013601303,
-0.009396341629326344,
0.035773880779743195,
0.036010079085826874,
-0.04113970324397087,
-0.045892804861068726,
0.012149541638791561,
-0.006309818476438522,
0.0027203743811696768,
-0.023104118183255196,
-0.0030579273588955402,
0.09758014231920242,
0.08721742033958435,
0.04224638268351555,
0.006327973213046789,
-0.015514513477683067,
-0.04479752853512764,
-0.07096262276172638,
-0.029796363785862923,
-0.04222920909523964,
-0.00989525392651558,
-0.062286313623189926,
-0.04344506189227104,
0.0014942963607609272,
-0.028962217271327972,
0.001610421808436513,
-0.001983403228223324,
0.030575985088944435,
0.037371836602687836,
0.04046386107802391,
0.017433926463127136,
0.027694588527083397,
-0.02102615498006344,
-0.029782341793179512,
0.060580164194107056,
0.004984188824892044,
0.018391910940408707,
-0.07262680679559708,
-0.048429641872644424,
0.03983521834015846,
0.030856844037771225,
-0.003514277283102274,
-0.007352746557444334,
0.08237729221582413,
0.008824648335576057,
-0.018822401762008667,
-0.003520083846524358,
0.009039560332894325,
-0.029163192957639694,
-0.014565729536116123,
-0.0029390824493020773,
-0.025693494826555252,
-0.03198901191353798,
-0.051995087414979935,
-0.020725112408399582,
0.03886808454990387,
-0.05633460357785225,
-0.05706103518605232,
-0.0300668403506279,
0.050877295434474945,
0.021556634455919266,
-0.0020696897991001606,
-0.026820771396160126,
-0.005690067075192928,
-0.043385099619627,
-0.01513765100389719,
-0.0017542095156386495,
0.0015440982533618808,
0.015024597756564617,
0.036250922828912735,
0.025851812213659286,
-0.02352290414273739,
0.02454487420618534,
0.04177211597561836,
0.05559081211686134,
-0.0011849311413243413,
-0.053614843636751175,
0.029536908492445946,
-0.023352662101387978,
0.025697972625494003,
0.0023427733685821295,
-0.028490064665675163,
-0.05852049961686134,
-0.08826185017824173,
0.007289362605661154,
-0.017193792387843132,
-0.006515840534120798,
-0.009165143594145775,
0.033275533467531204,
-0.03368533030152321,
-0.0304022878408432,
0.005886760540306568,
0.019114557653665543,
0.0253437589854002,
-0.04217594861984253,
0.0644049346446991,
-0.021801365539431572,
0.013862372376024723,
-0.055697157979011536,
0.02023463509976864,
-0.05375789850950241,
-0.02893660217523575,
-0.0015431841602548957,
0.05889374390244484,
0.024211550131440163,
0.05506528913974762,
0.06583847105503082,
0.05623535439372063,
-0.05898045003414154,
0.03828195482492447,
0.038809556514024734,
-0.003981282003223896,
-0.03532473370432854,
-0.011021637357771397,
-0.01613139547407627,
-0.024509694427251816,
-0.027050243690609932,
-0.011404633522033691,
0.01311136968433857,
0.028202803805470467,
0.005221045110374689,
-0.012309828773140907,
0.015955477952957153,
-0.02456524968147278,
-0.03148479387164116,
-0.0709841325879097,
-0.02165602520108223,
-0.00957612693309784,
-0.026621557772159576,
0.06369468569755554,
0.006954269949346781,
0.003148693824186921,
0.06753610074520111,
0.047281019389629364,
-0.021547900512814522,
-0.04264852777123451,
0.027956711128354073,
0.029457205906510353,
-0.042245037853717804,
-0.0625913143157959,
-0.05291684344410896,
0.053023193031549454,
0.06224225088953972,
-0.0006254988256841898,
-0.07785902172327042,
-0.004662612918764353,
0.03687328100204468,
-0.042302221059799194,
0.06086580082774162,
-0.025345448404550552,
0.06507475674152374,
0.054779235273599625,
0.0025669578462839127,
0.04163246229290962,
-0.026346733793616295,
0.0008113438379950821,
0.010518399998545647,
0.028099320828914642,
-0.04274958372116089,
-0.04694771766662598,
-0.061116356402635574,
0.023877067491412163,
0.02079247310757637,
0.060667600482702255,
0.049627576023340225,
-0.013201810419559479,
-0.04384547099471092,
0.021215084940195084,
0.018748896196484566,
-0.047005847096443176,
-0.005119787063449621,
0.010515771806240082,
0.056416284292936325,
-0.05803511664271355,
-0.032898664474487305,
-0.050733763724565506,
-0.010012740269303322,
0.0367111898958683,
0.005472454242408276,
-0.03256533667445183,
-0.05957880988717079,
0.010848852805793285,
0.0018114576814696193,
-0.014494315721094608,
-0.06947577744722366,
0.0005576486582867801,
-0.01813027262687683,
-0.01301820669323206,
0.019402876496315002,
0.046483322978019714,
0.046590548008680344,
0.061312608420848846,
0.010877626948058605,
0.018759839236736298,
-0.04607338458299637,
0.031800493597984314,
-0.02864746004343033,
-0.007474495097994804,
-0.016498148441314697,
-0.03577834367752075,
0.004403136670589447,
-0.04106328263878822,
-0.029502909630537033,
-0.0663050189614296,
-0.013294496573507786,
0.007245425134897232,
-0.02213699370622635,
0.020944854244589806,
-0.02732454426586628,
0.027570540085434914,
-0.026372449472546577,
-0.038004737347364426,
-0.026343433186411858,
-0.02987416461110115,
-0.07132898271083832,
-0.055455293506383896,
0.01959802955389023,
0.006886288523674011,
0.03376099839806557,
0.02097841538488865,
0.022980205714702606,
0.008467352949082851,
0.006652697455137968,
-0.03572605922818184,
0.037075553089380264,
0.011912422254681587,
-0.036989692598581314,
-0.03591010347008705,
0.022849002853035927,
0.01922166347503662,
0.018860116600990295,
-0.0403578095138073,
0.0250726118683815,
0.02410120517015457,
-0.020924778655171394,
-0.00890322308987379,
0.04500266909599304,
0.013115386478602886,
-0.08649834245443344,
-0.05208171531558037,
-0.015132645145058632,
-0.045687031000852585,
0.04451284930109978,
-0.015287513844668865,
-0.030970947816967964,
0.022444982081651688,
0.025569932535290718,
0.05702223256230354,
0.0012392597272992134,
-0.03562292829155922,
0.0027503373567014933,
-0.02979838103055954,
0.0363922081887722,
-0.05574093386530876,
0.044098298996686935,
-0.056233976036310196,
0.02788226120173931,
-0.008815689943730831,
0.015332936309278011,
-0.04445293918251991,
0.030425570905208588,
-0.017940552905201912,
-0.011860353872179985,
-0.01781514659523964,
0.007920129224658012,
-0.03438914939761162,
0.047285519540309906,
-0.0420391783118248,
0.0056726401671767235,
-0.013458136469125748,
0.0683974027633667,
-0.038575295358896255,
-0.0042916457168757915,
-0.019919075071811676,
0.0015903576277196407,
-0.05025274306535721,
-0.02423625811934471,
-0.0065864077769219875,
-0.030038179829716682,
0.046413056552410126,
0.026834608986973763,
0.031025847420096397,
0.04780935123562813,
0.0022087942343205214,
0.00117949687410146,
0.01989567093551159,
-0.059770647436380386,
-0.019389081746339798,
-0.0037093921564519405,
0.011555674485862255,
-0.008850524201989174,
0.05943967029452324,
0.05538816750049591,
-0.04948702082037926,
-0.047624580562114716,
0.06265374273061752,
0.01925322227180004,
0.012525614351034164,
-0.006227236241102219,
0.047859013080596924,
0.03723638504743576,
0.04231411591172218,
-0.02732906863093376,
-0.008982675150036812,
0.012990310788154602,
-0.03156954050064087,
0.02974313497543335,
0.0060604712925851345,
0.024499638006091118,
0.02113799937069416,
-0.031127940863370895,
-0.05183706060051918,
0.05406584590673447,
0.0354846715927124,
0.02078917995095253,
0.014794686809182167,
-0.0366937629878521,
0.008422378450632095,
0.0012627150863409042,
-0.053822409361600876,
-0.00041909641004167497,
0.015487528406083584,
-0.027538347989320755,
0.07337359338998795,
-0.035158731043338776,
0.02580276131629944,
0.0392443910241127,
0.00894354097545147,
-0.009520667605102062,
0.03545553609728813,
-0.05450154095888138,
0.025064483284950256,
0.04352538287639618,
-0.028022170066833496,
-0.01692916452884674,
-0.028328070417046547,
0.06393600255250931,
-0.06373744457960129,
0.055558960884809494,
0.031258292496204376,
0.010746806859970093,
0.01523387711495161,
-0.010772017762064934,
-0.04099150002002716,
0.009308991953730583,
-0.0426478274166584,
0.08024835586547852,
0.005926887039095163,
-0.059132300317287445,
0.06909913569688797,
0.017440535128116608,
-0.05718129500746727,
0.04192989692091942,
0.03152171149849892,
0.024947641417384148,
0.01774689368903637,
0.057016920298337936,
-0.03504939377307892,
0.012045435607433319,
-0.041384462267160416,
0.018670201301574707,
-0.04401175677776337,
-0.036913465708494186,
0.020525800064206123,
-0.03539828211069107,
-0.023981722071766853,
0.0447484627366066,
-0.03425154089927673,
-0.011371309868991375,
0.016246890649199486,
-0.07756251096725464,
-0.055551204830408096,
0.001478936872445047,
0.02260442078113556,
-0.02239992469549179,
-0.014813637360930443,
-0.02894197404384613,
0.0192288588732481,
0.0005537488614208996,
-0.011252435855567455,
-0.05297781527042389,
0.014069145545363426,
0.02150360681116581,
-0.04991044104099274,
-0.04167906939983368,
0.05819680169224739,
0.013630799949169159,
-0.01784682646393776,
0.030048131942749023,
-0.013389970175921917,
-0.007876437157392502,
0.02424715831875801,
0.003711884608492255,
0.013649582862854004,
-0.028462933376431465,
-0.005203771870583296,
0.010583197697997093,
0.015595990233123302,
0.0358755961060524,
-0.02269701473414898,
0.021400930359959602,
0.03794500231742859,
0.060357894748449326,
-0.005938563495874405,
-0.037041474133729935,
-0.023526929318904877,
0.027301602065563202,
-0.05051237344741821,
-0.0008743834914639592,
-0.007124041672796011,
-0.038203559815883636,
-0.03609606996178627,
-0.0066031599417328835,
-0.027398360893130302,
0.052003633230924606,
-0.07569281756877899,
0.007523410953581333,
0.05209914967417717,
-0.034024521708488464,
-0.0513489656150341,
-0.0853501558303833,
-0.01662476547062397,
-0.04737289249897003,
0.03329914063215256,
0.013317628763616085,
-0.03648872673511505,
0.02514597959816456,
-0.040834810584783554,
-0.03846975788474083,
0.04364849254488945,
0.024113913998007774,
-0.03685301914811134,
0.04397866502404213,
0.03555282577872276,
-0.0560753159224987,
0.00027606505318544805,
0.03187086060643196,
-0.04266033694148064,
0.016146980226039886,
0.024557307362556458,
0.005934637971222401,
0.01612319052219391,
0.030954450368881226,
-0.0315854586660862,
-0.02194353938102722,
-0.061511602252721786,
-0.04151912033557892,
-0.0313042514026165,
0.011228886432945728,
0.05576436594128609
] |
bert-large-cased | [
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 388,769 | 2018-11-30T13:36:23Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
```
| [
-0.007263294421136379,
-0.0025373364333063364,
-0.016460983082652092,
0.05909114331007004,
0.027586117386817932,
0.03554476425051689,
-0.02039707824587822,
-0.03891567885875702,
-0.028000840917229652,
0.052542995661497116,
0.019628992304205894,
-0.008350742049515247,
0.02015450783073902,
0.03716682642698288,
-0.030170395970344543,
-0.01592792198061943,
-0.00970340333878994,
0.004729242995381355,
-0.0296974815428257,
-0.014831287786364555,
0.0002907739544752985,
0.0032630346249789,
0.007001903839409351,
0.017967000603675842,
-0.00006642947118962184,
0.021972540766000748,
0.009129381738603115,
0.047990910708904266,
0.005569532047957182,
-0.08137606829404831,
-0.0041572581976652145,
-0.03569874167442322,
-0.04726095870137215,
0.009695753455162048,
-0.013236935250461102,
-0.0012637963518500328,
-0.00800278689712286,
0.006060928106307983,
0.04688826575875282,
0.053871024399995804,
-0.005214629229158163,
-0.0010838998714461923,
-0.024000953882932663,
-0.03780109062790871,
0.03194815665483475,
-0.0031614976469427347,
-0.04900280013680458,
-0.017586441710591316,
0.03949073702096939,
-0.015528909862041473,
-0.05420902371406555,
-0.06291157007217407,
-0.027649158611893654,
0.02233220636844635,
0.015713946893811226,
-0.030648093670606613,
-0.06237887963652611,
-0.01817253604531288,
0.06451112031936646,
-0.046401042491197586,
-0.05223245546221733,
0.002789262216538191,
-0.03947034105658531,
0.022773200646042824,
0.02882310003042221,
-0.028849629685282707,
0.008353381417691708,
-0.037173379212617874,
0.03396031633019447,
-0.025098614394664764,
0.04310192912817001,
-0.03857170417904854,
0.013707282021641731,
-0.10268308222293854,
-0.003586998675018549,
-0.017134713008999825,
0.046273212879896164,
0.03858223930001259,
-0.02820693515241146,
0.04357648268342018,
0.01607452891767025,
-0.004517869092524052,
0.018151823431253433,
-0.007956677116453648,
-0.014026529155671597,
0.06409446895122528,
-0.055611640214920044,
-0.012289195321500301,
0.0050485460087656975,
0.049629081040620804,
-0.025512848049402237,
-0.011881030164659023,
-0.038020048290491104,
-0.03425336256623268,
-0.023286979645490646,
0.030407795682549477,
0.026127606630325317,
-0.02028743363916874,
0.045421045273542404,
0.02567117102444172,
0.03033193200826645,
0.05911339074373245,
-0.02691325917840004,
0.07765135169029236,
-0.01294213067740202,
-0.03097982332110405,
-0.029435746371746063,
-0.03686698153614998,
-0.050263531506061554,
0.022124020382761955,
0.022237157449126244,
-0.03962404653429985,
-0.05754199996590614,
0.05547270551323891,
0.002889099298045039,
-0.04298119246959686,
0.04709469527006149,
-0.014812097884714603,
-0.047473493963479996,
-0.0507601760327816,
0.03255939856171608,
-0.005295914132148027,
0.0276778656989336,
0.007907342165708542,
-0.07632629573345184,
0.021079199388623238,
-0.031127577647566795,
-0.028198426589369774,
-0.0011673843255266547,
0.01358015462756157,
-0.01202917005866766,
0.04199639707803726,
0.03163542225956917,
-0.05622003600001335,
0.01893700659275055,
0.0017103219870477915,
-0.061513762921094894,
0.05140567943453789,
0.05010930821299553,
0.12334423512220383,
-0.05248396098613739,
-0.049987293779850006,
0.03686671331524849,
0.04227690026164055,
-0.01397173572331667,
0.010400070808827877,
0.035216737538576126,
-0.018268734216690063,
-0.011709894053637981,
-0.01261111069470644,
0.06204511225223541,
-0.05663001164793968,
-0.008563869632780552,
0.043452948331832886,
-0.00012181972851976752,
0.046526771038770676,
-0.04675734043121338,
-0.014688887633383274,
-0.016778236255049706,
0.004347849637269974,
-0.027610909193754196,
0.043384358286857605,
-0.015337721444666386,
-0.028295470401644707,
-0.03831431642174721,
-0.03777141496539116,
-0.006991877220571041,
0.07251565903425217,
-0.012106132693588734,
-0.013835223391652107,
-0.037761762738227844,
0.015796715393662453,
0.05467018485069275,
0.041401661932468414,
-0.02457764931023121,
0.019934361800551414,
0.0647013857960701,
0.0280618816614151,
-0.033224597573280334,
0.056868892163038254,
0.000499101122841239,
-0.03798089548945427,
-0.0319286473095417,
0.01646648719906807,
-0.008970480412244797,
-0.038382403552532196,
0.04192627966403961,
0.023173432797193527,
-0.011294140480458736,
-0.012729446403682232,
-0.029669981449842453,
0.046509288251399994,
0.007439721375703812,
-0.001999616390094161,
0.015890764072537422,
-0.007092747371643782,
-0.023464571684598923,
0.0392904058098793,
-0.029255757108330727,
0.02207799442112446,
-0.0038793792482465506,
-0.015398915857076645,
0.017420241609215736,
0.01827412098646164,
0.047371380031108856,
0.052077434957027435,
0.015335842967033386,
0.06662065535783768,
-0.032722003757953644,
0.028702693060040474,
-0.06458157300949097,
-0.041365303099155426,
-0.00004442316640052013,
0.0247060414403677,
0.02278217300772667,
0.039419472217559814,
0.003958954010158777,
-0.041428662836551666,
0.008032839745283127,
0.0657731294631958,
0.051230136305093765,
0.02496221847832203,
-0.031792014837265015,
-0.01985127665102482,
0.03100713901221752,
0.05924905464053154,
-0.061928339302539825,
-0.042302582412958145,
0.03283769264817238,
0.041009869426488876,
-0.01803065836429596,
0.0033024060539901257,
-0.019893286749720573,
0.03856902942061424,
-0.04012807831168175,
-0.06587114185094833,
0.04435841366648674,
0.04114173352718353,
0.0027278743218630552,
0.0263025164604187,
-0.00829470343887806,
0.0022812364622950554,
0.022363755851984024,
0.02595561556518078,
0.0034608528949320316,
-0.0376560352742672,
0.01244876254349947,
0.02809523232281208,
0.05018439143896103,
-0.04570915922522545,
0.03599866107106209,
0.00602516857907176,
0.021175548434257507,
0.03651103377342224,
-0.009294554591178894,
0.03294995799660683,
0.047557417303323746,
0.007753349374979734,
-0.03265805542469025,
0.017554081976413727,
0.0024883002042770386,
0.060006994754076004,
0.06144700199365616,
0.0014021897222846746,
0.054701872169971466,
0.005665144883096218,
0.04205184057354927,
0.07052110135555267,
0.02749578095972538,
0.024128355085849762,
0.022151602432131767,
0.07302119582891464,
0.00192177202552557,
-0.011315442621707916,
0.07684942334890366,
-0.06016972288489342,
0.01251916866749525,
-0.04346642270684242,
0.03724906966090202,
0.010897682048380375,
-0.006172522436827421,
0.050177548080682755,
0.034244753420352936,
0.007601931691169739,
0.0009706252603791654,
0.004522399045526981,
-0.028793269768357277,
0.05149310082197189,
-0.011373689398169518,
0.023316964507102966,
-0.016064846888184547,
-0.027562836185097694,
-0.018921304494142532,
-0.0768340528011322,
-0.049979258328676224,
0.001719867461360991,
-0.034030407667160034,
-0.01018156111240387,
-0.0956803411245346,
-0.03347735106945038,
-0.05451841652393341,
-0.01703564263880253,
0.01740330643951893,
0.02607419528067112,
0.016800029203295708,
-0.028186025097966194,
0.015186119824647903,
-0.05048029497265816,
-0.020803377032279968,
-0.043159931898117065,
-0.03166532143950462,
-0.046732302755117416,
-0.05507390573620796,
0.04184029623866081,
0.02883518487215042,
0.0235841516405344,
-0.01358359307050705,
-0.0018418347463011742,
-0.033123113214969635,
-0.019209163263440132,
0.04600400850176811,
0.040133293718099594,
-0.03635582700371742,
-0.040016576647758484,
0.010142248123884201,
-0.004362491890788078,
0.01228197943419218,
-0.02200072631239891,
-0.006317323539406061,
0.0920085608959198,
0.07858655601739883,
0.03152839466929436,
0.001363447168841958,
-0.01700020022690296,
-0.0392460897564888,
-0.07065856456756592,
-0.031081965193152428,
-0.04949679225683212,
-0.014464277774095535,
-0.057106971740722656,
-0.04554618149995804,
-0.0020658858120441437,
-0.03140859305858612,
0.0017977420939132571,
-0.008840255439281464,
0.02887883223593235,
0.0343063659965992,
0.03328222408890724,
0.015746623277664185,
0.0258126650005579,
-0.02526731602847576,
-0.02129528298974037,
0.06781334429979324,
0.012234244495630264,
0.023386437445878983,
-0.08213555812835693,
-0.043089643120765686,
0.042030878365039825,
0.032255396246910095,
-0.007903775200247765,
-0.010180135257542133,
0.08110653609037399,
0.012836490757763386,
-0.012494027614593506,
0.0010019453475251794,
0.006435680668801069,
-0.022372974082827568,
-0.027231326326727867,
-0.003295931266620755,
-0.013622535392642021,
-0.037711869925260544,
-0.0505417138338089,
-0.021024221554398537,
0.04587263986468315,
-0.05882557854056358,
-0.0587436817586422,
-0.020733583718538284,
0.04512520879507065,
0.023882882669568062,
0.0016000615432858467,
-0.022704100236296654,
-0.0006498242146335542,
-0.03328957408666611,
-0.018923139199614525,
0.002980123972520232,
0.0018188165267929435,
0.014282134361565113,
0.034180477261543274,
0.02536408230662346,
-0.02383994869887829,
0.02714288979768753,
0.05169982090592384,
0.056492216885089874,
-0.0009554813732393086,
-0.058209508657455444,
0.025385646149516106,
-0.024723660200834274,
0.03159913793206215,
0.004622402600944042,
-0.030087346211075783,
-0.05859775096178055,
-0.08250919729471207,
0.0008256203145720065,
-0.016560794785618782,
-0.008690419606864452,
-0.0017023262334987521,
0.03260716795921326,
-0.02701367437839508,
-0.021777823567390442,
0.009380067698657513,
0.017353855073451996,
0.016666948795318604,
-0.033012114465236664,
0.06719525158405304,
-0.01857178285717964,
0.01252514123916626,
-0.05867846682667732,
0.013862214982509613,
-0.05520769953727722,
-0.029623471200466156,
0.00507969968020916,
0.059004686772823334,
0.02730688825249672,
0.07086648046970367,
0.06013049557805061,
0.062134142965078354,
-0.050260283052921295,
0.0392211452126503,
0.03246021270751953,
0.003416934749111533,
-0.04149308055639267,
-0.019353413954377174,
-0.015381356701254845,
-0.022520657628774643,
-0.027039295062422752,
-0.0016220958204939961,
0.01640929840505123,
0.025029413402080536,
0.010320081375539303,
-0.008352882228791714,
0.006636446341872215,
-0.02953447960317135,
-0.022381652146577835,
-0.07472936064004898,
-0.024436473846435547,
-0.013311320915818214,
-0.02281220443546772,
0.06596223264932632,
0.003287538420408964,
0.006409129593521357,
0.0698208138346672,
0.053480569273233414,
-0.01036542747169733,
-0.040556877851486206,
0.03820503130555153,
0.029105981811881065,
-0.044128891080617905,
-0.05709097534418106,
-0.04855506122112274,
0.05660316348075867,
0.060501426458358765,
-0.010821794159710407,
-0.07671857625246048,
0.003086978802457452,
0.05041956901550293,
-0.04158520698547363,
0.053544845432043076,
-0.024365559220314026,
0.06091737002134323,
0.0622904933989048,
0.0030114094261080027,
0.0441046841442585,
-0.02726866491138935,
0.005523927975445986,
0.01718427613377571,
0.029443785548210144,
-0.03510375693440437,
-0.050836093723773956,
-0.06498682498931885,
0.02935967408120632,
0.03300847113132477,
0.05661729350686073,
0.049065962433815,
-0.004620050545781851,
-0.03897983953356743,
0.007796755060553551,
0.020441362634301186,
-0.04230716824531555,
-0.005888356827199459,
0.013553441502153873,
0.060010503977537155,
-0.06166997179389,
-0.01879112608730793,
-0.040911998599767685,
-0.004776445217430592,
0.03159397467970848,
0.0067739845253527164,
-0.03137105703353882,
-0.05941357836127281,
0.012713907286524773,
-0.01150879543274641,
-0.012111272662878036,
-0.07235962152481079,
0.0024204100482165813,
-0.022890640422701836,
-0.012301432900130749,
0.021836521103978157,
0.04694848135113716,
0.05034368112683296,
0.05805818736553192,
0.00844312272965908,
0.004145247861742973,
-0.04952985420823097,
0.035445697605609894,
-0.02900758758187294,
-0.00840399693697691,
-0.01902579888701439,
-0.04395719990134239,
0.0022869089152663946,
-0.041422128677368164,
-0.03318639099597931,
-0.0570388063788414,
-0.01813230663537979,
0.002082361374050379,
-0.02108442597091198,
0.01901436410844326,
-0.017906997352838516,
0.03216873109340668,
-0.02718569152057171,
-0.049073610454797745,
-0.025031637400388718,
-0.027282921597361565,
-0.05605720356106758,
-0.050233423709869385,
0.0173149686306715,
0.012804019264876842,
0.018014030531048775,
0.025811370462179184,
0.02026081643998623,
0.007920939475297928,
0.004302200395613909,
-0.03091641329228878,
0.031903594732284546,
0.0035885132383555174,
-0.050195857882499695,
-0.03908825293183327,
0.017297277227044106,
0.016735989600419998,
0.021688295528292656,
-0.03344397619366646,
0.024453898891806602,
0.01938146911561489,
-0.022736232727766037,
-0.012896144762635231,
0.04264805093407631,
0.025269880890846252,
-0.08399111777544022,
-0.04350226745009422,
-0.014726557768881321,
-0.03916579484939575,
0.04638629034161568,
-0.0192305538803339,
-0.03452523052692413,
0.027212124317884445,
0.029148168861865997,
0.056123826652765274,
0.00017842127999756485,
-0.04867367446422577,
0.010338069871068,
-0.03033224679529667,
0.032888539135456085,
-0.06089206784963608,
0.03467191383242607,
-0.061952002346515656,
0.028109516948461533,
-0.010254822671413422,
0.010455487295985222,
-0.04159591719508171,
0.02982478402554989,
-0.018703602254390717,
-0.008165298029780388,
-0.0124798733741045,
-0.0036456664092838764,
-0.03171214088797569,
0.041034914553165436,
-0.027785899117588997,
-0.0010946070542559028,
-0.013310041278600693,
0.07195639610290527,
-0.037583932280540466,
-0.006403036415576935,
-0.02435562200844288,
-0.002557392232120037,
-0.05446292832493782,
-0.02313436008989811,
-0.0035996693186461926,
-0.0190363097935915,
0.04105813801288605,
0.022668901830911636,
0.03336544707417488,
0.049923986196517944,
-0.001963713439181447,
0.0032592981588095427,
0.015209119766950607,
-0.060557007789611816,
-0.029464982450008392,
-0.004033258650451899,
0.017606010660529137,
-0.004161057993769646,
0.06981530785560608,
0.05698574334383011,
-0.05811160430312157,
-0.04204375669360161,
0.06342989206314087,
0.012150924652814865,
0.013400807976722717,
-0.008756897412240505,
0.04084504023194313,
0.03982061147689819,
0.04631056264042854,
-0.03516010195016861,
-0.005147464573383331,
0.008962995372712612,
-0.023631684482097626,
0.009124083444476128,
-0.001798337558284402,
0.015307869762182236,
0.03154982998967171,
-0.028462553396821022,
-0.04532494395971298,
0.05713273212313652,
0.028991401195526123,
0.021191660314798355,
0.009611288085579872,
-0.03426441177725792,
0.00423726299777627,
0.01187552884221077,
-0.059085506945848465,
-0.010250676423311234,
0.017736298963427544,
-0.01666790246963501,
0.0746903195977211,
-0.02858729474246502,
0.023965489119291306,
0.04411154240369797,
0.012615540996193886,
-0.01586327515542507,
0.04552443325519562,
-0.04033364728093147,
0.018177688121795654,
0.04304338991641998,
-0.032879993319511414,
-0.02803603559732437,
-0.03429150581359863,
0.062321536242961884,
-0.06273672729730606,
0.0507945790886879,
0.03061210922896862,
0.023270031437277794,
0.019060852006077766,
-0.019140487536787987,
-0.04813992604613304,
0.008391603827476501,
-0.04489215463399887,
0.07470551878213882,
-0.0004746884515043348,
-0.05948116257786751,
0.080027274787426,
0.011092280969023705,
-0.05637810379266739,
0.043210070580244064,
0.0351809523999691,
0.031232735142111778,
0.022218676283955574,
0.05317077040672302,
-0.035368967801332474,
0.01157014537602663,
-0.03908607363700867,
0.023345451802015305,
-0.03941750526428223,
-0.03419453278183937,
0.01677643693983555,
-0.03262970596551895,
-0.011565291322767735,
0.04665256291627884,
-0.03911199793219566,
-0.017035163938999176,
0.023611970245838165,
-0.06943520903587341,
-0.061863262206315994,
-0.00027515977853909135,
0.018737491220235825,
-0.019060423597693443,
-0.015138441696763039,
-0.029307642951607704,
0.03589082136750221,
0.0006137489690445364,
-0.00390813359990716,
-0.05032610520720482,
0.010502171702682972,
0.022317927330732346,
-0.05065362527966499,
-0.037659045308828354,
0.044241830706596375,
0.008942344225943089,
-0.02265280857682228,
0.028075402602553368,
-0.00819240789860487,
-0.0020844810642302036,
0.02449721470475197,
0.0026465256232768297,
0.021492019295692444,
-0.02876313216984272,
0.002272674348205328,
0.006779041141271591,
0.017843415960669518,
0.032286617904901505,
-0.023407364264130592,
0.01991412602365017,
0.029097916558384895,
0.0539192371070385,
0.0018991398392245173,
-0.04607252776622772,
-0.017082160338759422,
0.025661977007985115,
-0.05451509356498718,
0.0009670050931163132,
-0.00712988805025816,
-0.0415126271545887,
-0.0355323851108551,
-0.018975168466567993,
-0.031214596703648567,
0.04567599669098854,
-0.06721813976764679,
0.00549833569675684,
0.046811554580926895,
-0.04233604669570923,
-0.0512724332511425,
-0.08658163994550705,
-0.015578565187752247,
-0.0349544994533062,
0.032924339175224304,
0.02189529314637184,
-0.025922471657395363,
0.016552910208702087,
-0.03755831718444824,
-0.03978223726153374,
0.03976191207766533,
0.024314774200320244,
-0.03361807018518448,
0.04903437942266464,
0.04152826964855194,
-0.05872679501771927,
0.008170993998646736,
0.027349859476089478,
-0.04292827844619751,
0.021970611065626144,
0.02504008635878563,
0.013085479848086834,
0.013427180238068104,
0.03019067645072937,
-0.031018441542983055,
-0.014209490269422531,
-0.05655522644519806,
-0.045728106051683426,
-0.03208291158080101,
0.015810219570994377,
0.06317949295043945
] |
bert-large-uncased-whole-word-masking-finetuned-squad | [
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"question-answering",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | question-answering | {
"architectures": [
"BertForQuestionAnswering"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 480,510 | 2019-06-18T13:41:43Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.012540115974843502,
0.0044858637265861034,
-0.014498109929263592,
0.05772971734404564,
0.021730072796344757,
0.02691120281815529,
-0.0164218470454216,
-0.02643810398876667,
-0.027705954387784004,
0.04678012430667877,
0.01313548069447279,
0.0011332540307193995,
0.012354725040495396,
0.039392877370119095,
-0.017558516934514046,
-0.020257918164134026,
-0.010006190277636051,
-0.014558971859514713,
-0.03539477288722992,
-0.010113339871168137,
-0.006560587324202061,
0.0014793411828577518,
0.0071104783564805984,
0.019244303926825523,
-0.0029460815712809563,
0.02970157191157341,
0.0036182564217597246,
0.04244648292660713,
0.02214387245476246,
-0.06944983452558517,
-0.0014428452122956514,
-0.025790007784962654,
-0.051041848957538605,
0.011515210382640362,
-0.01657143607735634,
0.007336508948355913,
-0.0024791136384010315,
-0.0009057998540811241,
0.05392720177769661,
0.06220189109444618,
-0.0052774082869291306,
-0.004817233420908451,
-0.017065266147255898,
-0.04237295687198639,
0.031026775017380714,
0.002727390732616186,
-0.05225859209895134,
-0.005110352765768766,
0.042064372450113297,
-0.01893244870007038,
-0.05677101016044617,
-0.0650540441274643,
-0.0280085951089859,
0.029651250690221786,
0.005018711090087891,
-0.023882852867245674,
-0.06255310773849487,
-0.015732601284980774,
0.06017308682203293,
-0.0441647432744503,
-0.043995313346385956,
0.000043947242374997586,
-0.036520589143037796,
0.03130429983139038,
0.03554981201887131,
-0.03294384852051735,
0.015047137625515461,
-0.0489247590303421,
0.023700954392552376,
-0.029996072873473167,
0.0406779870390892,
-0.03367875516414642,
0.0033022218849509954,
-0.10096804052591324,
-0.0010646011214703321,
-0.014586060307919979,
0.04584232345223427,
0.038626547902822495,
-0.0293224286288023,
0.05539838224649429,
0.01996604911983013,
0.0036445679143071175,
0.01726090908050537,
-0.013244605623185635,
-0.015138523653149605,
0.06181469187140465,
-0.0441167838871479,
-0.0036367406137287617,
-0.003505831118673086,
0.04684865474700928,
-0.023046324029564857,
-0.004824328701943159,
-0.034318797290325165,
-0.042492639273405075,
-0.04080745577812195,
0.020564379170536995,
0.020187830552458763,
0.0007245218730531633,
0.0421825647354126,
0.025382695719599724,
0.028640829026699066,
0.057284679263830185,
-0.01459125429391861,
0.07700199633836746,
-0.010282468982040882,
-0.020806772634387016,
-0.03386802226305008,
-0.03153295814990997,
-0.041271571069955826,
0.027246631681919098,
0.026958050206303596,
-0.039858750998973846,
-0.06010638177394867,
0.04338454455137253,
-0.00020589714404195547,
-0.043891314417123795,
0.04728817567229271,
-0.015212541446089745,
-0.042873501777648926,
-0.04913308471441269,
0.03019091673195362,
-0.009430157020688057,
0.025965556502342224,
-0.0020782314240932465,
-0.06594950705766678,
0.019446495920419693,
-0.038919199258089066,
-0.028979798778891563,
-0.0006779676768928766,
0.022752173244953156,
-0.018486160784959793,
0.0407683439552784,
0.031435560435056686,
-0.05836300924420357,
0.01613003760576248,
0.009683966636657715,
-0.06537686288356781,
0.04513901472091675,
0.04457162320613861,
0.13448230922222137,
-0.05154161527752876,
-0.0535866841673851,
0.03816647082567215,
0.027408046647906303,
-0.016360513865947723,
0.009092804975807667,
0.0325264036655426,
-0.017502371221780777,
-0.015628822147846222,
-0.0021140689495950937,
0.052434492856264114,
-0.05322396755218506,
0.0015812114579603076,
0.05149757117033005,
-0.006238617934286594,
0.04334835708141327,
-0.0549560971558094,
-0.006685483735054731,
-0.011459555476903915,
-0.00005157155101187527,
-0.023069797083735466,
0.046041056513786316,
-0.02106483280658722,
-0.020191717892885208,
-0.038625944405794144,
-0.03764539584517479,
-0.0003203834348823875,
0.0695614144206047,
-0.003664065385237336,
-0.01619325950741768,
-0.03916672244668007,
0.01644858531653881,
0.04453028738498688,
0.04469966143369675,
-0.03353673592209816,
0.023756004869937897,
0.06463488191366196,
0.03050897642970085,
-0.029896028339862823,
0.05648157000541687,
0.0036020479165017605,
-0.03411991149187088,
-0.03003602847456932,
0.01273463387042284,
-0.016068696975708008,
-0.04461073502898216,
0.034859854727983475,
0.0325036458671093,
-0.003568801563233137,
-0.02132526785135269,
-0.024242078885436058,
0.05111731216311455,
0.007595521863549948,
0.006872011348605156,
0.025584163144230843,
-0.0039822435937821865,
-0.02398613654077053,
0.051072072237730026,
-0.027068056166172028,
0.014670704491436481,
-0.006481096148490906,
-0.01955314353108406,
0.006340916734188795,
0.03115149587392807,
0.044698551297187805,
0.048294126987457275,
0.002201188588514924,
0.0712013766169548,
-0.02705577202141285,
0.023467009887099266,
-0.059644751250743866,
-0.04157065600156784,
0.0022403975017368793,
0.029705967754125595,
0.02113572135567665,
0.043512798845767975,
-0.002523266477510333,
-0.04559531435370445,
0.005238302517682314,
0.06371307373046875,
0.04430419206619263,
0.024583136662840843,
-0.02919463999569416,
-0.017053987830877304,
0.036350831389427185,
0.05948909372091293,
-0.058115240186452866,
-0.046351414173841476,
0.03830437734723091,
0.044391293078660965,
-0.013349694199860096,
0.01042240485548973,
-0.017348650842905045,
0.02979263849556446,
-0.04155316576361656,
-0.06772096455097198,
0.03922634944319725,
0.03469210863113403,
-0.009614940732717514,
0.03312107175588608,
-0.03085384890437126,
0.00492501724511385,
0.022782228887081146,
0.0163176991045475,
-0.00022504157095681876,
-0.028322530910372734,
0.013624348677694798,
0.03405287116765976,
0.042952898889780045,
-0.04933585226535797,
0.0361211895942688,
0.0014569509075954556,
0.015255974605679512,
0.042589329183101654,
-0.01487939152866602,
0.030291805043816566,
0.038643427193164825,
0.00946760457009077,
-0.030914969742298126,
0.017905063927173615,
0.0036032800562679768,
0.062031954526901245,
0.06689757108688354,
0.009999899193644524,
0.05817991867661476,
0.008344369009137154,
0.04476499930024147,
0.07427636533975601,
0.020980173721909523,
0.015304110012948513,
0.012085451744496822,
0.07159282267093658,
0.0019604749977588654,
-0.010139777325093746,
0.09142446517944336,
-0.04764170199632645,
0.00639708898961544,
-0.053336117416620255,
0.03544330224394798,
0.010244651697576046,
-0.0089950542896986,
0.05393509194254875,
0.026804151013493538,
0.0014768951805308461,
0.0033895208034664392,
-0.001963110873475671,
-0.03644859045743942,
0.05909990519285202,
-0.01635095477104187,
0.024350201711058617,
-0.007286137901246548,
-0.026091154664754868,
-0.01003161072731018,
-0.06823456287384033,
-0.048599984496831894,
0.003945748321712017,
-0.023714834824204445,
-0.012027568183839321,
-0.09954475611448288,
-0.02453182265162468,
-0.04361206665635109,
-0.021823683753609657,
0.02302577532827854,
0.017245667055249214,
0.01896549202501774,
-0.03296681120991707,
0.026398830115795135,
-0.04398396238684654,
-0.02096100151538849,
-0.040547408163547516,
-0.035237789154052734,
-0.05127013474702835,
-0.055181700736284256,
0.04848352074623108,
0.021434364840388298,
0.028228916227817535,
-0.0035000545904040337,
0.0031218233052641153,
-0.026171850040555,
-0.005684779025614262,
0.03847954049706459,
0.03603461757302284,
-0.04187675565481186,
-0.04496753588318825,
0.010412146337330341,
-0.005004276055842638,
0.004796741064637899,
-0.024270981550216675,
-0.008117860183119774,
0.09473466128110886,
0.09323999285697937,
0.040982332080602646,
0.005639214534312487,
-0.014984277077019215,
-0.04601931571960449,
-0.07236770540475845,
-0.030267449095845222,
-0.03845018893480301,
-0.011693049222230911,
-0.06007208302617073,
-0.0413200668990612,
0.003233375260606408,
-0.02816723845899105,
-0.0007174481288529932,
-0.005010941997170448,
0.03125087171792984,
0.034414779394865036,
0.042805012315511703,
0.014747368171811104,
0.02708808332681656,
-0.02239895798265934,
-0.02733101323246956,
0.057131700217723846,
0.007137333042919636,
0.02051202394068241,
-0.07115642726421356,
-0.050525955855846405,
0.03822910413146019,
0.0273887999355793,
-0.000744201650377363,
-0.005289000924676657,
0.08164189010858536,
0.008106064051389694,
-0.0199048463255167,
-0.005266136489808559,
0.01161589752882719,
-0.028903070837259293,
-0.01432048249989748,
-0.0036213842686265707,
-0.02208777144551277,
-0.03306301310658455,
-0.051327455788850784,
-0.015077343210577965,
0.039344672113657,
-0.055827025324106216,
-0.055073704570531845,
-0.028590895235538483,
0.054552026093006134,
0.020646153017878532,
-0.002111134584993124,
-0.030904646962881088,
-0.009094804525375366,
-0.04684602469205856,
-0.016753770411014557,
-0.003159589832648635,
0.002421905752271414,
0.013359198346734047,
0.03178510069847107,
0.026694104075431824,
-0.025115828961133957,
0.02777271158993244,
0.040927328169345856,
0.0590975247323513,
-0.002238525077700615,
-0.05318078398704529,
0.027615929022431374,
-0.029157331213355064,
0.02364720031619072,
0.0032995110377669334,
-0.025784308090806007,
-0.05519121512770653,
-0.08942508697509766,
0.005256758537143469,
-0.01753661036491394,
-0.007087520323693752,
-0.012577724643051624,
0.031181620433926582,
-0.03297989070415497,
-0.02893178164958954,
0.0035838638432323933,
0.01558719016611576,
0.02979987859725952,
-0.04065295681357384,
0.06581379473209381,
-0.020877273753285408,
0.016307860612869263,
-0.05703052133321762,
0.021895181387662888,
-0.04960770159959793,
-0.021720627322793007,
0.002439711708575487,
0.05710671469569206,
0.020029133185744286,
0.05472380667924881,
0.06820470094680786,
0.050998810678720474,
-0.05949512869119644,
0.03560309857130051,
0.03896519914269447,
-0.005848363973200321,
-0.034739021211862564,
-0.010567919351160526,
-0.019650079309940338,
-0.022249983623623848,
-0.025468168780207634,
-0.013320522382855415,
0.01537318155169487,
0.03125223144888878,
0.003331840271130204,
-0.010755050927400589,
0.01984379068017006,
-0.020154915750026703,
-0.03319709748029709,
-0.06894731521606445,
-0.025857996195554733,
0.0006930615636520088,
-0.02817297726869583,
0.06449049711227417,
0.009130633436143398,
0.003601493313908577,
0.06405258178710938,
0.05442354083061218,
-0.021970286965370178,
-0.04013989493250847,
0.026599425822496414,
0.033214785158634186,
-0.04501117393374443,
-0.06289982795715332,
-0.05367226526141167,
0.05335909128189087,
0.06357322633266449,
-0.003772204974666238,
-0.07633025199174881,
-0.0071615553461015224,
0.03691083565354347,
-0.04001181572675705,
0.06432085484266281,
-0.02897341363132,
0.06334953755140305,
0.05561092868447304,
0.0008527199388481677,
0.038565486669540405,
-0.028034120798110962,
-0.0042603155598044395,
0.012027923949062824,
0.026130104437470436,
-0.04396746680140495,
-0.04963301867246628,
-0.06006007641553879,
0.027353575453162193,
0.025740474462509155,
0.06158667802810669,
0.04788193851709366,
-0.012412583455443382,
-0.046845223754644394,
0.021852588281035423,
0.01920129917562008,
-0.04934316873550415,
-0.007898588664829731,
0.012213286012411118,
0.05607122555375099,
-0.055960457772016525,
-0.03457335755228996,
-0.05120985954999924,
-0.010553034022450447,
0.038086891174316406,
0.006905797868967056,
-0.033604200929403305,
-0.05571606755256653,
0.012961117550730705,
-0.0022612842731177807,
-0.012505832128226757,
-0.06772998720407486,
0.003683154471218586,
-0.016227087005972862,
-0.009374524466693401,
0.020659994333982468,
0.044070493429899216,
0.04874947667121887,
0.060228124260902405,
0.011088482104241848,
0.017209166660904884,
-0.04614660143852234,
0.030651245266199112,
-0.028079282492399216,
-0.008478830568492413,
-0.01876921020448208,
-0.0321844108402729,
0.004747333936393261,
-0.04062245041131973,
-0.030328480526804924,
-0.06569663435220718,
-0.011957257986068726,
0.006344532128423452,
-0.021202951669692993,
0.019148238003253937,
-0.032521266490221024,
0.03156368061900139,
-0.02417425438761711,
-0.03770334646105766,
-0.0286419540643692,
-0.025951232761144638,
-0.06942670047283173,
-0.05658332258462906,
0.018796933814883232,
0.004435576032847166,
0.03803728148341179,
0.021685894578695297,
0.02365899085998535,
0.0027175764553248882,
0.007124524563550949,
-0.03731615096330643,
0.03581451252102852,
0.011518283747136593,
-0.03649243339896202,
-0.03412080183625221,
0.021226471289992332,
0.02007952332496643,
0.02227972075343132,
-0.03890414908528328,
0.023600563406944275,
0.02292472869157791,
-0.017666351050138474,
-0.00541113642975688,
0.04389970004558563,
0.018095897510647774,
-0.08673255145549774,
-0.04874793067574501,
-0.01356382668018341,
-0.04608796909451485,
0.04459892958402634,
-0.01773897372186184,
-0.027353713288903236,
0.023093584924936295,
0.018452269956469536,
0.057220425456762314,
0.0033747886773198843,
-0.0362391397356987,
0.0038083302788436413,
-0.030957413837313652,
0.037630803883075714,
-0.05375457927584648,
0.04637020453810692,
-0.056922826915979385,
0.02889544703066349,
-0.007654696702957153,
0.016159677878022194,
-0.0406324528157711,
0.030867096036672592,
-0.016642175614833832,
-0.011083089746534824,
-0.019423572346568108,
0.0073094675317406654,
-0.040701162070035934,
0.04374006763100624,
-0.03765766695141792,
0.009162157773971558,
-0.01478691678494215,
0.06647726893424988,
-0.040015809237957,
-0.0007295195246115327,
-0.02028638683259487,
0.0030095200054347515,
-0.04731353372335434,
-0.025715969502925873,
-0.007854944095015526,
-0.02923758141696453,
0.045651715248823166,
0.028011394664645195,
0.032925210893154144,
0.047694332897663116,
0.002176903188228607,
-0.0017030843300744891,
0.0227565448731184,
-0.06084320694208145,
-0.01712043583393097,
0.0008102183346636593,
0.01588609628379345,
-0.008065685629844666,
0.05827845633029938,
0.054902333766222,
-0.048315178602933884,
-0.04833580553531647,
0.062101442366838455,
0.016141043975949287,
0.016591260209679604,
-0.007035631686449051,
0.050646282732486725,
0.03820083662867546,
0.0410999096930027,
-0.027720317244529724,
-0.010805780999362469,
0.01589435152709484,
-0.030086541548371315,
0.028984660282731056,
0.006659652106463909,
0.028471753001213074,
0.021389536559581757,
-0.02889239601790905,
-0.05035923048853874,
0.052939485758543015,
0.03875218331813812,
0.019787555560469627,
0.01209332887083292,
-0.03666393831372261,
0.01597375050187111,
-0.0005543792503885925,
-0.05391255393624306,
0.003038616618141532,
0.01626414619386196,
-0.031126849353313446,
0.0723063200712204,
-0.03346332162618637,
0.026651235297322273,
0.032992538064718246,
0.01185147650539875,
-0.009355546906590462,
0.03449808806180954,
-0.054099805653095245,
0.028149599209427834,
0.04259438067674637,
-0.029717981815338135,
-0.014765394851565361,
-0.03125155717134476,
0.06685129553079605,
-0.06313569098711014,
0.050533946603536606,
0.03667155280709267,
0.010536295361816883,
0.01595281809568405,
-0.009636936709284782,
-0.04187554493546486,
0.009601887315511703,
-0.04193289205431938,
0.07906962931156158,
0.005546161439269781,
-0.06330568343400955,
0.0685180127620697,
0.014266692101955414,
-0.05862954631447792,
0.044650521129369736,
0.033649783581495285,
0.027419012039899826,
0.020711226388812065,
0.06114684045314789,
-0.03861719369888306,
0.01224406436085701,
-0.04306180775165558,
0.020567860454320908,
-0.04398355260491371,
-0.03641204908490181,
0.024538634344935417,
-0.03697722777724266,
-0.022470571100711823,
0.04715718328952789,
-0.031630031764507294,
-0.00963637512177229,
0.012836581096053123,
-0.07667727768421173,
-0.05223366990685463,
0.003388596000149846,
0.023152979090809822,
-0.026364365592598915,
-0.015248523093760014,
-0.026720305904746056,
0.02146298810839653,
0.0025578709319233894,
-0.012360959313809872,
-0.051251575350761414,
0.014947310090065002,
0.022552499547600746,
-0.051463399082422256,
-0.03915870934724808,
0.060662005096673965,
0.016045689582824707,
-0.02004174143075943,
0.028369147330522537,
-0.009383835829794407,
-0.005101529881358147,
0.019944708794355392,
0.0023395500611513853,
0.015727397054433823,
-0.03350405767560005,
-0.00657061068341136,
0.00843716785311699,
0.015253273770213127,
0.03132239729166031,
-0.021139660850167274,
0.024155141785740852,
0.039297591894865036,
0.05806509777903557,
-0.006687214132398367,
-0.030521802604198456,
-0.022208865731954575,
0.030889621004462242,
-0.04593829810619354,
-0.0031072809360921383,
-0.005116566549986601,
-0.039522480219602585,
-0.03628482297062874,
-0.005011131055653095,
-0.026528796181082726,
0.05321131646633148,
-0.077895388007164,
0.009833930060267448,
0.047357406467199326,
-0.03478916361927986,
-0.05222141370177269,
-0.0847388505935669,
-0.01942410320043564,
-0.04794318228960037,
0.0311519093811512,
0.016401953995227814,
-0.038047850131988525,
0.024385495111346245,
-0.04186457023024559,
-0.043474722653627396,
0.043211475014686584,
0.022047976031899452,
-0.03473576903343201,
0.04455704241991043,
0.03649019077420235,
-0.05830569192767143,
-0.0019166897982358932,
0.031183607876300812,
-0.036909930408000946,
0.015895571559667587,
0.021133407950401306,
0.008377988822758198,
0.01547322142869234,
0.0281402375549078,
-0.03538418933749199,
-0.02455679513514042,
-0.05766987428069115,
-0.046415187418460846,
-0.03010193072259426,
0.009978169575333595,
0.05649187043309212
] |
bert-large-uncased-whole-word-masking | [
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 76,685 | 2019-06-17T07:55:04Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.012554420158267021,
0.004546852316707373,
-0.013807971030473709,
0.056908298283815384,
0.021865714341402054,
0.028806159272789955,
-0.01661727949976921,
-0.029373949393630028,
-0.02641567587852478,
0.04809326305985451,
0.014314915984869003,
-0.0007713751401752234,
0.012661212123930454,
0.038076646625995636,
-0.01773272641003132,
-0.0172466691583395,
-0.013264544308185577,
-0.011421479284763336,
-0.033145345747470856,
-0.007358336355537176,
-0.00612293416634202,
0.001516026328317821,
0.00660644331946969,
0.02012762241065502,
-0.004036604892462492,
0.028083039447665215,
0.00980717595666647,
0.04161839559674263,
0.017015300691127777,
-0.0730002298951149,
-0.0017989304615184665,
-0.024248018860816956,
-0.05110383406281471,
0.016206717118620872,
-0.015257390215992928,
0.005401246249675751,
-0.003609447507187724,
-0.0018048370257019997,
0.05108688771724701,
0.06087631359696388,
-0.00392928346991539,
-0.007418865337967873,
-0.01646961085498333,
-0.04191725328564644,
0.03194035589694977,
0.0008011742029339075,
-0.052142396569252014,
-0.006839738693088293,
0.04387683793902397,
-0.014348967000842094,
-0.05728374049067497,
-0.06212935224175453,
-0.02752431482076645,
0.025105739012360573,
0.0040988801047205925,
-0.02619866095483303,
-0.06212824210524559,
-0.015665806829929352,
0.060624245554208755,
-0.044074829667806625,
-0.047794945538043976,
-0.003992978949099779,
-0.03937102481722832,
0.032557666301727295,
0.036467067897319794,
-0.03413008898496628,
0.015951192006468773,
-0.04633833467960358,
0.0234660841524601,
-0.030935950577259064,
0.03928571566939354,
-0.03405851125717163,
0.005070492625236511,
-0.1042785495519638,
-0.003894353983923793,
-0.01897226646542549,
0.04586801677942276,
0.040760792791843414,
-0.02591293677687645,
0.05614998936653137,
0.017545130103826523,
0.0016853675479069352,
0.01621313765645027,
-0.01344525907188654,
-0.011158733628690243,
0.06283600628376007,
-0.04680271074175835,
-0.006162838079035282,
-0.006312795449048281,
0.04705455154180527,
-0.024233760312199593,
-0.00406830757856369,
-0.03315001353621483,
-0.041887082159519196,
-0.03851250186562538,
0.01764044724404812,
0.019762547686696053,
-0.0013707689940929413,
0.04465870186686516,
0.021665118634700775,
0.028661107644438744,
0.05570439621806145,
-0.013730863109230995,
0.0774628221988678,
-0.01014780905097723,
-0.022874003276228905,
-0.03245183452963829,
-0.03329411521553993,
-0.04484782740473747,
0.022379988804459572,
0.026145674288272858,
-0.03754647076129913,
-0.05845087394118309,
0.05026661232113838,
-0.005871662404388189,
-0.04626581445336342,
0.04706484079360962,
-0.017679166048765182,
-0.04371187463402748,
-0.04822001978754997,
0.02958943136036396,
-0.010115922428667545,
0.023633534088730812,
-0.0012030290672555566,
-0.06877024471759796,
0.01996549963951111,
-0.03771384432911873,
-0.026792127639055252,
0.0023271236568689346,
0.020128969103097916,
-0.01891643926501274,
0.03907173126935959,
0.03198951855301857,
-0.05314598232507706,
0.016499686986207962,
0.008020928129553795,
-0.06417827308177948,
0.045584797859191895,
0.04574206843972206,
0.13236749172210693,
-0.054147545248270035,
-0.05276567488908768,
0.03563982620835304,
0.029913529753684998,
-0.0172799713909626,
0.007090877741575241,
0.03616932034492493,
-0.016950326040387154,
-0.014399073086678982,
-0.005417116917669773,
0.05206440016627312,
-0.055096715688705444,
-0.002413383452221751,
0.051749587059020996,
-0.008326033130288124,
0.04285547882318497,
-0.05274774506688118,
-0.010147109627723694,
-0.013355034403502941,
-0.0023737053852528334,
-0.023830346763134003,
0.04432617127895355,
-0.021326452493667603,
-0.020957570523023605,
-0.03914390131831169,
-0.03690337762236595,
-0.0009942548349499702,
0.06681428849697113,
-0.006169643718749285,
-0.016190705820918083,
-0.041571516543626785,
0.016354704275727272,
0.04511487856507301,
0.043972596526145935,
-0.03517764061689377,
0.02467861771583557,
0.06540954858064651,
0.03146970272064209,
-0.033350877463817596,
0.05830797553062439,
0.001306977472268045,
-0.03169426694512367,
-0.031866442412137985,
0.014248587191104889,
-0.012593097984790802,
-0.045105524361133575,
0.035055432468652725,
0.030384903773665428,
-0.004515474662184715,
-0.017046792432665825,
-0.021029068157076836,
0.048650529235601425,
0.00968755129724741,
0.005530156660825014,
0.025848619639873505,
-0.00518229603767395,
-0.023406384512782097,
0.051680803298950195,
-0.025748129934072495,
0.013583355583250523,
-0.0006836855900473893,
-0.016132749617099762,
0.00731323380023241,
0.02990361675620079,
0.048369117081165314,
0.045802824199199677,
0.003917577210813761,
0.0695936307311058,
-0.0280942190438509,
0.025469599291682243,
-0.059506092220544815,
-0.04245670512318611,
-0.0021066570188850164,
0.02794213779270649,
0.025841061025857925,
0.04154720902442932,
-0.004090870730578899,
-0.04661265015602112,
0.004702262580394745,
0.06283516436815262,
0.05011693760752678,
0.02567400597035885,
-0.032724589109420776,
-0.013980558142066002,
0.030298663303256035,
0.05992838367819786,
-0.060178548097610474,
-0.045358628034591675,
0.040245234966278076,
0.04999952390789986,
-0.018135635182261467,
0.008508292958140373,
-0.018727276474237442,
0.029263537377119064,
-0.040888067334890366,
-0.06671307981014252,
0.03792126104235649,
0.03580348938703537,
-0.006735838484019041,
0.030976152047514915,
-0.02385304868221283,
0.00867562647908926,
0.021752862259745598,
0.01789732463657856,
0.001400001347064972,
-0.0324111133813858,
0.011710329912602901,
0.03695128485560417,
0.043902963399887085,
-0.04836133122444153,
0.036124080419540405,
0.0026234518736600876,
0.016665499657392502,
0.04098820686340332,
-0.010555298067629337,
0.02936534397304058,
0.042544733732938766,
0.006769473198801279,
-0.03430144488811493,
0.019341863691806793,
0.0013418608577921987,
0.060217928141355515,
0.06458858400583267,
0.00579194538295269,
0.059638239443302155,
0.010725843720138073,
0.043919119983911514,
0.07231908291578293,
0.020742803812026978,
0.013963955454528332,
0.013176284730434418,
0.07130423188209534,
0.0035304161719977856,
-0.011018622666597366,
0.08838460594415665,
-0.04674576222896576,
0.009538990445435047,
-0.054955944418907166,
0.03730098903179169,
0.010775282979011536,
-0.012711158953607082,
0.055022358894348145,
0.026859570294618607,
0.0026592903304845095,
0.004718417767435312,
-0.0016906446544453502,
-0.03716316819190979,
0.0596720427274704,
-0.016657380387187004,
0.02509443461894989,
-0.01232707966119051,
-0.026206865906715393,
-0.011252541095018387,
-0.07256869971752167,
-0.047288745641708374,
0.0038799901958554983,
-0.023999592289328575,
-0.010485172271728516,
-0.0991770401597023,
-0.023303192108869553,
-0.04434935003519058,
-0.02186841145157814,
0.021019695326685905,
0.014721621759235859,
0.017655503004789352,
-0.027855858206748962,
0.02548772469162941,
-0.04351544380187988,
-0.01715814135968685,
-0.03885079175233841,
-0.03352544084191322,
-0.053004272282123566,
-0.05425460636615753,
0.044350892305374146,
0.022523876279592514,
0.027787597849965096,
-0.003838821081444621,
-0.00047696413821540773,
-0.03233390673995018,
-0.008866074495017529,
0.036554139107465744,
0.03495481237769127,
-0.04105604439973831,
-0.045396775007247925,
0.011773566715419292,
-0.00689032394438982,
0.0022922842763364315,
-0.023184748366475105,
-0.0037237799260765314,
0.09676285833120346,
0.08953102678060532,
0.04189863055944443,
0.00559607706964016,
-0.01626931130886078,
-0.0433412566781044,
-0.06906572729349136,
-0.030373597517609596,
-0.04225447401404381,
-0.011339292861521244,
-0.06254562735557556,
-0.04320993274450302,
0.001368604484014213,
-0.028828872367739677,
-0.0006752409390173852,
-0.002374040661379695,
0.029833782464265823,
0.03609304130077362,
0.03946729376912117,
0.016321847215294838,
0.028004799038171768,
-0.021599579602479935,
-0.028258275240659714,
0.06061934307217598,
0.0056910100392997265,
0.01787014864385128,
-0.0734948143362999,
-0.049127716571092606,
0.04033375903964043,
0.028961393982172012,
-0.003337814472615719,
-0.008040261454880238,
0.08028003573417664,
0.009528568014502525,
-0.019535616040229797,
-0.0037590854335576296,
0.009496856480836868,
-0.029247255995869637,
-0.014928679913282394,
-0.0020469720475375652,
-0.026243561878800392,
-0.03122689761221409,
-0.05277901515364647,
-0.020549196749925613,
0.03959985077381134,
-0.05664805322885513,
-0.056255076080560684,
-0.03238799422979355,
0.05146699398756027,
0.022056574001908302,
-0.0011937589151784778,
-0.027902014553546906,
-0.00529597420245409,
-0.04355083033442497,
-0.01573505811393261,
-0.002270987257361412,
0.0010434245923534036,
0.013984357006847858,
0.03493748605251312,
0.02689710073173046,
-0.022998040542006493,
0.027406102046370506,
0.04203619435429573,
0.056835856288671494,
-0.001209733192808926,
-0.05274627357721329,
0.029309818521142006,
-0.023534974083304405,
0.02572205662727356,
0.004178936593234539,
-0.026659606024622917,
-0.05814746767282486,
-0.08959843218326569,
0.006831745151430368,
-0.016516584903001785,
-0.007754574995487928,
-0.009503964334726334,
0.03290541470050812,
-0.033203452825546265,
-0.029469721019268036,
0.003999903332442045,
0.019309695810079575,
0.026302067562937737,
-0.04313791170716286,
0.06228399649262428,
-0.019962294027209282,
0.012908118776977062,
-0.05618965998291969,
0.021203724667429924,
-0.053285691887140274,
-0.028119685128331184,
-0.0018638853216543794,
0.05856849253177643,
0.024222780019044876,
0.054677288979291916,
0.06655125319957733,
0.05514245107769966,
-0.05872331187129021,
0.037831392139196396,
0.03759513422846794,
-0.0039054194930940866,
-0.03575270622968674,
-0.011301876977086067,
-0.016223261132836342,
-0.024049626663327217,
-0.027379930019378662,
-0.01140153594315052,
0.014020460657775402,
0.02949623391032219,
0.006276875268667936,
-0.011842592619359493,
0.01704235002398491,
-0.02328210137784481,
-0.03146101534366608,
-0.07174485921859741,
-0.023695064708590508,
-0.007750608026981354,
-0.027505407109856606,
0.06391669809818268,
0.006841740105301142,
0.002267639385536313,
0.0660388395190239,
0.04861189424991608,
-0.022510027512907982,
-0.041915781795978546,
0.02799862250685692,
0.031659163534641266,
-0.04377547651529312,
-0.06335096061229706,
-0.05320096015930176,
0.05303866043686867,
0.06245335564017296,
-0.0024769732262939215,
-0.0781548023223877,
-0.00373458256945014,
0.03617699071764946,
-0.04294869303703308,
0.061242930591106415,
-0.025353146716952324,
0.0645204409956932,
0.053840044885873795,
0.0029466866981238127,
0.04117664322257042,
-0.02613421343266964,
-0.0010015200823545456,
0.011786901392042637,
0.025203416123986244,
-0.044560324400663376,
-0.048517972230911255,
-0.06103844940662384,
0.026180870831012726,
0.021013664081692696,
0.06019207462668419,
0.050210513174533844,
-0.013108434155583382,
-0.04592866078019142,
0.018405627459287643,
0.01777787134051323,
-0.047311559319496155,
-0.005653644446283579,
0.01128554716706276,
0.05601700395345688,
-0.05829210206866264,
-0.034470804035663605,
-0.050299741327762604,
-0.0098003214225173,
0.03773428872227669,
0.006071176845580339,
-0.03260127454996109,
-0.05728147178888321,
0.011990124359726906,
0.001382538117468357,
-0.013317637145519257,
-0.06915558874607086,
0.0007581482059322298,
-0.01694982871413231,
-0.012776372022926807,
0.019075846299529076,
0.04702089726924896,
0.04841485247015953,
0.06112297624349594,
0.011384719051420689,
0.01845262572169304,
-0.044188402593135834,
0.03108525462448597,
-0.02810666523873806,
-0.007756910752505064,
-0.016247661784291267,
-0.036845073103904724,
0.004850669298321009,
-0.04160211235284805,
-0.030965488404035568,
-0.06558413803577423,
-0.013631444424390793,
0.007998746819794178,
-0.023049449548125267,
0.020274674519896507,
-0.02834627404808998,
0.027266671881079674,
-0.027515795081853867,
-0.036798860877752304,
-0.026288319379091263,
-0.028942182660102844,
-0.07072129845619202,
-0.05671020597219467,
0.020562486723065376,
0.007006173487752676,
0.03531617298722267,
0.021154386922717094,
0.022904090583324432,
0.008002867922186852,
0.006808560341596603,
-0.03457523137331009,
0.03589509800076485,
0.012179726734757423,
-0.0379100926220417,
-0.03673936799168587,
0.02325691282749176,
0.017674963921308517,
0.019492635503411293,
-0.04120425507426262,
0.024182196706533432,
0.022074250504374504,
-0.020762935280799866,
-0.008352361619472504,
0.044524651020765305,
0.013934497721493244,
-0.08619299530982971,
-0.0507865846157074,
-0.014203428290784359,
-0.04485669359564781,
0.044636212289333344,
-0.014303628355264664,
-0.03031153790652752,
0.02153453230857849,
0.02574245072901249,
0.05747481435537338,
0.0006149117252789438,
-0.03594536706805229,
0.0031695959623903036,
-0.030667325481772423,
0.03703295439481735,
-0.054840900003910065,
0.045471493154764175,
-0.05550961196422577,
0.028109561651945114,
-0.007523398380726576,
0.01546015776693821,
-0.04434478282928467,
0.03037642315030098,
-0.01808609999716282,
-0.010473838075995445,
-0.01733103208243847,
0.007087326142936945,
-0.03599536791443825,
0.047072287648916245,
-0.039414145052433014,
0.007457028608769178,
-0.014223514124751091,
0.06882229447364807,
-0.03913607820868492,
-0.003417972242459655,
-0.01887025497853756,
0.0027439070399850607,
-0.04897335171699524,
-0.0233449749648571,
-0.0054193828254938126,
-0.029915396124124527,
0.04642689973115921,
0.028534548357129097,
0.03226502239704132,
0.046629857271909714,
0.001668551005423069,
0.000926331034861505,
0.019807325676083565,
-0.05927198380231857,
-0.019443223252892494,
-0.004285985138267279,
0.012177531607449055,
-0.008940138854086399,
0.05879069119691849,
0.057655151933431625,
-0.04956544563174248,
-0.04747883975505829,
0.0635281577706337,
0.01886845752596855,
0.013310400769114494,
-0.007330302149057388,
0.04864811524748802,
0.036777596920728683,
0.04160986840724945,
-0.02671711891889572,
-0.00814784411340952,
0.012708548456430435,
-0.031854186207056046,
0.02865096926689148,
0.005935628432780504,
0.025985905900597572,
0.020281674340367317,
-0.03134249895811081,
-0.05232899636030197,
0.054797831922769547,
0.035347361117601395,
0.019381118938326836,
0.014899603091180325,
-0.03683536872267723,
0.01074914913624525,
0.0011415391927585006,
-0.052627019584178925,
0.00010350619413657114,
0.016210859641432762,
-0.02647678181529045,
0.07336209714412689,
-0.03624187409877777,
0.026489732787013054,
0.03765858709812164,
0.00967914704233408,
-0.009601247496902943,
0.03336312994360924,
-0.05388946458697319,
0.02632407285273075,
0.04274997487664223,
-0.02833697758615017,
-0.017843065783381462,
-0.029425159096717834,
0.06445850431919098,
-0.06471676379442215,
0.054529011249542236,
0.03158920630812645,
0.010811790823936462,
0.014880968257784843,
-0.009902780875563622,
-0.04116268455982208,
0.009239725768566132,
-0.042774785310029984,
0.07999564707279205,
0.005198501516133547,
-0.059440914541482925,
0.06910081952810287,
0.016906103119254112,
-0.056227102875709534,
0.043462611734867096,
0.03142697364091873,
0.025360869243741035,
0.017861545085906982,
0.05992314592003822,
-0.036771684885025024,
0.012791179120540619,
-0.04142162948846817,
0.020874399691820145,
-0.044565826654434204,
-0.03689580783247948,
0.021757787093520164,
-0.03457850217819214,
-0.024295542389154434,
0.04574180021882057,
-0.03412071615457535,
-0.011230532079935074,
0.01400019321590662,
-0.07796312123537064,
-0.056958939880132675,
0.001191420597024262,
0.021814903244376183,
-0.022623514756560326,
-0.014822212979197502,
-0.027878807857632637,
0.020937316119670868,
0.0013340238947421312,
-0.012350772507488728,
-0.052454013377428055,
0.0155181884765625,
0.02265673689544201,
-0.050052009522914886,
-0.041442979127168655,
0.060040492564439774,
0.012711872346699238,
-0.017257388681173325,
0.029104499146342278,
-0.012328345328569412,
-0.006929684896022081,
0.024878621101379395,
0.003815311938524246,
0.014988351613283157,
-0.028948955237865448,
-0.0056648110039532185,
0.011148009449243546,
0.016078408807516098,
0.035469792783260345,
-0.023086152970790863,
0.02072201855480671,
0.03640538081526756,
0.05799179524183273,
-0.005668553989380598,
-0.03549743816256523,
-0.02225220762193203,
0.027807118371129036,
-0.049531061202287674,
-0.0016396008431911469,
-0.005939450580626726,
-0.037984639406204224,
-0.0363326333463192,
-0.007488131057471037,
-0.02755178138613701,
0.052794668823480606,
-0.07478556782007217,
0.00807868130505085,
0.05041418597102165,
-0.03358197957277298,
-0.05156133323907852,
-0.08408734947443008,
-0.01760091632604599,
-0.04744766652584076,
0.03184717893600464,
0.013529088348150253,
-0.03595931455492973,
0.02446218580007553,
-0.04062076285481453,
-0.0381818562746048,
0.04351452365517616,
0.024150285869836807,
-0.03608449175953865,
0.04523501917719841,
0.035258784890174866,
-0.0571477971971035,
-0.0017763099167495966,
0.03177618980407715,
-0.041082773357629776,
0.014814721420407295,
0.022710321471095085,
0.006369712296873331,
0.016476623713970184,
0.0315365195274353,
-0.03282519429922104,
-0.0225159153342247,
-0.060128871351480484,
-0.042225029319524765,
-0.031122973188757896,
0.011272557079792023,
0.056147295981645584
] |
bert-large-uncased | [
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 1,058,496 | 2018-11-14T23:35:08Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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}
}
``` | [
-0.006085440516471863,
0.0009613729198463261,
-0.01668190397322178,
0.06285299360752106,
0.028104914352297783,
0.030963823199272156,
-0.020126869902014732,
-0.03348826244473457,
-0.030550867319107056,
0.049342453479766846,
0.01767853833734989,
-0.00400198670104146,
0.01777447946369648,
0.039900925010442734,
-0.025783490389585495,
-0.01477424893528223,
-0.008981380611658096,
-0.004768975544720888,
-0.03174316883087158,
-0.013031390495598316,
-0.013088461942970753,
0.006615429650992155,
0.004777217283844948,
0.014508546330034733,
-0.004805057309567928,
0.022686414420604706,
0.009708646684885025,
0.0456557534635067,
0.009088456630706787,
-0.07423599809408188,
-0.006324411369860172,
-0.0295264832675457,
-0.05123095586895943,
0.011916245333850384,
-0.011510857380926609,
0.0008706482476554811,
-0.005856790114194155,
0.0014541309792548418,
0.0457441508769989,
0.052221763879060745,
-0.006511786486953497,
-0.0004745471233036369,
-0.0230510625988245,
-0.03656604513525963,
0.03302416205406189,
0.0003655109030660242,
-0.049028296023607254,
-0.0119327986612916,
0.04166245087981224,
-0.01654631458222866,
-0.054082177579402924,
-0.06251440942287445,
-0.028976507484912872,
0.024125635623931885,
0.011720501817762852,
-0.030611656606197357,
-0.06188850477337837,
-0.02073274552822113,
0.06291557103395462,
-0.04658494144678116,
-0.05307135730981827,
0.0016903403447940946,
-0.04297111928462982,
0.026052897796034813,
0.033050842583179474,
-0.03107263892889023,
0.010059640742838383,
-0.04073651134967804,
0.026762718334794044,
-0.030163582414388657,
0.04581793025135994,
-0.03343808278441429,
0.013625544495880604,
-0.1025046557188034,
-0.007109854836016893,
-0.0187878105789423,
0.0478578619658947,
0.04026949405670166,
-0.02544313110411167,
0.05015750974416733,
0.016421444714069366,
-0.003589475993067026,
0.010428257286548615,
-0.010790485888719559,
-0.017101259902119637,
0.06293942779302597,
-0.05102077126502991,
-0.009570760652422905,
0.0018751075258478522,
0.047021251171827316,
-0.03004290722310543,
-0.011715971864759922,
-0.038007866591215134,
-0.03955143317580223,
-0.027234531939029694,
0.029015783220529556,
0.022067800164222717,
-0.015636274591088295,
0.04445668309926987,
0.024704348295927048,
0.02649534121155739,
0.058295298367738724,
-0.02211572229862213,
0.07751870155334473,
-0.010878711938858032,
-0.02587187848985195,
-0.0264489334076643,
-0.034074269235134125,
-0.042530663311481476,
0.02335580438375473,
0.02797306329011917,
-0.03845726326107979,
-0.059032995253801346,
0.05934517830610275,
0.00017290299001615494,
-0.04192672297358513,
0.04880393296480179,
-0.02237570844590664,
-0.04506604000926018,
-0.05190349370241165,
0.029944218695163727,
-0.006507374346256256,
0.024668652564287186,
0.0029161679558455944,
-0.07601182162761688,
0.02244781330227852,
-0.0344424769282341,
-0.02692379243671894,
-0.0012554969871416688,
0.015311923809349537,
-0.012279649265110493,
0.04155955836176872,
0.0275407824665308,
-0.05783001706004143,
0.02072969637811184,
0.0027071747463196516,
-0.05893062427639961,
0.053190071135759354,
0.045199260115623474,
0.1290232390165329,
-0.05494388937950134,
-0.05110622197389603,
0.03509195148944855,
0.0413423590362072,
-0.015692027285695076,
0.011110936291515827,
0.03300509974360466,
-0.015869252383708954,
-0.015583540312945843,
-0.010356727056205273,
0.057488054037094116,
-0.053529974073171616,
-0.009936127811670303,
0.04453684017062187,
-0.007250899448990822,
0.046178050339221954,
-0.04882829263806343,
-0.012134497053921223,
-0.01641772873699665,
-0.001651340862736106,
-0.024540318176150322,
0.03893281891942024,
-0.02090219408273697,
-0.026529157534241676,
-0.039361000061035156,
-0.032912541180849075,
-0.004634995944797993,
0.06949355453252792,
-0.011090636253356934,
-0.01635127328336239,
-0.03592380881309509,
0.015217418782413006,
0.04995213449001312,
0.04566067457199097,
-0.033294979482889175,
0.021508345380425453,
0.07049203664064407,
0.030171062797307968,
-0.02976299077272415,
0.061617664992809296,
0.00224433746188879,
-0.03510051965713501,
-0.02761838212609291,
0.017826974391937256,
-0.011721966788172722,
-0.037876375019550323,
0.045158788561820984,
0.030822264030575752,
-0.011892381124198437,
-0.012864498421549797,
-0.027082478627562523,
0.046261873096227646,
0.009492943063378334,
0.002203602809458971,
0.017491908743977547,
-0.0045685232616961,
-0.025737233459949493,
0.04663962125778198,
-0.02455383911728859,
0.01633303053677082,
0.0026412734296172857,
-0.016224943101406097,
0.014332498423755169,
0.025112230330705643,
0.04546738788485527,
0.0482400543987751,
0.012530773878097534,
0.06790319830179214,
-0.0336683988571167,
0.028080664575099945,
-0.0635409727692604,
-0.03958052396774292,
-6.696777745673899e-7,
0.02940058521926403,
0.01998799480497837,
0.03811636194586754,
0.0015871393261477351,
-0.04795055836439133,
0.007405607961118221,
0.06514865905046463,
0.053444743156433105,
0.02434685081243515,
-0.031115427613258362,
-0.021389300003647804,
0.030080217868089676,
0.057149436324834824,
-0.061781302094459534,
-0.047358397394418716,
0.034162018448114395,
0.04918505251407623,
-0.018883122131228447,
0.0025482361670583487,
-0.016538923606276512,
0.03654224053025246,
-0.038037318736314774,
-0.06436717510223389,
0.04366915300488472,
0.0388074591755867,
0.00006806961027905345,
0.034200411289930344,
-0.012622836045920849,
0.003554327180609107,
0.02128513902425766,
0.02046666294336319,
0.0016221202677115798,
-0.03461507707834244,
0.01128854975104332,
0.03393758088350296,
0.04723697528243065,
-0.04704456403851509,
0.03564712405204773,
0.006274995859712362,
0.023694541305303574,
0.03837161883711815,
-0.011899598874151707,
0.031938616186380386,
0.047051314264535904,
0.007226560730487108,
-0.028791235759854317,
0.018874209374189377,
0.004582004621624947,
0.05652583763003349,
0.059174131602048874,
-0.002286587841808796,
0.054291099309921265,
0.012153517454862595,
0.04073284938931465,
0.07158905267715454,
0.026734955608844757,
0.023591339588165283,
0.015296394005417824,
0.07351759821176529,
0.0034186849370598793,
-0.011030768044292927,
0.07693285495042801,
-0.05301937088370323,
0.012573163956403732,
-0.04927273094654083,
0.03517309948801994,
0.012854096479713917,
-0.00766484159976244,
0.056243278086185455,
0.03239692375063896,
0.0011327631073072553,
0.0068953437730669975,
0.0026200339198112488,
-0.031079819425940514,
0.051009856164455414,
-0.011615592986345291,
0.027151577174663544,
-0.012477459385991096,
-0.02508378028869629,
-0.012518121860921383,
-0.07488469779491425,
-0.05539989471435547,
0.0035628683399409056,
-0.03247842565178871,
-0.006786770652979612,
-0.09152380377054214,
-0.029613684862852097,
-0.05263931676745415,
-0.01951562985777855,
0.014896965585649014,
0.01788012683391571,
0.01863516867160797,
-0.02557060495018959,
0.018018005415797234,
-0.04875696823000908,
-0.018760863691568375,
-0.03728204593062401,
-0.03398934379220009,
-0.049728572368621826,
-0.05417706072330475,
0.03910621255636215,
0.02196001447737217,
0.022634264081716537,
-0.00982315931469202,
0.002797729102894664,
-0.033446043729782104,
-0.01843119226396084,
0.04608679935336113,
0.03860985115170479,
-0.0405607707798481,
-0.04131418466567993,
0.010460787452757359,
-0.005848225671797991,
0.010273845866322517,
-0.02530680038034916,
-0.005804801359772682,
0.09148683398962021,
0.08332399278879166,
0.030247248709201813,
0.0040329452604055405,
-0.02076837047934532,
-0.03579043969511986,
-0.06582923978567123,
-0.027275456115603447,
-0.04822693020105362,
-0.01061597652733326,
-0.05491797626018524,
-0.04101913794875145,
-0.003501740051433444,
-0.02416985109448433,
-0.009041468612849712,
-0.006426219828426838,
0.02213718369603157,
0.03719525784254074,
0.03865798935294151,
0.017127051949501038,
0.030607467517256737,
-0.024837158620357513,
-0.021138200536370277,
0.0648425966501236,
0.01408415473997593,
0.01612856239080429,
-0.07650614529848099,
-0.04519395902752876,
0.045201994478702545,
0.03455526754260063,
-0.0071865953505039215,
-0.011343652382493019,
0.08150128275156021,
0.013419145718216896,
-0.010529117658734322,
-0.00022991363948676735,
0.008969519287347794,
-0.029649918898940086,
-0.02937168814241886,
-0.0021733755711466074,
-0.015880851075053215,
-0.03371619060635567,
-0.05278489366173744,
-0.022893821820616722,
0.04126593843102455,
-0.060374293476343155,
-0.05375251919031143,
-0.023036465048789978,
0.046135611832141876,
0.02396107092499733,
0.0038414285518229008,
-0.023605994880199432,
-0.0018530897796154022,
-0.036104898899793625,
-0.019773583859205246,
-0.0006500641466118395,
-0.0018525822088122368,
0.010663429275155067,
0.033206257969141006,
0.028492717072367668,
-0.02148555964231491,
0.0286492258310318,
0.050218772143125534,
0.053995851427316666,
0.000694621354341507,
-0.052258968353271484,
0.030377844348549843,
-0.027865517884492874,
0.03261592611670494,
0.007151316851377487,
-0.029102319851517677,
-0.058829281479120255,
-0.08532222360372543,
0.0035525227431207895,
-0.017936842516064644,
-0.008279692381620407,
-0.007569307927042246,
0.03437165915966034,
-0.02490946091711521,
-0.02277718111872673,
0.0014159799320623279,
0.018087148666381836,
0.01588434912264347,
-0.03731817007064819,
0.0655474066734314,
-0.023971257731318474,
0.011475489474833012,
-0.06013971567153931,
0.020498152822256088,
-0.0584755465388298,
-0.030218608677387238,
0.004487738013267517,
0.05540074035525322,
0.02983854152262211,
0.06779111176729202,
0.06623712182044983,
0.05946429818868637,
-0.05704350024461746,
0.042500827461481094,
0.03202653303742409,
0.001227620174176991,
-0.04063493013381958,
-0.02130923978984356,
-0.019654685631394386,
-0.020479029044508934,
-0.031375784426927567,
-0.003559407079592347,
0.01444626972079277,
0.025549722835421562,
0.006773628294467926,
-0.013311775401234627,
0.007147068623453379,
-0.027133405208587646,
-0.02294311672449112,
-0.0715804174542427,
-0.025133244693279266,
-0.01686262898147106,
-0.02210909314453602,
0.06436462700366974,
0.0069917659275233746,
0.002117826836183667,
0.07401567697525024,
0.04926837235689163,
-0.013052674010396004,
-0.041497014462947845,
0.03314940258860588,
0.03286450728774071,
-0.04446236789226532,
-0.057764388620853424,
-0.04950650408864021,
0.05922301858663559,
0.059785641729831696,
-0.009023181162774563,
-0.0792989730834961,
-0.0002065622975351289,
0.04555894061923027,
-0.0417502336204052,
0.05410570278763771,
-0.023634890094399452,
0.06399834901094437,
0.06308690458536148,
-0.002238298999145627,
0.03693269193172455,
-0.02736419066786766,
0.0029972586780786514,
0.01596260257065296,
0.024936029687523842,
-0.040365755558013916,
-0.05326472222805023,
-0.06314276903867722,
0.028737593442201614,
0.02841080352663994,
0.05825267732143402,
0.05013947933912277,
-0.006791837979108095,
-0.04457801580429077,
0.006497503723949194,
0.01709677092730999,
-0.04123657941818237,
-0.002871978795155883,
0.010756495408713818,
0.06075796112418175,
-0.06018609181046486,
-0.024879809468984604,
-0.043503280729055405,
-0.007206611335277557,
0.03852168470621109,
0.008533204905688763,
-0.03107273206114769,
-0.05901119485497475,
0.013901547528803349,
-0.007128606084734201,
-0.012701703235507011,
-0.06947021186351776,
-0.001199463033117354,
-0.018740339204669,
-0.013986315578222275,
0.01799231395125389,
0.04489235579967499,
0.05028993636369705,
0.05852505564689636,
0.01289804931730032,
0.013135701417922974,
-0.044119417667388916,
0.03284839913249016,
-0.02898302860558033,
-0.010559466667473316,
-0.020920513197779655,
-0.03988249599933624,
0.002931805793195963,
-0.04142084717750549,
-0.03134823963046074,
-0.05881752073764801,
-0.01424616388976574,
0.008209270425140858,
-0.023772582411766052,
0.012817851267755032,
-0.02297365292906761,
0.02553432248532772,
-0.031013060361146927,
-0.04367911070585251,
-0.026053618639707565,
-0.028660736978054047,
-0.06376445293426514,
-0.04953569918870926,
0.01742393895983696,
0.012293902225792408,
0.02521941438317299,
0.025933504104614258,
0.02156875841319561,
0.009274225682020187,
0.010453575290739536,
-0.031283482909202576,
0.03490695357322693,
0.006295337341725826,
-0.04107172042131424,
-0.042412448674440384,
0.01738406904041767,
0.013851064257323742,
0.01984609104692936,
-0.03501743823289871,
0.023588769137859344,
0.017291191965341568,
-0.02138000912964344,
-0.008230666629970074,
0.04361139237880707,
0.02195459045469761,
-0.08393488079309464,
-0.04515484720468521,
-0.013139981776475906,
-0.0440552718937397,
0.04406936094164848,
-0.017759447917342186,
-0.031102469190955162,
0.020216671749949455,
0.03026999719440937,
0.056421998888254166,
0.0012797689996659756,
-0.04327639564871788,
0.006603056099265814,
-0.031226377934217453,
0.03418346121907234,
-0.05959654226899147,
0.03803913667798042,
-0.058202583342790604,
0.03354905545711517,
-0.007770586758852005,
0.011930117383599281,
-0.04371291399002075,
0.027771083638072014,
-0.017790649086236954,
-0.007511324714869261,
-0.018647275865077972,
0.005537696648389101,
-0.03080410696566105,
0.0416555181145668,
-0.03016476146876812,
0.004259549546986818,
-0.01401339191943407,
0.0722493901848793,
-0.03610159456729889,
-0.005192771553993225,
-0.021460741758346558,
-0.0007995808846317232,
-0.04999193549156189,
-0.01696954481303692,
-0.0021780594252049923,
-0.029630929231643677,
0.046055227518081665,
0.025586577132344246,
0.0316399410367012,
0.04885505884885788,
0.0013829463860020041,
0.0017749390099197626,
0.014459825120866299,
-0.0581989623606205,
-0.02212868444621563,
-0.00222437409684062,
0.015942750498652458,
-0.0038648471236228943,
0.06672091782093048,
0.055100779980421066,
-0.0582876019179821,
-0.045013200491666794,
0.06450475007295609,
0.015909293666481972,
0.00791388563811779,
-0.0031819527503103018,
0.04173853620886803,
0.03928550332784653,
0.04390646517276764,
-0.026814313605427742,
-0.005089438520371914,
0.010586878284811974,
-0.028718601912260056,
0.014007722027599812,
0.0030603748746216297,
0.019085640087723732,
0.03404649719595909,
-0.028318416327238083,
-0.04677141085267067,
0.05759205296635628,
0.031519483774900436,
0.01686926931142807,
0.01416032761335373,
-0.03661726042628288,
0.0024211688432842493,
0.006529762409627438,
-0.05234825983643532,
-0.005979897454380989,
0.020648406818509102,
-0.021846286952495575,
0.0803179144859314,
-0.03384861350059509,
0.022486258298158646,
0.044806819409132004,
0.008699307218194008,
-0.014345296658575535,
0.041622813791036606,
-0.045342735946178436,
0.021506672725081444,
0.03932920843362808,
-0.03755458444356918,
-0.021966367959976196,
-0.0351472906768322,
0.0667371079325676,
-0.062085479497909546,
0.05255059525370598,
0.03032887727022171,
0.02374010719358921,
0.02053621970117092,
-0.01661699078977108,
-0.03907037153840065,
0.006605431437492371,
-0.04988747462630272,
0.07183146476745605,
0.0014916901709511876,
-0.060881275683641434,
0.07654251903295517,
0.014949630945920944,
-0.057592034339904785,
0.04654845595359802,
0.031681127846241,
0.028196262195706367,
0.020367925986647606,
0.05495230853557587,
-0.04113379493355751,
0.012750743888318539,
-0.039024483412504196,
0.03079139068722725,
-0.04208066314458847,
-0.03323748707771301,
0.013727262616157532,
-0.03388367220759392,
-0.015006431378424168,
0.048425812274217606,
-0.03516898304224014,
-0.01360426563769579,
0.021327227354049683,
-0.0719517394900322,
-0.065354123711586,
0.0013240576954558492,
0.01926964335143566,
-0.020922647789120674,
-0.01640794426202774,
-0.029745539650321007,
0.02809382788836956,
-0.0034387316554784775,
-0.0036793448962271214,
-0.04976741969585419,
0.010368820279836655,
0.024087507277727127,
-0.050472285598516464,
-0.04237277805805206,
0.0492803156375885,
0.00993980560451746,
-0.01872866414487362,
0.026510361582040787,
-0.013263202272355556,
-0.003249610075727105,
0.026518667116761208,
0.0011419939110055566,
0.02116713859140873,
-0.026490576565265656,
0.0013159762602299452,
0.0037896300200372934,
0.016256511211395264,
0.030947063118219376,
-0.022356761619448662,
0.018081536516547203,
0.029851971194148064,
0.05526718124747276,
0.0024165299255400896,
-0.03972160816192627,
-0.020854786038398743,
0.03269864246249199,
-0.04671097174286842,
-0.0014103330904617906,
-0.009141484275460243,
-0.03940901160240173,
-0.033579472452402115,
-0.01261157263070345,
-0.02712949924170971,
0.051488250494003296,
-0.07370753586292267,
0.009565693326294422,
0.04492788389325142,
-0.04481762647628784,
-0.04881271347403526,
-0.08276979625225067,
-0.01499900221824646,
-0.04343082010746002,
0.030804572626948357,
0.019442547112703323,
-0.027933983132243156,
0.023384787142276764,
-0.036608532071113586,
-0.0417773462831974,
0.04009084403514862,
0.024781910702586174,
-0.036688432097435,
0.05407390743494034,
0.04394356533885002,
-0.059666454792022705,
0.00496903108432889,
0.02987935207784176,
-0.04377179965376854,
0.017393290996551514,
0.022158782929182053,
0.014068014919757843,
0.009625263512134552,
0.0346706248819828,
-0.03658564016222954,
-0.018698852509260178,
-0.06119589880108833,
-0.04701597988605499,
-0.030384894460439682,
0.01488130446523428,
0.06315313279628754
] |
camembert-base | [
"pytorch",
"tf",
"safetensors",
"camembert",
"fill-mask",
"fr",
"dataset:oscar",
"arxiv:1911.03894",
"transformers",
"license:mit",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"CamembertForMaskedLM"
],
"model_type": "camembert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 1,440,898 | 2019-11-16T04:17:25Z | ---
language: fr
license: mit
datasets:
- oscar
---
# CamemBERT: a Tasty French Language Model
## 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:**
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 numbers of parameters, amount of pretraining data, and pretraining data source domains.
- **Developed 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.
- **Model Type:** Fill-Mask
- **Language(s):** French
- **License:** MIT
- **Parent Model:** See the [RoBERTa base model](https://huggingface.co/roberta-base) for more information about the RoBERTa base model.
- **Resources for more information:**
- [Research Paper](https://arxiv.org/abs/1911.03894)
- [Camembert Website](https://camembert-model.fr/)
## Uses
#### Direct Use
This model can be used for Fill-Mask tasks.
## 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)).
This model was pretrained on a subcorpus of OSCAR multilingual corpus. Some of the limitations and risks associated with the OSCAR dataset, which are further detailed in the [OSCAR dataset card](https://huggingface.co/datasets/oscar), include the following:
> The quality of some OSCAR sub-corpora might be lower than expected, specifically for the lowest-resource languages.
> Constructed from Common Crawl, Personal and sensitive information might be present.
## Training
#### Training Data
OSCAR or Open Super-large Crawled Aggregated coRpus is a multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the Ungoliant architecture.
#### Training Procedure
| 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) |
## Evaluation
The model developers evaluated CamemBERT using four different downstream tasks for French: part-of-speech (POS) tagging, dependency parsing, named entity recognition (NER), and natural language inference (NLI).
## Citation Information
```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}
}
```
## How to Get Started With the Model
##### 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-base")
camembert = CamembertModel.from_pretrained("camembert-base")
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-base", tokenizer="camembert-base")
results = camembert_fill_mask("Le camembert est <mask> :)")
# results
#[{'sequence': '<s> Le camembert est délicieux :)</s>', 'score': 0.4909103214740753, 'token': 7200},
# {'sequence': '<s> Le camembert est excellent :)</s>', 'score': 0.10556930303573608, 'token': 2183},
# {'sequence': '<s> Le camembert est succulent :)</s>', 'score': 0.03453315049409866, 'token': 26202},
# {'sequence': '<s> Le camembert est meilleur :)</s>', 'score': 0.03303130343556404, 'token': 528},
# {'sequence': '<s> Le camembert est parfait :)</s>', 'score': 0.030076518654823303, 'token': 1654}]
```
##### 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, 121, 11, 660, 16, 730, 25543, 110, 83, 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.0254, 0.0235, 0.1027, ..., -0.1459, -0.0205, -0.0116],
# [ 0.0606, -0.1811, -0.0418, ..., -0.1815, 0.0880, -0.0766],
# [-0.1561, -0.1127, 0.2687, ..., -0.0648, 0.0249, 0.0446],
# ...,
```
##### 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-base", output_hidden_states=True)
camembert = CamembertModel.from_pretrained("camembert-base", 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.0032, 0.0075, 0.0040, ..., -0.0025, -0.0178, -0.0210],
# [-0.0996, -0.1474, 0.1057, ..., -0.0278, 0.1690, -0.2982],
# [ 0.0557, -0.0588, 0.0547, ..., -0.0726, -0.0867, 0.0699],
# ...,
```
| [
-0.020097097381949425,
-0.016600843518972397,
-0.00538646150380373,
0.05541989207267761,
0.017579155042767525,
0.013426127843558788,
-0.028852131217718124,
-0.01814541406929493,
-0.025296609848737717,
0.06960288435220718,
0.012533331289887428,
-0.026998119428753853,
0.017302917316555977,
0.03456830233335495,
-0.019755417481064796,
0.008702633902430534,
-0.0014740207698196173,
-0.006847711745649576,
-0.03507149592041969,
-0.00542141729965806,
0.005578795447945595,
0.015592209063470364,
-0.019535331055521965,
0.015143400058150291,
0.019096776843070984,
0.014072864316403866,
-0.015253753401339054,
0.04270492121577263,
0.02548820897936821,
-0.09519468247890472,
-0.0134096285328269,
-0.03384336084127426,
-0.048552922904491425,
-0.023106638342142105,
-0.013832681812345982,
-0.02065196819603443,
0.024017902091145515,
-0.0008274886640720069,
0.028828779235482216,
0.050346020609140396,
-0.0009135400177910924,
-0.010677331127226353,
-0.0547327883541584,
-0.004079699516296387,
0.028310608118772507,
0.005464374553412199,
-0.06360546499490738,
-0.03794198855757713,
0.02392408438026905,
-0.03482397273182869,
-0.050187576562166214,
-0.06171339377760887,
-0.029754722490906715,
0.03349912166595459,
0.015806322917342186,
-0.03263987973332405,
-0.05387809872627258,
0.00857317540794611,
0.0773775726556778,
-0.044603340327739716,
-0.04088499769568443,
0.00806020200252533,
-0.06365762650966644,
0.017638906836509705,
0.04136470705270767,
-0.04957088455557823,
0.012169976718723774,
-0.020114393904805183,
0.03399918973445892,
-0.033504419028759,
0.04252678528428078,
-0.03488970920443535,
-0.0009097041911445558,
-0.07707575708627701,
-0.008320498280227184,
0.0026082030963152647,
0.043030042201280594,
0.05931103602051735,
-0.020229896530508995,
0.052218709141016006,
0.030229344964027405,
-0.032183121889829636,
0.023314397782087326,
-0.0255257748067379,
-0.02858276665210724,
0.046439848840236664,
-0.03921777755022049,
-0.000964962993748486,
0.018862834200263023,
0.031693536788225174,
-0.055788423866033554,
-0.04410522058606148,
0.0007654211949557066,
-0.040175892412662506,
0.0196069423109293,
0.03081844002008438,
0.044141482561826706,
-0.016898486763238907,
0.04972138628363609,
0.023739472031593323,
0.023172618821263313,
0.04007377102971077,
-0.0020258165895938873,
0.056731026619672775,
-0.04326707124710083,
-0.01694536581635475,
-0.020522434264421463,
-0.029998023062944412,
-0.0614955760538578,
0.03303997591137886,
0.02092287689447403,
-0.03600309044122696,
-0.028096532449126244,
0.0673288106918335,
-0.0066423723474144936,
-0.031048893928527832,
0.05735686793923378,
-0.04203220084309578,
-0.02615102007985115,
-0.06886995583772659,
0.02051759883761406,
0.0011638961732387543,
0.003960080444812775,
0.016187140718102455,
-0.0806112214922905,
0.01903929002583027,
-0.03977757319808006,
-0.03333963453769684,
0.00355682335793972,
0.01569443754851818,
-0.001146696857176721,
0.014186222106218338,
0.01924612745642662,
-0.051312405616045,
0.01349529530853033,
-0.0014860884984955192,
-0.03999738395214081,
0.01777384802699089,
0.04676753282546997,
0.12657755613327026,
-0.0493120513856411,
-0.03773956000804901,
0.01776069775223732,
0.022447703406214714,
-0.029354911297559738,
-0.005132843274623156,
0.030848495662212372,
-0.028508327901363373,
-0.027384091168642044,
0.010933621786534786,
0.04032817482948303,
-0.07103230059146881,
0.005851524416357279,
0.051933404058218,
-0.001303400145843625,
0.05675280839204788,
-0.06176941469311714,
-0.0363047756254673,
0.0029267403297126293,
0.006893598008900881,
-0.028689924627542496,
0.008080951869487762,
0.006245519034564495,
-0.010807414539158344,
-0.037156715989112854,
-0.05846264585852623,
0.010019027628004551,
0.08232222497463226,
-0.0120007349178195,
-0.007725282572209835,
-0.02665306255221367,
0.026116779074072838,
0.04462325945496559,
0.027177607640624046,
-0.032895952463150024,
0.03026202693581581,
0.0661708191037178,
0.01991499587893486,
-0.007362755015492439,
0.06241021305322647,
-0.005840645637363195,
-0.03699701651930809,
-0.017425350844860077,
-0.003214743221178651,
0.01579681970179081,
-0.048692211508750916,
0.03825247660279274,
0.04255961999297142,
-0.0011889219749718904,
-0.04573722556233406,
-0.038004070520401,
0.04949122667312622,
-0.014160304330289364,
-0.01539922971278429,
0.007976452820003033,
-0.0031602131202816963,
-0.04707071930170059,
0.03210654482245445,
-0.02095508761703968,
0.002437286078929901,
-0.04132987931370735,
-0.0031670108437538147,
0.02676258608698845,
0.028591617941856384,
0.053174939006567,
0.04664001241326332,
-0.028949715197086334,
0.07432012259960175,
-0.015403828583657742,
0.007232658099383116,
-0.0354122556746006,
-0.05132804811000824,
0.006254727952182293,
0.06427565217018127,
0.06054789945483208,
0.0516197644174099,
-0.021328935399651527,
-0.040454670786857605,
0.03136551007628441,
0.08867665380239487,
0.06288302689790726,
-0.0065229530446231365,
-0.04093104600906372,
-0.03763829916715622,
0.035334084182977676,
0.05636345222592354,
-0.07730507105588913,
-0.0314396396279335,
0.011470966041088104,
0.019592108204960823,
-0.03887485712766647,
-0.0005001671379432082,
-0.023691145703196526,
0.03372085839509964,
-0.022258490324020386,
-0.08315794914960861,
0.058857500553131104,
0.05620802938938141,
0.004051305819302797,
0.04842187464237213,
-0.017979728057980537,
0.021724963560700417,
0.01160828210413456,
0.009592071175575256,
-0.005771100055426359,
-0.042414892464876175,
0.009477077051997185,
0.008488377556204796,
0.07657574862241745,
-0.05067814886569977,
0.053063731640577316,
0.003720429027453065,
0.006917730905115604,
0.01559261791408062,
-0.03635702654719353,
0.02643606998026371,
0.025336934253573418,
-0.008810540661215782,
-0.018321065232157707,
-0.003162557492032647,
0.0199369415640831,
0.030762488022446632,
0.03201279789209366,
-0.003353750566020608,
0.037747520953416824,
0.019388914108276367,
0.042792532593011856,
0.0805424302816391,
0.019867494702339172,
0.00520061980932951,
0.004418176133185625,
0.06063225865364075,
0.005347896832972765,
-0.03147631138563156,
0.07283686846494675,
-0.04598468914628029,
-0.002613562624901533,
-0.04305832460522652,
-0.0091299032792449,
0.011343755759298801,
-0.00873812660574913,
0.021492058411240578,
0.01926386170089245,
-0.0073883724398911,
0.005031605251133442,
0.0087199155241251,
-0.012631670571863651,
0.07093165814876556,
-0.011794663034379482,
-0.003154580481350422,
-0.0018347286386415362,
-0.012538154609501362,
0.0023051148746162653,
-0.03993666544556618,
-0.03583300858736038,
-0.009363480843603611,
-0.029979124665260315,
-0.005770700518041849,
-0.07880325615406036,
-0.04348600655794144,
-0.05134287476539612,
-0.013676406815648079,
-0.0013414501445367932,
0.02384989894926548,
-0.004665041342377663,
-0.011531361378729343,
0.03364844247698784,
-0.035592980682849884,
-0.03385140374302864,
-0.03144495189189911,
-0.05083150044083595,
-0.026504147797822952,
-0.08584678918123245,
0.03876161947846413,
0.021402481943368912,
0.020159069448709488,
0.005422723945230246,
0.011704361997544765,
-0.01492166705429554,
-0.025018641725182533,
0.041441187262535095,
0.051760345697402954,
-0.026401879265904427,
-0.0585922934114933,
0.011582336388528347,
-0.013062938116490841,
-0.0041831559501588345,
-0.02585548907518387,
-0.05045763775706291,
0.08889113366603851,
0.06515967100858688,
0.02688637003302574,
0.015808895230293274,
0.012256259098649025,
-0.022712577134370804,
-0.06056678667664528,
-0.00553014175966382,
-0.04941593110561371,
-0.01794975996017456,
-0.029019610956311226,
-0.011944225057959557,
-0.018131880089640617,
-0.03749062120914459,
-0.004263777285814285,
-0.011004827916622162,
-0.006917994935065508,
0.00744112953543663,
0.012525678612291813,
0.037911903113126755,
0.04934875667095184,
-0.03628052771091461,
-0.042612671852111816,
0.07650694996118546,
0.02209453098475933,
-0.014467086642980576,
-0.04972130432724953,
-0.022431351244449615,
0.04695567116141319,
0.016700711101293564,
-0.012298965826630592,
-0.022764839231967926,
0.07485451549291611,
0.023720962926745415,
0.000003365710881553241,
-0.014561271294951439,
-0.021401453763246536,
-0.027433834969997406,
0.014320571906864643,
0.012014049105346203,
-0.016598638147115707,
-0.05341218784451485,
-0.052607353776693344,
0.02362024039030075,
0.04194295033812523,
-0.062094930559396744,
-0.05226398631930351,
-0.017211750149726868,
0.04354515299201012,
0.014102907851338387,
0.0009545154753141105,
-0.029387082904577255,
0.011680783703923225,
-0.06558485329151154,
-0.018205631524324417,
-0.020115161314606667,
-0.0069702682085335255,
0.0326111800968647,
0.05033932626247406,
0.008971059694886208,
-0.04743141308426857,
0.0044745104387402534,
0.05161111801862717,
0.055217280983924866,
0.01872888393700123,
-0.04297620430588722,
0.016832835972309113,
-0.011341740377247334,
-0.0036515225656330585,
0.005181470420211554,
-0.010509493760764599,
-0.07264786958694458,
-0.07586288452148438,
-0.017834492027759552,
-0.002731204265728593,
0.015882175415754318,
-0.022726232185959816,
0.058681029826402664,
-0.016480781137943268,
0.016246125102043152,
-0.006938324775546789,
-0.00017022139218170196,
0.03494850918650627,
-0.055532705038785934,
0.07873275130987167,
-0.012187575921416283,
0.022617708891630173,
-0.04250152409076691,
0.03161345794796944,
-0.042269110679626465,
-0.016703633591532707,
-0.024804744869470596,
0.07081790268421173,
0.010950676165521145,
0.06523632258176804,
0.05147277191281319,
0.029542814940214157,
-0.06087559089064598,
0.0401017963886261,
0.03235330805182457,
-0.01283804140985012,
-0.044487517327070236,
-0.02130342461168766,
-0.011524715460836887,
-0.02174009568989277,
-0.021488377824425697,
0.012370984070003033,
0.018317267298698425,
0.008551163598895073,
-0.01864827238023281,
-0.0006086514913477004,
0.012743411585688591,
-0.03093547746539116,
-0.03544381260871887,
-0.055813152343034744,
-0.034834641963243484,
-0.0065553756430745125,
-0.012500490993261337,
0.03603988140821457,
0.04637354239821434,
0.020366646349430084,
0.05078648403286934,
0.0400732047855854,
0.004994765855371952,
-0.04121501371264458,
0.004183605778962374,
0.0030253389850258827,
-0.013555437326431274,
-0.06965352594852448,
-0.04568023234605789,
0.04089393466711044,
0.04914812371134758,
0.013616261072456837,
-0.06900778412818909,
0.005619351286441088,
0.041126757860183716,
-0.024489853531122208,
0.045959509909152985,
-0.0005569501081481576,
0.059669334441423416,
0.04643659666180611,
-0.02013293094933033,
0.019727645441889763,
-0.011673077009618282,
0.014308810234069824,
0.0036704030353575945,
-0.0030148152727633715,
-0.03995988890528679,
-0.0187092162668705,
-0.07488501816987991,
0.009462200105190277,
0.041133567690849304,
0.025610120967030525,
0.033407729119062424,
-0.037059150636196136,
-0.04791035130620003,
0.025299442932009697,
0.028769416734576225,
-0.05249326676130295,
0.0052849710918962955,
0.030677499249577522,
0.04239543527364731,
-0.04259773716330528,
-0.04088775813579559,
-0.01257502380758524,
0.0007602173718623817,
0.035985495895147324,
0.028618330135941505,
-0.03558067977428436,
-0.03261449187994003,
0.013384572230279446,
-0.01406969502568245,
-0.028119530528783798,
-0.07603476196527481,
0.0045347921550273895,
-0.022446712478995323,
-0.018272653222084045,
0.02485864795744419,
0.014246844686567783,
0.03794877976179123,
0.040112704038619995,
0.01342302467674017,
-0.010107574053108692,
-0.04237435385584831,
0.029918350279331207,
-0.010538625530898571,
-0.015783295035362244,
-0.015066878870129585,
-0.040964409708976746,
-0.03395993262529373,
-0.029664400964975357,
-0.03614743798971176,
-0.05487564951181412,
-0.011877769604325294,
0.015607820823788643,
-0.03130372241139412,
0.01745389774441719,
-0.032786473631858826,
0.040720947086811066,
-0.016346529126167297,
-0.013940684497356415,
-0.021237073466181755,
-0.02751748636364937,
-0.05671518296003342,
-0.06887882202863693,
0.014071853831410408,
0.01344837062060833,
0.029995664954185486,
0.030419282615184784,
0.0034344494342803955,
-0.006616893690079451,
0.014307019300758839,
-0.02288256213068962,
0.03947068005800247,
-0.0016404626658186316,
-0.038657184690237045,
-0.03903719782829285,
0.014014067128300667,
0.029537905007600784,
0.06149257346987724,
-0.0430741123855114,
0.020916786044836044,
0.008600933477282524,
-0.032375991344451904,
-0.011453471146523952,
0.02230239473283291,
0.007657389622181654,
-0.04981580004096031,
-0.040452003479003906,
-0.03348255529999733,
-0.02192372828722,
0.05750293284654617,
-0.016592074185609818,
-0.02966517023742199,
0.03750181570649147,
0.023990480229258537,
0.058767326176166534,
-0.00887228548526764,
-0.031362105160951614,
0.036694299429655075,
-0.012189367786049843,
0.006417916622012854,
-0.06413011252880096,
0.042137179523706436,
-0.06390601396560669,
0.01938576251268387,
-0.009478168562054634,
-0.008686366491019726,
-0.04455303028225899,
0.02391105704009533,
-0.016517240554094315,
-0.035715822130441666,
-0.014037960208952427,
0.025505486875772476,
-0.035605479031801224,
0.040244776755571365,
-0.03311225771903992,
0.007146976422518492,
-0.026885993778705597,
0.06698209792375565,
-0.05380653962492943,
-0.027329811826348305,
-0.005366841796785593,
0.008420889265835285,
-0.04282021149992943,
-0.013521090149879456,
-0.010358133353292942,
-0.04527939110994339,
0.03546273335814476,
0.020813079550862312,
0.03224191814661026,
0.008968440815806389,
-0.018506726250052452,
0.011060718446969986,
0.015822267159819603,
-0.07912497967481613,
-0.00388338603079319,
-0.009479470551013947,
0.016061969101428986,
0.02686701901257038,
0.07002078741788864,
0.03709021210670471,
-0.052753690630197525,
-0.05563848838210106,
0.05799737572669983,
0.018535811454057693,
-0.0020926480647176504,
0.009272539988160133,
0.05845621973276138,
0.036490995436906815,
0.03364547714591026,
-0.05131471902132034,
-0.0245931688696146,
-0.018364587798714638,
-0.033386487513780594,
-0.004443145357072353,
0.002812429331243038,
0.023198792710900307,
0.01812247931957245,
-0.024472346529364586,
-0.04402093216776848,
0.0933508351445198,
0.029080362990498543,
0.01749172806739807,
-0.010679655708372593,
-0.027679508551955223,
0.019272107630968094,
0.023236988112330437,
-0.04808492586016655,
0.0244910791516304,
0.007189868949353695,
-0.0335795059800148,
0.06621566414833069,
-0.0357852466404438,
0.020664429292082787,
0.07537058740854263,
0.020381508395075798,
-0.028506068512797356,
0.04620056226849556,
-0.02151329256594181,
0.028455166146159172,
0.053903114050626755,
-0.02270659990608692,
-0.010176451876759529,
-0.04830864444375038,
0.04614279791712761,
-0.06687124818563461,
0.06568438559770584,
0.04096788167953491,
-0.011908643878996372,
0.017564643174409866,
-0.05487339571118355,
-0.022533591836690903,
0.0163844283670187,
-0.04746151342988014,
0.07829557359218597,
0.0114772142842412,
-0.061941489577293396,
0.040897127240896225,
0.02538852021098137,
-0.09182386845350266,
0.042603205889463425,
0.04860483482480049,
0.016993291676044464,
0.012933222576975822,
0.029597098007798195,
-0.06221520155668259,
0.028610365465283394,
-0.04319525137543678,
0.055530890822410583,
-0.049149468541145325,
-0.014289402402937412,
0.021119827404618263,
-0.054429393261671066,
-0.013837832026183605,
0.010196342132985592,
-0.02494795247912407,
-0.008756638504564762,
0.034072376787662506,
-0.04678547754883766,
-0.04256368428468704,
-0.001763385720551014,
0.00993809662759304,
0.002845756011083722,
-0.01353300828486681,
-0.043793871998786926,
0.029277822002768517,
0.015314813703298569,
0.005788070615381002,
-0.036352936178445816,
-0.032298170030117035,
0.009027878753840923,
-0.05959358066320419,
-0.052557893097400665,
0.0446772463619709,
0.020433329045772552,
-0.013448853977024555,
0.02552814595401287,
0.008517652750015259,
0.00034184870310127735,
0.027187814936041832,
-0.0012989548267796636,
0.020251842215657234,
-0.02227211929857731,
-0.024890461936593056,
0.03712031617760658,
0.005079125985503197,
0.005206306930631399,
-0.009140267968177795,
0.04018084332346916,
0.0404842235147953,
0.0554603636264801,
-0.0019264783477410674,
-0.032921381294727325,
-0.03211590275168419,
0.013856332749128342,
-0.02391504868865013,
0.011397250927984715,
-0.0003998132888227701,
-0.05703000724315643,
-0.04157838225364685,
0.022877246141433716,
-0.029417963698506355,
0.041220929473638535,
-0.04240098223090172,
0.014732948504388332,
0.04540558531880379,
-0.043059419840574265,
-0.03348264843225479,
-0.07606052607297897,
-0.021212676540017128,
-0.057205069810152054,
0.016931526362895966,
0.031148279085755348,
-0.06655421853065491,
0.016901850700378418,
-0.032918211072683334,
-0.027868783101439476,
0.04938148334622383,
0.0008087001624517143,
-0.054944347590208054,
0.05863914638757706,
0.033607084304094315,
-0.049551986157894135,
0.0007565749110653996,
0.04338590428233147,
-0.025305310264229774,
0.011377404443919659,
0.011648878455162048,
0.01707392744719982,
0.024419639259576797,
0.01799733191728592,
-0.011905991472303867,
-0.026920614764094353,
-0.07379058748483658,
-0.05448342114686966,
-0.04645064100623131,
0.011729850433766842,
0.06869401782751083
] |
distilbert-base-cased-distilled-squad | [
"pytorch",
"tf",
"rust",
"safetensors",
"openvino",
"distilbert",
"question-answering",
"en",
"dataset:squad",
"arxiv:1910.01108",
"arxiv:1910.09700",
"transformers",
"license:apache-2.0",
"model-index",
"autotrain_compatible",
"has_space"
] | question-answering | {
"architectures": [
"DistilBertForQuestionAnswering"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 257,745 | 2020-02-07T19:16:00Z | ---
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
---
# 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.
| [
0.005515695549547672,
-0.03346019238233566,
-0.024390308186411858,
0.0433480404317379,
0.06918568909168243,
0.012284352444112301,
-0.024527348577976227,
0.002197678666561842,
-0.0418853834271431,
0.03237953409552574,
0.03491295129060745,
-0.011495656333863735,
0.015988508239388466,
0.0504889041185379,
-0.029382050037384033,
-0.04720127955079079,
0.0018751055467873812,
-0.004131871275603771,
-0.060992877930402756,
-0.016806716099381447,
0.011134588159620762,
0.016657736152410507,
0.005625047720968723,
0.01591671071946621,
0.004710061941295862,
0.0033427723683416843,
-0.009356099180877209,
0.02688576653599739,
0.048479463905096054,
-0.05470754951238632,
0.010764524340629578,
-0.013383543118834496,
-0.02997671253979206,
-0.050041086971759796,
-0.01712724007666111,
-0.025829743593931198,
0.005935703869909048,
-0.010607518255710602,
0.03449587896466255,
0.036600422114133835,
-0.019963184371590614,
0.010118143633008003,
-0.017527814954519272,
-0.020104454830288887,
0.0663006603717804,
0.013095684349536896,
-0.016503985971212387,
-0.033180274069309235,
0.01764151081442833,
-0.03090241365134716,
-0.07064387947320938,
-0.07842961698770523,
-0.03811522573232651,
0.016719218343496323,
0.01545732095837593,
-0.025516917929053307,
-0.0364939384162426,
0.015280247665941715,
0.03926660120487213,
-0.09048061072826385,
-0.010503341443836689,
0.005538915749639273,
-0.07715965807437897,
-0.022935904562473297,
0.011193233542144299,
-0.04183623194694519,
0.009993091225624084,
-0.059345293790102005,
0.027005521580576897,
-0.017434410750865936,
0.07502096146345139,
-0.04067365080118179,
0.0323755145072937,
-0.05159731209278107,
-0.006069621536880732,
-0.01924460008740425,
0.0007101328228600323,
0.023206962272524834,
-0.012746555730700493,
0.07173234969377518,
0.030868401750922203,
-0.006259586196392775,
0.01087650004774332,
-0.058932092040777206,
-0.004120889585465193,
0.028998693451285362,
-0.029990430921316147,
0.013360889628529549,
-0.02491755597293377,
0.03080848604440689,
-0.042926643043756485,
-0.018747497349977493,
-0.017278876155614853,
-0.026282818987965584,
0.011278918012976646,
0.027770960703492165,
0.027985768392682076,
0.005685805808752775,
-0.009209797717630863,
0.016118204221129417,
0.02620174176990986,
0.06100975349545479,
-0.012849759310483932,
0.0686986893415451,
0.002080128761008382,
0.004190817009657621,
0.011042078956961632,
-0.027466706931591034,
-0.042728666216135025,
0.0001210015470860526,
0.023020658642053604,
-0.025920333340764046,
-0.015365748666226864,
0.0060886479914188385,
0.051482200622558594,
-0.00001033447915688157,
0.06769463419914246,
-0.02544744871556759,
-0.018732085824012756,
-0.04808374121785164,
0.034464240074157715,
0.024356700479984283,
-0.027936885133385658,
0.0035211071372032166,
-0.01799149252474308,
-0.014301950111985207,
-0.04883952438831329,
-0.01563223823904991,
0.0028870420064777136,
0.018246546387672424,
-0.0019645225256681442,
0.04272282123565674,
0.021756451576948166,
-0.10657957941293716,
0.025006262585520744,
-0.001405420247465372,
-0.03598720580339432,
0.00953261274844408,
0.012942111119627953,
0.061567049473524094,
-0.04991050809621811,
-0.058946941047906876,
0.029765132814645767,
0.025645285844802856,
-0.009320751763880253,
-0.005505410488694906,
-0.02602900005877018,
-0.03635919839143753,
-0.0408494770526886,
0.0036926413886249065,
0.0512896403670311,
-0.03709706664085388,
0.020101208239793777,
0.04395841434597969,
0.008164341561496258,
0.019325606524944305,
-0.054856572300195694,
0.0012984351487830281,
0.034719474613666534,
-0.00990260485559702,
-0.049858272075653076,
0.047071997076272964,
-0.014428508467972279,
-0.044817812740802765,
-0.011670936830341816,
-0.02463073469698429,
-0.012807960622012615,
0.09324725717306137,
0.00329414545558393,
-0.03171723708510399,
-0.024456102401018143,
0.020823625847697258,
0.022131020203232765,
0.017742102965712547,
-0.002852493431419134,
0.010668625123798847,
0.05062515661120415,
0.0342511311173439,
-0.0017017637146636844,
0.026099801063537598,
0.036150917410850525,
-0.014189018867909908,
-0.025083616375923157,
0.004132693167775869,
0.0017135137459263206,
-0.017076749354600906,
0.039673812687397,
0.03818516433238983,
0.01411173865199089,
-0.04826052114367485,
-0.025735672563314438,
0.05706227943301201,
-0.0296825859695673,
0.0037166653200984,
0.00789378397166729,
0.03401830419898033,
-0.041467588394880295,
0.04730571433901787,
-0.005980482790619135,
0.0032179702538996935,
-0.02275969088077545,
-0.011486010625958443,
0.042506441473960876,
0.02275831438601017,
0.01627993956208229,
0.05838056653738022,
0.0041383495554327965,
0.11011680215597153,
-0.036623090505599976,
0.01352615561336279,
-0.03016083501279354,
-0.01941470429301262,
0.027755530551075935,
0.04931400343775749,
0.06503761559724808,
0.05720331147313118,
0.0039707873947918415,
0.003412986174225807,
0.05488337576389313,
0.06696266680955887,
0.06445396691560745,
0.020573388785123825,
-0.018704280257225037,
-0.019059689715504646,
0.05229107290506363,
0.06964504718780518,
-0.045268576592206955,
-0.031332697719335556,
-0.0008410605369135737,
-0.0004362604522611946,
-0.006318007130175829,
0.008344867266714573,
-0.027813619002699852,
0.041046615689992905,
-0.06955002248287201,
-0.05188471078872681,
0.04415104538202286,
0.005158904008567333,
-0.01430000551044941,
0.012040534988045692,
0.0015500091249123216,
-0.00127662334125489,
0.02811487950384617,
0.024066753685474396,
0.020480860024690628,
-0.022450290620326996,
0.017963403835892677,
-0.014259587042033672,
0.09240738302469254,
-0.058563992381095886,
0.030306965112686157,
-0.010282520204782486,
0.04324589669704437,
0.033410683274269104,
-0.06467126309871674,
0.024878889322280884,
0.04848318174481392,
0.004932557698339224,
-0.010023916140198708,
0.02694625034928322,
0.02047046087682247,
-0.009775334969162941,
0.062173064798116684,
0.013436922803521156,
0.06772994250059128,
0.005227456800639629,
0.0345563180744648,
0.06922026723623276,
0.009504656307399273,
0.024166161194443703,
0.0001603119308128953,
0.07019667327404022,
0.005435490049421787,
0.013342475518584251,
0.046610720455646515,
-0.035232994705438614,
0.004167411010712385,
-0.037392131984233856,
-0.0007914553862065077,
0.002276136539876461,
0.0006527990335598588,
0.06177056208252907,
0.00628658477216959,
-0.041169945150613785,
-0.002407351741567254,
0.023864664137363434,
0.01358102634549141,
0.020089976489543915,
-0.03818602114915848,
0.011393127031624317,
0.0070809670723974705,
-0.039866816252470016,
-0.0043840566650033,
-0.08481311798095703,
-0.04933272674679756,
-0.02649640664458275,
-0.01571529172360897,
0.0003656627668533474,
-0.0658046081662178,
-0.00038366447552107275,
-0.057955335825681686,
-0.03836331516504288,
0.050542380660772324,
-0.005724711809307337,
-0.01689169369637966,
0.004309944808483124,
0.018682364374399185,
-0.028219394385814667,
-0.040618233382701874,
-0.017478691413998604,
-0.028464708477258682,
-0.03653920069336891,
-0.05191151052713394,
0.02675778418779373,
0.03354836627840996,
0.014873720705509186,
0.001322724623605609,
0.020825864747166634,
-0.020128076896071434,
-0.02309482917189598,
0.014666413888335228,
0.06057839095592499,
-0.036709975451231,
-0.04525322467088699,
0.0342756025493145,
0.00225531542673707,
0.02537248283624649,
0.037511952221393585,
-0.041993603110313416,
0.09640425443649292,
0.06566571444272995,
0.0334225594997406,
-0.002469108672812581,
-0.020677704364061356,
-0.044708359986543655,
-0.03191718831658363,
-0.024024469777941704,
-0.027027584612369537,
-0.03907003626227379,
-0.049082864075899124,
-0.04427097365260124,
-0.0365486815571785,
-0.01196998730301857,
0.010781237855553627,
-0.013845493085682392,
0.021994100883603096,
0.050203487277030945,
0.052884217351675034,
0.019801946356892586,
0.026150936260819435,
-0.02851754054427147,
-0.011427909135818481,
0.043768130242824554,
0.014593550935387611,
0.017904186621308327,
-0.07537256181240082,
-0.048632558435201645,
0.026196852326393127,
0.0008354062447324395,
-0.0004905038513243198,
-0.006916935555636883,
0.07733006030321121,
0.017957888543605804,
-0.011548670940101147,
0.0269404798746109,
-0.02300768904387951,
-0.025015920400619507,
0.008453888818621635,
-0.007612979039549828,
-0.005595739930868149,
-0.013270094990730286,
-0.02834402583539486,
0.0281774140894413,
0.04421783611178398,
-0.040680207312107086,
-0.04847743734717369,
0.0005105425952933729,
0.03949262946844101,
0.0369158573448658,
-0.0023879611399024725,
-0.024105191230773926,
0.0004984751576557755,
-0.07702454179525375,
-0.03538542613387108,
0.03477140888571739,
0.012074029073119164,
-0.020591219887137413,
0.03328362852334976,
0.011585730127990246,
-0.01114397868514061,
0.04977288842201233,
0.041827548295259476,
0.058329951018095016,
0.015291830524802208,
-0.04719334840774536,
-0.018701769411563873,
-0.03021339699625969,
0.014902882277965546,
0.014734156429767609,
-0.03240455687046051,
-0.03503832966089249,
-0.11172526329755783,
-0.021214019507169724,
0.04482627287507057,
-0.008954671211540699,
-0.04072874039411545,
0.03324022516608238,
0.013961082324385643,
-0.002004568697884679,
-0.006173509173095226,
0.022809863090515137,
0.027690520510077477,
-0.020271334797143936,
0.05452406033873558,
-0.020790761336684227,
0.040417205542325974,
-0.08195360749959946,
0.0019931017886847258,
-0.03340136259794235,
0.0007199598476290703,
0.03380565717816353,
0.034646421670913696,
-0.02117941528558731,
0.028314318507909775,
0.054617658257484436,
0.04160379245877266,
-0.037479959428310394,
0.02763604372739792,
0.04326186329126358,
-0.043753013014793396,
-0.0525299608707428,
-0.010824200697243214,
0.016275905072689056,
-0.006334034260362387,
0.026944400742650032,
-0.030975444242358208,
0.04336743801832199,
0.03492183983325958,
-0.0118763642385602,
0.0030260628554970026,
0.014147269539535046,
-0.05874233320355415,
-0.027671169489622116,
-0.010194556787610054,
-0.02875848300755024,
-0.002641781698912382,
-0.007601186633110046,
0.027695495635271072,
0.056592464447021484,
0.02415468357503414,
0.06353176385164261,
0.03467998281121254,
-0.02061317302286625,
-0.04738437384366989,
0.019204169511795044,
0.027821559458971024,
-0.04312780871987343,
-0.07595004886388779,
-0.04553268477320671,
0.0537647120654583,
0.037993237376213074,
-0.0025699944235384464,
-0.0991799607872963,
0.033096279948949814,
0.06222023814916611,
-0.03032870590686798,
0.06163409724831581,
0.005875635892152786,
0.0560622476041317,
0.05389360710978508,
-0.024537289515137672,
0.017396604642271996,
-0.0402948223054409,
-0.004363722167909145,
-0.020498139783740044,
0.05392630025744438,
-0.021893220022320747,
-0.03183881938457489,
-0.04572686180472374,
0.01720048300921917,
0.07106712460517883,
0.052312321960926056,
0.017048049718141556,
-0.02669702284038067,
-0.0350031815469265,
0.006668055895715952,
0.032646819949150085,
-0.03657955303788185,
0.015152758918702602,
0.02189338020980358,
0.02921423874795437,
-0.05145090073347092,
-0.03808192163705826,
-0.02353503368794918,
0.005897186696529388,
0.041530705988407135,
-0.01888921670615673,
0.005904967896640301,
-0.058935824781656265,
0.049297161400318146,
-0.005349041894078255,
-0.02475772798061371,
-0.08278036117553711,
0.05914003774523735,
-0.02011950872838497,
-0.0031339870765805244,
0.05934203043580055,
0.05980636179447174,
0.02790372259914875,
0.07392752915620804,
0.034872088581323624,
0.004874383099377155,
-0.03460013121366501,
0.046351220458745956,
-0.019533796235919,
-0.00534019386395812,
-0.01972546987235546,
-0.034623779356479645,
-0.011397070251405239,
-0.015012073330581188,
-0.05322089418768883,
-0.029840750619769096,
-0.039745476096868515,
0.0314326286315918,
0.0069253030233085155,
-0.010404477827250957,
-0.02682805061340332,
0.02251386269927025,
-0.01646411046385765,
-0.021697046235203743,
-0.022305501624941826,
0.008299563080072403,
-0.050093766301870346,
-0.03908943012356758,
-0.00324493320658803,
-0.009846971370279789,
0.034900110214948654,
0.008194399066269398,
0.05272957310080528,
0.006539845373481512,
-0.005937070585787296,
-0.040789972990751266,
0.0009357790695503354,
0.004458721727132797,
-0.048323724418878555,
-0.04179060086607933,
-0.0032394155859947205,
-0.012941159307956696,
0.042505767196416855,
0.003176676807925105,
0.023930182680487633,
0.006903924513608217,
-0.01921585574746132,
-0.021820783615112305,
0.02779577672481537,
0.05201619863510132,
-0.09344493597745895,
-0.048867564648389816,
-0.007588856387883425,
-0.027388334274291992,
0.025363272055983543,
-0.048888713121414185,
-0.06828407198190689,
0.031332917511463165,
0.014471144415438175,
0.03985249623656273,
0.0174238458275795,
-0.02662721648812294,
0.02569384127855301,
0.013783425092697144,
-0.003035164438188076,
-0.054691724479198456,
0.02341657690703869,
-0.01665513962507248,
0.02384512685239315,
-0.02694246545433998,
-0.00929209403693676,
-0.03159548342227936,
0.04555792361497879,
-0.028694670647382736,
-0.01583568938076496,
-0.010374831967055798,
0.017313353717327118,
-0.01980658993124962,
0.018420521169900894,
-0.007229231297969818,
0.040306977927684784,
-0.03935930132865906,
0.053537994623184204,
-0.05627627298235893,
0.013590449467301369,
-0.023364882916212082,
0.026434145867824554,
-0.04190764203667641,
0.051189910620450974,
-0.02057194896042347,
-0.04034246504306793,
0.01844625547528267,
0.08214446902275085,
0.007947816513478756,
0.017809253185987473,
-0.01979263685643673,
-0.007508738432079554,
0.00948045589029789,
-0.06554731726646423,
0.018428761512041092,
-0.0011014718329533935,
0.0064148930832743645,
0.0012320082169026136,
0.03893038257956505,
0.04952780529856682,
-0.045448482036590576,
-0.06074148789048195,
0.05125994607806206,
0.015968259423971176,
-0.0015084516489878297,
-0.005681557115167379,
0.0085549745708704,
0.04716132953763008,
0.01274098176509142,
-0.0362749882042408,
0.005671211984008551,
-0.01172765251249075,
-0.024607094004750252,
-0.008350569754838943,
-0.015718983486294746,
0.02550956793129444,
0.016834748908877373,
-0.027157584205269814,
-0.024272551760077477,
0.06496214121580124,
0.04019938036799431,
0.014044282026588917,
0.00011748533870559186,
-0.022148452699184418,
0.04570934921503067,
-0.0016605798155069351,
-0.02742856554687023,
0.040016330778598785,
-0.004238864406943321,
-0.038200266659259796,
0.08941192924976349,
-0.005190680269151926,
0.00534225394949317,
0.038019947707653046,
-0.013275484554469585,
-0.02017420344054699,
0.031657155603170395,
-0.037647321820259094,
0.032556530088186264,
0.05541630834341049,
-0.09424922615289688,
0.027634883299469948,
-0.04531816393136978,
0.030488647520542145,
-0.08491116762161255,
0.049336325377225876,
0.04846908897161484,
0.015681713819503784,
0.04182342439889908,
-0.050965018570423126,
-0.05448787286877632,
0.027924789115786552,
-0.0403468981385231,
0.06521831452846527,
0.002106071449816227,
-0.05443257465958595,
0.06759133189916611,
0.02311445027589798,
-0.07891450822353363,
0.03602606803178787,
0.04230709746479988,
0.05953895300626755,
0.03873595595359802,
0.04436791315674782,
-0.054826799780130386,
0.020797237753868103,
-0.013415662571787834,
0.04986372962594032,
-0.06836572289466858,
-0.051095038652420044,
0.015776757150888443,
-0.03578607365489006,
-0.00441337376832962,
0.003022589022293687,
-0.028239812701940536,
-0.0016966122202575207,
0.013793401420116425,
-0.053110186010599136,
-0.045460883527994156,
0.009428845718502998,
0.02403821423649788,
-0.029765326529741287,
-0.01488100178539753,
-0.039620157331228256,
0.03377630561590195,
0.012904404662549496,
0.023466208949685097,
-0.010785730555653572,
-0.008530871942639351,
0.014578482136130333,
-0.05840540677309036,
-0.014597797766327858,
0.06152777746319771,
0.006982822436839342,
-0.009040108881890774,
0.04460225626826286,
0.015641234815120697,
0.035836946219205856,
-0.012322221882641315,
-0.012073042802512646,
0.01805080845952034,
-0.04093392565846443,
0.0013035873416811228,
0.027444256469607353,
0.00766389537602663,
0.011997413821518421,
0.008482486940920353,
0.039805639535188675,
0.030005766078829765,
0.03868488222360611,
0.027883989736437798,
-0.022320445626974106,
0.004015177953988314,
0.056780535727739334,
-0.05304364487528801,
0.02198350802063942,
-0.021803053095936775,
-0.03950641676783562,
-0.03498530387878418,
-0.014838220551609993,
-0.008618105202913284,
0.03113464266061783,
-0.0621650293469429,
0.017657065764069557,
0.03710296377539635,
-0.029752643778920174,
-0.054515983909368515,
-0.08993156999349594,
0.002571971621364355,
-0.0534840002655983,
0.001803787425160408,
0.04550783708691597,
-0.057772859930992126,
0.033915095031261444,
-0.04163069278001785,
-0.04910867288708687,
0.0327298529446125,
0.03130010887980461,
-0.05606300011277199,
0.054372310638427734,
0.048030395060777664,
-0.051787469536066055,
0.027898607775568962,
0.008445066399872303,
-0.022484520450234413,
0.01799062080681324,
-0.012854132801294327,
0.020208146423101425,
0.027366602793335915,
0.03228753060102463,
-0.031836073845624924,
-0.03652748838067055,
-0.04828731343150139,
-0.05509878695011139,
-0.018680725246667862,
0.005926692858338356,
0.044212643057107925
] |
distilbert-base-cased | [
"pytorch",
"tf",
"onnx",
"distilbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1910.01108",
"transformers",
"license:apache-2.0",
"has_space"
] | null | {
"architectures": null,
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 574,859 | 2020-02-07T19:16:00Z | ---
language: en
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---
# 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>
| [
-0.010380462743341923,
-0.00014546641614288092,
-0.0382581502199173,
0.05683795362710953,
0.027643902227282524,
0.03689701110124588,
-0.015173140913248062,
-0.02950618974864483,
-0.04597385227680206,
0.06255622208118439,
0.021582774817943573,
-0.006572623271495104,
0.002080748789012432,
0.03293827548623085,
-0.034108441323041916,
-0.025038324296474457,
0.007684358395636082,
-0.01387964840978384,
-0.04777617007493973,
-0.01297640148550272,
-0.012537779286503792,
-0.004395418334752321,
0.0011647713836282492,
0.02097547985613346,
-0.002727096900343895,
0.026212796568870544,
0.004592493176460266,
0.0450182780623436,
0.029093915596604347,
-0.0688215047121048,
0.0028105927631258965,
-0.04059382900595665,
-0.05820772424340248,
0.010065099224448204,
-0.016719304025173187,
-0.008342650718986988,
-0.010785476304590702,
0.0030748415738344193,
0.03275956213474274,
0.04654756188392639,
-0.001796676660887897,
0.0049733128398656845,
-0.024839837104082108,
-0.03688478469848633,
0.04964650422334671,
-0.0010956587502732873,
-0.0464111752808094,
-0.00999550148844719,
0.046705469489097595,
-0.032222259789705276,
-0.051612742245197296,
-0.055165719240903854,
-0.025687847286462784,
0.024911876767873764,
-0.001979002496227622,
-0.029294701293110847,
-0.0625774934887886,
-0.007735049352049828,
0.06946489959955215,
-0.04412241280078888,
-0.03378094360232353,
-0.00086941261542961,
-0.055884167551994324,
0.017362795770168304,
0.03783823922276497,
-0.031343866139650345,
0.007728269789367914,
-0.03639071807265282,
0.028166815638542175,
-0.020616304129362106,
0.04978109151124954,
-0.03506701812148094,
0.005183578934520483,
-0.09231414645910263,
-0.0015671852743253112,
-0.018121765926480293,
0.040713582187891006,
0.05713672563433647,
-0.02753913775086403,
0.043848831206560135,
0.03023342601954937,
-0.0013002060586586595,
0.015374305658042431,
-0.025708971545100212,
-0.013751671649515629,
0.06688570231199265,
-0.03949866443872452,
-0.025806330144405365,
-0.005773826036602259,
0.038243670016527176,
-0.031164098531007767,
-0.009581465274095535,
-0.03068125993013382,
-0.035286422818899155,
-0.005634272936731577,
0.028358303010463715,
0.030146686360239983,
-0.0013231162447482347,
0.04503529146313667,
0.02497805282473564,
0.041068047285079956,
0.05973241478204727,
-0.03523857891559601,
0.055880527943372726,
-0.018612993881106377,
-0.016262879595160484,
-0.026540828868746758,
-0.03650766611099243,
-0.044337283819913864,
0.012588384561240673,
0.025594480335712433,
-0.03633476421236992,
-0.044960763305425644,
0.06048429757356644,
-0.002750704064965248,
-0.036205410957336426,
0.052452202886343,
-0.01715252548456192,
-0.03169280290603638,
-0.04530959203839302,
0.027738891541957855,
-0.00014806615945417434,
0.01910502091050148,
-0.0027740548830479383,
-0.06863737851381302,
0.018465053290128708,
-0.048795185983181,
-0.016080835834145546,
0.0022567498963326216,
0.02321471832692623,
-0.000312796764774248,
0.05193646624684334,
0.0412936694920063,
-0.05949431657791138,
0.019536092877388,
0.004207083024084568,
-0.061609383672475815,
0.0420554094016552,
0.049624957144260406,
0.12089613825082779,
-0.04929101839661598,
-0.03917098790407181,
0.02813160978257656,
0.02745969034731388,
-0.02795526571571827,
0.01474351529031992,
0.01690978929400444,
-0.02385740354657173,
-0.016806935891509056,
0.00044186977902427316,
0.049938417971134186,
-0.04240724444389343,
-0.003196058329194784,
0.04805242270231247,
-0.01219237968325615,
0.04795515909790993,
-0.04305189475417137,
-0.007974083535373211,
0.002244900446385145,
-0.005070171318948269,
-0.03862582519650459,
0.046634819358587265,
-0.01693335361778736,
-0.02232767641544342,
-0.03910233825445175,
-0.036971818655729294,
0.0030567448120564222,
0.08615674823522568,
-0.015962278470396996,
-0.015362733975052834,
-0.014077939093112946,
0.01046986784785986,
0.054431334137916565,
0.04542932286858559,
-0.03456277772784233,
0.02465151622891426,
0.06650248914957047,
0.02498369850218296,
-0.012950881384313107,
0.062270451337099075,
0.006774957291781902,
-0.030341383069753647,
-0.026867249980568886,
0.009837102144956589,
-0.022122178226709366,
-0.044238414615392685,
0.02146952413022518,
0.025174031034111977,
-0.01360646914690733,
-0.026021583005785942,
-0.030978303402662277,
0.0538049079477787,
0.001009670551866293,
0.0015429568011313677,
0.02418811433017254,
0.002697009826079011,
-0.03955237939953804,
0.05957156792283058,
-0.0243813656270504,
0.019523298367857933,
0.003019242314621806,
-0.010374227538704872,
0.0032731646206229925,
0.010625552386045456,
0.03597420081496239,
0.056434549391269684,
0.00845895241945982,
0.08162412792444229,
-0.028980212286114693,
0.015211875550448895,
-0.05637921765446663,
-0.032746486365795135,
-0.0006976749282330275,
0.035493459552526474,
0.010178551077842712,
0.046785157173871994,
-0.0018936870619654655,
-0.04237186536192894,
0.023293863981962204,
0.07111324369907379,
0.05296669900417328,
0.028194308280944824,
-0.026629861444234848,
-0.018202733248472214,
0.023420363664627075,
0.053305208683013916,
-0.06563522666692734,
-0.04803746938705444,
0.02078883722424507,
0.0544503852725029,
-0.013383652083575726,
0.0004672813229262829,
-0.013727236539125443,
0.02766873687505722,
-0.04314383491873741,
-0.0643266960978508,
0.04564186930656433,
0.02763323485851288,
-0.00035801660851575434,
0.02099221758544445,
0.01667499542236328,
-0.002261835616081953,
0.018206410109996796,
0.0290694460272789,
-0.004706707317382097,
-0.03202187269926071,
0.000720894371625036,
0.019440842792391777,
0.04395317658782005,
-0.051554642617702484,
0.041608963161706924,
0.004571715369820595,
0.01927630789577961,
0.04236629605293274,
-0.012270390056073666,
0.037438225001096725,
0.03462938964366913,
0.017734283581376076,
-0.031153425574302673,
0.030724748969078064,
-0.00529518723487854,
0.059810686856508255,
0.06989210098981857,
0.011829361319541931,
0.052605628967285156,
0.019231297075748444,
0.04369262233376503,
0.05842941254377365,
0.030224405229091644,
0.023525455966591835,
0.027603667229413986,
0.07066310942173004,
-0.001452227239497006,
-0.01204970944672823,
0.0764467641711235,
-0.05809531360864639,
0.0065543996170163155,
-0.05565902963280678,
0.03315659239888191,
-0.0005750761483795941,
-0.014540419913828373,
0.05905439704656601,
0.03951770439743996,
-0.00963894184678793,
0.015961315482854843,
0.0010165596613660455,
-0.01673954539000988,
0.029874639585614204,
-0.0035108444280922413,
0.02663065493106842,
-0.02229291945695877,
-0.029309844598174095,
-0.009550937451422215,
-0.07778973877429962,
-0.06038939580321312,
-0.0030411502812057734,
-0.027008594945073128,
-0.014813896268606186,
-0.08154717832803726,
-0.027433522045612335,
-0.05467018857598305,
-0.026275228708982468,
0.022033926099538803,
0.01254315860569477,
0.00934729352593422,
-0.01607564650475979,
0.02345407009124756,
-0.04653216153383255,
-0.029463035985827446,
-0.052085135132074356,
-0.04122725501656532,
-0.053342290222644806,
-0.0657610148191452,
0.04799005389213562,
0.007816025987267494,
0.007829911075532436,
0.004306040704250336,
0.012189124710857868,
-0.018401434645056725,
-0.028781281784176826,
0.035523660480976105,
0.05922010913491249,
-0.04619165137410164,
-0.023894382640719414,
0.016202721744775772,
-0.0062035126611590385,
0.009382752701640129,
-0.0073110004886984825,
-0.016350064426660538,
0.09358099848031998,
0.07083316892385483,
0.034639593213796616,
0.011990949511528015,
-0.003366930177435279,
-0.04113044962286949,
-0.07665886729955673,
-0.015135996975004673,
-0.038175683468580246,
-0.012551824562251568,
-0.05048009753227234,
-0.04073526710271835,
-0.022390060126781464,
-0.034947264939546585,
0.000834661943372339,
-0.012109830975532532,
0.024539945647120476,
0.042146358639001846,
0.04882020503282547,
0.015554026700556278,
0.022803450003266335,
-0.024369822815060616,
-0.023370137438178062,
0.05167256295681,
0.010695762932300568,
0.01202897634357214,
-0.08094865083694458,
-0.040369659662246704,
0.04441848397254944,
0.03911475092172623,
-0.013891258276998997,
-0.005789574235677719,
0.08506745845079422,
0.007893277332186699,
-0.005584241822361946,
0.007218020036816597,
-0.0006912563112564385,
-0.03884867951273918,
0.0032914464827626944,
-0.008982403203845024,
-0.011048231273889542,
-0.030489034950733185,
-0.06708075106143951,
-0.01736118644475937,
0.03423221409320831,
-0.05395030230283737,
-0.04564020037651062,
-0.00968425814062357,
0.04290158674120903,
0.022102246060967445,
-0.004609933588653803,
-0.03141607344150543,
0.010620109736919403,
-0.047226954251527786,
-0.02600266970694065,
0.008613589219748974,
0.0032381766941398382,
0.024535896256566048,
0.03762255609035492,
0.006486503407359123,
-0.025536052882671356,
0.024261528626084328,
0.05358591303229332,
0.056845296174287796,
0.009737057611346245,
-0.05830349400639534,
0.017727693542838097,
-0.05713117867708206,
0.022806478664278984,
-0.004344124346971512,
-0.023941585794091225,
-0.04186219349503517,
-0.07498001307249069,
-0.01496113371104002,
-0.025398079305887222,
0.0007129341247491539,
-0.01898195408284664,
0.021987373009324074,
-0.012764758430421352,
-0.03623524680733681,
0.006012922618538141,
0.03179336339235306,
0.02349711023271084,
-0.021451327949762344,
0.06080310419201851,
-0.02407526969909668,
0.015834437683224678,
-0.06315196305513382,
0.013793135061860085,
-0.06184329092502594,
-0.030601011589169502,
0.009317050687968731,
0.04447680339217186,
0.0072439881041646,
0.045423053205013275,
0.07201137393712997,
0.04468313977122307,
-0.0614723339676857,
0.035145532339811325,
0.048635825514793396,
-0.0062981704249978065,
-0.050710778683423996,
-0.008792086504399776,
-0.026345079764723778,
-0.013067585416138172,
-0.014233614318072796,
-0.024197448045015335,
0.014298155903816223,
0.025539888069033623,
0.021198643371462822,
-0.013211558572947979,
-0.005792797543108463,
-0.015810592100024223,
-0.01929893158376217,
-0.06714937090873718,
-0.021790282800793648,
-0.004116232972592115,
-0.01993478275835514,
0.057565122842788696,
0.020285526290535927,
0.01130329817533493,
0.08095719665288925,
0.0383199080824852,
-0.019286027178168297,
-0.014245299622416496,
0.016384096816182137,
0.028078492730855942,
-0.03759310394525528,
-0.05607492849230766,
-0.0606377050280571,
0.0423940010368824,
0.07499644160270691,
-0.02119351364672184,
-0.09364397823810577,
0.006913954392075539,
0.0488814078271389,
-0.04862473905086517,
0.07402578741312027,
-0.019046280533075333,
0.048450857400894165,
0.05095963925123215,
-0.005481473170220852,
0.030780553817749023,
-0.034437112510204315,
0.0012845572782680392,
0.008039848878979683,
0.05014248937368393,
-0.03169011324644089,
-0.059205055236816406,
-0.06291144341230392,
0.029519090428948402,
0.02464647777378559,
0.048962268978357315,
0.050235483795404434,
-0.01914113387465477,
-0.04793345555663109,
0.02847236767411232,
0.016999535262584686,
-0.03045407496392727,
-0.006353825330734253,
0.02101004309952259,
0.05399429053068161,
-0.052127987146377563,
-0.021551012992858887,
-0.038114167749881744,
-0.004637436009943485,
0.025998396798968315,
-0.0007876521558500826,
-0.027556946501135826,
-0.06236684322357178,
0.024494770914316177,
-0.01982356235384941,
0.00012900633737444878,
-0.08873391151428223,
0.01207540463656187,
-0.014236321672797203,
-0.020574316382408142,
0.054187893867492676,
0.027575990185141563,
0.047395411878824234,
0.056097548454999924,
0.01556237880140543,
0.030713055282831192,
-0.03560498729348183,
0.03840918838977814,
-0.030898869037628174,
-0.003930163104087114,
-0.009829833172261715,
-0.029247017577290535,
-0.012280258350074291,
-0.024644944816827774,
-0.04002737998962402,
-0.06554117798805237,
-0.014365986920893192,
0.002834346843883395,
-0.022638246417045593,
0.013444234617054462,
-0.04216820001602173,
0.027483979240059853,
-0.019845565780997276,
-0.043897844851017,
-0.034499362111091614,
-0.029926788061857224,
-0.0672491267323494,
-0.0643608346581459,
0.0022046316880732775,
0.01050241757184267,
0.035727858543395996,
0.02871253900229931,
0.01811877451837063,
0.022570492699742317,
0.01798713020980358,
-0.03269480541348457,
0.03845767676830292,
0.015774942934513092,
-0.04757595434784889,
-0.035431452095508575,
0.009823179803788662,
0.012051183730363846,
0.009965894743800163,
-0.0350763238966465,
0.027483223006129265,
0.012860752642154694,
-0.016717124730348587,
-0.012543114833533764,
0.03615386411547661,
0.026092639192938805,
-0.08243010938167572,
-0.05608546361327171,
-0.027022160589694977,
-0.056948546320199966,
0.03647233173251152,
-0.02681811898946762,
-0.02357131987810135,
0.015166055411100388,
0.018428247421979904,
0.051762260496616364,
-0.017345521599054337,
-0.03619914874434471,
0.013822592794895172,
-0.010133476927876472,
0.054540637880563736,
-0.039630237966775894,
0.04101840779185295,
-0.04983769729733467,
0.03818630799651146,
-0.0012655786704272032,
0.002374835079535842,
-0.04110395163297653,
0.02923884056508541,
-0.017891013994812965,
-0.01449090801179409,
-0.030844777822494507,
0.006064501125365496,
-0.039666492491960526,
0.043796051293611526,
-0.030311783775687218,
0.005558829754590988,
-0.016542671248316765,
0.07455102354288101,
-0.05363084375858307,
-0.00028441191534511745,
-0.03809972107410431,
0.007955541834235191,
-0.03323615714907646,
-0.02525380626320839,
-0.0042025186121463776,
-0.0211054477840662,
0.0414557158946991,
0.03508147969841957,
0.02566293627023697,
0.052112024277448654,
0.0039591798558831215,
-0.0026625595055520535,
0.024703944101929665,
-0.05746849253773689,
-0.012888679280877113,
-0.006558042485266924,
0.0029987855814397335,
-0.01064519863575697,
0.06415504217147827,
0.04532322287559509,
-0.05001382157206535,
-0.056882500648498535,
0.04937845468521118,
0.022283028811216354,
0.001740681822411716,
-0.004752480890601873,
0.05219871550798416,
0.034284550696611404,
0.03773088380694389,
-0.024796372279524803,
-0.00689093628898263,
0.0013983234530314803,
-0.032947711646556854,
0.004172814544290304,
0.001305692712776363,
0.01599961891770363,
0.010701476596295834,
-0.0302598737180233,
-0.038743700832128525,
0.05720877647399902,
0.017105573788285255,
0.023031411692500114,
0.020694585517048836,
-0.0463436022400856,
0.01490419264882803,
0.0021470976062119007,
-0.05205896496772766,
-0.008635972626507282,
0.03485584259033203,
-0.038198694586753845,
0.08031121641397476,
-0.02407408133149147,
0.024592334404587746,
0.042603813111782074,
0.016673030331730843,
-0.014650613069534302,
0.045342374593019485,
-0.05241953954100609,
0.0017571750795468688,
0.0315188504755497,
-0.032489899545907974,
-0.030422810465097427,
-0.031692877411842346,
0.05299865081906319,
-0.04657673463225365,
0.0382213369011879,
0.034492988139390945,
0.026942865923047066,
0.0290263332426548,
-0.030254099518060684,
-0.02721930854022503,
0.0172222089022398,
-0.043001916259527206,
0.06749135255813599,
0.007235305849462748,
-0.0749475508928299,
0.08308175951242447,
0.016808953136205673,
-0.07486993819475174,
0.03987330198287964,
0.024887332692742348,
0.0378912128508091,
0.015931421890854836,
0.051407378166913986,
-0.04866630211472511,
0.004377539735287428,
-0.03550079092383385,
-0.007276281714439392,
-0.05282488092780113,
-0.016275353729724884,
0.02533126249909401,
-0.03692658245563507,
-0.010329403914511204,
0.0423097088932991,
-0.037392400205135345,
0.004698831122368574,
0.0181789081543684,
-0.06841901689767838,
-0.06295523792505264,
0.010132989846169949,
0.021100852638483047,
-0.028342530131340027,
-0.01092179398983717,
-0.02367105521261692,
0.020060647279024124,
0.0075919474475085735,
-0.018084043636918068,
-0.05369991436600685,
0.0013130070874467492,
0.028038663789629936,
-0.04695101082324982,
-0.027498215436935425,
0.04881277680397034,
0.022056283429265022,
-0.023150861263275146,
0.04393966868519783,
0.0025954064913094044,
-0.00203523226082325,
0.02591463178396225,
-0.009706143289804459,
0.034158091992139816,
-0.03979242965579033,
0.007022613659501076,
-0.0009052568348124623,
0.005012853071093559,
0.03174063563346863,
-0.021899892017245293,
0.022853026166558266,
0.04035758227109909,
0.03967371582984924,
-0.00672301696613431,
-0.037968333810567856,
-0.022416722029447556,
0.02283630706369877,
-0.05273928493261337,
0.008492167107760906,
0.006862255744636059,
-0.0317717008292675,
-0.025833988562226295,
0.0036271531134843826,
-0.03373803570866585,
0.048094943165779114,
-0.07650180160999298,
0.006131753791123629,
0.03932482749223709,
-0.03510230407118797,
-0.04712250083684921,
-0.06807307153940201,
-0.01203158963471651,
-0.03311595693230629,
0.01964401826262474,
0.02181515470147133,
-0.034621287137269974,
0.035766515880823135,
-0.025886770337820053,
-0.03657737001776695,
0.03341950848698616,
0.04310869425535202,
-0.053462933748960495,
0.08073560148477554,
0.026914052665233612,
-0.06041991338133812,
0.00943173747509718,
0.02527873031795025,
-0.04581136628985405,
0.015316220931708813,
0.024957843124866486,
0.005280343350023031,
0.015502706170082092,
0.01609412208199501,
-0.03957270830869675,
-0.028597235679626465,
-0.07338032871484756,
-0.03512903302907944,
-0.02602475881576538,
0.003085649572312832,
0.047250956296920776
] |
distilbert-base-multilingual-cased | [
"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",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | fill-mask | {
"architectures": [
"DistilBertForMaskedLM"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8,339,633 | 2019-11-25T19:22:20Z | ---
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
---
# 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'}]
```
| [
-0.011019791476428509,
-0.007608421146869659,
-0.013485545292496681,
0.056858666241168976,
0.02982271835207939,
0.025902921333909035,
0.0014453696785494685,
-0.02334984950721264,
-0.05866226181387901,
0.04729994386434555,
0.0004893152508884668,
-0.044792525470256805,
0.009781910106539726,
0.0316147580742836,
-0.023113645613193512,
0.0014288922538980842,
-0.004751498810946941,
-0.020856143906712532,
-0.09161590039730072,
-0.014504789374768734,
0.026294052600860596,
-0.007329303305596113,
-0.016411570832133293,
0.038892459124326706,
0.019506867974996567,
0.000463233474874869,
-0.012774283066391945,
0.036335915327072144,
0.02247568592429161,
-0.06889931112527847,
-0.013876033946871758,
-0.06532265245914459,
-0.07180344313383102,
-0.03917406126856804,
-0.021686313673853874,
-0.015321644023060799,
-0.01421346329152584,
0.006056921556591988,
0.028938278555870056,
0.04061717167496681,
-0.006062205880880356,
0.031978655606508255,
-0.031082836911082268,
-0.02124483697116375,
0.04720210283994675,
-0.016552459448575974,
-0.03652224317193031,
-0.04011363536119461,
0.026534250006079674,
-0.049763329327106476,
-0.0515844002366066,
-0.06892842799425125,
-0.04072904959321022,
0.005013976711779833,
-0.020280268043279648,
-0.006772461347281933,
-0.06443070620298386,
0.02089751698076725,
0.058507196605205536,
-0.04311491921544075,
-0.03845716640353203,
0.013199612498283386,
-0.08878543972969055,
0.00665608886629343,
0.03299262002110481,
-0.024784771725535393,
-0.00903081800788641,
-0.05090693011879921,
0.036975424736738205,
-0.005821439903229475,
0.0328720323741436,
-0.02598663419485092,
0.020321572199463844,
-0.07791232317686081,
-0.011476418934762478,
-0.018881479278206825,
0.05798656865954399,
0.029387766495347023,
-0.02817467227578163,
0.05513745918869972,
0.02068418823182583,
-0.021157221868634224,
0.02939784526824951,
-0.021047018468379974,
-0.025189604610204697,
0.041904348880052567,
-0.031456444412469864,
-0.005914009176194668,
0.009354498237371445,
0.03929698467254639,
-0.030969424173235893,
-0.025995351374149323,
-0.011729417368769646,
-0.022400621324777603,
-0.006374349817633629,
0.013692754320800304,
0.02432250790297985,
-0.009581128135323524,
0.026837287470698357,
0.028444061055779457,
0.010656582191586494,
0.051276423037052155,
-0.03499044477939606,
0.0656314492225647,
0.009607880376279354,
-0.012561098672449589,
-0.0308847613632679,
-0.0318584069609642,
-0.024403326213359833,
0.023871511220932007,
0.026951119303703308,
-0.027791757136583328,
-0.02405213564634323,
0.05454422906041145,
-0.0031216342467814684,
-0.03704138100147247,
0.04443635419011116,
-0.0118944700807333,
-0.027338290587067604,
-0.03332819417119026,
0.04369961470365524,
0.023027824237942696,
0.0023103354033082724,
0.0314442440867424,
-0.05305081605911255,
0.014189926907420158,
-0.053028859198093414,
-0.011859685182571411,
0.014000662602484226,
0.00953554455190897,
-0.03027665987610817,
0.04038354754447937,
0.05507224425673485,
-0.0950298011302948,
0.026693526655435562,
-0.009397637099027634,
-0.05092008411884308,
0.029564429074525833,
0.002097937511280179,
0.0880536139011383,
-0.03286675736308098,
-0.029592720791697502,
0.020556962117552757,
0.0019325758330523968,
-0.03465151786804199,
0.0069253393448889256,
0.0015185545198619366,
-0.02488037198781967,
0.004785662051290274,
-0.012656811624765396,
0.025040265172719955,
-0.04444251209497452,
-0.0004965120460838079,
0.05379858985543251,
-0.023772630840539932,
0.026241721585392952,
-0.04368170350790024,
-0.03238691762089729,
0.004299282096326351,
-0.006198870483785868,
-0.00594222592189908,
0.040183909237384796,
0.017040176317095757,
-0.01479808334261179,
-0.04563814029097557,
-0.04097636416554451,
-0.004207408055663109,
0.05937507376074791,
-0.016773687675595284,
-0.014898920431733131,
-0.043759677559137344,
0.01976904645562172,
0.04909111559391022,
0.03366371616721153,
-0.0298050157725811,
0.028320390731096268,
0.04833798483014107,
0.03939782455563545,
0.008913776837289333,
0.05618054047226906,
0.007301215082406998,
-0.03732239082455635,
-0.04264421761035919,
0.026300204917788506,
0.022772585973143578,
-0.03685400262475014,
-0.0007939893403090537,
0.039820052683353424,
0.006587012205272913,
-0.03351204842329025,
-0.018243644386529922,
0.068243108689785,
-0.018979324027895927,
-0.00997368898242712,
0.016672734171152115,
0.0021066502667963505,
-0.046655409038066864,
0.047356609255075455,
-0.016403526067733765,
0.017175588756799698,
-0.004535230342298746,
-0.018357625231146812,
-0.00431969715282321,
0.01554465014487505,
0.060035593807697296,
0.06914820522069931,
0.000046697186917299405,
0.08257932960987091,
-0.03659689798951149,
-0.014175004325807095,
-0.049210626631975174,
-0.03184780851006508,
-0.029102742671966553,
0.055335186421871185,
0.047175001353025436,
0.06949985772371292,
-0.017992287874221802,
-0.03475086763501167,
0.03579224646091461,
0.0799628496170044,
0.052006252110004425,
0.027035696431994438,
-0.00879192166030407,
-0.01236144732683897,
0.06611795723438263,
0.06787802278995514,
-0.06892236322164536,
-0.03764363005757332,
0.027692077681422234,
0.006987978704273701,
-0.027887772768735886,
0.006907887291163206,
-0.001313164015300572,
0.060628149658441544,
-0.03981902450323105,
-0.05669378861784935,
0.04322023317217827,
0.02437264658510685,
0.001986641436815262,
-0.002026154426857829,
0.00045692711137235165,
0.021441733464598656,
0.03382718190550804,
0.05258292332291603,
-0.005827657878398895,
-0.04957290366292,
-0.004833415616303682,
-0.004080456681549549,
0.043845489621162415,
-0.05585157871246338,
0.024517778307199478,
-0.009647144004702568,
0.04405193403363228,
0.05328158289194107,
-0.05858227238059044,
0.01934156008064747,
0.008335763588547707,
-0.002774195047095418,
-0.05558051913976669,
0.023530369624495506,
0.00686998525634408,
0.013494320213794708,
0.07242337614297867,
-0.000655901909340173,
0.055589042603969574,
0.01368632446974516,
0.03568611666560173,
0.06923356652259827,
0.017093736678361893,
0.028745658695697784,
0.04384789615869522,
0.06384788453578949,
-0.01687460206449032,
-0.009860051795840263,
0.048762109130620956,
-0.053488221019506454,
0.0017193425446748734,
-0.0511992946267128,
-0.00975544098764658,
0.005431137513369322,
0.003721467684954405,
0.02869623526930809,
0.002697952091693878,
-0.029595190659165382,
0.005722740199416876,
-0.016737790778279305,
0.00353494961746037,
0.023274321109056473,
-0.007100313436239958,
0.013862764462828636,
0.0060676769353449345,
-0.022974073886871338,
0.01886424794793129,
-0.060905613005161285,
-0.05774084851145744,
-0.004895953461527824,
-0.02217361517250538,
-0.0005109141347929835,
-0.06707461178302765,
-0.017292369157075882,
-0.058308109641075134,
-0.016157900914549828,
0.03723663091659546,
0.025378935039043427,
-0.006083813030272722,
-0.03182703256607056,
0.018703125417232513,
-0.04402635991573334,
-0.042557597160339355,
-0.05018289387226105,
-0.03878122568130493,
-0.053819142282009125,
-0.07185287773609161,
0.03374291583895683,
0.03051615133881569,
0.015611372888088226,
0.022629493847489357,
0.032522689551115036,
-0.02101297862827778,
-0.02342096157371998,
0.04644719511270523,
0.07354944199323654,
-0.04285725578665733,
-0.018900413066148758,
0.02142184041440487,
-0.0028622299432754517,
0.02712317742407322,
0.0006153981084935367,
-0.021636810153722763,
0.07875820994377136,
0.06276272237300873,
0.0222381092607975,
0.0011651177192106843,
0.01962411031126976,
-0.051060136407613754,
-0.04505732282996178,
-0.03337555751204491,
-0.031105101108551025,
-0.017637718468904495,
-0.057832323014736176,
-0.03341076523065567,
-0.027066385373473167,
-0.04735900089144707,
0.013522679917514324,
-0.015758968889713287,
0.015096697956323624,
0.05518020689487457,
0.03695911541581154,
0.015724914148449898,
0.03100222535431385,
-0.023343464359641075,
-0.027247879654169083,
0.05999137833714485,
0.013070161454379559,
0.008633104152977467,
-0.05897950753569603,
-0.035311244428157806,
0.04188866168260574,
0.013221727684140205,
-0.023687859997153282,
-0.03620513901114464,
0.08009650558233261,
0.007363601122051477,
0.002688052598387003,
-0.007435023784637451,
-0.019645797088742256,
-0.03288513794541359,
0.04049264267086983,
-0.007845703512430191,
-0.018434936180710793,
-0.058679644018411636,
-0.015041139908134937,
0.018084317445755005,
0.038673728704452515,
-0.06213809549808502,
-0.06919527798891068,
-0.01325093675404787,
0.0358484610915184,
0.01903693750500679,
-0.011768592521548271,
-0.04428036883473396,
0.013622807338833809,
-0.04380245879292488,
-0.019577858969569206,
-0.005569033324718475,
0.02465207129716873,
0.0029839149210602045,
0.05429159104824066,
0.011616512201726437,
-0.0309008676558733,
0.040753982961177826,
0.048133667558431625,
0.05626915395259857,
0.02718268521130085,
-0.0552922785282135,
0.0037300242111086845,
-0.045637961477041245,
0.0158835519105196,
-0.013639861717820168,
-0.017771847546100616,
-0.024719633162021637,
-0.07177039235830307,
-0.02082134783267975,
0.03071029670536518,
-0.018885942175984383,
-0.015794318169355392,
0.04549039900302887,
-0.018651658669114113,
-0.011990729719400406,
-0.0035735974088311195,
0.025764459744095802,
0.01323127280920744,
-0.024306965991854668,
0.05584772303700447,
-0.03881194442510605,
0.02663344144821167,
-0.07634686678647995,
0.014606158249080181,
-0.03301670774817467,
-0.01787780411541462,
-0.0025069802068173885,
0.05646200105547905,
-0.018481897190213203,
0.032629240304231644,
0.07277584075927734,
0.033482640981674194,
-0.04287544637918472,
0.05692042410373688,
0.04022778198122978,
-0.024862870573997498,
-0.04975040256977081,
0.014180989935994148,
-0.027897126972675323,
-0.02871107868850231,
0.017868367955088615,
-0.0384250245988369,
0.03012697584927082,
0.02854037843644619,
0.009857471100986004,
-0.020230112597346306,
0.02715870551764965,
-0.022243652492761612,
-0.027582891285419464,
-0.03155234828591347,
-0.0286319088190794,
-0.00041901995427906513,
-0.028115618973970413,
0.031638868153095245,
0.033497944474220276,
0.02381766028702259,
0.09254947304725647,
0.026127619668841362,
-0.03256117179989815,
-0.016335250809788704,
0.01479543186724186,
0.02652367390692234,
-0.03820774331688881,
-0.05384491756558418,
-0.04962833598256111,
0.04226548597216606,
0.04891079664230347,
0.01212521456182003,
-0.0696299821138382,
0.0197121724486351,
0.045437172055244446,
-0.011113513261079788,
0.050729069858789444,
-0.010097943246364594,
0.05267365276813507,
0.05244707688689232,
-0.03167485445737839,
-0.006141786463558674,
-0.027452917769551277,
0.03025512583553791,
-0.028124691918492317,
0.024156348779797554,
-0.01385664101690054,
-0.045864857733249664,
-0.03668244183063507,
0.018596962094306946,
0.02804252691566944,
0.043776463717222214,
0.04167339578270912,
-0.033632297068834305,
-0.04300058260560036,
0.007021310739219189,
0.04288778826594353,
-0.04277373105287552,
0.027513591572642326,
0.02800285629928112,
0.03961148485541344,
-0.04587763175368309,
-0.015149977058172226,
-0.01623486541211605,
0.02535223960876465,
0.025970827788114548,
0.00027646790840663016,
-0.02563897892832756,
-0.057715825736522675,
0.0434991680085659,
-0.009554319083690643,
-0.010081314481794834,
-0.09067230671644211,
0.050222817808389664,
-0.036894381046295166,
-0.035416629165410995,
0.056460246443748474,
0.031481046229600906,
0.04454943910241127,
0.06176334619522095,
0.021387919783592224,
0.018376614898443222,
-0.055114518851041794,
0.05856332555413246,
-0.020511062815785408,
-0.002463400596752763,
-0.011662201955914497,
-0.0281255841255188,
-0.021083148196339607,
-0.03298530727624893,
-0.060371432453393936,
-0.030702227726578712,
0.0014512012712657452,
0.03717639297246933,
-0.012364257127046585,
0.005526376888155937,
-0.011599939316511154,
0.02811352163553238,
-0.018168341368436813,
-0.039169713854789734,
-0.050211794674396515,
-0.028764333575963974,
-0.08489681780338287,
-0.05451998487114906,
0.0093650808557868,
-0.0023726182989776134,
0.01859907992184162,
0.014005298726260662,
0.02638276293873787,
0.047579098492860794,
0.0064259860664606094,
-0.021372027695178986,
0.020935365930199623,
0.012388007715344429,
-0.034777794033288956,
-0.04346735030412674,
0.025521747767925262,
0.010900809429585934,
0.03523943945765495,
-0.037248458713293076,
0.02862962894141674,
-0.0030088266357779503,
-0.024249887093901634,
-0.010188138112425804,
0.03753681108355522,
0.041413843631744385,
-0.06938643008470535,
-0.062163203954696655,
-0.02508687786757946,
-0.05095544084906578,
0.047394610941410065,
-0.028467999771237373,
-0.0576469860970974,
0.035372085869312286,
0.05155405402183533,
0.04092797636985779,
-0.012718046084046364,
-0.04215412214398384,
0.007526792585849762,
-0.007508938666433096,
0.02601303905248642,
-0.05989231541752815,
0.0513845719397068,
-0.011277968995273113,
0.023875806480646133,
-0.005354972556233406,
-0.003933835308998823,
-0.04147107154130936,
0.006003891583532095,
-0.019338209182024002,
-0.035136520862579346,
-0.013084580190479755,
0.018668651580810547,
-0.023901591077446938,
0.047414250671863556,
-0.037624914199113846,
0.011246982961893082,
-0.015150769613683224,
0.04246215894818306,
-0.04791129752993584,
0.015824751928448677,
-0.03466102480888367,
0.03064686991274357,
-0.04085157439112663,
-0.0006999914767220616,
0.004326204303652048,
-0.04371862858533859,
0.02633453905582428,
0.02855551242828369,
0.009834438562393188,
0.022936582565307617,
-0.017848573625087738,
-0.022956758737564087,
0.013818670995533466,
-0.06790082156658173,
0.008920415304601192,
-0.01613694801926613,
0.01605500653386116,
-0.004361340310424566,
0.05171095207333565,
0.015695912763476372,
-0.04800170287489891,
-0.0382048599421978,
0.04004574939608574,
0.013017507269978523,
-0.009511378593742847,
0.0016242109704762697,
0.03547408804297447,
0.042645446956157684,
0.043061189353466034,
-0.03318922221660614,
0.014800501056015491,
-0.00375991384498775,
-0.04076041653752327,
0.003992974292486906,
0.000974420690909028,
0.018729399889707565,
0.019117360934615135,
-0.009572564624249935,
-0.01629098504781723,
0.07814590632915497,
0.014143439009785652,
0.038452088832855225,
0.0027857336681336164,
-0.049137841910123825,
0.03781162202358246,
0.02301839366555214,
-0.06250839680433273,
0.028973659500479698,
0.01812378689646721,
-0.024575913324952126,
0.07285142689943314,
-0.010991403833031654,
0.017597662284970284,
0.04803929105401039,
0.010024174116551876,
-0.009426689706742764,
0.03522894158959389,
-0.04847586899995804,
-0.015496079809963703,
0.04369271546602249,
-0.05631362274289131,
-0.005313127301633358,
-0.0378359779715538,
0.0551239475607872,
-0.05997658893465996,
0.057626765221357346,
0.05491529032588005,
0.015230384655296803,
0.056926049292087555,
-0.033353231847286224,
-0.033362723886966705,
0.032930247485637665,
-0.02337966486811638,
0.07940246164798737,
0.0007983507239259779,
-0.05238412693142891,
0.0748576819896698,
0.011224892921745777,
-0.07654861360788345,
0.04644922539591789,
0.025764694437384605,
0.04680456221103668,
0.04029064252972603,
0.025380363687872887,
-0.040832310914993286,
0.019411463290452957,
-0.02391621842980385,
0.02777773141860962,
-0.05685066804289818,
-0.010304871946573257,
0.04260379076004028,
-0.03453276678919792,
-0.017011011019349098,
0.031186353415250778,
-0.029915332794189453,
-0.0007678504916839302,
0.02993742562830448,
-0.06090595945715904,
-0.03160028159618378,
0.02193569950759411,
0.03198382630944252,
-0.045422960072755814,
-0.027540143579244614,
-0.05498876795172691,
0.029918665066361427,
0.0188022218644619,
0.012330269441008568,
-0.028363283723592758,
-0.00453217001631856,
0.05225810408592224,
-0.07571420073509216,
-0.04430978000164032,
0.04189082235097885,
0.017227668315172195,
-0.025061076506972313,
0.04583948478102684,
0.010104113258421421,
-0.009701801463961601,
0.02009258233010769,
-0.010535181500017643,
0.019730856642127037,
-0.04292670637369156,
0.01889161206781864,
0.013791133649647236,
0.010185601189732552,
0.03462398052215576,
-0.004844691138714552,
0.032863397151231766,
0.046539273113012314,
0.05714902654290199,
0.007957522757351398,
-0.04800398275256157,
-0.013333428651094437,
0.02498805522918701,
-0.07509221136569977,
0.005967280361801386,
0.01955687813460827,
-0.05378345027565956,
-0.020759204402565956,
0.010510840453207493,
-0.010029397904872894,
0.03274858370423317,
-0.05428232625126839,
0.016276657581329346,
0.0007148512522689998,
-0.021122198551893234,
-0.04550807923078537,
-0.06592075526714325,
-0.023548949509859085,
-0.0516548678278923,
0.016083260998129845,
0.03338830545544624,
-0.05239162966609001,
0.03210584819316864,
-0.03674571216106415,
-0.05268021300435066,
0.023198841139674187,
0.034585971385240555,
-0.041665494441986084,
0.06555407494306564,
0.05468102917075157,
-0.05672939494252205,
0.015262286178767681,
0.04298499971628189,
-0.04055759683251381,
0.03840048611164093,
0.013857812620699406,
-0.006140869110822678,
0.022825339809060097,
0.022114701569080353,
-0.017710447311401367,
-0.0305780041962862,
-0.07022517919540405,
-0.040492698550224304,
-0.011635384522378445,
0.005666710436344147,
0.03311935439705849
] |
distilbert-base-uncased-distilled-squad | [
"pytorch",
"tf",
"tflite",
"coreml",
"safetensors",
"distilbert",
"question-answering",
"en",
"dataset:squad",
"arxiv:1910.01108",
"arxiv:1910.09700",
"transformers",
"license:apache-2.0",
"autotrain_compatible",
"has_space"
] | question-answering | {
"architectures": [
"DistilBertForQuestionAnswering"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 100,097 | 2019-08-28T12:06:26Z | ---
language: en
datasets:
- squad
widget:
- text: "Which name is also used to describe the Amazon rainforest in English?"
context: "The Amazon rainforest (Portuguese: Floresta Amazônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt 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ônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt 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."
license: apache-2.0
---
# 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.
| [
-0.014815470203757286,
-0.037721142172813416,
-0.02040264755487442,
0.036371149122714996,
0.050523530691862106,
0.026605786755681038,
0.015834469348192215,
0.002761497860774398,
-0.03325972333550453,
0.06029042601585388,
0.02222844399511814,
-0.02047206088900566,
0.0234863068908453,
0.04950499162077904,
-0.03198719397187233,
-0.02552098222076893,
-0.004445323254913092,
-0.0016938098706305027,
-0.07224642485380173,
-0.006309661082923412,
0.022450320422649384,
0.03127836063504219,
-0.027745883911848068,
0.04902400076389313,
0.0014701888430863619,
0.020823929458856583,
0.012599676847457886,
0.03184864670038223,
0.022068722173571587,
-0.06976902484893799,
-0.0007274455274455249,
-0.023263007402420044,
-0.05879891663789749,
-0.045624010264873505,
-0.02719995006918907,
-0.0018089471850544214,
0.01920086145401001,
0.002102077705785632,
0.018830418586730957,
0.02255004458129406,
-0.015414862893521786,
0.02289341762661934,
0.009157413616776466,
-0.024188125506043434,
0.0319364108145237,
0.015418099239468575,
-0.03996850550174713,
-0.041452568024396896,
0.02111213281750679,
-0.02430027723312378,
-0.05879204720258713,
-0.07101098448038101,
-0.03048858977854252,
0.005143704824149609,
0.0045181456953287125,
0.0037008575163781643,
-0.08480489999055862,
0.005509364418685436,
0.061615582555532455,
-0.06499428302049637,
-0.04272374510765076,
0.002374684903770685,
-0.10585308074951172,
0.0018583252094686031,
0.027824752032756805,
-0.025859806686639786,
0.028841188177466393,
0.003866965416818857,
0.030248548835515976,
-0.047624487429857254,
0.07684645056724548,
-0.05379366874694824,
0.022315872833132744,
-0.10042378306388855,
-0.021300379186868668,
-0.02300279028713703,
0.010274279862642288,
0.045292410999536514,
-0.06346087157726288,
0.03989136964082718,
0.014697188511490822,
0.015206548385322094,
0.01629190891981125,
-0.024888988584280014,
-0.03623674809932709,
0.024041298776865005,
-0.0590047612786293,
0.004738514311611652,
0.010870746336877346,
0.06009017676115036,
-0.04324311763048172,
-0.012551674619317055,
0.044464513659477234,
-0.042116787284612656,
0.011749508790671825,
0.07191917300224304,
0.03510729596018791,
-0.01216979045420885,
0.03289125859737396,
0.013823170214891434,
-0.002678255084902048,
0.05738070234656334,
0.011617708019912243,
0.07514439523220062,
0.0038331719115376472,
-0.004826678894460201,
-0.012289359234273434,
-0.026249591261148453,
-0.04145243391394615,
0.0518779419362545,
0.012982253916561604,
-0.061461903154850006,
-0.023281866684556007,
0.045240260660648346,
-0.01257079653441906,
-0.03959128260612488,
0.0587768629193306,
-0.016165295615792274,
-0.09176135808229446,
-0.03736666962504387,
0.042668525129556656,
0.027680668979883194,
0.008935895748436451,
0.004813060630112886,
-0.0454881452023983,
-0.01924765668809414,
-0.02956571616232395,
-0.01897689886391163,
-0.001207183115184307,
0.004837927874177694,
-0.016219917684793472,
0.029900526627898216,
0.03979596868157387,
-0.07053329050540924,
0.010364260524511337,
-0.0005370415165089071,
-0.053831566125154495,
0.009308884851634502,
0.0415121428668499,
0.08959789574146271,
-0.03908045217394829,
-0.05329680070281029,
0.03666527941823006,
0.004555408842861652,
-0.008905054070055485,
0.01386967021971941,
-0.005822987761348486,
-0.040760867297649384,
-0.05551445111632347,
-0.004598751198500395,
0.06362792104482651,
-0.04289279505610466,
-0.011919332668185234,
0.03295508772134781,
-0.0156790092587471,
0.041467443108558655,
-0.022782521322369576,
0.00835866667330265,
0.03451356291770935,
-0.0019629618618637323,
-0.017853230237960815,
0.025571603327989578,
-0.00624379375949502,
-0.00340960337780416,
-0.05059006065130234,
-0.05027148872613907,
0.0008454695343971252,
0.07300949096679688,
0.01570962741971016,
0.0012002787552773952,
-0.027167843654751778,
0.028205489739775658,
0.03780569136142731,
0.010044206865131855,
-0.0006358796381391585,
0.03468382731080055,
0.042584002017974854,
0.043214350938797,
0.020132550969719887,
0.05470435693860054,
0.015614177100360394,
-0.02227747067809105,
-0.05981314927339554,
0.059283297508955,
0.03396022319793701,
-0.014443806372582912,
0.008849017322063446,
0.051783811300992966,
-0.008253326639533043,
-0.021811025217175484,
0.0015487972414121032,
0.04272112250328064,
0.01119046751409769,
-0.01750175841152668,
0.013355470262467861,
-0.004822273273020983,
-0.022040436044335365,
0.05868852883577347,
-0.027997026219964027,
0.023580292239785194,
-0.0040464866906404495,
-0.016545038670301437,
-0.024950144812464714,
0.06022126227617264,
0.0045480974949896336,
0.02056836150586605,
-0.0006917089922353625,
0.10488887131214142,
-0.00758740771561861,
0.02692491002380848,
-0.05147571116685867,
-0.045764680951833725,
-0.0024563814513385296,
0.04231475666165352,
0.01962287724018097,
0.05319816246628761,
-0.02345987781882286,
-0.041816890239715576,
0.002645711414515972,
0.06352189928293228,
0.05710070952773094,
0.03671681880950928,
0.0018652906874194741,
-0.03266468271613121,
-0.001835565664805472,
0.059083085507154465,
-0.028679542243480682,
-0.05632783845067024,
0.03000294417142868,
0.04990967735648155,
-0.040645573288202286,
0.00019509016419760883,
-0.003821019781753421,
0.02412773296236992,
-0.01886892504990101,
-0.06473034620285034,
0.03511390462517738,
0.0274735726416111,
0.01598075032234192,
0.034700509160757065,
-0.015784582123160362,
0.013757406733930111,
0.001744640409015119,
0.04037654027342796,
0.006754482164978981,
-0.04957854747772217,
0.008172708563506603,
-0.02226458676159382,
0.06869380176067352,
-0.06538979709148407,
0.030545108020305634,
0.009016197174787521,
0.031952593475580215,
0.03957618027925491,
-0.047985661774873734,
0.008379800245165825,
0.059909429401159286,
0.004310539923608303,
-0.02583494409918785,
0.018449440598487854,
0.02504274994134903,
0.008565316908061504,
0.08313591033220291,
0.01564173586666584,
0.05736860632896423,
0.011314884759485722,
0.02323748916387558,
0.08565257489681244,
0.016261357814073563,
0.013087778352200985,
0.019520210102200508,
0.06351860612630844,
-0.014418929815292358,
-0.02724999189376831,
0.04048178717494011,
-0.03787770867347717,
0.035064246505498886,
-0.017824506387114525,
-0.012852441519498825,
0.009895632974803448,
0.010648434050381184,
0.04635802283883095,
0.021563181653618813,
-0.05874655395746231,
0.02308681234717369,
-0.007548442110419273,
-0.002900250954553485,
0.04940535128116608,
-0.028496403247117996,
0.006190373562276363,
-0.0044108107686042786,
-0.02237662300467491,
-0.01032220758497715,
-0.06332889944314957,
-0.013713348656892776,
-0.002060248050838709,
-0.026780538260936737,
-0.026553723961114883,
-0.044899240136146545,
-0.023531507700681686,
-0.01776740886271,
-0.03717828541994095,
0.06705188751220703,
0.017794054001569748,
-0.006224234588444233,
-0.016153302043676376,
0.026327118277549744,
-0.04817827045917511,
-0.06560312956571579,
-0.051850274205207825,
-0.04348374530673027,
-0.030023884028196335,
-0.06365492939949036,
0.0323370136320591,
0.03904269263148308,
0.013437029905617237,
0.008935508318245411,
0.005265976767987013,
-0.01223499421030283,
-0.01558122131973505,
0.044311657547950745,
0.05373908579349518,
-0.03478128835558891,
-0.040994130074977875,
0.03819826990365982,
0.012135814875364304,
0.014920230023562908,
-0.01340087316930294,
-0.024274682626128197,
0.08719192445278168,
0.08067100495100021,
0.02160571701824665,
0.0013029336696490645,
-0.001271893153898418,
0.005289101507514715,
-0.05824921280145645,
-0.027897661551833153,
-0.027747290208935738,
-0.016813427209854126,
-0.06671442836523056,
-0.05038624256849289,
-0.025768538936972618,
-0.03763189539313316,
-0.01531927939504385,
0.010265170596539974,
-0.011639992706477642,
0.03896646201610565,
0.016986874863505363,
0.032066576182842255,
0.045384205877780914,
-0.03970852866768837,
-0.03630587086081505,
0.08708474040031433,
0.03775429353117943,
-0.01691659912467003,
-0.056907717138528824,
-0.01506804022938013,
0.03724057972431183,
0.003585819387808442,
0.013435247354209423,
-0.02060858905315399,
0.07167662680149078,
0.04263397306203842,
0.0009617696050554514,
-0.0035439799539744854,
-0.025539040565490723,
-0.048027247190475464,
-0.016070730984210968,
-0.009446147829294205,
-0.046539898961782455,
-0.0570206455886364,
-0.028775282204151154,
0.02494906261563301,
0.028735872358083725,
-0.042338743805885315,
-0.04607940837740898,
-0.009015470743179321,
0.0275918897241354,
0.01601460576057434,
-0.004540835972875357,
-0.031965773552656174,
0.01879500038921833,
-0.03785251826047897,
-0.013298872858285904,
-0.00009982281335396692,
-0.028314493596553802,
-0.015120336785912514,
0.048478856682777405,
0.024335814639925957,
-0.03998516872525215,
0.050158217549324036,
0.010033618658781052,
0.06583300232887268,
0.023706646636128426,
-0.045133937150239944,
0.012507029809057713,
0.002647801535204053,
0.030870744958519936,
-0.01806175708770752,
-0.006442294921725988,
-0.043481167405843735,
-0.06027701124548912,
0.003315654583275318,
-0.007180948741734028,
-0.013944685459136963,
-0.026958074420690536,
0.059963006526231766,
-0.01566522754728794,
-0.006546076387166977,
0.0009554364369250834,
0.0029696321580559015,
0.03115544654428959,
-0.06387060135602951,
0.049174971878528595,
0.003079828340560198,
0.03953516110777855,
-0.06159280985593796,
0.004410930909216404,
-0.04514918848872185,
-0.017839208245277405,
0.014353662729263306,
0.05924278125166893,
-0.022183764725923538,
0.03855127468705177,
0.061824679374694824,
0.02485479973256588,
-0.029036814346909523,
0.022861935198307037,
0.019631672650575638,
-0.010673731565475464,
-0.05514778569340706,
-0.003962245304137468,
-0.024956051260232925,
-0.04224592074751854,
0.003962211776524782,
-0.033667463809251785,
0.04322854429483414,
0.027097754180431366,
-0.01572485826909542,
-0.0065426891669631,
0.010525140911340714,
-0.007365694269537926,
-0.04228688403964043,
-0.02903154492378235,
0.00966428592801094,
0.012902725487947464,
-0.0255899615585804,
0.019380861893296242,
0.027777360752224922,
-0.007820808328688145,
0.06739997118711472,
0.0490606352686882,
-0.03137834370136261,
-0.05127454549074173,
0.03216501697897911,
-0.003136116312816739,
-0.004897689912468195,
-0.029024694114923477,
-0.01888689212501049,
0.0314742773771286,
0.04465636610984802,
0.013761202804744244,
-0.09203016757965088,
0.013307430781424046,
0.06355506926774979,
-0.044067662209272385,
0.030197465792298317,
0.006921824533492327,
0.05259936302900314,
0.05410660058259964,
-0.023674434050917625,
0.01192693505436182,
-0.0341535247862339,
0.0172190573066473,
-0.012558367103338242,
0.04873852804303169,
-0.007946114987134933,
-0.05528504028916359,
-0.03449934348464012,
0.02008962817490101,
0.038169119507074356,
0.05240220949053764,
0.01104804128408432,
-0.04467671364545822,
-0.03908267244696617,
0.010016683489084244,
0.02848953753709793,
-0.03223094716668129,
0.04989248886704445,
0.006224836688488722,
0.01979013904929161,
-0.026043638586997986,
-0.040303729474544525,
-0.008764481171965599,
0.006357040721923113,
0.03689730912446976,
-0.022465910762548447,
-0.018662093207240105,
-0.07806382328271866,
0.0268583744764328,
-0.02433275431394577,
-0.039589960128068924,
-0.0540788471698761,
0.02590751089155674,
-0.005582940764725208,
-0.03545915707945824,
0.08012106269598007,
0.0023550211917608976,
0.059905000030994415,
0.038580670952796936,
0.031995274126529694,
0.0004975259653292596,
-0.044342026114463806,
0.061482079327106476,
-0.053427863866090775,
-0.01394245121628046,
-0.0075280009768903255,
-0.036663468927145004,
-0.02415020391345024,
-0.03859414532780647,
-0.05297653749585152,
-0.025908088311553,
-0.006323277018964291,
0.0332576185464859,
0.009463156573474407,
0.01858687773346901,
-0.03206774964928627,
0.024012576788663864,
0.0028343594167381525,
0.0011965123703703284,
-0.021147390827536583,
-0.03112402930855751,
-0.04130951315164566,
-0.011155921965837479,
0.03996948525309563,
0.016157707199454308,
0.007966114208102226,
0.001733980723656714,
0.007253742776811123,
0.02494812197983265,
0.01774762012064457,
-0.022046230733394623,
0.03270896151661873,
0.009191546589136124,
-0.03750643879175186,
-0.015374732203781605,
0.022151703014969826,
0.01479553896933794,
0.03858023136854172,
-0.011871336959302425,
0.02802632935345173,
0.03227074071764946,
-0.00778819527477026,
-0.015592080540955067,
0.03834317997097969,
0.029754970222711563,
-0.04361042007803917,
-0.03325967490673065,
0.002217840636149049,
-0.06340114027261734,
0.03480499982833862,
-0.02613874524831772,
-0.05525871738791466,
0.031158097088336945,
0.007253296207636595,
0.06601560115814209,
0.0008710920810699463,
-0.008716336451470852,
0.028443247079849243,
-0.021580681204795837,
0.019439322873950005,
-0.060885943472385406,
0.04816288873553276,
-0.024877013638615608,
0.004818579647690058,
-0.00557266129180789,
-0.007982300594449043,
-0.050247035920619965,
0.06000705808401108,
-0.029154924675822258,
-0.015025747008621693,
-0.012246194295585155,
0.02822326309978962,
0.002528840210288763,
0.026937229558825493,
-0.04314808547496796,
0.0044081867672502995,
-0.0323854424059391,
0.0476498045027256,
-0.06656581908464432,
-0.0011539680417627096,
-0.0006339136161841452,
-0.01802084594964981,
-0.037671033293008804,
0.0017642048187553883,
0.00004193608765490353,
-0.04463640972971916,
0.035236604511737823,
0.03453376889228821,
0.028767136856913567,
0.015549319796264172,
-0.036260947585105896,
0.008901047520339489,
0.03047877363860607,
-0.07442047446966171,
-0.025595370680093765,
0.010426069609820843,
-0.013329875655472279,
-0.00925358198583126,
0.03692971169948578,
0.060887306928634644,
-0.07166410237550735,
-0.0647665336728096,
0.04379084333777428,
0.0149820102378726,
0.012716841883957386,
-0.030655063688755035,
0.01567145809531212,
0.02572634071111679,
0.03880556672811508,
-0.05548684298992157,
0.011798853054642677,
-0.014189595356583595,
-0.044432297348976135,
0.029368016868829727,
-0.008595339953899384,
0.014666651375591755,
0.0089394710958004,
-0.02575141377747059,
-0.009990711696445942,
0.08707135915756226,
0.04978407546877861,
-0.005549109540879726,
-0.017977915704250336,
-0.03466575965285301,
0.02499416284263134,
-0.003902304219081998,
-0.03796841576695442,
0.013388844206929207,
-0.010461710393428802,
-0.027637118473649025,
0.07043742388486862,
0.0013701107818633318,
0.027752110734581947,
0.044189292937517166,
0.029616814106702805,
0.003477029502391815,
0.03997398540377617,
-0.0015015198150649667,
-0.008614853955805302,
0.034676894545555115,
-0.07218726724386215,
-0.012617929838597775,
-0.046868521720170975,
0.07135693728923798,
-0.08104690164327621,
0.03702111169695854,
0.010864729061722755,
0.008769470266997814,
0.014578105881810188,
-0.015230614691972733,
-0.025230996310710907,
0.003974469378590584,
-0.053500838577747345,
0.07003679871559143,
-0.0011265421053394675,
-0.05735739320516586,
0.06276188045740128,
0.02952847257256508,
-0.07760138064622879,
0.036044828593730927,
0.002751803258433938,
0.0413261353969574,
0.021572018042206764,
0.03429941460490227,
-0.04973404482007027,
0.03068704344332218,
-0.028584497049450874,
0.04765325039625168,
-0.056844331324100494,
-0.018531417474150658,
0.030515184625983238,
-0.03713207319378853,
-0.01594187505543232,
0.03572305664420128,
-0.048331283032894135,
-0.0024062057491391897,
-0.00032000173814594746,
-0.05098271369934082,
-0.07140134274959564,
0.037736278027296066,
0.06451120227575302,
-0.04312129691243172,
-0.04197828844189644,
-0.007524631917476654,
0.020880240947008133,
0.035868413746356964,
0.027853775769472122,
-0.042407888919115067,
0.0010041446657851338,
0.0264988262206316,
-0.09003639966249466,
-0.017527544870972633,
0.03917018324136734,
0.03443736210465431,
-0.017139438539743423,
0.0029758810997009277,
0.007635589223355055,
0.016345493495464325,
-0.013568167574703693,
0.008832227438688278,
0.02077331207692623,
-0.05823082476854324,
-0.02000836841762066,
0.025697285309433937,
0.0006824220763519406,
0.021677587181329727,
-0.007826585322618484,
0.029923981055617332,
0.06828733533620834,
0.04676729440689087,
0.0005964955198578537,
-0.0021929233334958553,
-0.031507059931755066,
0.045613907277584076,
-0.05500581115484238,
0.024247031658887863,
-0.0041232723742723465,
-0.05362929403781891,
-0.027299510315060616,
0.027168570086359978,
-0.001014340901747346,
0.035113584250211716,
-0.05443887040019035,
0.009569221176207066,
0.017810320481657982,
-0.004532248713076115,
-0.039013832807540894,
-0.08039035648107529,
-0.034074567258358,
-0.021931340917944908,
-0.011240405961871147,
0.032972536981105804,
-0.04365987703204155,
0.027139002457261086,
-0.03531351685523987,
-0.048926450312137604,
0.024368824437260628,
-0.010883077047765255,
-0.06491491198539734,
0.03488009423017502,
0.05478271096944809,
-0.040538787841796875,
0.01971272937953472,
0.0383295863866806,
0.0011787416879087687,
0.037578362971544266,
0.0017568133771419525,
-0.00791889987885952,
0.039664335548877716,
0.03280554711818695,
-0.011024772189557552,
-0.0396108478307724,
-0.02385914884507656,
-0.017953384667634964,
-0.040220268070697784,
0.02142687886953354,
0.06569787114858627
] |
gpt2-large | [
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"gpt2",
"text-generation",
"en",
"arxiv:1910.09700",
"transformers",
"license:mit",
"has_space"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 1,454,819 | 2019-08-21T00:28:36Z | ---
language: en
license: mit
---
# 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. | [
-0.019210295751690865,
-0.01626688428223133,
-0.0069940462708473206,
0.04214398190379143,
0.04708635061979294,
0.029937541112303734,
0.009007442742586136,
-0.028868699446320534,
-0.01715780980885029,
0.05393955111503601,
0.02747075818479061,
-0.014892312698066235,
0.004411180969327688,
0.050744231790304184,
-0.025932420045137405,
-0.027741363272070885,
-0.002488041529431939,
0.005084051284939051,
-0.03665801137685776,
-0.031083468347787857,
-0.0137664545327425,
-0.003427032846957445,
-0.0030358254443854094,
0.015835585072636604,
-0.0015262548113241792,
0.014830895699560642,
-0.0032797849271446466,
0.02146877348423004,
-0.002352053066715598,
-0.1082516759634018,
-0.021559808403253555,
-0.04190051928162575,
-0.04808687046170235,
-0.01573091745376587,
-0.02229212410748005,
-0.01050954032689333,
-0.008915407583117485,
0.024265866726636887,
0.031702764332294464,
0.024342991411685944,
-0.01162787340581417,
0.00232369895093143,
-0.014570294879376888,
-0.037029825150966644,
0.05928356200456619,
-0.002958892146125436,
-0.034404244273900986,
-0.02005900628864765,
0.02458522655069828,
-0.004984538536518812,
-0.05153922736644745,
-0.06288572400808334,
-0.03470420092344284,
0.01812300644814968,
0.0019051141571253538,
-0.032744042575359344,
-0.0761602595448494,
-0.013861585408449173,
0.05489588528871536,
-0.062105245888233185,
-0.04260614886879921,
0.03031834587454796,
-0.06780803948640823,
-0.013958320021629333,
0.034287359565496445,
-0.033810872584581375,
-0.007924049161374569,
-0.03095429576933384,
0.04729189723730087,
-0.03062225691974163,
0.06340167671442032,
-0.034038886427879333,
0.02538035623729229,
-0.11930159479379654,
-0.015850890427827835,
0.0009739087545312941,
0.023145372048020363,
0.03649595007300377,
-0.03595505282282829,
0.03520835563540459,
0.04474315047264099,
-0.0008408994181081653,
0.02541969157755375,
-0.008367530070245266,
-0.002356722019612789,
0.040016066282987595,
-0.05347995460033417,
-0.014368400909006596,
0.03861468657851219,
0.05447755753993988,
-0.04651869833469391,
-0.040603701025247574,
-0.030749864876270294,
-0.03555645793676376,
-0.010284115560352802,
0.012613888829946518,
0.04782012850046158,
-0.047450534999370575,
0.045678336173295975,
0.02221626229584217,
0.044895537197589874,
0.03255511820316315,
-0.01094875205308199,
0.05583200231194496,
0.004493781365454197,
0.009157159365713596,
-0.02613772079348564,
-0.027570078149437904,
-0.05085586756467819,
0.028335528448224068,
0.03391252085566521,
-0.03093736618757248,
-0.0328526571393013,
0.05731998756527901,
0.004884478636085987,
-0.00428019417449832,
0.0443895198404789,
-0.027617866173386574,
-0.041532013565301895,
-0.0791819840669632,
0.03398514911532402,
0.023014357313513756,
0.022163284942507744,
0.05503056198358536,
-0.05412692949175835,
0.018484197556972504,
-0.03721461445093155,
-0.024807007983326912,
-0.0015249912394210696,
0.01914520561695099,
-0.02915670908987522,
0.046622730791568756,
0.05823453143239021,
-0.04463566839694977,
0.029990041628479958,
0.008689035661518574,
-0.056631699204444885,
0.03395397588610649,
0.010283369570970535,
0.10437234491109848,
-0.07859281450510025,
-0.040779683738946915,
0.04353446885943413,
0.012354949489235878,
-0.01994386501610279,
0.005065309349447489,
0.017192240804433823,
-0.043697282671928406,
-0.03493572771549225,
-0.02409697137773037,
0.056587837636470795,
-0.04850557819008827,
-0.005306510254740715,
0.07321742922067642,
-0.004061663057655096,
0.05263976380228996,
-0.02626814879477024,
-0.02932838723063469,
0.01834343746304512,
-0.008011254481971264,
-0.0397137887775898,
0.02798100933432579,
0.0023181734140962362,
-0.018271639943122864,
-0.04465827718377113,
-0.035429827868938446,
-0.00450737401843071,
0.08180423080921173,
-0.007617338560521603,
-0.008316278457641602,
-0.00815311074256897,
0.021084219217300415,
0.041706424206495285,
0.02811138518154621,
-0.04148343205451965,
0.04867418482899666,
0.04284333065152168,
0.036827217787504196,
-0.0026509270537644625,
0.06823965907096863,
0.017367225140333176,
-0.02991710603237152,
-0.0262603797018528,
0.00482209911569953,
-0.012623193673789501,
-0.028912190347909927,
-0.003738954896107316,
0.02263321727514267,
-0.007820955477654934,
-0.050582073628902435,
-0.007818182930350304,
0.060908861458301544,
-0.002268334152176976,
-0.018050193786621094,
0.003597189439460635,
-0.020241156220436096,
-0.02136819437146187,
0.04707334563136101,
-0.02142476476728916,
0.002052722265943885,
-0.03338635340332985,
-0.01849832385778427,
0.002684835810214281,
0.03406732901930809,
0.045712921768426895,
0.04577723145484924,
-0.01606956124305725,
0.06521015614271164,
-0.019954098388552666,
0.00023152765061240643,
-0.04039757698774338,
-0.03358468413352966,
-0.01337423361837864,
0.04358354210853577,
0.01885826699435711,
0.031545430421829224,
-0.01098483707755804,
-0.026126151904463768,
0.06260496377944946,
0.10014494508504868,
0.05285161733627319,
0.025571737438440323,
-0.031244250014424324,
0.003476589685305953,
0.032311126589775085,
0.06756030023097992,
-0.05176186189055443,
-0.045700449496507645,
0.015054041519761086,
0.035986434668302536,
-0.044926904141902924,
0.027656076475977898,
-0.03590988367795944,
0.03700384125113487,
-0.04750367999076843,
-0.06290541589260101,
0.026803933084011078,
0.042726848274469376,
0.0021613934077322483,
0.03507443889975548,
0.008220871910452843,
0.01112909335643053,
0.019787603989243507,
-0.014097754843533039,
0.007154297549277544,
-0.047375380992889404,
0.008294911123812199,
0.04899623617529869,
0.06905501335859299,
-0.044880371540784836,
0.048579342663288116,
0.000321884173899889,
0.00707593047991395,
0.053246915340423584,
-0.04135195165872574,
0.025794314220547676,
0.023032745346426964,
0.008488851599395275,
-0.03610048070549965,
-0.0036909030750393867,
-0.008661787025630474,
0.024858547374606133,
0.05356830731034279,
0.009167836979031563,
0.07309696823358536,
-0.003034302731975913,
0.05507063865661621,
0.08109584450721741,
0.03161460906267166,
0.0231053214520216,
0.025904908776283264,
0.057680170983076096,
0.012145200744271278,
-0.009649823419749737,
0.019803792238235474,
-0.05547498166561127,
0.014029542915523052,
-0.03608975186944008,
0.016418905928730965,
-0.004322316963225603,
-0.025759698823094368,
0.05347022786736488,
0.004593471065163612,
-0.01234865840524435,
0.038864437490701675,
-0.039463404566049576,
-0.03103126585483551,
0.03438254073262215,
-0.018817581236362457,
-0.016386501491069794,
-0.0025265461299568415,
-0.022782811895012856,
0.010397261939942837,
-0.06886642426252365,
-0.0397929847240448,
-0.019669510424137115,
-0.04164251685142517,
0.005591994151473045,
-0.0633268803358078,
-0.02771221660077572,
-0.07772370427846909,
0.0005109619232825935,
0.049508415162563324,
0.034394122660160065,
-0.015796849504113197,
-0.03430480882525444,
0.023479584604501724,
-0.044036779552698135,
-0.02226499654352665,
-0.05429838225245476,
-0.050792936235666275,
-0.04926377534866333,
-0.07144653797149658,
0.024149561300873756,
0.027762126177549362,
0.0037248139269649982,
-0.002942663384601474,
0.008276352658867836,
-0.015057374723255634,
-0.037217237055301666,
0.06493236124515533,
0.0343453586101532,
-0.02286173775792122,
-0.04421412572264671,
0.04344422370195389,
-0.02775367721915245,
0.012493683025240898,
-0.015471923165023327,
-0.028499895706772804,
0.08186578750610352,
0.07605791836977005,
0.0035967708099633455,
0.011764650233089924,
-0.03230135887861252,
-0.052592504769563675,
-0.07039981335401535,
-0.01943548396229744,
-0.051152389496564865,
0.004840616136789322,
-0.01678604632616043,
-0.030917910858988762,
-0.008357194252312183,
-0.052355844527482986,
0.0008598742424510419,
-0.004664527252316475,
0.0004282173758838326,
0.056822892278432846,
0.0144542520865798,
0.03926379233598709,
0.02886880561709404,
-0.05070621520280838,
-0.02344406023621559,
0.07541955262422562,
0.02293665148317814,
0.00632144371047616,
-0.05316775292158127,
-0.023000456392765045,
0.05214666575193405,
0.042322635650634766,
0.004010998643934727,
-0.0166555717587471,
0.07966584712266922,
0.01869121380150318,
0.00978268776088953,
0.03285396099090576,
-0.03359556943178177,
-0.029458768665790558,
-0.04620930925011635,
0.006017765961587429,
-0.034070685505867004,
-0.037035319954156876,
-0.033988386392593384,
0.0076760402880609035,
0.05091001093387604,
-0.05048118531703949,
-0.08178787678480148,
-0.01903943531215191,
0.02505829930305481,
0.019212545827031136,
0.010168085806071758,
-0.021126415580511093,
0.012530255131423473,
-0.030867163091897964,
-0.017123986035585403,
0.01275041326880455,
0.0014647514326497912,
0.0077375248074531555,
0.05063365399837494,
0.02286999300122261,
-0.025306852534413338,
0.03841438144445419,
0.0377289354801178,
0.05960977077484131,
0.02211792580783367,
-0.0447818785905838,
0.015921110287308693,
-0.010443820618093014,
0.016422472894191742,
0.00011568155605345964,
-0.012754268944263458,
-0.051542237401008606,
-0.10374563187360764,
-0.0005649228114634752,
0.019351769238710403,
-0.027959827333688736,
-0.008583365939557552,
0.051669102162122726,
-0.00750301918014884,
0.00886137131601572,
0.018051574006676674,
0.02449851483106613,
0.02864695154130459,
-0.0484115369617939,
0.058002769947052,
0.005256752483546734,
0.011291366070508957,
-0.045698001980781555,
0.004201442003250122,
-0.030824340879917145,
0.0006305940332822502,
-0.002410673536360264,
0.05237775295972824,
0.034430235624313354,
0.07023241370916367,
0.08457770198583603,
0.04739866405725479,
-0.019797421991825104,
0.010073771700263023,
0.033682066947221756,
-0.025177834555506706,
-0.036100517958402634,
-0.012044249102473259,
-0.02211185358464718,
-0.023301411420106888,
-0.014981336891651154,
-0.014194454997777939,
0.04854430630803108,
0.020007817074656487,
0.009498309344053268,
-0.00538658257573843,
-0.004744185134768486,
-0.018009163439273834,
-0.046015191823244095,
-0.052436232566833496,
-0.01750521920621395,
0.0062187775038182735,
-0.011574110947549343,
0.014525736682116985,
0.04074227437376976,
0.025488801300525665,
0.042656444013118744,
0.05566375330090523,
-0.029330603778362274,
-0.05106883496046066,
0.006103020627051592,
0.025513654574751854,
-0.0324854850769043,
-0.03518253564834595,
-0.02804039791226387,
0.06578700989484787,
0.03826543316245079,
-0.0216456800699234,
-0.05746983736753464,
-0.0027499280404299498,
0.0762045606970787,
-0.027382373809814453,
0.058651216328144073,
-0.0245293527841568,
0.027575338259339333,
0.06268502026796341,
-0.023742690682411194,
0.02231772430241108,
-0.024456404149532318,
0.025017859414219856,
0.004860743414610624,
0.014197931624948978,
-0.020894991233944893,
-0.04622727259993553,
-0.056971240788698196,
0.01465001329779625,
0.0359765887260437,
0.052886962890625,
0.043951526284217834,
-0.013511803932487965,
-0.060896214097738266,
0.01948493719100952,
0.03555533289909363,
-0.0410647839307785,
0.006887261755764484,
0.02163584530353546,
0.02835135906934738,
-0.04513230547308922,
-0.011355218477547169,
-0.02008979022502899,
0.001603347947821021,
0.02420329488813877,
0.0013230888871476054,
-0.023879360407590866,
-0.04240473359823227,
0.028490228578448296,
-0.027858125045895576,
-0.014391387812793255,
-0.08008945733308792,
0.046008896082639694,
-0.017722204327583313,
-0.01930905319750309,
0.030797991901636124,
0.025816570967435837,
0.044097334146499634,
0.07428668439388275,
0.00788681861013174,
0.022259606048464775,
-0.054190441966056824,
0.025149796158075333,
-0.028663063421845436,
0.010142507962882519,
-0.019169872626662254,
-0.01401146687567234,
-0.019626209512352943,
-0.041620541363954544,
-0.037008754909038544,
-0.03943012282252312,
-0.04135704040527344,
0.00553657952696085,
-0.013596432283520699,
-0.002879685489460826,
0.009469818323850632,
0.04799724742770195,
-0.01416611298918724,
-0.03229525312781334,
-0.038342610001564026,
-0.03701162338256836,
-0.06843649595975876,
-0.06397878378629684,
0.0119941933080554,
0.009142770431935787,
0.01721102185547352,
0.009217224083840847,
0.0014979031402617693,
0.002393104834482074,
0.003145271446555853,
-0.012012211605906487,
0.04533093422651291,
-0.011888296343386173,
-0.03540494292974472,
-0.0324828140437603,
0.00803013052791357,
0.01246172096580267,
0.0187452994287014,
-0.013493523001670837,
0.017215274274349213,
0.020573575049638748,
-0.02312597446143627,
-0.0017683643382042646,
0.023732222616672516,
0.03285150229930878,
-0.0764084905385971,
-0.04385891556739807,
-0.001320290262810886,
-0.05318515747785568,
0.015517538413405418,
-0.030056457966566086,
-0.02288125827908516,
0.018776528537273407,
0.03885629028081894,
0.047785401344299316,
-0.00028455350548028946,
-0.036376893520355225,
0.018909510225057602,
-0.027164211496710777,
0.012538308277726173,
-0.047457512468099594,
0.05815550312399864,
-0.052951615303754807,
0.027840033173561096,
-0.007524475455284119,
-0.020251227542757988,
-0.0316363126039505,
0.04240374267101288,
-0.015359328128397465,
0.0031471054535359144,
-0.009644743986427784,
-0.0030415907967835665,
-0.022308874875307083,
0.05132376030087471,
-0.016131410375237465,
0.018461529165506363,
-0.01706516742706299,
0.0321342833340168,
-0.02579922415316105,
0.0052079265005886555,
-0.032801903784275055,
0.016643144190311432,
-0.03049875795841217,
-0.01926455646753311,
-0.014033053070306778,
-0.04365476593375206,
0.03251085430383682,
0.040193308144807816,
0.006438854616135359,
0.016065170988440514,
-0.0273133572191,
-0.009129286743700504,
0.006372470874339342,
-0.04440436512231827,
-0.022965559735894203,
-0.031483739614486694,
-0.011668277904391289,
-0.01172911748290062,
0.049391355365514755,
0.0412253774702549,
-0.05405890941619873,
-0.05543534457683563,
0.03783709183335304,
0.009023386985063553,
0.016280079260468483,
0.003842091653496027,
0.027471402660012245,
0.01815696246922016,
0.043945834040641785,
-0.038014043122529984,
0.03244110196828842,
-0.025268541648983955,
-0.03679122403264046,
0.02262895740568638,
0.0060202581807971,
0.006780801806598902,
0.021951526403427124,
-0.03971768170595169,
0.00695672957226634,
0.07331625372171402,
0.016876185312867165,
0.00598494615405798,
0.012767882086336613,
-0.03668500855565071,
0.021173395216464996,
0.013495062477886677,
-0.03960905596613884,
-0.008135550655424595,
0.017228499054908752,
-0.019036483019590378,
0.07687724381685257,
-0.031230447813868523,
0.014695773832499981,
0.0703963190317154,
0.010821392759680748,
-0.0037395574618130922,
0.034177545458078384,
-0.017733793705701828,
-0.0019749682396650314,
0.055893853306770325,
-0.04795871302485466,
0.0015647668624296784,
-0.015449912287294865,
0.07809886336326599,
-0.04920871555805206,
0.04756117984652519,
0.04033828154206276,
0.03359105437994003,
0.006730423774570227,
-0.03410321846604347,
-0.070372074842453,
-0.00236834236420691,
-0.031529780477285385,
0.0736495703458786,
-0.002339292550459504,
-0.05742178112268448,
0.07134094834327698,
0.01886368729174137,
-0.0917184054851532,
0.06083086133003235,
0.04210915043950081,
0.0533478669822216,
0.05475454404950142,
0.03211822733283043,
-0.04903772100806236,
0.01425870880484581,
-0.04242187365889549,
0.03244880959391594,
-0.04023700952529907,
-0.0045615690760314465,
0.03276299312710762,
-0.045249078422784805,
-0.004397101234644651,
0.04335501417517662,
-0.021932823583483696,
-0.029488638043403625,
0.03792081028223038,
-0.07724136114120483,
-0.0452897883951664,
0.004710693843662739,
0.03732503950595856,
-0.035883981734514236,
0.023594465106725693,
-0.04598290100693703,
0.039251573383808136,
0.023645147681236267,
0.006581717636436224,
-0.0046917893923819065,
-0.009212999604642391,
0.044179875403642654,
-0.05642278864979744,
-0.022059321403503418,
0.019374046474695206,
0.004721564706414938,
-0.02647898532450199,
0.04094471037387848,
-0.026685142889618874,
0.0003639249480329454,
0.00027936691185459495,
-0.00523344287648797,
0.011126820929348469,
-0.02869008667767048,
-0.0033147577196359634,
0.011882476508617401,
-0.006713240407407284,
0.03191635012626648,
-0.011148998513817787,
0.034890130162239075,
0.02329081855714321,
0.051117636263370514,
-0.008125567808747292,
-0.05222945660352707,
-0.02660919725894928,
-0.0005098339170217514,
-0.05316817760467529,
0.009390585124492645,
0.00720745325088501,
-0.07256318628787994,
-0.0489497072994709,
-0.0425628200173378,
-0.0023239513393491507,
0.02333603985607624,
-0.029383530840277672,
-0.009082838892936707,
0.015145414508879185,
-0.010434492491185665,
-0.05501779168844223,
-0.08742845058441162,
-0.008650576695799828,
-0.028807008638978004,
0.030579833313822746,
0.016156667843461037,
-0.03611676022410393,
0.04184655100107193,
-0.052413612604141235,
-0.06471358984708786,
0.02303527109324932,
0.003751056268811226,
-0.025999480858445168,
0.058769237250089645,
0.03480421379208565,
-0.020974308252334595,
0.0011736893793568015,
0.03449147939682007,
-0.04816500470042229,
0.038778211921453476,
0.029144389554858208,
0.010748767293989658,
0.01631048321723938,
0.006454909220337868,
-0.02455204725265503,
-0.03236871212720871,
-0.0593327134847641,
-0.03947466239333153,
-0.04850861430168152,
0.008523219265043736,
0.06763523817062378
] |
gpt2-xl | [
"pytorch",
"tf",
"jax",
"rust",
"gpt2",
"text-generation",
"en",
"arxiv:1910.09700",
"transformers",
"license:mit",
"has_space"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 308,781 | 2019-11-05T17:51:20Z | ---
language: en
license: mit
---
# 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. | [
-0.020884642377495766,
-0.015609662979841232,
-0.0020949163008481264,
0.03980805724859238,
0.04831736534833908,
0.03866703808307648,
0.011711533181369305,
-0.02444232441484928,
-0.017004122957587242,
0.05376949906349182,
0.022963527590036392,
-0.019910424947738647,
-0.00021067328634671867,
0.04442843049764633,
-0.026958687230944633,
-0.03396153077483177,
-0.0032128377351909876,
0.0025772673543542624,
-0.03881623595952988,
-0.03889960050582886,
-0.016408482566475868,
-0.0025293035432696342,
0.0005574834067374468,
0.0141918258741498,
-0.007474074140191078,
0.014188860543072224,
-0.0018754323245957494,
0.02223868854343891,
-0.0012664926471188664,
-0.10159134119749069,
-0.018637152388691902,
-0.03991730138659477,
-0.04304705932736397,
-0.01220283005386591,
-0.01848956197500229,
-0.011134739965200424,
-0.00919213518500328,
0.01905791647732258,
0.029466088861227036,
0.030774924904108047,
-0.01028010156005621,
0.00813315249979496,
-0.015311147086322308,
-0.034034013748168945,
0.05336712300777435,
-0.0050688995979726315,
-0.029189545661211014,
-0.017134325578808784,
0.026037491858005524,
-0.005468658171594143,
-0.05258724093437195,
-0.05955943092703819,
-0.03959948197007179,
0.016127415001392365,
-0.005950604565441608,
-0.034143492579460144,
-0.07390861213207245,
-0.016419706866145134,
0.057857759296894073,
-0.06353437900543213,
-0.04354213550686836,
0.03339673578739166,
-0.06744036823511124,
-0.014571772888302803,
0.03292696550488472,
-0.03198707848787308,
-0.01091154757887125,
-0.03176850453019142,
0.04599715769290924,
-0.025436794385313988,
0.06514420360326767,
-0.030030373483896255,
0.02126087248325348,
-0.11533156037330627,
-0.020995959639549255,
-0.0012048757635056973,
0.02245713770389557,
0.03391367569565773,
-0.03582894057035446,
0.026460152119398117,
0.04078128933906555,
-0.0013952626613900065,
0.025388602167367935,
-0.014802752994000912,
-0.0029142722487449646,
0.03524332493543625,
-0.05404292792081833,
-0.024238549172878265,
0.03978674113750458,
0.0534791424870491,
-0.04394877701997757,
-0.0452164001762867,
-0.03191292658448219,
-0.03361828997731209,
-0.008642126806080341,
0.013370740227401257,
0.047380510717630386,
-0.04755310341715813,
0.05339718982577324,
0.01785728894174099,
0.04200015962123871,
0.028560958802700043,
-0.013919278979301453,
0.04933473467826843,
0.00034819028223864734,
0.007271513342857361,
-0.023523269221186638,
-0.03290180861949921,
-0.04544362053275108,
0.025548309087753296,
0.032978665083646774,
-0.028303112834692,
-0.032821908593177795,
0.0619213841855526,
0.002655194140970707,
-0.00227937800809741,
0.04481109604239464,
-0.026282623410224915,
-0.03601034730672836,
-0.08418958634138107,
0.03525549918413162,
0.020847775042057037,
0.03174007683992386,
0.052695050835609436,
-0.05669504031538963,
0.018930280581116676,
-0.032624006271362305,
-0.022519489750266075,
-0.0022001443430781364,
0.018487796187400818,
-0.03013470210134983,
0.04628542810678482,
0.06101629510521889,
-0.046242497861385345,
0.03044508770108223,
0.0060507990419864655,
-0.05165695771574974,
0.04095708951354027,
0.010277350433170795,
0.1042528748512268,
-0.0793159082531929,
-0.0394788421690464,
0.04336422681808472,
0.010844732634723186,
-0.02464952878654003,
0.0022648090962320566,
0.01635713130235672,
-0.04481760784983635,
-0.0337771512567997,
-0.024424970149993896,
0.0519174262881279,
-0.0467216931283474,
-0.009027705527842045,
0.07509230077266693,
-0.008817272260785103,
0.05047671124339104,
-0.025709012523293495,
-0.02455063909292221,
0.021005989983677864,
-0.00794979277998209,
-0.03848453238606453,
0.03398788347840309,
-0.000843290239572525,
-0.017777031287550926,
-0.04985176771879196,
-0.036532655358314514,
-0.006955666933208704,
0.07803405821323395,
-0.012499435804784298,
-0.008501684293150902,
-0.010409228503704071,
0.023330556228756905,
0.03642287850379944,
0.02393347956240177,
-0.04200727120041847,
0.04866781458258629,
0.04692370817065239,
0.04105306789278984,
-0.0032502023968845606,
0.0712868869304657,
0.020761601626873016,
-0.0296180322766304,
-0.027905788272619247,
0.005569446831941605,
-0.01074710302054882,
-0.027603987604379654,
-0.0002774433814920485,
0.022990694269537926,
-0.010152401402592659,
-0.050061341375112534,
-0.005620710551738739,
0.05735335499048233,
-0.006072502117604017,
-0.01821441762149334,
0.0020744602661579847,
-0.022502530366182327,
-0.017007455229759216,
0.04925328865647316,
-0.020287996158003807,
0.004260477144271135,
-0.03473794087767601,
-0.01691005937755108,
0.0053941900841891766,
0.039421841502189636,
0.04998848959803581,
0.046905532479286194,
-0.01785799115896225,
0.06350688636302948,
-0.02082229219377041,
0.00874139554798603,
-0.04419068992137909,
-0.04053780436515808,
-0.012936757877469063,
0.04659894481301308,
0.019846804440021515,
0.03118829056620598,
-0.011106994934380054,
-0.026875410228967667,
0.06057259067893028,
0.09783198684453964,
0.051421817392110825,
0.021439483389258385,
-0.0335213840007782,
0.00509353494271636,
0.04088260605931282,
0.06393630802631378,
-0.05020745471119881,
-0.05045745149254799,
0.017078101634979248,
0.03572583198547363,
-0.04524628445506096,
0.023483959957957268,
-0.032924119383096695,
0.040430594235658646,
-0.04891237989068031,
-0.06191571429371834,
0.02205975167453289,
0.043420951813459396,
0.008001218549907207,
0.03470461443066597,
0.009576428681612015,
0.010520913638174534,
0.020130714401602745,
-0.015019550919532776,
0.004815239924937487,
-0.04898964241147041,
0.008798915892839432,
0.048858705908060074,
0.07109435647726059,
-0.043851062655448914,
0.05375365540385246,
0.0016462299972772598,
0.009577090851962566,
0.05578216165304184,
-0.042394060641527176,
0.028679050505161285,
0.016910091042518616,
0.009300464764237404,
-0.04003060609102249,
-0.003078102134168148,
-0.009128793142735958,
0.02784939855337143,
0.052598170936107635,
0.007407883182168007,
0.07200518995523453,
-0.0015121182659640908,
0.05482381582260132,
0.08611220121383667,
0.030057311058044434,
0.01872103475034237,
0.026881620287895203,
0.057764261960983276,
0.012673504650592804,
-0.010418660938739777,
0.02500661462545395,
-0.05307314544916153,
0.012101338244974613,
-0.03683939948678017,
0.019095705822110176,
-0.002013349672779441,
-0.023581409826874733,
0.048092715442180634,
0.008074216544628143,
-0.009112927131354809,
0.04261472448706627,
-0.043823473155498505,
-0.032913509756326675,
0.032541777938604355,
-0.019108431413769722,
-0.019834104925394058,
-0.001580079784616828,
-0.02080571837723255,
0.010384036228060722,
-0.0726778507232666,
-0.037547554820775986,
-0.022406242787837982,
-0.043190158903598785,
0.007333485409617424,
-0.06112465634942055,
-0.0264471136033535,
-0.08687826246023178,
0.0015297408681362867,
0.04978189989924431,
0.027133136987686157,
-0.016068803146481514,
-0.03749367967247963,
0.028128450736403465,
-0.0459938645362854,
-0.02103991061449051,
-0.0525498241186142,
-0.05098685249686241,
-0.04870286211371422,
-0.06848849356174469,
0.025590848177671432,
0.027498865500092506,
0.003294817404821515,
-0.006290044169872999,
0.009763682261109352,
-0.013159253634512424,
-0.034864623099565506,
0.06223618984222412,
0.037736404687166214,
-0.025389855727553368,
-0.04542582109570503,
0.04209435358643532,
-0.03057589940726757,
0.015259107574820518,
-0.014043726027011871,
-0.02540968917310238,
0.08198493719100952,
0.07520456612110138,
0.004832645878195763,
0.015401619486510754,
-0.030110817402601242,
-0.05062544718384743,
-0.07234043627977371,
-0.02253328077495098,
-0.04770972952246666,
0.003521713661029935,
-0.011397810652852058,
-0.03351110592484474,
-0.017285218462347984,
-0.050042394548654556,
0.002535333624109626,
-0.011365430429577827,
0.00665187556296587,
0.057071734219789505,
0.012669935822486877,
0.03969087451696396,
0.031521402299404144,
-0.0518898144364357,
-0.026056863367557526,
0.07007809728384018,
0.021666787564754486,
0.004147612489759922,
-0.05539156496524811,
-0.026465849950909615,
0.05482182651758194,
0.04095817729830742,
0.0017261211760342121,
-0.018182460218667984,
0.08081264048814774,
0.016360841691493988,
0.009913387708365917,
0.029465703293681145,
-0.031112797558307648,
-0.030178723856806755,
-0.04407455399632454,
0.004751330707222223,
-0.03292400762438774,
-0.03671114146709442,
-0.03722046688199043,
0.005863400176167488,
0.05198858678340912,
-0.046471528708934784,
-0.08066468685865402,
-0.009081394411623478,
0.03224644809961319,
0.014841141179203987,
0.014660646207630634,
-0.021066563203930855,
0.016095135360956192,
-0.029090452939271927,
-0.019048945978283882,
0.010004673153162003,
0.004613825585693121,
0.0087952371686697,
0.04745912551879883,
0.02188456431031227,
-0.02881370298564434,
0.032626673579216,
0.03919128701090813,
0.05605657026171684,
0.022627264261245728,
-0.0383114293217659,
0.01646510511636734,
-0.007951186038553715,
0.021871551871299744,
0.0014173656236380339,
-0.016566604375839233,
-0.051540110260248184,
-0.1043337881565094,
0.00540228420868516,
0.01639855094254017,
-0.027491003274917603,
-0.0020202756859362125,
0.048609212040901184,
-0.007438150234520435,
0.01258859597146511,
0.02483082376420498,
0.026528866961598396,
0.027110004797577858,
-0.04688839241862297,
0.06405031681060791,
0.0051194485276937485,
0.012770834378898144,
-0.04564463347196579,
0.010289419442415237,
-0.02841184474527836,
0.002248543780297041,
-0.0004834897699765861,
0.04728861153125763,
0.026458045467734337,
0.0674707219004631,
0.08777105808258057,
0.04228726774454117,
-0.02109883725643158,
0.008865726180374622,
0.034223467111587524,
-0.028778264299035072,
-0.0374658964574337,
-0.014995040372014046,
-0.02374061942100525,
-0.023233208805322647,
-0.016941649839282036,
-0.013591337017714977,
0.0462438240647316,
0.01508393231779337,
0.011959596537053585,
-0.007061673793941736,
-0.004464422818273306,
-0.02001868560910225,
-0.04618910700082779,
-0.051456909626722336,
-0.02323738858103752,
0.006568960379809141,
-0.011830943636596203,
0.014212659560143948,
0.03746270760893822,
0.024018265306949615,
0.04246486350893974,
0.055590707808732986,
-0.02787245437502861,
-0.05274508520960808,
0.007300707045942545,
0.025771575048565865,
-0.0296332910656929,
-0.03578108921647072,
-0.029157597571611404,
0.062412455677986145,
0.03815925866365433,
-0.025843773037195206,
-0.05728719010949135,
-0.0015178845496848226,
0.07330004870891571,
-0.019367076456546783,
0.05726145952939987,
-0.020416496321558952,
0.02920852228999138,
0.06512046605348587,
-0.02359733171761036,
0.022210633382201195,
-0.023422813042998314,
0.02228536084294319,
0.001272842288017273,
0.008309850469231606,
-0.023403434082865715,
-0.04215450584888458,
-0.05862169712781906,
0.021481305360794067,
0.035881854593753815,
0.05629664659500122,
0.039510875940322876,
-0.012373688630759716,
-0.06711221486330032,
0.01530550792813301,
0.03593643754720688,
-0.038555536419153214,
0.003286783816292882,
0.02888401597738266,
0.03204340860247612,
-0.04200613126158714,
-0.00852801464498043,
-0.020258022472262383,
-0.0009003696613945067,
0.02021789737045765,
0.0014752099523320794,
-0.02327956072986126,
-0.04267062246799469,
0.02678052894771099,
-0.029026715084910393,
-0.014712121337652206,
-0.08056328445672989,
0.04545275866985321,
-0.018764661625027657,
-0.0203169584274292,
0.0322415754199028,
0.029021255671977997,
0.04403914883732796,
0.0771837905049324,
0.01540338434278965,
0.027322161942720413,
-0.05659002810716629,
0.02395475097000599,
-0.023894650861620903,
0.009809300303459167,
-0.018602607771754265,
-0.01540690753608942,
-0.013421552255749702,
-0.037786439061164856,
-0.03556821495294571,
-0.03852880001068115,
-0.04159742221236229,
0.0022203775588423014,
-0.008837171830236912,
-0.002721630036830902,
0.017568308860063553,
0.047097861766815186,
-0.016633402556180954,
-0.03467410057783127,
-0.04401827231049538,
-0.03119656816124916,
-0.06711971014738083,
-0.05996523052453995,
0.012662671506404877,
0.0073473816737532616,
0.017858030274510384,
0.0034626333508640528,
0.0005193671095184982,
0.003454633289948106,
0.004270244389772415,
-0.00667878333479166,
0.04731202870607376,
-0.013758520595729351,
-0.03031696006655693,
-0.03058484196662903,
0.0038141643162816763,
0.007622198201715946,
0.017792366445064545,
-0.014055185951292515,
0.016277063637971878,
0.019492773339152336,
-0.02386387065052986,
0.001440594089217484,
0.020739197731018066,
0.03275839984416962,
-0.08038875460624695,
-0.041997671127319336,
-0.006606908980756998,
-0.051701776683330536,
0.014162326231598854,
-0.028630150482058525,
-0.0303838849067688,
0.01800285279750824,
0.03095651976764202,
0.0453299842774868,
0.001661229645833373,
-0.03794257342815399,
0.018682699650526047,
-0.025478091090917587,
0.01485560741275549,
-0.04887337237596512,
0.06128796190023422,
-0.04843204841017723,
0.023730745539069176,
-0.009179109707474709,
-0.016010304912924767,
-0.029048852622509003,
0.03633292019367218,
-0.020546291023492813,
0.005541662685573101,
-0.009777415543794632,
-0.008529206737875938,
-0.021687330678105354,
0.055388644337654114,
-0.011651081964373589,
0.017061488702893257,
-0.02048313245177269,
0.03900181129574776,
-0.02527901902794838,
0.005278211086988449,
-0.03327297046780586,
0.019742483273148537,
-0.028452124446630478,
-0.01710524968802929,
-0.00847878772765398,
-0.04612348973751068,
0.03183715417981148,
0.040995001792907715,
0.007649451494216919,
0.015136351808905602,
-0.025862891227006912,
-0.0076363771222531796,
0.009022871032357216,
-0.035230737179517746,
-0.021554408594965935,
-0.03319616988301277,
-0.017541935667395592,
-0.014283975586295128,
0.040088530629873276,
0.03719651699066162,
-0.05135263875126839,
-0.054483700543642044,
0.040575768798589706,
0.014956755563616753,
0.015967179089784622,
0.006720682606101036,
0.027566704899072647,
0.016024399548768997,
0.04352946579456329,
-0.033832695335149765,
0.024667933583259583,
-0.025065535679459572,
-0.041706837713718414,
0.023139847442507744,
0.005274528171867132,
0.008248799480497837,
0.0230255126953125,
-0.040357694029808044,
0.010324197821319103,
0.07661319524049759,
0.014374296180903912,
0.007612777873873711,
0.01478530466556549,
-0.03641224279999733,
0.02222330868244171,
0.014763900078833103,
-0.041131507605314255,
-0.007015296723693609,
0.014541751705110073,
-0.02124391682446003,
0.07586381584405899,
-0.03170927241444588,
0.012569153681397438,
0.07003999501466751,
0.008245117962360382,
-0.0017555487575009465,
0.03383290022611618,
-0.01372507307678461,
-0.002996086608618498,
0.05249032750725746,
-0.04651407152414322,
0.0020896168425679207,
-0.01207040622830391,
0.0806146189570427,
-0.04977584630250931,
0.04954048991203308,
0.037889547646045685,
0.03088056482374668,
0.00612836517393589,
-0.03921443596482277,
-0.07474986463785172,
-0.001214843476191163,
-0.03062853217124939,
0.07332921028137207,
-0.006618544925004244,
-0.05958293005824089,
0.07127218693494797,
0.015501190908253193,
-0.09002745896577835,
0.06085120886564255,
0.04408295452594757,
0.05521377548575401,
0.058491095900535583,
0.03347676619887352,
-0.04912973940372467,
0.013677222654223442,
-0.039334435015916824,
0.030580494552850723,
-0.04107280075550079,
-0.004745771177113056,
0.03141980618238449,
-0.04796772450208664,
-0.005274411290884018,
0.03973398730158806,
-0.023778928443789482,
-0.03159560635685921,
0.04117719829082489,
-0.07236804068088531,
-0.0483226478099823,
0.006044745445251465,
0.031382184475660324,
-0.03825589269399643,
0.024251572787761688,
-0.04756620526313782,
0.04156626760959625,
0.02232259325683117,
0.008046463131904602,
-0.007507315371185541,
-0.011583680287003517,
0.04771178960800171,
-0.058350417762994766,
-0.029162541031837463,
0.016949275508522987,
0.003277644980698824,
-0.026212124153971672,
0.0423390157520771,
-0.02437814138829708,
-0.001090540550649166,
0.001428759889677167,
-0.006446188315749168,
0.011684649623930454,
-0.029529349878430367,
-0.004435207694768906,
0.009273667819797993,
-0.005322807468473911,
0.03533546254038811,
-0.009725808165967464,
0.03780824691057205,
0.02070850320160389,
0.05665319412946701,
-0.006244945805519819,
-0.05341223254799843,
-0.026448650285601616,
-0.001618316862732172,
-0.053342949599027634,
0.007668877951800823,
0.009693779051303864,
-0.07431045174598694,
-0.047473542392253876,
-0.03962605074048042,
0.0021429667249321938,
0.025063995271921158,
-0.026696881279349327,
-0.01444251649081707,
0.016668783500790596,
-0.010520746000111103,
-0.05177868530154228,
-0.08290169388055801,
-0.006307810079306364,
-0.0354137048125267,
0.030663957819342613,
0.018572639673948288,
-0.03743064031004906,
0.044978756457567215,
-0.05414356663823128,
-0.06235885992646217,
0.02394355833530426,
0.008139182813465595,
-0.0242840014398098,
0.06350443512201309,
0.04013821482658386,
-0.017515091225504875,
0.006875424180179834,
0.029457127675414085,
-0.0479666143655777,
0.036709051579236984,
0.03398925065994263,
0.012502340599894524,
0.020870916545391083,
0.000992869376204908,
-0.024363312870264053,
-0.039571523666381836,
-0.056678541004657745,
-0.03407669812440872,
-0.053009796887636185,
0.003164838068187237,
0.07164499163627625
] |
AIDA-UPM/bertweet-base-multi-mami | [
"pytorch",
"roberta",
"text-classification",
"en",
"transformers",
"misogyny",
"license:apache-2.0"
] | text-classification | {
"architectures": [
"RobertaForSequenceClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 41 | null | ---
pipeline_tag: text-classification
tags:
- text-classification
- misogyny
language: en
license: apache-2.0
widget:
- text: "Women wear yoga pants because men don't stare at their personality"
example_title: "Misogyny detection"
---
# 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,
},
| [
-0.010873628780245781,
-0.008632580749690533,
0.013887869194149971,
0.03233775496482849,
0.06488702446222305,
0.030270477756857872,
0.006801179610192776,
0.009612026624381542,
-0.008260836824774742,
0.045600686222314835,
0.035277217626571655,
0.0051359133794903755,
0.04148901253938675,
0.04227505251765251,
-0.05469893291592598,
-0.03995444253087044,
-0.020435433834791183,
-0.028200719505548477,
-0.039054397493600845,
0.009726298041641712,
0.010684129782021046,
-0.011049400083720684,
-0.011169719509780407,
0.021862996742129326,
0.01471689436584711,
0.026510443538427353,
-0.000870489573571831,
0.04112844541668892,
0.036716874688863754,
-0.032191112637519836,
-0.011414553038775921,
-0.03982389718294144,
-0.016590913757681847,
-0.004182158038020134,
-0.0413164347410202,
-0.0048111979849636555,
-0.0105342548340559,
0.0015753075713291764,
0.0013739540008828044,
0.07302144169807434,
0.01796920970082283,
0.024922778829932213,
-0.03536064177751541,
-0.05597779154777527,
0.052894581109285355,
0.0037498411256819963,
-0.042673561722040176,
-0.02290603518486023,
0.028757236897945404,
-0.02924777939915657,
-0.05588829517364502,
-0.08062975853681564,
-0.03678895905613899,
0.008984431624412537,
-0.03586013987660408,
-0.02232501283288002,
-0.04607740044593811,
0.006691714283078909,
0.047872528433799744,
-0.049336519092321396,
-0.022763598710298538,
-0.00028330396162346005,
-0.04501054435968399,
0.03142530471086502,
0.007379941176623106,
-0.058593668043613434,
0.004199791233986616,
-0.027477692812681198,
0.0012397528626024723,
-0.016650022938847542,
0.0964232087135315,
-0.03566966578364372,
0.027195777744054794,
-0.07708408683538437,
0.01808500848710537,
-0.027878345921635628,
0.03653641790151596,
0.037135083228349686,
-0.006910709664225578,
0.05475571006536484,
0.060342490673065186,
0.03447054699063301,
0.04867643117904663,
-0.008249522186815739,
-0.004864457529038191,
0.03160586953163147,
-0.020390694960951805,
0.0009007226908579469,
0.01682290993630886,
0.04490508884191513,
-0.028166020289063454,
-0.003600022289901972,
-0.0030276537872850895,
-0.026545438915491104,
-0.05090412497520447,
0.05323488265275955,
0.0012549918610602617,
-0.03145957365632057,
0.025924082845449448,
0.03994942829012871,
0.007200401276350021,
0.05463734269142151,
-0.013490580022335052,
0.07567749172449112,
-0.020821405574679375,
-0.0019730047788470984,
-0.0044755456037819386,
-0.029004354029893875,
-0.04157838970422745,
0.03953415900468826,
0.0005299707408994436,
-0.022147493436932564,
-0.06426423788070679,
0.029095878824591637,
0.02379237301647663,
0.007488146424293518,
0.07915899157524109,
-0.011741939932107925,
-0.05374922975897789,
-0.04254482686519623,
0.014676583930850029,
0.008429257199168205,
0.011227727867662907,
0.019007155671715736,
-0.03563128411769867,
0.003402890171855688,
-0.0406198613345623,
-0.012831811793148518,
-0.009625710546970367,
0.027922390028834343,
-0.0027934028767049313,
0.03751128539443016,
0.008696583099663258,
-0.03914458304643631,
0.020894218236207962,
0.010131053626537323,
-0.07365617156028748,
0.0419362373650074,
0.040709637105464935,
0.11955626308917999,
-0.07263943552970886,
-0.03717156499624252,
0.0006210237042978406,
0.01774788089096546,
-0.04882264882326126,
0.02429075539112091,
0.008932181634008884,
-0.03449324890971184,
-0.03007316030561924,
-0.023757360875606537,
0.038041066378355026,
-0.05757659673690796,
-0.04035302624106407,
0.03196990117430687,
0.014186830259859562,
0.038832392543554306,
-0.061458978801965714,
-0.01173508819192648,
0.018377527594566345,
-0.006812256760895252,
-0.07096923142671585,
0.04049273207783699,
0.009461273439228535,
-0.030677281320095062,
-0.006126326508820057,
-0.038490042090415955,
-0.029399866238236427,
0.0710681900382042,
-0.021160878241062164,
-0.02876674197614193,
-0.056004732847213745,
0.012403457425534725,
0.03479178622364998,
0.03455372899770737,
-0.0034921052865684032,
0.012071606703102589,
0.0634172335267067,
0.03937168046832085,
-0.03523780778050423,
0.06953402608633041,
0.0033829789608716965,
-0.03914455696940422,
-0.026238050311803818,
-0.012301772832870483,
0.02744540199637413,
-0.005546899978071451,
0.040976088494062424,
0.01110122911632061,
-0.00439570052549243,
-0.048119839280843735,
-0.000030885963496984914,
0.050692636519670486,
-0.0022947273682802916,
0.0035342853516340256,
-0.009857414290308952,
-0.021223802119493484,
-0.032986339181661606,
0.020517319440841675,
-0.03837617114186287,
-0.022377219051122665,
-0.031751636415719986,
-0.042130257934331894,
0.0047042784281075,
-0.01320179644972086,
0.0005042778211645782,
0.03046903759241104,
-0.014885244891047478,
0.05558827891945839,
-0.022528698667883873,
0.007050351705402136,
-0.046041615307331085,
-0.03575381636619568,
-0.02810658887028694,
0.02809220924973488,
0.031274110078811646,
0.014777176082134247,
-0.015495228581130505,
-0.04850777983665466,
0.014446055516600609,
0.035909246653318405,
0.037606317549943924,
0.035902805626392365,
-0.03136655315756798,
-0.0037596048787236214,
0.02250099368393421,
0.04778880998492241,
-0.05511827766895294,
-0.032395146787166595,
0.01329303439706564,
0.062481578439474106,
-0.0405629426240921,
0.015302064828574657,
-0.0038714357651770115,
0.00717238849028945,
-0.04890076071023941,
-0.055266525596380234,
0.01641285978257656,
0.010357629507780075,
0.014380334876477718,
0.02578112855553627,
-0.01656072400510311,
-0.01651889830827713,
0.05306345596909523,
0.008303157053887844,
0.0077971844002604485,
-0.04140718653798103,
-0.025953391566872597,
-0.004298819694668055,
0.07786957919597626,
-0.053882062435150146,
0.023027541115880013,
0.01870708540081978,
0.02120090089738369,
0.05575897544622421,
-0.035035014152526855,
0.03940464183688164,
0.047404903918504715,
0.014325309544801712,
-0.0312360692769289,
0.03770028427243233,
-0.01330485101789236,
0.020316723734140396,
0.07385982573032379,
-0.004273203667253256,
0.08240167796611786,
-0.01570579782128334,
0.060370203107595444,
0.11378170549869537,
0.024751855060458183,
0.015021000988781452,
0.04515021666884422,
0.057777803391218185,
-0.0002240451140096411,
-0.012753413990139961,
0.04460719972848892,
-0.058910999447107315,
0.01912274770438671,
-0.04657960310578346,
0.03694402053952217,
-0.033002883195877075,
-0.039244215935468674,
0.039121538400650024,
0.022232932969927788,
-0.035237979143857956,
-0.008689061738550663,
-0.023092688992619514,
0.014441193081438541,
0.054948218166828156,
-0.014089612290263176,
0.0019058814505115151,
0.014999127946794033,
-0.04260976240038872,
0.04460139945149422,
-0.07361394166946411,
-0.04310683161020279,
-0.002637657569721341,
-0.03478998690843582,
0.003431410063058138,
-0.087542325258255,
-0.03110414929687977,
-0.0689302384853363,
-0.0195623729377985,
0.06205155327916145,
0.03222926706075668,
0.005347896832972765,
-0.028495511040091515,
-0.0017505376599729061,
-0.021633733063936234,
-0.04085315391421318,
-0.02207275480031967,
-0.06140172481536865,
-0.03816411271691322,
-0.054752424359321594,
0.02192641794681549,
0.017686327919363976,
0.027868011966347694,
0.004674212075769901,
-0.011781558394432068,
-0.04803510382771492,
-0.0136268874630332,
0.03746347874403,
0.03910891339182854,
-0.005185394547879696,
-0.07144330441951752,
-0.001720588537864387,
0.009774639271199703,
-0.012325930409133434,
0.0017238546861335635,
-0.05021080747246742,
0.07747768610715866,
0.06783334910869598,
0.03245147690176964,
0.006142608821392059,
0.009200806729495525,
-0.03406943008303642,
-0.02571156807243824,
-0.04257844015955925,
-0.05605725944042206,
-0.04765322059392929,
-0.03169518709182739,
-0.04973003640770912,
-0.013153775595128536,
-0.04349128156900406,
-0.032602593302726746,
-0.0053954715840518475,
0.046477679163217545,
0.014477971009910107,
0.027030901983380318,
0.013570401817560196,
0.03616625815629959,
-0.04598591849207878,
-0.0363926999270916,
0.06517450511455536,
-0.030466720461845398,
0.011238195933401585,
-0.08877807855606079,
-0.01880262792110443,
0.022639218717813492,
-0.015898918733000755,
-0.0041981409303843975,
-0.009851092472672462,
0.05469365045428276,
0.012929046526551247,
0.018494989722967148,
0.016819963231682777,
-0.0020800940692424774,
-0.004630685783922672,
-0.04845556244254112,
-0.012840843759477139,
-0.014797686599195004,
-0.02015320397913456,
-0.0221147108823061,
-0.008492151275277138,
0.049570776522159576,
-0.0636189877986908,
-0.061461467295885086,
-0.00884945597499609,
0.023321188986301422,
0.0573292002081871,
-0.015180307440459728,
-0.029430978000164032,
-0.016738899052143097,
-0.06161462143063545,
-0.023128431290388107,
0.03359700366854668,
-0.028217406943440437,
-0.008490153588354588,
0.04535398632287979,
0.025743689388036728,
-0.0418706052005291,
0.031054986640810966,
0.04690827056765556,
0.05767685920000076,
0.00694513414055109,
-0.04350840300321579,
0.048111509531736374,
-0.01107035018503666,
0.04630645737051964,
-0.0140530439093709,
-0.02382010594010353,
-0.045680850744247437,
-0.1066785529255867,
0.02021477371454239,
-0.01059503760188818,
-0.017128735780715942,
-0.001985875889658928,
0.03658140450716019,
-0.029155656695365906,
-0.004687526263296604,
0.005788218695670366,
0.033064667135477066,
0.044635821133852005,
-0.012524968944489956,
0.053436629474163055,
-0.0027125368360430002,
0.049495499581098557,
-0.0367712527513504,
0.03369389474391937,
-0.05211586877703667,
-0.027211381122469902,
0.002266036346554756,
0.061851006001234055,
0.014198359102010727,
0.049007121473550797,
0.07317444682121277,
0.05295262858271599,
-0.02593906968832016,
0.03015095926821232,
0.05016620084643364,
-0.03356684371829033,
-0.04366546869277954,
-0.008558076806366444,
-0.014814838767051697,
-0.020708948373794556,
0.020122218877077103,
-0.06273586302995682,
0.004509840160608292,
0.0164886936545372,
-0.0017677386058494449,
-0.011219099164009094,
-0.020453287288546562,
-0.04425370693206787,
0.0037750094197690487,
-0.057365782558918,
0.002965146442875266,
-0.003017362440004945,
-0.016784097999334335,
0.014208844862878323,
0.03968111798167229,
-0.01600961945950985,
0.09242778271436691,
0.04257921501994133,
-0.04582740366458893,
-0.07067909091711044,
0.0386500246822834,
0.03588976338505745,
-0.037861671298742294,
-0.07475807517766953,
-0.058132871985435486,
0.0378645658493042,
0.05546761304140091,
-0.05291074514389038,
-0.09838134050369263,
0.01761295087635517,
0.052287355065345764,
-0.027588795870542526,
0.0574425533413887,
0.006027559284120798,
0.03673171624541283,
0.054754164069890976,
-0.01621723175048828,
0.023310359567403793,
-0.02974105253815651,
0.002384852385148406,
0.0039230152033269405,
0.045479852706193924,
-0.00939087849110365,
-0.042135726660490036,
-0.03084530495107174,
0.05343899130821228,
0.014198299497365952,
0.04734557867050171,
0.03703426197171211,
-0.02407289668917656,
-0.0497647225856781,
0.03034771792590618,
0.024760302156209946,
-0.01823519915342331,
0.009660824202001095,
0.035214539617300034,
0.06857151538133621,
-0.043536365032196045,
-0.03795960173010826,
-0.024598488584160805,
-0.011821364983916283,
0.03726821392774582,
-0.026436639949679375,
-0.0233899112790823,
-0.05212073773145676,
0.03361181542277336,
-0.029272181913256645,
-0.017520353198051453,
-0.08622115105390549,
0.031886372715234756,
-0.025552673265337944,
-0.02280186489224434,
0.04868179187178612,
0.04812883585691452,
0.038582637906074524,
0.03650146722793579,
-0.0008820167277008295,
0.02533106878399849,
-0.03313329070806503,
0.03865645453333855,
-0.021304011344909668,
-0.026446159929037094,
-0.028412019833922386,
-0.05427756905555725,
-0.014887642115354538,
-0.025565603747963905,
-0.04124030843377113,
-0.015174319967627525,
-0.0231500044465065,
-0.001032673753798008,
-0.02146528847515583,
-0.010332862846553326,
0.0061693331226706505,
0.0020059761591255665,
-0.008748683147132397,
-0.027127478271722794,
-0.015391719527542591,
-0.030213041231036186,
-0.057212114334106445,
-0.03436775505542755,
0.0074380747973918915,
0.0001962372480193153,
-0.006254189182072878,
-0.01076628640294075,
0.0118830231949687,
0.03308425471186638,
0.002476895460858941,
-0.02110416628420353,
0.009375317022204399,
0.011400594376027584,
-0.04047272726893425,
-0.0375247448682785,
0.03562008962035179,
0.012529607862234116,
0.013186739757657051,
-0.03562634810805321,
0.009928184561431408,
0.024370672181248665,
-0.04080160707235336,
-0.02169124409556389,
0.011578010395169258,
0.02400132454931736,
-0.07818908244371414,
-0.02125418931245804,
-0.013799967244267464,
-0.034448474645614624,
0.02283363789319992,
-0.014350874349474907,
-0.01915414072573185,
0.013369530439376831,
0.03909631818532944,
0.029279306530952454,
-0.008906067349016666,
-0.035541098564863205,
0.039289288222789764,
-0.018508005887269974,
0.023837486281991005,
-0.06439685076475143,
0.03469980135560036,
-0.019691193476319313,
-0.007890049368143082,
-0.007866591215133667,
-0.028733642771840096,
-0.02656369097530842,
0.06879399716854095,
0.004179840441793203,
-0.018249353393912315,
0.0035152053460478783,
0.017345527186989784,
-0.018351471051573753,
0.005522345192730427,
0.010174852795898914,
0.01616094447672367,
-0.024246199056506157,
0.06241798400878906,
-0.05424600839614868,
0.005531453061848879,
-0.018321074545383453,
0.007199619431048632,
-0.00942648109048605,
-0.03801315650343895,
-0.008602595888078213,
-0.0453251376748085,
0.007671518251299858,
0.02420036308467388,
0.009500773623585701,
0.033336568623781204,
0.003981922287493944,
0.028748832643032074,
0.017768073827028275,
-0.0822381004691124,
-0.03287094458937645,
-0.011852624826133251,
0.014842492528259754,
0.00675605796277523,
0.07068205624818802,
0.033928368240594864,
-0.06135821342468262,
-0.04909185692667961,
0.04497387260198593,
0.035533253103494644,
-0.006752273999154568,
0.0032481953967362642,
0.01382485032081604,
0.05665958300232887,
0.023252107203006744,
-0.012101810425519943,
-0.010477665811777115,
0.005031552631407976,
-0.030849171802401543,
0.005746581591665745,
-0.0018638384062796831,
0.037913426756858826,
0.0296797975897789,
-0.04651921987533569,
-0.021088264882564545,
0.04857230186462402,
0.04876573756337166,
0.021793633699417114,
-0.016056178137660027,
-0.04769206419587135,
0.019096828997135162,
0.018461592495441437,
-0.04513678699731827,
0.008478058502078056,
0.033079035580158234,
-0.016184791922569275,
0.05663483217358589,
-0.011865251697599888,
0.01699492521584034,
0.04790250584483147,
0.00630407826974988,
-0.013999844901263714,
0.05178659409284592,
-0.014964188449084759,
0.0017306499648839235,
0.0530269555747509,
-0.030110834166407585,
-0.014431369490921497,
-0.0346771664917469,
0.04627777636051178,
-0.09068858623504639,
0.05150880664587021,
0.02850724384188652,
0.03720851615071297,
0.023555822670459747,
-0.026067042723298073,
-0.03373938053846359,
0.024435069411993027,
-0.028500208631157875,
0.05509980395436287,
-0.02032708376646042,
-0.03120575100183487,
0.06247442215681076,
0.0033390081953257322,
-0.07344356924295425,
0.047381989657878876,
0.05028853565454483,
0.03308059275150299,
0.03034398891031742,
0.028145093470811844,
-0.01587584614753723,
-0.009444750845432281,
-0.023651020601391792,
0.009598868899047375,
-0.07352031022310257,
-0.011978733353316784,
-0.0019162625540047884,
-0.017336707562208176,
-0.017241358757019043,
0.0464526042342186,
-0.02976139262318611,
-0.0011581849539652467,
0.018363559618592262,
-0.029290836304426193,
-0.059475600719451904,
-0.020257705822587013,
0.021413717418909073,
-0.00476174708455801,
-0.0012990125687792897,
-0.035438861697912216,
-0.0006570647237822413,
0.034586142748594284,
-0.004923455882817507,
-0.02145923115313053,
-0.009752161800861359,
0.022643668577075005,
-0.06327245384454727,
-0.013284310698509216,
0.04036364704370499,
0.012399264611303806,
-0.02476603537797928,
0.009987859055399895,
0.020012354478240013,
0.02111317403614521,
0.014134705998003483,
-0.034437164664268494,
0.02620106376707554,
-0.08451087027788162,
-0.004683712497353554,
0.0015703709796071053,
0.03016667813062668,
-0.013975322246551514,
-0.013569753617048264,
0.017428219318389893,
0.04877752438187599,
0.035160455852746964,
-0.001571899512782693,
-0.048271168023347855,
-0.02926493249833584,
0.019731754437088966,
-0.06680241972208023,
-0.009507721289992332,
0.00381830963306129,
-0.03355579823255539,
-0.02401832677423954,
-0.005869875196367502,
-0.01842227391898632,
0.07704878598451614,
-0.03239746019244194,
0.010210836306214333,
0.03738729655742645,
-0.020806705579161644,
-0.0556209422647953,
-0.09461267292499542,
-0.048707421869039536,
-0.02761295810341835,
0.041767146438360214,
0.02528393641114235,
-0.007299276068806648,
0.021084923297166824,
-0.04657291993498802,
-0.05135452374815941,
0.05571680888533592,
0.02175220474600792,
-0.02193676121532917,
0.05597063899040222,
0.05152912810444832,
-0.023194320499897003,
0.018644843250513077,
0.01950259879231453,
-0.03751904517412186,
0.022249992936849594,
0.028924543410539627,
0.04990091547369957,
0.014662421308457851,
0.0252040047198534,
-0.02395452931523323,
-0.017697466537356377,
-0.04665664583444595,
-0.03460687771439552,
-0.038493528962135315,
-0.012988711707293987,
0.06695115566253662
] |
AIDA-UPM/mstsb-paraphrase-multilingual-mpnet-base-v2 | [
"pytorch",
"xlm-roberta",
"feature-extraction",
"multilingual",
"transformers",
"sentence-similarity"
] | sentence-similarity | {
"architectures": [
"XLMRobertaModel"
],
"model_type": "xlm-roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 1,084 | 2021-07-13T10:48:12Z | ---
pipeline_tag: sentence-similarity
language: "multilingual"
tags:
- feature-extraction
- sentence-similarity
- transformers
- multilingual
---
# 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 --> | [
-0.021330412477254868,
-0.026658739894628525,
-0.020646430552005768,
0.0674527958035469,
0.043967727571725845,
0.03708125278353691,
-0.006465953309088945,
0.016840199008584023,
-0.07092086970806122,
0.07607365399599075,
0.025544045493006706,
0.003748631803318858,
0.00506663927808404,
0.0342840775847435,
-0.0404486358165741,
-0.031867049634456635,
-0.022247590124607086,
-0.018282415345311165,
-0.03313085064291954,
-0.019666120409965515,
0.007276739459484816,
-0.003404016140848398,
-0.0037478695157915354,
0.02626771107316017,
-0.0014979455154389143,
0.01266236137598753,
-0.027599206194281578,
0.01999625377357006,
0.019903698936104774,
-0.03425726294517517,
0.008425913751125336,
-0.017527412623167038,
-0.04045335203409195,
-0.010211293585598469,
-0.016893720254302025,
0.017356788739562035,
-0.0005484188441187143,
-0.009041537530720234,
0.014457509852945805,
0.04940038174390793,
-0.015246430411934853,
0.010539050213992596,
-0.022332247346639633,
-0.02974173054099083,
0.042213957756757736,
0.018061667680740356,
-0.03430653363466263,
-0.03162756934762001,
0.029444469138979912,
-0.045659054070711136,
-0.04344009608030319,
-0.0855509489774704,
-0.019170796498656273,
0.029882187023758888,
-0.0075248656794428825,
-0.021103601902723312,
-0.07980334013700485,
-0.008323540911078453,
0.06441151350736618,
-0.05150039494037628,
-0.037535879760980606,
0.02302541770040989,
-0.05543385446071625,
0.007088580168783665,
0.025610245764255524,
-0.03060869872570038,
-0.0022982144728302956,
-0.05082806199789047,
0.01319361012428999,
-0.029106171801686287,
0.07208763062953949,
-0.03200742229819298,
0.032218292355537415,
-0.08665690571069717,
-0.015956496819853783,
-0.01723603904247284,
0.01949307881295681,
0.01850500889122486,
-0.016397763043642044,
0.057479824870824814,
0.02426440268754959,
-0.0017499690875411034,
0.024801764637231827,
-0.009063630364835262,
-0.023890217766165733,
0.07211362570524216,
-0.039406418800354004,
-0.009724333882331848,
-0.011499520391225815,
0.024371307343244553,
-0.035829637199640274,
-0.023219073191285133,
0.012720243073999882,
-0.05268380418419838,
-0.014906308613717556,
0.020125271752476692,
0.04821999371051788,
-0.017783062532544136,
0.022030066698789597,
0.020669450983405113,
0.006217537447810173,
0.043896351009607315,
-0.011612153612077236,
0.0496356226503849,
-0.017372943460941315,
0.0011143977753818035,
-0.011561187915503979,
-0.03393062576651573,
-0.041094064712524414,
0.02592826448380947,
0.017485853284597397,
-0.0387992225587368,
-0.05467662587761879,
0.04663174971938133,
0.04105483740568161,
-0.021653924137353897,
0.056931767612695694,
-0.019789164885878563,
-0.023909375071525574,
-0.051543865352869034,
0.069732666015625,
-0.007566223852336407,
0.0039067575708031654,
0.014942849054932594,
-0.06508131325244904,
0.019717084243893623,
-0.04300250485539436,
-0.04317610710859299,
0.0013891792623326182,
0.00857032835483551,
-0.007554178591817617,
0.01951458677649498,
0.004529408644884825,
-0.033114176243543625,
0.00958638358861208,
-0.005773637443780899,
-0.07467952370643616,
0.020082496106624603,
0.05216286703944206,
0.10725905746221542,
-0.05116554722189903,
-0.03479790687561035,
0.01489452924579382,
0.024082524701952934,
-0.026270609349012375,
0.00938617717474699,
0.016673753038048744,
-0.043039530515670776,
-0.017781756818294525,
-0.01581752300262451,
0.05600196123123169,
-0.0423172228038311,
-0.0004597000661306083,
0.02642926014959812,
-0.023970745503902435,
0.03918740153312683,
-0.0462958924472332,
-0.007697734981775284,
0.015697520226240158,
0.00010888086399063468,
-0.03443342447280884,
0.03153165802359581,
-0.0024292413145303726,
-0.015053875744342804,
-0.028380323201417923,
-0.02276565134525299,
0.009081292897462845,
0.06851998716592789,
-0.015987219288945198,
-0.03493203595280647,
-0.039058491587638855,
0.0114509342238307,
0.04644163325428963,
0.03887847438454628,
-0.026021091267466545,
0.01386389508843422,
0.061960186809301376,
0.03654462844133377,
0.003139581996947527,
0.07628820091485977,
0.009046362712979317,
-0.032521896064281464,
-0.03364212065935135,
0.011299161240458488,
0.003759454470127821,
-0.010085471905767918,
0.02138631045818329,
0.06680475920438766,
-0.006668700836598873,
-0.01584431156516075,
0.001139920437708497,
0.045993492007255554,
-0.01751510426402092,
0.0033148988150060177,
-0.012342544272542,
-0.011887462809681892,
-0.02350042201578617,
0.046187978237867355,
-0.02223946899175644,
-0.003766980953514576,
-0.019476749002933502,
-0.046660248190164566,
0.019558852538466454,
0.05286828428506851,
0.03348616883158684,
0.024847542867064476,
-0.0014915067004039884,
0.07304750382900238,
-0.029935786500573158,
0.014986262656748295,
-0.05012655630707741,
-0.04281541705131531,
-0.02619447559118271,
0.022912943735718727,
0.02102706767618656,
0.05272285267710686,
0.013767882250249386,
-0.04970727860927582,
0.013618070632219315,
0.05800271034240723,
0.02921728789806366,
0.04101874306797981,
-0.023662442341446877,
-0.017541928216814995,
0.01375068724155426,
0.057248350232839584,
-0.039486005902290344,
-0.03265479579567909,
0.018444836139678955,
0.03798450902104378,
-0.02049662545323372,
0.004903343040496111,
-0.0018957093125209212,
0.015828004106879234,
-0.04160858690738678,
-0.04163181409239769,
0.031238459050655365,
0.0052117956802248955,
-0.019924398511648178,
0.03732028231024742,
-0.014937092550098896,
-0.012869766913354397,
0.037865765392780304,
-0.009002645500004292,
-0.02321537211537361,
-0.08216718584299088,
0.0013446054654195905,
0.022214386612176895,
0.05299018323421478,
-0.04089531674981117,
0.021991200745105743,
0.01616564579308033,
0.023682203143835068,
0.0580812469124794,
-0.018805716186761856,
0.01523666176944971,
0.060607004910707474,
0.010153239592909813,
-0.011837853118777275,
0.017971187829971313,
0.01958928070962429,
0.01758808270096779,
0.0901503637433052,
-0.020736364647746086,
0.06552649289369583,
0.028025172650814056,
0.031187769025564194,
0.08470645546913147,
0.0328306220471859,
0.015175907872617245,
0.06366611272096634,
0.06539254635572433,
-0.003963050432503223,
0.00004243226067046635,
0.07360484451055527,
-0.04016387462615967,
0.029466520994901657,
-0.03553512692451477,
0.025158580392599106,
-0.007093958556652069,
-0.004815396852791309,
0.03816768154501915,
-0.006642681546509266,
-0.010847732424736023,
0.018034759908914566,
-0.029186557978391647,
-0.020960967987775803,
0.0412801094353199,
-0.012165810912847519,
0.013721426017582417,
0.028212059289216995,
-0.032468561083078384,
0.02292608842253685,
-0.07808182388544083,
-0.05715993046760559,
0.025369098410010338,
-0.021158622577786446,
0.006608329713344574,
-0.06287793815135956,
-0.051176685839891434,
-0.06271590292453766,
-0.021693889051675797,
0.04824163764715195,
0.0075607746839523315,
0.0285335723310709,
-0.017133956775069237,
0.014979347586631775,
-0.03391294553875923,
-0.021977392956614494,
-0.05307785049080849,
-0.04233851656317711,
-0.030409205704927444,
-0.05391620472073555,
0.032238490879535675,
0.014749115332961082,
0.03546694666147232,
0.004523786716163158,
-0.0017042758408933878,
-0.025390813127160072,
-0.010101071558892727,
0.05825619027018547,
0.009005248546600342,
-0.00864923745393753,
-0.02874775417149067,
0.017384013161063194,
-0.00662089791148901,
0.025009501725435257,
-0.03871350735425949,
-0.02896159142255783,
0.06128652021288872,
0.055764101445674896,
0.02036636509001255,
0.017028529196977615,
-0.01752975396811962,
-0.0469132661819458,
-0.03895517811179161,
-0.03181156888604164,
-0.057916149497032166,
-0.017279786989092827,
-0.029872704297304153,
-0.04701552912592888,
-0.015882516279816628,
-0.04347515106201172,
-0.02384890429675579,
0.017493486404418945,
0.023837879300117493,
0.04832996800541878,
0.03563598543405533,
0.043574124574661255,
0.024253467097878456,
-0.04653378948569298,
-0.0059272716753184795,
0.11256150156259537,
-0.0014497041702270508,
-0.005804387852549553,
-0.07671347260475159,
-0.026141496375203133,
0.03477748483419418,
0.0045275939628481865,
0.0045194546692073345,
-0.021763667464256287,
0.09534876048564911,
0.01714044250547886,
0.025613831356167793,
0.017939947545528412,
0.012244174256920815,
-0.03873923048377037,
0.013853686861693859,
-0.019010035321116447,
-0.037540290504693985,
-0.045792728662490845,
-0.0294487364590168,
-0.029813887551426888,
0.03570718318223953,
-0.07070130109786987,
-0.05772916600108147,
-0.02839113585650921,
0.0299180019646883,
0.03277992084622383,
-0.0025251966435462236,
-0.031436488032341,
0.004501270595937967,
-0.02747027575969696,
-0.045486707240343094,
0.025106798857450485,
-0.0038407393731176853,
0.00896418560296297,
0.053724177181720734,
0.0005696310545317829,
-0.04488188773393631,
0.03467434644699097,
0.01710296981036663,
0.04163561761379242,
0.04381301999092102,
-0.02668536826968193,
0.035144295543432236,
-0.03469088673591614,
0.040269460529088974,
0.010434629395604134,
-0.035668231546878815,
-0.053153738379478455,
-0.08056735247373581,
-0.004347890615463257,
0.005278745666146278,
-0.02420966327190399,
0.009836922399699688,
0.051347192376852036,
-0.04768037796020508,
-0.019100617617368698,
0.011434506624937057,
0.014742948114871979,
0.052766356617212296,
-0.05519157648086548,
0.05559540167450905,
-0.022212352603673935,
0.03270232677459717,
-0.02741404063999653,
0.010664046742022038,
-0.016592593863606453,
-0.027269810438156128,
0.011892453767359257,
0.06757843494415283,
0.021650001406669617,
0.04528331384062767,
0.07560549676418304,
0.025549547746777534,
-0.03716827929019928,
0.05037818104028702,
0.0325048454105854,
-0.003062533913180232,
-0.06364548951387405,
-0.008620106615126133,
-0.003829849185422063,
-0.048284467309713364,
-0.003837775206193328,
-0.030728967860341072,
0.032220713794231415,
0.03391069918870926,
0.016315056011080742,
-0.015680478885769844,
-0.0096326544880867,
-0.026408879086375237,
-0.03269162029027939,
-0.071110300719738,
-0.01603749766945839,
-0.012570904567837715,
-0.022560687735676765,
0.0521092526614666,
0.03996693342924118,
0.0016613996122032404,
0.03536329045891762,
0.04731437936425209,
-0.012967361137270927,
-0.04981214180588722,
0.04124850407242775,
0.0370333157479763,
-0.05258021131157875,
-0.0708501785993576,
-0.06164826452732086,
0.0326981283724308,
0.054908666759729385,
0.004293882288038731,
-0.07473915815353394,
0.01886708103120327,
0.06743128597736359,
-0.035991113632917404,
0.06444961577653885,
-0.008752177469432354,
0.0499623566865921,
0.06182726100087166,
-0.018680129200220108,
0.01631016843020916,
-0.018660111352801323,
0.018214641138911247,
-0.01189488172531128,
0.058474279940128326,
-0.029418420046567917,
-0.055613256990909576,
-0.03407123312354088,
0.036756254732608795,
0.032749734818935394,
0.055781394243240356,
0.05706963315606117,
-0.030806690454483032,
-0.07026731967926025,
0.001835429691709578,
0.01923239231109619,
-0.05586940795183182,
-0.0036502594593912363,
0.02329789660871029,
0.05948086827993393,
-0.03768549859523773,
-0.03329659253358841,
-0.029825670644640923,
0.01113339327275753,
0.027005203068256378,
0.006683358456939459,
-0.023121027275919914,
-0.058273203670978546,
0.026317071169614792,
-0.02482823096215725,
-0.011932175606489182,
-0.10447374731302261,
0.0021261873189359903,
-0.016304921358823776,
-0.023442069068551064,
0.06460727006196976,
0.05625471472740173,
0.058187007904052734,
0.0223270021378994,
-0.024661600589752197,
0.030691340565681458,
-0.0504130944609642,
0.03834259510040283,
-0.015033426694571972,
-0.023953665047883987,
-0.006485749501734972,
-0.07364975661039352,
-0.022526979446411133,
-0.036995548754930496,
-0.025332456454634666,
-0.042108651250600815,
-0.03633667901158333,
0.013944443315267563,
-0.0210582222789526,
0.02448572963476181,
-0.008671543560922146,
0.012229650281369686,
-0.03232061490416527,
-0.008786613121628761,
-0.01673125848174095,
-0.039300449192523956,
-0.08395669609308243,
-0.032506268471479416,
-0.006445412058383226,
0.007864918559789658,
0.02281598560512066,
0.011787337251007557,
-0.009227991104125977,
0.02109944447875023,
0.009304022416472435,
-0.020888254046440125,
0.04527687281370163,
0.0018350044265389442,
-0.04350777342915535,
-0.027612607926130295,
0.00207144976593554,
0.013435842469334602,
0.013971719890832901,
-0.04519475996494293,
0.019241098314523697,
0.016695862635970116,
-0.046963538974523544,
-0.026530785486102104,
0.008465769700706005,
0.029687166213989258,
-0.08643893897533417,
-0.056223608553409576,
-0.032777562737464905,
-0.05677133798599243,
0.02562061697244644,
0.0032449231948703527,
-0.006209572311490774,
-0.002845567185431719,
0.03483796864748001,
0.01055494137108326,
0.014504533261060715,
-0.016499357298016548,
0.01742599904537201,
-0.01469749677926302,
0.026973698288202286,
-0.07504113763570786,
0.02996332384645939,
-0.030629245564341545,
0.00743590435013175,
-0.01024547591805458,
0.0017167242476716638,
-0.033343467861413956,
0.05005454644560814,
-0.010316586121916771,
-0.019099894911050797,
-0.03527386114001274,
-0.0008040288230404258,
-0.03598753362894058,
0.03743230924010277,
-0.00892983190715313,
0.01938180811703205,
-0.010650653392076492,
0.05124691128730774,
-0.060805484652519226,
0.005070534534752369,
-0.01697530597448349,
-0.011831158772110939,
0.0012096448335796595,
-0.011987621895968914,
-0.028786063194274902,
-0.046136483550071716,
0.036519549787044525,
0.030011847615242004,
0.015528992749750614,
0.022342519834637642,
-0.01666867733001709,
0.016169345006346703,
0.021189063787460327,
-0.04980995133519173,
-0.0381590761244297,
-0.01780714839696884,
0.017149683088064194,
-0.002683882834389806,
0.08163715153932571,
0.02954438142478466,
-0.042503029108047485,
-0.053570475429296494,
0.028266046196222305,
0.007571610156446695,
-0.011369378305971622,
0.003935716580599546,
0.02754240669310093,
0.04897138476371765,
0.05824435129761696,
-0.02996036410331726,
-0.01464470848441124,
-0.006993883289396763,
-0.026539532467722893,
-0.0038668906781822443,
0.00867447443306446,
0.009376094676554203,
-0.0037517931777983904,
-0.0329892635345459,
-0.02829093299806118,
0.07733526080846786,
0.023381326347589493,
0.03158292546868324,
0.001900357543490827,
-0.046792611479759216,
0.012099837884306908,
0.026522768661379814,
-0.04541503265500069,
-0.018219394609332085,
0.027551565319299698,
-0.027187788859009743,
0.0721922367811203,
-0.02157425507903099,
-0.0040830099023878574,
0.05545853450894356,
0.009233236312866211,
-0.004990278743207455,
0.02443045750260353,
-0.026623718440532684,
0.0005780990468338132,
0.059221137315034866,
-0.06860414892435074,
-0.005590546410530806,
-0.015755560249090195,
0.06438315659761429,
-0.05395399406552315,
0.0626431480050087,
0.044853877276182175,
0.03825867176055908,
0.03517179563641548,
-0.017507093027234077,
-0.049229588359594345,
0.006567873526364565,
-0.04286161810159683,
0.07717175781726837,
0.01335830707103014,
-0.04991603270173073,
0.07530198246240616,
0.019155869260430336,
-0.09249293804168701,
0.05574924498796463,
0.02384021133184433,
0.010168557986617088,
0.03337794169783592,
0.016238877549767494,
-0.07566264271736145,
0.010127332992851734,
-0.02951492741703987,
0.04366154596209526,
-0.079944908618927,
-0.00863821990787983,
-0.0005118683911859989,
-0.03694000095129013,
-0.01696457341313362,
0.034929994493722916,
-0.027683326974511147,
0.0035636022221297026,
0.008931170217692852,
-0.05468082055449486,
-0.05267233029007912,
0.0016905497759580612,
0.02232447639107704,
-0.0077847749926149845,
0.03043241612613201,
-0.017130643129348755,
0.006114882882684469,
0.03152642771601677,
-0.003169934032484889,
-0.04915733262896538,
0.019933437928557396,
0.0041896323673427105,
-0.05584217980504036,
-0.041279327124357224,
0.009193049743771553,
0.016626063734292984,
-0.018245141953229904,
0.03022010810673237,
-0.023243729025125504,
0.029324159026145935,
0.030635755509138107,
-0.009665720164775848,
0.009410832077264786,
-0.04026177525520325,
0.023037489503622055,
0.022541269659996033,
0.013207070529460907,
0.014672331511974335,
-0.012194314040243626,
0.02679874189198017,
0.03292509540915489,
0.03741993382573128,
-0.00792426522821188,
-0.03278109058737755,
-0.027807321399450302,
0.037660207599401474,
-0.0376962311565876,
0.015454566106200218,
0.010718517936766148,
-0.04523785784840584,
-0.029459645971655846,
-0.000884955981746316,
0.012519856914877892,
0.041878148913383484,
-0.02765735425055027,
0.014438142068684101,
0.04008447751402855,
-0.03732464835047722,
-0.04685008525848389,
-0.07572808861732483,
-0.04448671266436577,
-0.027207069098949432,
0.04130503535270691,
0.03516508266329765,
-0.0368327870965004,
-0.001982312183827162,
-0.028224341571331024,
-0.036000803112983704,
0.048264339566230774,
0.018813779577612877,
-0.04162557050585747,
0.07743585854768753,
0.02351677045226097,
-0.03891082480549812,
0.0047199055552482605,
0.05878481641411781,
-0.053275272250175476,
0.02688632346689701,
0.031408313661813736,
0.02340390905737877,
0.028460102155804634,
0.027429087087512016,
-0.01225387305021286,
-0.024590682238340378,
-0.05245811492204666,
-0.024246862158179283,
-0.038071148097515106,
-0.015580656006932259,
0.06926876306533813
] |
ARTeLab/mbart-summarization-mlsum | [
"pytorch",
"mbart",
"text2text-generation",
"it",
"dataset:ARTeLab/mlsum-it",
"transformers",
"summarization",
"autotrain_compatible",
"has_space"
] | summarization | {
"architectures": [
"MBartForConditionalGeneration"
],
"model_type": "mbart",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 111 | 2021-12-25T07:39:53Z | ---
tags:
- summarization
language:
- it
metrics:
- rouge
model-index:
- name: summarization_mbart_mlsum
results: []
datasets:
- ARTeLab/mlsum-it
---
# mbart_summarization_mlsum
This model is a fine-tuned version of [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25) on mlsum-it for Abstractive Summarization.
It achieves the following results:
- Loss: 3.3336
- Rouge1: 19.3489
- Rouge2: 6.4028
- Rougel: 16.3497
- Rougelsum: 16.5387
- Gen Len: 33.5945
## Usage
```python
from transformers import MBartTokenizer, MBartForConditionalGeneration
tokenizer = MBartTokenizer.from_pretrained("ARTeLab/mbart-summarization-mlsum")
model = MBartForConditionalGeneration.from_pretrained("ARTeLab/mbart-summarization-mlsum")
```
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 1
- eval_batch_size: 1
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 4.0
### Framework versions
- Transformers 4.15.0.dev0
- Pytorch 1.10.0+cu102
- Datasets 1.15.1
- Tokenizers 0.10.3
# Citation
More details and results in [published work](https://www.mdpi.com/2078-2489/13/5/228)
```
@Article{info13050228,
AUTHOR = {Landro, Nicola and Gallo, Ignazio and La Grassa, Riccardo and Federici, Edoardo},
TITLE = {Two New Datasets for Italian-Language Abstractive Text Summarization},
JOURNAL = {Information},
VOLUME = {13},
YEAR = {2022},
NUMBER = {5},
ARTICLE-NUMBER = {228},
URL = {https://www.mdpi.com/2078-2489/13/5/228},
ISSN = {2078-2489},
ABSTRACT = {Text summarization aims to produce a short summary containing relevant parts from a given text. Due to the lack of data for abstractive summarization on low-resource languages such as Italian, we propose two new original datasets collected from two Italian news websites with multi-sentence summaries and corresponding articles, and from a dataset obtained by machine translation of a Spanish summarization dataset. These two datasets are currently the only two available in Italian for this task. To evaluate the quality of these two datasets, we used them to train a T5-base model and an mBART model, obtaining good results with both. To better evaluate the results obtained, we also compared the same models trained on automatically translated datasets, and the resulting summaries in the same training language, with the automatically translated summaries, which demonstrated the superiority of the models obtained from the proposed datasets.},
DOI = {10.3390/info13050228}
}
``` | [
-0.010495769791305065,
-0.02107301540672779,
-0.02242184616625309,
0.05249032750725746,
0.029602646827697754,
0.014708726666867733,
-0.03193940967321396,
-0.013051177375018597,
-0.027481524273753166,
0.0649409070611,
0.05891687422990799,
-0.013877293094992638,
-0.005297796335071325,
0.03642095625400543,
-0.019260406494140625,
-0.04948963597416878,
-0.00525638135150075,
-0.023907529190182686,
-0.03181219846010208,
-0.0020978401880711317,
0.020956914871931076,
-0.0032564911525696516,
-0.0016253842040896416,
0.03111075796186924,
0.02688431367278099,
-0.004195354413241148,
-0.0024787357542663813,
0.03307462856173515,
0.03913039341568947,
-0.0770808607339859,
0.013703374192118645,
-0.012605937197804451,
-0.04217955470085144,
-0.01828211359679699,
-0.017462367191910744,
0.015400845557451248,
-0.003730237716808915,
0.030509570613503456,
0.027385307475924492,
0.06301713734865189,
-0.009322642348706722,
0.02161543071269989,
-0.02196698822081089,
-0.033662036061286926,
0.05799786373972893,
-0.0028133615851402283,
-0.03981228545308113,
-0.04209699109196663,
0.05042342096567154,
-0.015107057988643646,
-0.05710701644420624,
-0.07430294901132584,
-0.02633017487823963,
0.03477173298597336,
-0.004646788816899061,
-0.03153974562883377,
-0.042794764041900635,
0.014434274286031723,
0.0638435035943985,
-0.05300351604819298,
-0.0354313887655735,
0.00934989657253027,
-0.0516364760696888,
0.042799558490514755,
0.025196602568030357,
-0.03469753637909889,
0.006262541748583317,
-0.045133452862501144,
0.03160299360752106,
-0.022528333589434624,
0.06132255494594574,
-0.04360461235046387,
0.020092051476240158,
-0.09188559651374817,
-0.0012745513813570142,
-0.012239140458405018,
0.02011142112314701,
0.0544532872736454,
-0.04166867956519127,
0.061227742582559586,
0.06235311180353165,
-0.007299134042114019,
0.046099234372377396,
-0.006642132997512817,
-0.008654873818159103,
0.028375273570418358,
-0.024371985346078873,
0.0010139902587980032,
0.0032233870588243008,
0.04206812381744385,
-0.051232289522886276,
-0.04462128132581711,
-0.031209001317620277,
-0.03568199276924133,
-0.019829459488391876,
0.019382644444704056,
0.03754039853811264,
0.007580156438052654,
0.024576440453529358,
0.012631908990442753,
0.026048311963677406,
0.06356341391801834,
-0.006398884579539299,
0.08118651062250137,
0.0007345608901232481,
-0.013878125697374344,
-0.011315545067191124,
-0.015389053151011467,
-0.04898523911833763,
0.04368703067302704,
0.02139797806739807,
-0.028082313016057014,
-0.052537668496370316,
0.030486026778817177,
0.004645902663469315,
-0.025662517175078392,
0.053531233221292496,
-0.016401542350649834,
-0.0632135346531868,
-0.04422111064195633,
0.03798278793692589,
-0.005919741000980139,
-0.02250543050467968,
-0.005225105211138725,
-0.05022308975458145,
0.00011532779899425805,
-0.049089472740888596,
-0.02927781641483307,
0.010594729334115982,
0.0421527735888958,
0.008387562818825245,
0.05303496494889259,
0.030142150819301605,
-0.03375140205025673,
0.028328532353043556,
0.012208466418087482,
-0.055428434163331985,
0.05357113108038902,
0.04335140064358711,
0.1218055710196495,
-0.051480766385793686,
-0.05311271548271179,
0.0300922654569149,
-0.004283521790057421,
-0.04685414209961891,
0.005948242731392384,
0.010617207735776901,
-0.03608095645904541,
-0.038345709443092346,
0.0027340089436620474,
0.03492086008191109,
-0.05001309514045715,
-0.002507850294932723,
0.04127828776836395,
-0.006612387020140886,
0.031738001853227615,
-0.049350183457136154,
-0.016502371057868004,
-0.00953415036201477,
-0.005911257583647966,
-0.04717284068465233,
0.042396221309900284,
0.003691807622089982,
-0.010982534848153591,
-0.017296412959694862,
-0.03897926211357117,
0.0011880475794896483,
0.0983312651515007,
-0.019084570929408073,
-0.018364453688263893,
-0.03157234936952591,
0.017456302419304848,
0.046894025057554245,
0.04572175443172455,
-0.0036646868102252483,
0.024719009175896645,
0.06658077239990234,
0.03768979012966156,
-0.03400138393044472,
0.04335698112845421,
0.014011838473379612,
-0.012919408269226551,
-0.023066390305757523,
0.0009707435965538025,
-0.017752308398485184,
-0.028662526980042458,
0.015094303525984287,
0.03574753552675247,
0.011580998077988625,
-0.022965427488088608,
-0.013470176607370377,
0.03547881916165352,
0.0040100314654409885,
0.007814106531441212,
0.0025206212885677814,
-0.008091123774647713,
-0.027832742780447006,
0.037144795060157776,
-0.022336309775710106,
-0.009342251345515251,
-0.011173789389431477,
-0.04254935309290886,
-0.004714789800345898,
0.009645503014326096,
0.04222579672932625,
0.025430474430322647,
-0.007267088163644075,
0.07960242033004761,
-0.04131193086504936,
0.00877970177680254,
-0.031282100826501846,
-0.03563860058784485,
-0.005167354363948107,
0.048684317618608475,
0.04395262524485588,
0.06685919314622879,
-0.017384495586156845,
-0.027290530502796173,
0.030670275911688805,
0.05699078366160393,
0.023401450365781784,
0.04316631332039833,
-0.026142405346035957,
-0.02632048726081848,
0.02021770365536213,
0.06278892606496811,
-0.05930619314312935,
-0.026698073372244835,
0.018550219014286995,
0.028442643582820892,
-0.02279805950820446,
0.011053906753659248,
-0.009954587556421757,
0.019056040793657303,
-0.07236108183860779,
-0.055466316640377045,
0.05163399130105972,
0.027027972042560577,
-0.015957653522491455,
0.024717696011066437,
-0.005350749474018812,
-0.008773171342909336,
0.01658504828810692,
0.023573454469442368,
-0.0006717203068546951,
-0.05598664656281471,
0.005519515834748745,
0.017954040318727493,
0.05111059173941612,
-0.041255027055740356,
0.027755899354815483,
-0.008963692933321,
0.005573040805757046,
0.03083137422800064,
-0.05806354805827141,
0.014609655365347862,
0.04374217614531517,
0.024648677557706833,
-0.014810695312917233,
0.022576650604605675,
0.013735988177359104,
0.03248165547847748,
0.06648807227611542,
0.009046708233654499,
0.07066679745912552,
0.0022808664944022894,
0.05331793799996376,
0.08679438382387161,
0.021173635497689247,
0.02748296782374382,
0.03333365544676781,
0.0822124257683754,
0.013495552353560925,
-0.022208567708730698,
0.0517740435898304,
-0.05094676837325096,
0.014661778695881367,
-0.023672860115766525,
0.011732845567166805,
-0.026542238891124725,
-0.007251903414726257,
0.03961886093020439,
0.005368356127291918,
-0.01785559579730034,
-0.006571716163307428,
-0.0004409806861076504,
0.006025556940585375,
0.03321775048971176,
-0.0157063826918602,
-0.01051462534815073,
0.015665410086512566,
-0.0027236102614551783,
0.01686733402311802,
-0.059732791036367416,
-0.042434241622686386,
0.004614411853253841,
0.0019370889058336616,
-0.0031692027114331722,
-0.09463822096586227,
-0.009645800106227398,
-0.07953114807605743,
-0.019497912377119064,
0.05208444595336914,
0.020989473909139633,
-0.011931256391108036,
-0.037974365055561066,
0.013978679664433002,
-0.04491128772497177,
-0.024831214919686317,
-0.04600396007299423,
-0.03822338208556175,
-0.023182203993201256,
-0.09130625426769257,
0.03059067390859127,
0.009949853643774986,
0.049401912838220596,
0.0021737099159508944,
-0.0038900324143469334,
-0.0359429232776165,
-0.03587023541331291,
0.07195426523685455,
0.05900706350803375,
-0.030341316014528275,
-0.038855161517858505,
0.019747380167245865,
-0.019884256646037102,
0.014155510812997818,
0.004513466265052557,
-0.04773905500769615,
0.09168756753206253,
0.08020750433206558,
0.029159896075725555,
-0.0004032184078823775,
-0.011505676433444023,
-0.045511096715927124,
-0.06717589497566223,
-0.027316808700561523,
-0.01971624046564102,
-0.028681529685854912,
-0.043377913534641266,
-0.029401397332549095,
-0.01615605689585209,
-0.01805068925023079,
-0.014138654805719852,
-0.01825702376663685,
0.032234854996204376,
0.04529563710093498,
0.03149032220244408,
0.0509645938873291,
0.03460713103413582,
-0.03567976877093315,
-0.04771443456411362,
0.07914053648710251,
0.01917802169919014,
-0.01813102886080742,
-0.06828589737415314,
-0.02374446578323841,
0.03747241944074631,
0.0411827526986599,
0.01833363249897957,
-0.012468205764889717,
0.06872916221618652,
0.015329181216657162,
0.0021517483983188868,
0.002896643942221999,
-0.014312928542494774,
-0.012976610101759434,
0.00764375040307641,
-0.0027829043101519346,
-0.018657896667718887,
-0.0465017594397068,
-0.02782328426837921,
-0.0025132130831480026,
0.03177432343363762,
-0.06720694899559021,
-0.06377997249364853,
-0.016556907445192337,
0.0390387624502182,
0.04709861800074577,
-0.011877103708684444,
-0.010190926492214203,
-0.001380209461785853,
-0.06642724573612213,
-0.025105223059654236,
0.03235844150185585,
0.018397150561213493,
0.002038736129179597,
0.05112015828490257,
0.03342593088746071,
-0.0388290099799633,
0.028185736387968063,
0.030588299036026,
0.06114845350384712,
0.009802090004086494,
-0.07030941545963287,
0.012555169872939587,
-0.013665152713656425,
0.03069762885570526,
0.007271163165569305,
-0.025781726464629173,
-0.0299834031611681,
-0.08157789707183838,
0.000447267375420779,
-0.004257405176758766,
0.0010346733033657074,
-0.011340978555381298,
0.05780357867479324,
-0.0380488745868206,
-0.04318743571639061,
0.007205800153315067,
0.005801768973469734,
0.05948546156287193,
-0.03433636203408241,
0.055742088705301285,
-0.00835149735212326,
0.006209024228155613,
-0.03511062264442444,
-0.0013716921675950289,
-0.047493062913417816,
0.0002418862859485671,
0.0004756996931973845,
0.058435987681150436,
0.010482102632522583,
0.03318127989768982,
0.07895741611719131,
0.01934804767370224,
-0.04532407224178314,
0.021935056895017624,
0.04949033260345459,
-0.006761905271559954,
-0.04329131171107292,
0.008150486275553703,
0.003940053284168243,
-0.03022853471338749,
-0.02213236130774021,
-0.019699105992913246,
0.027563001960515976,
0.011980445124208927,
0.008059972897171974,
-0.010384165681898594,
0.017221499234437943,
-0.028741691261529922,
-0.014374619349837303,
-0.0441737100481987,
0.0017094193026423454,
-0.0014647209318354726,
-0.034419793635606766,
0.015949495136737823,
0.056459780782461166,
0.027951713651418686,
0.0730535089969635,
0.0531659796833992,
-0.027149565517902374,
-0.03002704121172428,
0.04572445899248123,
0.02019934356212616,
-0.0453907735645771,
-0.05763329938054085,
-0.03469100594520569,
0.03713969141244888,
0.05342568829655647,
-0.0172397680580616,
-0.07843300700187683,
0.008881190791726112,
0.06661383807659149,
-0.02542457915842533,
0.06538864225149155,
0.0007832203409634531,
0.029050875455141068,
0.03925950825214386,
-0.011930086649954319,
0.020360013470053673,
-0.026563778519630432,
-0.0006357866222970188,
-0.014277663081884384,
0.053810492157936096,
-0.03500092402100563,
-0.028573371469974518,
-0.03177420422434807,
0.021547317504882812,
0.003018337534740567,
0.048711951822042465,
0.03639809414744377,
-0.021326620131731033,
-0.060265637934207916,
0.011463974602520466,
0.04525315389037132,
-0.062107499688863754,
0.03082060068845749,
0.0014376705512404442,
0.03644426167011261,
-0.05046578124165535,
-0.03439242020249367,
-0.013373343273997307,
-0.009853904135525227,
0.03731101006269455,
-0.012550698593258858,
-0.02550959773361683,
-0.04293706640601158,
0.021204369142651558,
-0.017697172239422798,
-0.023876000195741653,
-0.06710749864578247,
0.05443447083234787,
-0.009922808967530727,
-0.01340993121266365,
0.07948687672615051,
0.01703205704689026,
0.020517198368906975,
0.033294614404439926,
0.014692629687488079,
0.033154044300317764,
-0.019229793921113014,
0.021132817491889,
-0.04130354896187782,
-0.014015650376677513,
0.0032698875293135643,
-0.0465264618396759,
-0.04394533857703209,
-0.026610998436808586,
-0.05944271385669708,
-0.047971099615097046,
-0.013373653404414654,
-0.0031843315809965134,
-0.010273000225424767,
0.005089129786938429,
-0.027851980179548264,
0.01910926215350628,
-0.024888835847377777,
-0.016478056088089943,
-0.03508615866303444,
-0.04588944837450981,
-0.08481550961732864,
-0.05913788825273514,
0.008257177658379078,
0.016229119151830673,
0.04976055398583412,
0.03901238366961479,
0.009462574496865273,
0.018739545717835426,
0.008134494535624981,
-0.03799034655094147,
0.030420945957303047,
-0.004546980373561382,
-0.03889932855963707,
-0.0526341013610363,
0.010450637899339199,
0.017546024173498154,
0.0474100336432457,
-0.03608820214867592,
0.03838347643613815,
0.030935199931263924,
-0.02545798197388649,
-0.005295226350426674,
0.02917526662349701,
-0.006664135958999395,
-0.059640802443027496,
-0.02796267345547676,
-0.005443669389933348,
-0.03238068148493767,
0.02493356727063656,
-0.01907658763229847,
-0.017083359882235527,
-0.0005218756850808859,
0.03624812886118889,
0.027947815135121346,
-0.005322365090250969,
-0.02568589337170124,
0.010228106752038002,
-0.03193764016032219,
0.019728228449821472,
-0.08208450675010681,
0.04367562755942345,
-0.049864135682582855,
-0.004043012857437134,
-0.01786550134420395,
-0.009260470978915691,
-0.033900439739227295,
0.04868527501821518,
-0.013523352332413197,
-0.007269804831594229,
-0.0198676735162735,
0.016553979367017746,
-0.03583292290568352,
0.023613804951310158,
-0.01163698174059391,
0.0008801274816505611,
-0.012170840054750443,
0.056950319558382034,
-0.040658093988895416,
-0.0021326339337974787,
-0.012842611409723759,
-0.003134653205052018,
-0.042277440428733826,
-0.024731844663619995,
-0.014934464357793331,
-0.025641461834311485,
0.03255784139037132,
0.04323798790574074,
0.040475036948919296,
0.023152295500040054,
-0.023764004930853844,
0.006208957638591528,
0.0158684179186821,
-0.05682658031582832,
-0.021358249709010124,
-0.0031539928168058395,
0.013352029956877232,
-0.03580079972743988,
0.06986977905035019,
0.04759843647480011,
-0.02699337899684906,
-0.026828214526176453,
0.02272922731935978,
-0.011958502233028412,
-0.016585061326622963,
-0.0125840799883008,
0.053635671734809875,
0.04469497874379158,
0.047107525169849396,
-0.04769587144255638,
-0.006304770242422819,
-0.016269614920020103,
-0.04489314556121826,
0.004338334314525127,
-0.017339074984192848,
0.022796552628278732,
0.007204304449260235,
-0.027111157774925232,
-0.025604000315070152,
0.09653910994529724,
0.030249619856476784,
0.0243278369307518,
0.0012588199460878968,
-0.025982001796364784,
0.04148728400468826,
0.013421960175037384,
-0.03647613152861595,
0.02156907506287098,
0.024603964760899544,
-0.03614569455385208,
0.07097452133893967,
0.003368991194292903,
0.03014356456696987,
0.06785250455141068,
0.037548843771219254,
-0.020004624500870705,
0.041582029312849045,
-0.027791477739810944,
0.03200468048453331,
0.0452301912009716,
-0.04274977371096611,
-0.018880343064665794,
-0.031137198209762573,
0.05493573099374771,
-0.07142262160778046,
0.035354044288396835,
0.039956655353307724,
0.013037501834332943,
0.025677280500531197,
-0.05200758948922157,
-0.050506994128227234,
0.006524269934743643,
-0.05798707157373428,
0.06451283395290375,
0.01796218939125538,
-0.05910012871026993,
0.0627172440290451,
0.01903814636170864,
-0.06959497928619385,
0.0404246486723423,
0.028928246349096298,
0.03470925614237785,
0.007536763790994883,
0.03809324651956558,
-0.06713302433490753,
0.030772710219025612,
-0.04894287511706352,
0.006134375464171171,
-0.033186472952365875,
-0.014573676511645317,
0.025717725977301598,
-0.04154110699892044,
-0.018323929980397224,
0.0214732326567173,
-0.015088981948792934,
-0.003417401807382703,
0.027495231479406357,
-0.04268471896648407,
-0.03470906242728233,
0.01418848242610693,
0.019706876948475838,
-0.0207294300198555,
0.01880391128361225,
-0.03911596164107323,
0.009928591549396515,
0.018147451803088188,
0.012910266406834126,
-0.02762489952147007,
0.0013310557696968317,
0.024520475417375565,
-0.079411581158638,
-0.038036100566387177,
0.02863156981766224,
0.007159687113016844,
-0.01590505987405777,
0.014387287199497223,
-0.011172636412084103,
0.024269800633192062,
0.0280159879475832,
-0.004833291284739971,
-0.0019352799281477928,
-0.062452737241983414,
0.016183530911803246,
0.02826021797955036,
-0.006628079805523157,
0.0485256128013134,
-0.0076143452897667885,
0.032865338027477264,
0.04223191365599632,
0.037812620401382446,
-0.03033454529941082,
-0.03348587080836296,
-0.021930834278464317,
0.010061046108603477,
-0.03112138621509075,
0.005293567664921284,
-0.002253470476716757,
-0.04113708436489105,
-0.05353936180472374,
-0.0036942712031304836,
-0.0323343351483345,
0.02733357809484005,
-0.0363483764231205,
0.02024839259684086,
0.030034685507416725,
-0.01988900452852249,
-0.0631890818476677,
-0.09823639690876007,
-0.034462373703718185,
-0.016437778249382973,
0.01669265888631344,
0.03561054915189743,
-0.04099002107977867,
0.007835431024432182,
-0.045201681554317474,
-0.05118706822395325,
0.04249188303947449,
0.011895492672920227,
-0.05301426723599434,
0.05478145554661751,
0.020091013982892036,
-0.043670542538166046,
0.007581022102385759,
0.033556774258613586,
-0.045466456562280655,
0.016389969736337662,
0.025208745151758194,
0.014991276897490025,
0.03745466098189354,
0.030454715713858604,
-0.03462374210357666,
-0.03694453835487366,
-0.08411183208227158,
-0.050068449229002,
-0.03382445126771927,
-0.001304534263908863,
0.06996336579322815
] |
AdapterHub/bert-base-uncased-pf-wikihop | [
"bert",
"en",
"arxiv:2104.08247",
"adapter-transformers",
"question-answering",
"adapterhub:qa/wikihop"
] | question-answering | {
"architectures": null,
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | 2021-08-31T13:42:52Z | ---
tags:
- question-answering
- bert
- adapterhub:qa/wikihop
- adapter-transformers
language:
- en
---
# Adapter `AdapterHub/bert-base-uncased-pf-wikihop` for bert-base-uncased
An [adapter](https://adapterhub.ml) for the `bert-base-uncased` model that was trained on the [qa/wikihop](https://adapterhub.ml/explore/qa/wikihop/) dataset and includes a prediction head for question answering.
This adapter was created for usage with the **[adapter-transformers](https://github.com/Adapter-Hub/adapter-transformers)** library.
## Usage
First, install `adapter-transformers`:
```
pip install -U adapter-transformers
```
_Note: adapter-transformers is a fork of transformers that acts as a drop-in replacement with adapter support. [More](https://docs.adapterhub.ml/installation.html)_
Now, the adapter can be loaded and activated like this:
```python
from transformers import AutoModelWithHeads
model = AutoModelWithHeads.from_pretrained("bert-base-uncased")
adapter_name = model.load_adapter("AdapterHub/bert-base-uncased-pf-wikihop", source="hf")
model.active_adapters = adapter_name
```
## Architecture & Training
The training code for this adapter is available at https://github.com/adapter-hub/efficient-task-transfer.
In particular, training configurations for all tasks can be found [here](https://github.com/adapter-hub/efficient-task-transfer/tree/master/run_configs).
## Evaluation results
Refer to [the paper](https://arxiv.org/pdf/2104.08247) for more information on results.
## Citation
If you use this adapter, please cite our paper ["What to Pre-Train on? Efficient Intermediate Task Selection"](https://arxiv.org/pdf/2104.08247):
```bibtex
@inproceedings{poth-etal-2021-pre,
title = "{W}hat to Pre-Train on? {E}fficient Intermediate Task Selection",
author = {Poth, Clifton and
Pfeiffer, Jonas and
R{"u}ckl{'e}, Andreas and
Gurevych, Iryna},
booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2021",
address = "Online and Punta Cana, Dominican Republic",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.emnlp-main.827",
pages = "10585--10605",
}
``` | [
-0.0055169276893138885,
-0.029544973745942116,
-0.021199414506554604,
0.054959528148174286,
0.010224147699773312,
0.01899798773229122,
-0.015081333927810192,
-0.010945849120616913,
-0.04886632785201073,
0.042991556227207184,
0.016519546508789062,
0.018832512199878693,
-0.009421841241419315,
0.0403992161154747,
-0.03868995979428291,
-0.05630762502551079,
-0.0032735175918787718,
-0.008031889796257019,
-0.01977533847093582,
-0.031295180320739746,
-0.030616194009780884,
0.01819366216659546,
0.008996469900012016,
0.02480582520365715,
-0.0012968550436198711,
0.00532187893986702,
-0.021422380581498146,
0.020463047549128532,
0.018195034936070442,
-0.07559327781200409,
-0.014742478728294373,
-0.0036301251966506243,
-0.03868740051984787,
-0.015717731788754463,
-0.01531021948903799,
-0.021181512624025345,
0.015259996987879276,
-0.0029109001625329256,
0.02869359590113163,
0.05009464547038078,
-0.02671574056148529,
0.008058665320277214,
0.01048276200890541,
-0.03146994113922119,
0.056243762373924255,
0.0011700848117470741,
-0.017842883244156837,
0.002731192857027054,
0.037962231785058975,
-0.021269790828227997,
-0.0748930275440216,
-0.06616371124982834,
-0.044414035975933075,
0.015934044495224953,
-0.01801377721130848,
-0.017745083197951317,
-0.023576363921165466,
-0.014442097395658493,
0.06782227754592896,
-0.04144666716456413,
-0.026792097836732864,
0.00027516548288986087,
-0.030062329024076462,
-0.005046718753874302,
0.05084587633609772,
-0.027863377705216408,
0.0038676385302096605,
-0.04256522282958031,
0.03983895108103752,
-0.051121655851602554,
0.10614696145057678,
-0.039349135011434555,
0.023582134395837784,
-0.08962390571832657,
-0.005972938612103462,
0.026997454464435577,
0.03855590894818306,
0.0319405272603035,
-0.012447388842701912,
0.054827068001031876,
0.005249479319900274,
0.014237185940146446,
0.031761638820171356,
-0.030908841639757156,
0.016595900058746338,
0.029407158493995667,
-0.051459409296512604,
-0.013017561286687851,
-0.009326945059001446,
0.047547582536935806,
-0.02402593567967415,
-0.047445494681596756,
-0.036694496870040894,
-0.0011675902642309666,
-0.005777421873062849,
0.015636662021279335,
0.03725818544626236,
-0.016969000920653343,
0.020494651049375534,
0.0072065964341163635,
0.04770848900079727,
0.037103068083524704,
-0.0021939866710454226,
0.04461567476391792,
-0.0005240583559498191,
0.015525349415838718,
0.02427692338824272,
-0.012304107658565044,
-0.04245832934975624,
0.025041304528713226,
0.028564652428030968,
-0.041231006383895874,
-0.01574350707232952,
0.04647638648748398,
0.033574990928173065,
-0.01723925769329071,
0.048157546669244766,
-0.018802611157298088,
-0.02806049771606922,
-0.06895171850919724,
0.0448337197303772,
-0.006173735484480858,
0.0005390004953369498,
0.010950283147394657,
-0.029642779380083084,
0.0015154608990997076,
-0.04859577864408493,
-0.026136139407753944,
0.013638949953019619,
-0.004920715466141701,
0.0004866190138272941,
0.04657651111483574,
0.010955399833619595,
-0.06580992043018341,
0.01795910857617855,
0.010306610725820065,
-0.06306933611631393,
0.03771663457155228,
0.012264801189303398,
0.12239909917116165,
-0.07517267763614655,
-0.0352226160466671,
0.023891590535640717,
0.024804025888442993,
-0.019761357456445694,
0.004045406822115183,
0.021302636712789536,
-0.03147507458925247,
-0.014164076186716557,
0.004372688475996256,
0.07004128396511078,
-0.045557133853435516,
-0.0004894689773209393,
0.0372396856546402,
-0.006775460205972195,
0.029919086024165154,
-0.04369320347905159,
0.013629171065986156,
-0.002849047537893057,
-0.01159304566681385,
-0.03616957366466522,
0.02028220146894455,
-0.04670193791389465,
-0.016111962497234344,
-0.033267296850681305,
-0.03167986124753952,
0.008516269735991955,
0.09599398076534271,
0.015892701223492622,
-0.02750016376376152,
-0.008309013210237026,
0.003085921984165907,
0.036727339029312134,
0.017909174785017967,
-0.040785714983940125,
0.06201986223459244,
0.0646556094288826,
0.03416603058576584,
-0.04335104301571846,
0.041697222739458084,
-0.0021602478809654713,
-0.03136487677693367,
-0.027707120403647423,
-0.0012784558348357677,
-0.020801641047000885,
-0.0404890701174736,
0.03591876104474068,
0.03811470419168472,
-0.02601459249854088,
-0.017106985673308372,
-0.017876839265227318,
0.07693596929311752,
0.003558118361979723,
0.003978373482823372,
-0.007858602330088615,
0.002515168162062764,
-0.004585920367389917,
0.0384235754609108,
-0.029806995764374733,
-0.013159364461898804,
-0.023801201954483986,
-0.02863384410738945,
0.011767297983169556,
0.0015703337267041206,
0.012487687170505524,
0.03255072608590126,
0.002776148496195674,
0.09223463386297226,
-0.04268977791070938,
0.035965051501989365,
-0.05606314539909363,
-0.005623748060315847,
0.007072111591696739,
0.05785601586103439,
0.021562855690717697,
0.04012186825275421,
0.005288568791002035,
-0.013783861882984638,
0.023709146305918694,
0.07606148719787598,
0.04644118621945381,
0.015425192192196846,
-0.02167768031358719,
0.004150357563048601,
0.018774712458252907,
0.07253249734640121,
-0.04289242625236511,
-0.011610588058829308,
0.0042087179608643055,
0.05046159774065018,
-0.005047125276178122,
0.007143771275877953,
-0.02200435660779476,
0.004147741012275219,
-0.05193161964416504,
-0.06299207359552383,
0.05698370561003685,
0.0435236394405365,
0.012349957600235939,
0.042646922171115875,
0.03325330838561058,
0.0006646611727774143,
0.021306486800312996,
0.015904968604445457,
-0.0076594240963459015,
-0.05897076800465584,
-0.00728328013792634,
0.03792952746152878,
0.06616546213626862,
-0.062166694551706314,
0.02571624144911766,
-0.01183461956679821,
0.03655965253710747,
0.061798349022865295,
-0.05817734822630882,
0.047137703746557236,
0.038016222417354584,
0.021976357325911522,
0.0025812701787799597,
0.0336771085858345,
0.01275191642343998,
0.022890735417604446,
0.06743986159563065,
0.020910266786813736,
0.061907216906547546,
-0.0036900416016578674,
0.027799803763628006,
0.06594439595937729,
0.022775625810027122,
0.0202411450445652,
0.02552647329866886,
0.06068931147456169,
0.015292097814381123,
0.00647388631477952,
0.03472758084535599,
-0.06260272115468979,
0.031156042590737343,
-0.03578938543796539,
0.014369353652000427,
0.0023566149175167084,
-0.012559862807393074,
0.04849610477685928,
0.033252257853746414,
0.00045269806287251413,
0.020166883245110512,
0.011028971523046494,
-0.027262171730399132,
0.047750622034072876,
-0.03366692364215851,
-0.015374050475656986,
-0.01095929928123951,
-0.0027717293705791235,
-0.007097489200532436,
-0.07175707072019577,
-0.05784789100289345,
-0.00869836751371622,
-0.030223160982131958,
0.021950336173176765,
-0.06626196950674057,
0.012489697895944118,
-0.10130845010280609,
-0.035466715693473816,
0.03281969204545021,
0.022043418139219284,
-0.017762692645192146,
-0.039986271411180496,
0.014129617251455784,
-0.05109992250800133,
-0.028769640251994133,
-0.02909247763454914,
-0.030871419236063957,
-0.04584088549017906,
-0.05845588073134422,
0.03930926322937012,
0.03319805487990379,
0.021528327837586403,
-0.00827360711991787,
-0.009034156799316406,
-0.04102681204676628,
-0.03130634129047394,
0.0753641128540039,
0.028245050460100174,
-0.016693782061338425,
-0.0352545902132988,
0.017368974164128304,
-0.0142430504783988,
0.038427118211984634,
-0.0007699472480453551,
-0.0295509435236454,
0.09905383735895157,
0.05588102713227272,
0.009181802161037922,
-0.008463372476398945,
-0.0489005520939827,
-0.05224829912185669,
-0.03897847607731819,
-0.03552824631333351,
-0.017172642052173615,
-0.0036794485058635473,
-0.03651623800396919,
-0.06027056649327278,
-0.010548281483352184,
-0.05154602974653244,
-0.009396725334227085,
-0.015237760730087757,
-0.012530941516160965,
0.03898216038942337,
0.05323640629649162,
0.03699559345841408,
0.03860265389084816,
-0.046728260815143585,
-0.03100627101957798,
0.0586494542658329,
-0.006554408464580774,
0.015343130566179752,
-0.07059772312641144,
-0.02299525961279869,
0.05558611825108528,
0.013278810307383537,
0.009561974555253983,
-0.009562105871737003,
0.054209571331739426,
-0.009522134438157082,
-0.031275514513254166,
0.03080011159181595,
-0.016625268384814262,
-0.0014439501101151109,
-0.017131073400378227,
0.0003459298750385642,
-0.011851203627884388,
-0.048753365874290466,
-0.044064000248909,
-0.01050033699721098,
0.00891969259828329,
-0.07179685682058334,
-0.04864922910928726,
-0.015117153525352478,
0.03013710118830204,
-0.005669794511049986,
0.020806288346648216,
-0.05109422653913498,
0.022854428738355637,
-0.0277926754206419,
-0.030042273923754692,
0.039548128843307495,
-0.00681473221629858,
0.0008292508427985013,
0.024128811433911324,
0.02652166783809662,
-0.012869562953710556,
0.0372302383184433,
0.026455877348780632,
0.0558369904756546,
0.007232838775962591,
-0.07134272158145905,
0.011039597913622856,
-0.013782527297735214,
0.032143961638212204,
-0.0033485195599496365,
-0.023020463064312935,
-0.022316036745905876,
-0.08468054234981537,
-0.009349195286631584,
0.02020045556128025,
-0.03804222494363785,
-0.017116587609052658,
0.03647686541080475,
-0.03231925144791603,
-0.012540346011519432,
-0.0003132637939415872,
0.028801100328564644,
0.04732314497232437,
-0.03797799348831177,
0.055483557283878326,
0.012380425818264484,
0.04482068866491318,
-0.03154992684721947,
0.029605478048324585,
-0.032193444669246674,
-0.006783133372664452,
0.018945135176181793,
0.04259244352579117,
0.03602377325296402,
0.04507026821374893,
0.0672244057059288,
0.05002710968255997,
-0.06277259439229965,
0.03490877151489258,
0.045756518840789795,
-0.026716722175478935,
-0.03296073526144028,
-0.01789906993508339,
-0.015920206904411316,
-0.011607225053012371,
-0.027221960946917534,
-0.029649164527654648,
0.05552111193537712,
0.025926297530531883,
0.000695102964527905,
0.002485406817868352,
-0.014748376794159412,
-0.010599575936794281,
-0.050370726734399796,
-0.03176703304052353,
0.007212894503027201,
-0.01697194203734398,
-0.00755891390144825,
0.04086637869477272,
0.04690520092844963,
0.00471987621858716,
0.03048381395637989,
0.04857579991221428,
-0.002017410472035408,
-0.027902428060770035,
0.0357026606798172,
0.03905237093567848,
-0.02947680838406086,
-0.07174788415431976,
-0.0677943304181099,
0.028333796188235283,
0.02886812947690487,
-0.03857788071036339,
-0.08002934604883194,
0.038241930305957794,
0.04199109971523285,
-0.05122051388025284,
0.058718595653772354,
0.0012556684669107199,
0.03830857574939728,
0.05710112676024437,
-0.04173671826720238,
0.047905512154102325,
-0.038878731429576874,
0.021132206544280052,
0.0039246343076229095,
0.05221059173345566,
-0.025025641545653343,
-0.03651493787765503,
-0.06230465695261955,
0.045053284615278244,
0.045117590576410294,
0.04655018076300621,
0.04187756031751633,
-0.005907976999878883,
-0.05863547325134277,
-0.005986552685499191,
0.04063801094889641,
-0.02089211717247963,
0.007935479283332825,
0.05568086728453636,
0.031009946018457413,
-0.08035431802272797,
-0.024680428206920624,
-0.0012848112965002656,
-0.018525220453739166,
0.0051687732338905334,
-0.01998111419379711,
-0.029613634571433067,
-0.04705880954861641,
0.031218290328979492,
-0.04012477770447731,
-0.017376013100147247,
-0.09601616114377975,
0.03962946683168411,
0.017126597464084625,
0.0004853581194765866,
0.06947117298841476,
0.05664534866809845,
0.02328290417790413,
0.06960926949977875,
-0.029328478500247,
-0.013733582571148872,
-0.059504758566617966,
0.04418762028217316,
-0.05219835415482521,
-0.006039802450686693,
-0.0026214628014713526,
-0.05102156102657318,
0.022467846050858498,
-0.021304931491613388,
-0.03966909274458885,
-0.026815352961421013,
-0.017166392877697945,
0.021976588293910027,
0.01691415347158909,
-0.0013307625195011497,
-0.007184483576565981,
0.031871337443590164,
-0.046207793056964874,
-0.00346149574033916,
-0.0310162752866745,
-0.029678888618946075,
-0.05948011204600334,
-0.04738694056868553,
0.024114077910780907,
0.010399781167507172,
0.029011471197009087,
0.024679388850927353,
0.016946006566286087,
0.022781556472182274,
0.02062048949301243,
-0.028578344732522964,
-0.0035923048853874207,
-0.003971853293478489,
-0.044211264699697495,
-0.010815897025167942,
0.021934356540441513,
-0.002678290707990527,
0.017718637362122536,
-0.010144425556063652,
0.009452232159674168,
0.02988298051059246,
-0.024597786366939545,
-0.025092395022511482,
0.012889193370938301,
0.021664977073669434,
-0.0644451454281807,
-0.009869751520454884,
-0.021640371531248093,
-0.060445915907621384,
0.018190816044807434,
-0.018859807401895523,
-0.05101624131202698,
-0.00752685870975256,
0.008191101253032684,
0.02503054402768612,
-0.008132868446409702,
-0.019747955724596977,
0.036364227533340454,
-0.0159139446914196,
0.031826186925172806,
-0.05597752705216408,
0.03108094446361065,
-0.0077353669330477715,
0.0000037069439713377506,
-0.01136770099401474,
-0.004202377051115036,
-0.037517938762903214,
0.062414560467004776,
-0.02956014685332775,
-0.026970690116286278,
-0.042332857847213745,
-0.004842829890549183,
-0.028812255710363388,
0.035730138421058655,
-0.0023534446954727173,
0.015219359658658504,
-0.008568807505071163,
0.0294791366904974,
-0.06670112162828445,
-0.006194231566041708,
-0.026836976408958435,
-0.013521178625524044,
-0.022123774513602257,
0.013344001956284046,
-0.024254057556390762,
-0.02106587216258049,
0.024670829996466637,
0.010960745625197887,
0.015110712498426437,
0.020312463864684105,
-0.006437176838517189,
0.008055046200752258,
0.03628652170300484,
-0.04329745098948479,
-0.015332449227571487,
-0.02716384083032608,
-0.03218445926904678,
0.002397804521024227,
0.059707220643758774,
0.04819341003894806,
-0.06488460302352905,
-0.04383227974176407,
0.066787950694561,
0.0463581345975399,
0.02415698580443859,
0.015701739117503166,
0.016189347952604294,
0.031967565417289734,
0.04879767447710037,
-0.03508900851011276,
-0.005667497403919697,
-0.023475266993045807,
-0.04962499439716339,
0.01220867782831192,
-0.035971518605947495,
0.025200925767421722,
-0.02422049082815647,
-0.025329479947686195,
-0.02526985853910446,
0.06738294661045074,
0.01360988151282072,
0.02587779052555561,
0.011940743774175644,
-0.01512868981808424,
0.0315689817070961,
0.011554253287613392,
-0.041039254516363144,
-0.003922737203538418,
-0.0010782296303659678,
-0.04699306935071945,
0.07313056290149689,
-0.007930693216621876,
0.001974473474547267,
0.04309118911623955,
0.0210375115275383,
-0.017287131398916245,
0.05521969869732857,
-0.040965691208839417,
0.018639836460351944,
0.06111164763569832,
-0.051626041531562805,
-0.018669575452804565,
-0.002805809723213315,
0.053251758217811584,
-0.0662865936756134,
0.053192127496004105,
0.008201966062188148,
0.031836699694395065,
0.011599794030189514,
-0.026810089126229286,
-0.07609467208385468,
0.02834910713136196,
-0.03519156575202942,
0.0777258425951004,
-0.01665477268397808,
-0.048012930899858475,
0.07204166054725647,
0.04489211365580559,
-0.0765572041273117,
0.01924680359661579,
0.022298306226730347,
0.05311856046319008,
0.046258993446826935,
0.03364250063896179,
-0.06043068692088127,
0.0032665685284882784,
-0.03913920000195503,
0.04627848416566849,
-0.013782883062958717,
-0.02428816445171833,
0.004864885471761227,
-0.03488955274224281,
0.007409469690173864,
0.028139475733041763,
0.011493613012135029,
0.002344638342037797,
0.013584180735051632,
-0.09434774518013,
-0.06826543062925339,
-0.0062836105935275555,
0.010740852914750576,
-0.0423738956451416,
0.032103996723890305,
-0.03292464464902878,
0.0341840535402298,
0.0366729237139225,
-0.009622400626540184,
-0.04262291640043259,
-0.016697900369763374,
0.0200155321508646,
-0.05230458080768585,
-0.05034639686346054,
0.03357962518930435,
-0.007531056646257639,
-0.03677137941122055,
0.03346250206232071,
-0.01155825238674879,
0.024078331887722015,
0.023547209799289703,
0.007132536265999079,
0.025944730266928673,
-0.044710803776979446,
0.007016693241894245,
0.024338027462363243,
0.016311686486005783,
0.03233666718006134,
-0.04574064165353775,
0.04022504389286041,
0.02923125959932804,
0.050253868103027344,
0.003965981770306826,
-0.041074685752391815,
0.0023679875303059816,
0.013964397832751274,
-0.027750523760914803,
0.011438309215009212,
0.01904439553618431,
-0.06067726016044617,
-0.023759663105010986,
-0.024935029447078705,
-0.029122594743967056,
0.03329906240105629,
-0.024088233709335327,
0.004142912570387125,
0.045291729271411896,
-0.014838872477412224,
-0.053396835923194885,
-0.0903935432434082,
0.001560086733661592,
-0.02754400111734867,
0.027169622480869293,
0.025470146909356117,
-0.04021024331450462,
-0.009366546757519245,
-0.05883060023188591,
-0.06316910684108734,
0.033096570521593094,
0.030536813661456108,
-0.05653016269207001,
0.06163192167878151,
0.028328170999884605,
-0.03277360275387764,
0.03871792182326317,
0.031060244888067245,
-0.029205171391367912,
0.005814362782984972,
0.002532521029934287,
0.032871175557374954,
0.04852001368999481,
0.009915708564221859,
-0.01163594052195549,
-0.020171374082565308,
-0.035348664969205856,
-0.021410685032606125,
-0.04489748179912567,
-0.016615264117717743,
0.08063893020153046
] |
AdapterHub/narrativeqa | [
"bart",
"dataset:narrativeqa",
"adapter-transformers",
"adapterhub:qa/narrativeqa"
] | null | {
"architectures": null,
"model_type": "bart",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 23 | 2021-12-14T13:44:06Z | ---
tags:
- adapterhub:qa/narrativeqa
- adapter-transformers
- bart
datasets:
- narrativeqa
---
# Adapter `hSterz/narrativeqa` for facebook/bart-base
An [adapter](https://adapterhub.ml) for the `facebook/bart-base` model that was trained on the [qa/narrativeqa](https://adapterhub.ml/explore/qa/narrativeqa/) dataset.
This adapter was created for usage with the **[adapter-transformers](https://github.com/Adapter-Hub/adapter-transformers)** library.
## Usage
First, install `adapter-transformers`:
```
pip install -U adapter-transformers
```
_Note: adapter-transformers is a fork of transformers that acts as a drop-in replacement with adapter support. [More](https://docs.adapterhub.ml/installation.html)_
Now, the adapter can be loaded and activated like this:
```python
from transformers import AutoModelWithHeads
model = AutoModelWithHeads.from_pretrained("facebook/bart-base")
adapter_name = model.load_adapter("hSterz/narrativeqa", source="hf", set_active=True)
```
## Architecture & Training
<!-- Add some description here -->
## Evaluation results
<!-- Add some description here -->
## Citation
<!-- Add some description here --> | [
-0.0472346693277359,
-0.03241787850856781,
-0.010705140419304371,
0.05226442217826843,
0.016803208738565445,
0.034696225076913834,
-0.030486775562167168,
-0.020149867981672287,
-0.04581405594944954,
0.06214888393878937,
0.016938529908657074,
-0.008296453393995762,
0.002001091605052352,
0.037821415811777115,
-0.019132308661937714,
-0.05131448805332184,
-0.009512198157608509,
-0.009733011946082115,
-0.029270721599459648,
-0.02335982583463192,
-0.01573111116886139,
0.00032412103610113263,
0.0022767451591789722,
0.043010812252759933,
-0.0011909374734386802,
0.0032970174215734005,
-0.002174876630306244,
0.028251921758055687,
0.025493742898106575,
-0.06379064917564392,
0.008085861802101135,
-0.01062186248600483,
-0.03863115608692169,
-0.015038693323731422,
-0.019887540489435196,
-0.0054904744029045105,
0.00965831521898508,
0.01181087177246809,
0.025970984250307083,
0.04494696855545044,
-0.00929180160164833,
0.01610656827688217,
-0.025211479514837265,
-0.02856021374464035,
0.07155656814575195,
-0.007429963909089565,
-0.041550230234861374,
-0.015482516027987003,
0.058401625603437424,
-0.02655455470085144,
-0.06415927410125732,
-0.07864267379045486,
-0.04371451959013939,
0.011202480643987656,
-0.0467723086476326,
-0.031045988202095032,
-0.023303743451833725,
-0.02048097364604473,
0.06718513369560242,
-0.05261238291859627,
-0.014275857247412205,
0.010184342041611671,
-0.040738899260759354,
0.011120165698230267,
0.02291908860206604,
-0.03840334713459015,
0.0034361924044787884,
-0.03850219398736954,
0.027596348896622658,
-0.03290838748216629,
0.08010262995958328,
-0.04871426895260811,
0.019328899681568146,
-0.07576305419206619,
0.007076923735439777,
0.008050705306231976,
0.04143303260207176,
0.04616964980959892,
-0.020855560898780823,
0.06568416953086853,
0.014171655289828777,
0.009475520811975002,
0.02687668986618519,
-0.009110167622566223,
0.0032996744848787785,
0.05603180080652237,
-0.06990067660808563,
-0.00842309556901455,
0.002966573229059577,
0.06122477725148201,
-0.049372199922800064,
-0.04814191162586212,
-0.02000429667532444,
-0.01598280854523182,
-0.007551613729447126,
0.026465140283107758,
0.05788580700755119,
-0.005941210780292749,
0.021445589140057564,
0.026525624096393585,
0.03270849213004112,
0.015925714746117592,
0.0017566074384376407,
0.06984638422727585,
-0.0035863106604665518,
-0.0025252690538764,
-0.0017935000360012054,
-0.0036919282283633947,
-0.042125627398490906,
0.010100660845637321,
0.03503483533859253,
-0.03968190774321556,
-0.04051612317562103,
0.04442490637302399,
0.0252638328820467,
0.0030485433526337147,
0.049564000219106674,
-0.02328912541270256,
-0.04638530686497688,
-0.05988220125436783,
0.06428457051515579,
-0.012145714834332466,
-0.01926647499203682,
-0.030583299696445465,
-0.03730277344584465,
0.0050435555167496204,
-0.05482305958867073,
-0.032623521983623505,
-0.017555028200149536,
0.028483303263783455,
0.00890500470995903,
0.02806154638528824,
0.014896194450557232,
-0.05022904649376869,
0.013971984386444092,
0.01906760036945343,
-0.06077032536268234,
0.06827712804079056,
0.01013756450265646,
0.11804171651601791,
-0.08279233425855637,
-0.03282180428504944,
0.021244147792458534,
0.013627419248223305,
-0.041090186685323715,
-0.0015435692621394992,
0.00024093547835946083,
-0.029097378253936768,
-0.02890244871377945,
-0.008647034876048565,
0.046832818537950516,
-0.05411621555685997,
-0.016994690522551537,
0.03515562787652016,
-0.0005625855410471559,
0.042768120765686035,
-0.04148746654391289,
-0.001357606495730579,
-0.005720444023609161,
-0.023988675326108932,
-0.025199035182595253,
0.03598828241229057,
-0.0220757145434618,
-0.02088196389377117,
-0.0069410959258675575,
-0.018524814397096634,
-0.00912074837833643,
0.09302664548158646,
0.007736630272120237,
-0.007384156808257103,
-0.03449303284287453,
0.023605449125170708,
0.01891561597585678,
0.006427144631743431,
-0.01006051991134882,
0.026282599195837975,
0.07001928240060806,
0.036584749817848206,
-0.04286985099315643,
0.039790183305740356,
0.02980973571538925,
-0.01464658323675394,
-0.017874684184789658,
-0.0012826535385102034,
-0.009830008260905743,
-0.012789592146873474,
0.031173786148428917,
0.04605897143483162,
-0.01131612528115511,
-0.03306497260928154,
0.0018097241409122944,
0.05701468512415886,
0.005618527065962553,
0.028189975768327713,
-0.015440424904227257,
-0.013276326470077038,
-0.00710834376513958,
0.05276989936828613,
-0.02752462960779667,
-0.00011887565051438287,
-0.017124919220805168,
-0.02536952681839466,
0.019055478274822235,
0.005034904461354017,
0.02106008119881153,
0.026849092915654182,
0.0004075399483554065,
0.09788636118173599,
-0.03034372255206108,
0.031539637595415115,
-0.049733322113752365,
-0.025453338399529457,
0.0023979356046766043,
0.040844183415174484,
0.03233169764280319,
0.041829779744148254,
-0.01343242172151804,
-0.04426832124590874,
0.009134242311120033,
0.060797370970249176,
0.03852818161249161,
0.014318497851490974,
-0.0004580978711601347,
-0.006594192702323198,
0.006064683198928833,
0.048913002014160156,
-0.059651732444763184,
-0.025361884385347366,
-0.00041584702557884157,
0.04746484383940697,
-0.011958330869674683,
0.010468879714608192,
-0.03462577611207962,
0.02388029731810093,
-0.06783494353294373,
-0.05982901528477669,
0.056529104709625244,
0.05325922742486,
-0.003350999439135194,
0.03261108323931694,
0.020883671939373016,
-0.002653910545632243,
0.021530400961637497,
0.019573403522372246,
-0.006499882321804762,
-0.049701668322086334,
-0.025960275903344154,
0.02533389814198017,
0.04831318184733391,
-0.048284389078617096,
0.020348524674773216,
-0.009689303115010262,
0.027468908578157425,
0.05330347642302513,
-0.04348835349082947,
0.03733988106250763,
0.05370740592479706,
0.035267312079668045,
-0.014643310569226742,
0.03808242827653885,
-0.010473989881575108,
0.017438648268580437,
0.06026666983962059,
0.0013421893818303943,
0.04982553794980049,
-0.011495214886963367,
0.026537735015153885,
0.0823621153831482,
0.02751004695892334,
0.018664667382836342,
0.02828444167971611,
0.07928939908742905,
0.00848575122654438,
-0.002350378781557083,
0.04103557765483856,
-0.04782875254750252,
0.03783338516950607,
-0.0489196740090847,
0.011879046447575092,
-0.01539075281471014,
0.0026089362800121307,
0.04004752263426781,
0.011991988867521286,
-0.014880780130624771,
0.004398811142891645,
0.004954142030328512,
-0.0003890897205565125,
0.059728335589170456,
-0.03117150068283081,
-0.014401048421859741,
0.020078357309103012,
0.0063419402576982975,
-0.01658390834927559,
-0.07717718183994293,
-0.0646609291434288,
-0.0015977548900991678,
-0.02822301909327507,
0.0024625668302178383,
-0.08104227483272552,
-0.008483387529850006,
-0.09312506765127182,
-0.03698687255382538,
0.038669828325510025,
0.013194335624575615,
0.00458630220964551,
-0.057858385145664215,
0.014859802089631557,
-0.053750716149806976,
-0.04068703576922417,
-0.056336648762226105,
-0.049894530326128006,
-0.04316888377070427,
-0.05151309072971344,
0.03817480057477951,
0.025613265112042427,
0.018135299906134605,
-0.0017724100034683943,
-0.009656467474997044,
-0.029662327840924263,
-0.029496969655156136,
0.0643867701292038,
0.03467978164553642,
-0.01810569316148758,
-0.024448012933135033,
0.01694367080926895,
-0.020774666219949722,
0.023549864068627357,
0.015271442010998726,
-0.03229687362909317,
0.0983644500374794,
0.04530877247452736,
0.024661535397171974,
-0.002799713984131813,
-0.02603757567703724,
-0.04692314937710762,
-0.03997286036610603,
-0.032812830060720444,
-0.026752134785056114,
0.013040689751505852,
-0.054201219230890274,
-0.05477326735854149,
-0.010501513257622719,
-0.028395138680934906,
-0.026911400258541107,
-0.024750005453824997,
0.02111089788377285,
0.04670792073011398,
0.056371983140707016,
0.04107382521033287,
0.03880753740668297,
-0.03786173462867737,
-0.036851439625024796,
0.07782839238643646,
0.016816720366477966,
0.0041223131120204926,
-0.07073202729225159,
-0.0253890547901392,
0.04881576821208,
0.021105974912643433,
0.008623355068266392,
-0.009857979603111744,
0.08551748842000961,
-0.008653893135488033,
-0.011038260534405708,
0.02213337831199169,
0.01086411252617836,
-0.011398456059396267,
-0.03220205754041672,
-0.02057751640677452,
-0.013211370445787907,
-0.03927983343601227,
-0.028621235862374306,
-0.010395141318440437,
0.03283661603927612,
-0.08134833723306656,
-0.0811440646648407,
-0.024825943633913994,
0.03971752151846886,
0.030540307983756065,
0.008677775971591473,
-0.057511795312166214,
0.005066495854407549,
-0.03854798898100853,
-0.02487047202885151,
0.05459345132112503,
0.016161568462848663,
0.01849401369690895,
0.02649599127471447,
0.043900266289711,
-0.012681336142122746,
0.031129367649555206,
0.04479531943798065,
0.043887607753276825,
0.014004913158714771,
-0.062344253063201904,
0.007080587558448315,
-0.010067700408399105,
0.03926185518503189,
0.008213391527533531,
-0.020635072141885757,
-0.020229419693350792,
-0.08390314131975174,
-0.008209419436752796,
-0.0001316509151365608,
-0.027283962815999985,
-0.000772609724663198,
0.040980469435453415,
-0.03362727537751198,
-0.025687795132398605,
-0.017765019088983536,
0.029916830360889435,
0.048087138682603836,
-0.037973802536726,
0.046646326780319214,
-0.013871056027710438,
0.031090782955288887,
-0.03354166820645332,
0.029146656394004822,
-0.022572992369532585,
-0.005621647462248802,
0.012521480210125446,
0.03951567783951759,
0.039860695600509644,
0.058227650821208954,
0.05921338498592377,
0.01897544600069523,
-0.04284331202507019,
0.038365546613931656,
0.04740545526146889,
-0.035226594656705856,
-0.0482192225754261,
0.0018512894166633487,
-0.027963319793343544,
-0.015307288616895676,
-0.020727476105093956,
-0.016242729499936104,
0.025469359010457993,
0.028316916897892952,
0.015505731105804443,
-0.008231421001255512,
-0.010701330378651619,
-0.011394933797419071,
-0.02151084505021572,
-0.03720497712492943,
-0.006771706510335207,
0.025370517745614052,
-0.010256455279886723,
0.02683592587709427,
0.035607218742370605,
0.030837181955575943,
0.041417088359594345,
0.04139229655265808,
-0.027807654812932014,
-0.026063857600092888,
0.042260732501745224,
0.01856333389878273,
-0.034727729856967926,
-0.07985208183526993,
-0.04884539172053337,
0.04107420891523361,
0.02401810511946678,
-0.03274412453174591,
-0.07101321220397949,
0.006306123454123735,
0.03795960918068886,
-0.049057602882385254,
0.06558515131473541,
0.004528203513473272,
0.038551025092601776,
0.04786209762096405,
-0.045664314180612564,
0.03688080981373787,
-0.033750563859939575,
-0.0008406962151639163,
-0.006764277815818787,
0.04924614354968071,
-0.02213183045387268,
-0.039061613380908966,
-0.04157686233520508,
0.01568743586540222,
0.030551275238394737,
0.04915817454457283,
0.048373833298683167,
-0.019432973116636276,
-0.07753761112689972,
-0.010348480194807053,
0.04650634899735451,
-0.017935946583747864,
0.0097803995013237,
0.026236653327941895,
0.031149892136454582,
-0.06737637519836426,
-0.025030096992850304,
-0.0004425227816682309,
-0.03011850081384182,
0.010479940101504326,
-0.005085930228233337,
-0.03344050049781799,
-0.03685886412858963,
0.033889275044202805,
-0.039374615997076035,
-0.015496511943638325,
-0.08554311841726303,
0.04624461382627487,
0.005058562848716974,
0.018412873148918152,
0.07526639103889465,
0.024016551673412323,
0.030629443004727364,
0.040734753012657166,
0.0024825797881931067,
0.0026426860131323338,
-0.04906747117638588,
0.043094318360090256,
-0.04525841027498245,
-0.017360417172312737,
-0.008891538716852665,
-0.052461426705121994,
-0.00820146407932043,
-0.01705612987279892,
-0.047200899571180344,
-0.028425615280866623,
-0.007582555990666151,
0.0065231299959123135,
0.0076955705881118774,
0.006934897508472204,
-0.0013098808703944087,
0.020555857568979263,
-0.04595857858657837,
-0.017060905694961548,
-0.024778736755251884,
-0.03201720863580704,
-0.07526988536119461,
-0.04824906587600708,
0.01761355996131897,
0.009072786197066307,
0.02194770611822605,
0.01704091578722,
0.03521491587162018,
0.022243591025471687,
0.0006857537664473057,
-0.045739322900772095,
-0.00012821175914723426,
0.003604864701628685,
-0.0407111756503582,
-0.037475910037755966,
0.02111981436610222,
0.009855697862803936,
0.017600852996110916,
-0.015862371772527695,
0.019545627757906914,
0.04019620642066002,
-0.0361512154340744,
-0.023269547149538994,
0.019301719963550568,
0.011597903445363045,
-0.05417224392294884,
-0.007493638899177313,
-0.013315370306372643,
-0.0483609102666378,
0.03001508302986622,
-0.0027350126765668392,
-0.019628355279564857,
0.0033296120818704367,
0.021315358579158783,
0.02201109565794468,
-0.03169044107198715,
-0.018392397090792656,
0.015730923041701317,
-0.03599224612116814,
0.032985154539346695,
-0.0674717128276825,
0.03318367153406143,
-0.015664799138903618,
0.005186406895518303,
-0.0037368887569755316,
0.01155044324696064,
-0.04884704202413559,
0.06007644534111023,
-0.01913481019437313,
-0.03537020459771156,
-0.035798802971839905,
0.015571854077279568,
-0.021474875509738922,
0.04276181757450104,
0.005116736050695181,
0.012102439068257809,
-0.013460365124046803,
0.050924625247716904,
-0.037316206842660904,
0.007500770967453718,
-0.02801697887480259,
-0.005454545840620995,
-0.04359666630625725,
-0.01842513494193554,
-0.023139934986829758,
-0.03565770387649536,
0.021403096616268158,
0.01895158365368843,
0.04254768043756485,
0.03010532073676586,
-0.017006229609251022,
0.027918869629502296,
0.022173093631863594,
-0.05840005725622177,
-0.028227349743247032,
0.011596093885600567,
0.0027493485249578953,
0.0077230846509337425,
0.07482532411813736,
0.029030265286564827,
-0.06268469989299774,
-0.04964956268668175,
0.06291384994983673,
0.023494385182857513,
-0.001264469581656158,
-0.005582532845437527,
0.029522119089961052,
0.04094112291932106,
0.04109354689717293,
-0.037860315293073654,
-0.013877127319574356,
-0.007267144974321127,
-0.04181059077382088,
0.016066934913396835,
-0.02609451487660408,
0.021887965500354767,
-0.015547380782663822,
-0.05443594604730606,
-0.020423773676156998,
0.0812390148639679,
0.037227001041173935,
0.023659534752368927,
-0.020097743719816208,
-0.01937178522348404,
0.04441855102777481,
-0.009480235166847706,
-0.04197897017002106,
-0.00038324884371832013,
0.0236093457788229,
-0.045728281140327454,
0.07349435240030289,
0.030616963282227516,
0.008953908458352089,
0.04027637839317322,
0.039190083742141724,
-0.020261593163013458,
0.05751434341073036,
-0.01314115896821022,
0.033770669251680374,
0.05171184986829758,
-0.0438348650932312,
-0.02177530527114868,
-0.009925085119903088,
0.05628964677453041,
-0.08363620191812515,
0.05691608786582947,
0.0545419417321682,
0.02280973084270954,
0.006002164911478758,
-0.04968526214361191,
-0.07998238503932953,
0.013835717923939228,
-0.0631416067481041,
0.0675959512591362,
-0.012082383036613464,
-0.07839958369731903,
0.08010488003492355,
0.0430140495300293,
-0.07131841033697128,
0.04510713368654251,
0.0376165471971035,
0.04000097140669823,
0.012818894349038601,
0.03167061135172844,
-0.04323618486523628,
0.02428685501217842,
-0.03447524458169937,
0.022904599085450172,
-0.03244961425662041,
-0.0019642820116132498,
0.016384385526180267,
-0.042079489678144455,
-0.009148294106125832,
0.019923854619264603,
0.012011011131107807,
-0.003362382063642144,
0.027596132829785347,
-0.0409630611538887,
-0.03896573185920715,
-0.008915279060602188,
0.00801733136177063,
-0.023102426901459694,
0.0191488079726696,
-0.02373056672513485,
0.011209783144295216,
0.03228431195020676,
0.004373172298073769,
-0.04978913813829422,
0.002841892885044217,
0.030731799080967903,
-0.0698249414563179,
-0.05154222249984741,
0.016405103728175163,
-0.019758695736527443,
-0.02337140031158924,
0.019425401464104652,
-0.002369843889027834,
0.04550494626164436,
0.02882285602390766,
0.004095763899385929,
0.007285266648977995,
-0.06819765269756317,
0.002191358944401145,
0.01785632222890854,
-0.006288893520832062,
0.020226959139108658,
-0.01271808985620737,
0.031735554337501526,
0.03639774024486542,
0.021900419145822525,
-0.013670966029167175,
-0.032136015594005585,
-0.021134503185749054,
0.005893295165151358,
-0.03794663026928902,
-0.009743238799273968,
0.039169520139694214,
-0.036626413464546204,
-0.03740043193101883,
-0.013210879638791084,
-0.024430343881249428,
0.04283478856086731,
-0.026225505396723747,
0.010775962844491005,
0.046561162918806076,
-0.0266549214720726,
-0.0724400132894516,
-0.09545007348060608,
-0.01195591315627098,
-0.034081894904375076,
-0.006750166416168213,
0.04287082329392433,
-0.038419149816036224,
0.01431252807378769,
-0.04009445756673813,
-0.06987910717725754,
0.03262127935886383,
0.0432896725833416,
-0.0402853824198246,
0.05642928183078766,
0.027727553620934486,
-0.04706539586186409,
0.01861664466559887,
0.025028850883245468,
-0.02914751134812832,
-0.013810425065457821,
0.0018927899654954672,
0.03149254620075226,
0.04181825742125511,
0.014978043735027313,
-0.01711980812251568,
-0.023198576644062996,
-0.051463205367326736,
-0.044394880533218384,
-0.03349684551358223,
-0.019740231335163116,
0.07590330392122269
] |
Aftabhussain/Tomato_Leaf_Classifier | [
"pytorch",
"tensorboard",
"vit",
"image-classification",
"transformers",
"huggingpics",
"model-index",
"autotrain_compatible"
] | image-classification | {
"architectures": [
"ViTForImageClassification"
],
"model_type": "vit",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 50 | null | ---
tags:
- image-classification
- pytorch
- huggingpics
metrics:
- accuracy
model-index:
- name: Tomato_Leaf_Classifier
results:
- task:
name: Image Classification
type: image-classification
metrics:
- name: Accuracy
type: accuracy
value: 1.0
---
# Tomato_Leaf_Classifier
Autogenerated by HuggingPics🤗🖼️
Create your own image classifier for **anything** by running [the demo on Google Colab](https://colab.research.google.com/github/nateraw/huggingpics/blob/main/HuggingPics.ipynb).
Report any issues with the demo at the [github repo](https://github.com/nateraw/huggingpics).
## Example Images
#### Bacterial_spot

#### Healthy
 | [
0.004152571316808462,
-0.0004835593281313777,
0.02311917394399643,
0.022892436012625694,
0.022400328889489174,
-0.027861513197422028,
-0.029716407880187035,
-0.010496901348233223,
-0.0023207671474665403,
0.04079240933060646,
0.013874698430299759,
0.01872020587325096,
0.009124122560024261,
0.052544135600328445,
0.002387855900451541,
-0.023344215005636215,
-0.03965382277965546,
-0.011422163806855679,
-0.042403366416692734,
0.03145928308367729,
0.02420658804476261,
0.015152622945606709,
-0.010870047844946384,
0.02250264398753643,
0.028897369280457497,
0.021530598402023315,
0.0003057846915908158,
0.026652753353118896,
0.03717448189854622,
-0.07307422906160355,
0.027179082855582237,
-0.026364920660853386,
-0.04983777552843094,
0.007702674251049757,
-0.0330384187400341,
0.0009219531784765422,
0.027619490399956703,
-0.0009679339709691703,
0.003413644153624773,
0.04872462525963783,
0.00983358733355999,
0.027539609000086784,
-0.016253408044576645,
-0.03802431747317314,
0.04492228850722313,
-0.01537360716611147,
-0.05355808883905411,
-0.021129388362169266,
0.025934142991900444,
-0.02038872241973877,
-0.05818028375506401,
-0.07638081908226013,
-0.05290495604276657,
0.00410334812477231,
-0.02015349455177784,
-0.03927917778491974,
-0.0021230748388916254,
0.003634480992332101,
0.05333518236875534,
-0.04223804548382759,
-0.04094957187771797,
-0.01935897395014763,
-0.06719275563955307,
0.028185104951262474,
0.020076779648661613,
-0.038185544312000275,
0.005462827626615763,
-0.014264153316617012,
0.005837086122483015,
-0.04668736830353737,
0.07913459092378616,
-0.04269285872578621,
0.01089707762002945,
-0.06590679287910461,
-0.018316108733415604,
-0.019380470737814903,
0.049610983580350876,
0.06183266639709473,
-0.023718159645795822,
0.039533015340566635,
0.05152866989374161,
0.005275883711874485,
0.038264818489551544,
-0.02804439514875412,
-0.02281174063682556,
0.015027765184640884,
-0.019968023523688316,
0.002985168481245637,
0.008057079277932644,
0.03127874433994293,
-0.0300691369920969,
-0.017311757430434227,
-0.007810499519109726,
-0.029534123837947845,
-0.020491523668169975,
0.050031017512083054,
0.028065640479326248,
0.001175931072793901,
0.0416458398103714,
0.03046777844429016,
0.017049897462129593,
0.05447421595454216,
0.005810500122606754,
0.04222875460982323,
0.001822702819481492,
-0.030711021274328232,
-0.044661249965429306,
-0.028406331315636635,
-0.05232759192585945,
0.03607122227549553,
0.02168806828558445,
-0.015102450735867023,
-0.03145939111709595,
0.029038699343800545,
-0.04375589266419411,
-0.025292549282312393,
0.08509529381990433,
-0.052718523889780045,
0.008871006779372692,
-0.0344691276550293,
0.054063040763139725,
0.015752801671624184,
-0.021653011441230774,
-0.02749464474618435,
-0.043112482875585556,
-0.013546464964747429,
-0.026175308972597122,
-0.011851252056658268,
-0.007839282043278217,
0.03447740152478218,
0.028952868655323982,
0.04666003957390785,
0.013686396181583405,
-0.0265355184674263,
0.014310616999864578,
0.04246014356613159,
-0.05007137730717659,
0.043673478066921234,
0.01497454009950161,
0.11727327108383179,
-0.0521763376891613,
-0.04328406974673271,
0.03892645239830017,
0.02747354656457901,
-0.04106517508625984,
0.00775741133838892,
0.02480372041463852,
-0.04700074344873428,
-0.03265956789255142,
-0.02245517447590828,
0.017608899623155594,
-0.07235832512378693,
0.01707274466753006,
0.053960636258125305,
0.0070099844597280025,
0.01855051890015602,
-0.05871821939945221,
-0.019604220986366272,
-0.001265926519408822,
-0.012487643398344517,
-0.017847655341029167,
0.031514231115579605,
0.0015062817838042974,
0.0011651705717667937,
-0.025804687291383743,
-0.048248447477817535,
0.0036769420839846134,
0.06372831761837006,
-0.014153711497783661,
-0.015950342640280724,
-0.03665771707892418,
0.031736407428979874,
0.03673943132162094,
0.03550335019826889,
0.01275190431624651,
0.020009944215416908,
0.0884450227022171,
0.0424082912504673,
-0.028753703460097313,
0.03935788944363594,
0.009515590034425259,
-0.03270503506064415,
-0.033150866627693176,
-0.025053689256310463,
0.0031790665816515684,
-0.03843012824654579,
0.031684860587120056,
0.04392537847161293,
0.0002754449669737369,
-0.024784879758954048,
0.014234513975679874,
0.06439283490180969,
-0.014503413811326027,
-0.016952360048890114,
0.0035277646966278553,
-0.042781732976436615,
-0.0018030119827017188,
0.032796867191791534,
-0.011118230409920216,
-0.026880182325839996,
-0.013736062683165073,
-0.021080508828163147,
0.03307927027344704,
0.001654100138694048,
0.021809114143252373,
0.016205579042434692,
-0.02836637943983078,
0.06643767654895782,
-0.04323546960949898,
0.008894399739801884,
-0.03290773183107376,
-0.06277503073215485,
-0.004406380001455545,
0.04443644359707832,
0.05565556883811951,
0.07024303823709488,
0.0013195519568398595,
-0.04060908779501915,
0.015900656580924988,
0.04493340104818344,
0.054246485233306885,
0.03275361657142639,
-0.022204680368304253,
0.0009949684608727694,
0.02094893716275692,
0.042567092925310135,
-0.037119604647159576,
-0.029539229348301888,
0.023569714277982712,
0.04353562742471695,
-0.012928676791489124,
0.0001338326692348346,
-0.0332891084253788,
0.009290711022913456,
-0.05250347778201103,
-0.05224857106804848,
0.046539392322301865,
0.037194523960351944,
-0.004033261444419622,
0.007532328832894564,
-0.04079611226916313,
0.01794113591313362,
0.0231730118393898,
0.014058413915336132,
0.02486676163971424,
-0.06199805811047554,
0.010138968005776405,
0.03375134617090225,
0.07079947739839554,
-0.026022186502814293,
0.007567077409476042,
0.0005379326175898314,
0.019816743209958076,
0.048320572823286057,
-0.036785271018743515,
0.027183473110198975,
0.0456126406788826,
0.022027703002095222,
-0.004076230339705944,
0.04791264608502388,
-0.00195548078045249,
0.027363590896129608,
0.021337803453207016,
-0.011149170808494091,
0.053543757647275925,
-0.024207932874560356,
0.027465278282761574,
0.10070237517356873,
-0.003694744547829032,
0.006330745294690132,
0.026836879551410675,
0.0792730301618576,
0.006706928834319115,
-0.015178265050053596,
0.06422227621078491,
-0.02659330889582634,
0.007756849285215139,
-0.02383924275636673,
0.0031238633673638105,
-0.00793024618178606,
0.004856428597122431,
0.0344570018351078,
0.007191512733697891,
-0.05055687576532364,
0.005681625101715326,
0.016415229067206383,
-0.01976023241877556,
0.06253136694431305,
-0.030619794502854347,
-0.026458948850631714,
0.005435216706246138,
0.003591742366552353,
0.012941030785441399,
-0.06526537984609604,
-0.03875589370727539,
-0.008058911189436913,
-0.044661179184913635,
-0.06588717550039291,
-0.08542667329311371,
-0.02174140140414238,
-0.058296672999858856,
-0.02202250249683857,
0.03420545533299446,
0.04188932850956917,
0.001988879172131419,
-0.052053969353437424,
0.014285556972026825,
-0.01888115517795086,
-0.051653336733579636,
-0.03360997885465622,
-0.05363720282912254,
-0.04816838353872299,
-0.027856869623064995,
0.022543715313076973,
-0.005547198932617903,
0.06954128295183182,
0.008102438412606716,
-0.015736578032374382,
-0.07738780975341797,
-0.009460645727813244,
0.05196475610136986,
0.04313167929649353,
-0.038128241896629333,
-0.04695754870772362,
0.021566132083535194,
0.010347233153879642,
-0.013302587904036045,
-0.0011234814301133156,
-0.02723703347146511,
0.06969459354877472,
0.05966440960764885,
0.007559978403151035,
-0.010819807648658752,
0.0013992582680657506,
-0.03596131131052971,
-0.027268430218100548,
-0.02218935266137123,
-0.0024515048135071993,
-0.016924390569329262,
-0.06406804174184799,
-0.04718856140971184,
-0.035530902445316315,
-0.04471065476536751,
-0.012924320995807648,
-0.00976142194122076,
0.0051147956401109695,
0.023744454607367516,
0.0387173555791378,
0.030970262363553047,
0.03095897100865841,
-0.03547745570540428,
-0.02432144805788994,
0.04294362664222717,
-0.02130555734038353,
-0.019921893253922462,
-0.06316319853067398,
-0.031226037070155144,
0.023682719096541405,
0.0017484423005953431,
0.018315503373742104,
-0.008593075908720493,
0.057144030928611755,
-0.014136912301182747,
-0.026205999776721,
-0.012580898590385914,
-0.023298295214772224,
-0.0035989314783364534,
-0.020768065005540848,
0.008643430657684803,
-0.0008960901759564877,
-0.04321077838540077,
-0.019284483045339584,
-0.014030855149030685,
0.034964267164468765,
-0.0937972292304039,
-0.05009287968277931,
-0.03444886580109596,
0.04362422972917557,
0.03275192901492119,
-0.0014375271275639534,
-0.06366056948900223,
-0.019790275022387505,
-0.09142158180475235,
0.029746484011411667,
0.027796080335974693,
-0.008091538213193417,
0.02492627315223217,
0.05197534337639809,
-0.000017133868823293597,
-0.0060090795159339905,
0.03683006018400192,
0.036897432059049606,
0.07039860635995865,
0.012287124991416931,
-0.027982240542769432,
0.014727801084518433,
0.005732969846576452,
0.00931420549750328,
0.013820422813296318,
-0.022603213787078857,
-0.03344569727778435,
-0.08495501428842545,
0.014208326116204262,
0.014952952042222023,
0.017377691343426704,
-0.009897415526211262,
0.07978399842977524,
-0.027325933799147606,
-0.030298322439193726,
0.013056404888629913,
-0.006399095058441162,
0.029377760365605354,
-0.05468754097819328,
0.07224201411008835,
-0.0035872813314199448,
0.03974112495779991,
-0.029204312711954117,
0.009895260445773602,
-0.03480605036020279,
-0.03303283080458641,
-0.024029124528169632,
0.047909077256917953,
0.029669759795069695,
0.02120092324912548,
0.03537733107805252,
0.025651583448052406,
-0.02109951339662075,
0.06423076242208481,
0.036866333335638046,
-0.01158416923135519,
-0.05928288772702217,
0.011251579970121384,
0.005505527835339308,
-0.0021301493979990482,
-0.02152520790696144,
-0.0007310863002203405,
-0.0016548777930438519,
0.07843771576881409,
0.0028358728159219027,
-0.021327227354049683,
0.020817793905735016,
-0.031423214823007584,
-0.02990267239511013,
-0.05644042417407036,
-0.015247653238475323,
-0.004457372240722179,
-0.02860097400844097,
-0.025995012372732162,
0.07685897499322891,
0.0034990275744348764,
0.06013908237218857,
0.05136961489915848,
-0.02423018030822277,
-0.06589751690626144,
0.036235082894563675,
0.051306553184986115,
-0.02172134630382061,
-0.07502792030572891,
-0.07759979367256165,
0.04997766390442848,
-0.011507641524076462,
-0.001447006012313068,
-0.08369938284158707,
0.02190880849957466,
0.047654204070568085,
-0.08735784888267517,
0.06752849370241165,
0.01817559450864792,
0.049778230488300323,
0.051776956766843796,
-0.0036193421110510826,
0.03908297419548035,
-0.033689990639686584,
-0.016269095242023468,
-0.005360931158065796,
0.03939477726817131,
-0.029253575950860977,
-0.03162962570786476,
-0.03910788521170616,
0.04607037827372551,
0.01799614727497101,
0.04154680296778679,
0.04094213247299194,
-0.04972358047962189,
-0.06133526191115379,
0.011287020519375801,
0.04173532500863075,
-0.044621165841817856,
0.04557447507977486,
0.022421928122639656,
0.046342942863702774,
-0.06315825134515762,
-0.038501642644405365,
-0.012681026943027973,
-0.005905157420784235,
0.037668269127607346,
0.022461483255028725,
-0.036714956164360046,
-0.03538346290588379,
-0.003608458209782839,
0.00433977460488677,
-0.017817392945289612,
-0.07495909929275513,
0.034122150391340256,
-0.0017683997284621,
-0.010945717804133892,
0.046553317457437515,
0.029585912823677063,
0.05246184393763542,
0.048832520842552185,
-0.011138555593788624,
0.030433205887675285,
-0.047684505581855774,
0.023437172174453735,
-0.049338631331920624,
-0.02195861004292965,
-0.006078058388084173,
-0.03876522555947304,
-0.013084495440125465,
-0.022786827757954597,
-0.03941907361149788,
-0.05449444428086281,
-0.015123613178730011,
0.015063424594700336,
-0.010809180326759815,
-0.011732697486877441,
-0.005494512151926756,
0.0027644026558846235,
-0.03529326245188713,
0.0017574798548594117,
-0.04920445382595062,
-0.010926988907158375,
-0.07043363898992538,
-0.037317905575037,
0.023420549929142,
-0.03522041067481041,
0.045665763318538666,
0.00017469578597228974,
0.02706153318285942,
0.020834919065237045,
0.005216586869210005,
-0.019030822440981865,
0.012799352407455444,
0.020342810079455376,
0.0012936316197738051,
-0.01416042074561119,
0.026430901139974594,
0.010921129956841469,
0.06257345527410507,
-0.01569303683936596,
0.021289819851517677,
0.026787348091602325,
0.00013962708180770278,
-0.03273100033402443,
0.0325913168489933,
-0.005773993209004402,
-0.06021455302834511,
-0.02183767594397068,
-0.0016782541060820222,
-0.01340803038328886,
0.029502959921956062,
-0.061531610786914825,
-0.02790578454732895,
0.017029626294970512,
0.015448378399014473,
0.03916630148887634,
-0.02844739519059658,
-0.005821254104375839,
-0.0009351083426736295,
-0.04677979275584221,
-0.015064805746078491,
-0.06534866243600845,
0.02685357816517353,
-0.032783832401037216,
-0.016983866691589355,
-0.03233452886343002,
0.008815155364573002,
-0.04972565546631813,
0.045851126313209534,
-0.0031864526681602,
-0.025622975081205368,
-0.022140730172395706,
0.03925244137644768,
-0.0459803007543087,
0.012508840300142765,
0.007923712953925133,
-0.00017755693988874555,
-0.005524023901671171,
0.04105226323008537,
-0.044150400906801224,
0.0006212161388248205,
-0.021436138078570366,
0.006025395356118679,
-0.05306806415319443,
-0.021570192649960518,
-0.028904853388667107,
-0.012214887887239456,
0.012523395009338856,
0.05303063988685608,
0.034669630229473114,
0.011108938604593277,
-0.02188051864504814,
0.011885890737175941,
0.03419528529047966,
-0.05567367374897003,
-0.018717510625720024,
-0.007243161089718342,
-0.002997014671564102,
-0.01756901852786541,
0.04865286499261856,
0.05229298025369644,
-0.025017987936735153,
-0.025640254840254784,
0.08077748119831085,
0.03159652650356293,
0.0021534045226871967,
0.013894998468458652,
0.019382258877158165,
0.03380304574966431,
0.014108213596045971,
-0.03516174480319023,
-0.0009752699988894165,
-0.0046693794429302216,
-0.039660099893808365,
0.024306492879986763,
-0.005590812303125858,
0.053436700254678726,
0.008354357443749905,
-0.00570902694016695,
-0.04309754818677902,
0.06738109141588211,
0.04224208742380142,
0.0317339152097702,
0.006114805582910776,
-0.04420267045497894,
0.04043028503656387,
0.028882745653390884,
-0.051522981375455856,
0.03175315260887146,
0.013618850149214268,
-0.002644515596330166,
0.06311014294624329,
-0.025843773037195206,
0.01990678533911705,
0.025601405650377274,
0.032726142555475235,
-0.02380802109837532,
0.03404907509684563,
-0.03575202822685242,
0.048875514417886734,
0.03650462627410889,
-0.05173594504594803,
-0.04192354902625084,
-0.04200221970677376,
0.05358840897679329,
-0.07662985473871231,
0.07812600582838058,
0.03900633379817009,
-0.014918087981641293,
0.03175995498895645,
-0.012236245907843113,
-0.023142430931329727,
0.025439541786909103,
-0.06176769360899925,
0.07833096385002136,
0.00194433587603271,
-0.06712408363819122,
0.07954002916812897,
0.0209675095975399,
-0.07142451405525208,
0.027312859892845154,
0.025837857276201248,
0.03180399164557457,
0.02076311968266964,
0.05752050131559372,
-0.013998256996273994,
0.020650852471590042,
-0.0509846955537796,
0.0603974349796772,
-0.05594446510076523,
-0.034264128655195236,
-0.016238505020737648,
-0.05156416818499565,
-0.020900877192616463,
0.041066184639930725,
-0.0040717339143157005,
0.0022918463218957186,
0.0000727924270904623,
-0.04475044831633568,
-0.045489754527807236,
0.018077468499541283,
0.009818512946367264,
-0.005907382816076279,
0.002770769875496626,
-0.02907305583357811,
0.011921042576432228,
0.011998165398836136,
-0.005885997321456671,
-0.019499531015753746,
-0.01500322949141264,
0.02075532265007496,
-0.05659665912389755,
-0.06595491617918015,
0.013583776541054249,
0.011587417684495449,
-0.02115691266953945,
0.0017005634726956487,
0.03215441107749939,
0.033000558614730835,
0.02809475176036358,
-0.009906965307891369,
0.011426067911088467,
-0.042925577610731125,
-0.006068147718906403,
0.027952803298830986,
0.034337446093559265,
0.0004029721603728831,
-0.004049926530569792,
0.025188405066728592,
0.039911899715662,
0.06079813838005066,
-0.006201508454978466,
0.011632104404270649,
-0.017158268019557,
0.02294311672449112,
-0.025025073438882828,
0.03824382275342941,
-0.011800320819020271,
-0.056840330362319946,
-0.031885676085948944,
0.02476234920322895,
-0.0066548557952046394,
0.05128365382552147,
-0.046886492520570755,
-0.00882096216082573,
0.05692160502076149,
-0.006994020659476519,
-0.014295391738414764,
-0.11774292588233948,
-0.02106483466923237,
-0.06987593322992325,
0.032647278159856796,
0.05697285383939743,
-0.05995740368962288,
0.021622538566589355,
-0.01071638148277998,
-0.026918819174170494,
0.03707735240459442,
0.02571975626051426,
-0.027769582346081734,
0.051112234592437744,
0.0792013555765152,
-0.06332816928625107,
0.026114854961633682,
0.003932618536055088,
-0.052635062485933304,
0.014757292345166206,
0.011767332442104816,
-0.003121250309050083,
0.026124026626348495,
0.01680157147347927,
-0.014439573511481285,
-0.0035879870411008596,
-0.04574122652411461,
-0.0434013269841671,
-0.03894709795713425,
0.005187612492591143,
0.05771750211715698
] |
Ahmad/parsT5-base | [
"pytorch",
"t5",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"T5ForConditionalGeneration"
],
"model_type": "t5",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 25 | null | A monolingual T5 model for Persian trained on OSCAR 21.09 (https://oscar-corpus.com/) corpus with self-supervised method. 35 Gig deduplicated version of Persian data was used for pre-training the model.
It's similar to the English T5 model but just for Persian. You may need to fine-tune it on your specific task.
Example code:
```
from transformers import T5ForConditionalGeneration,AutoTokenizer
import torch
model_name = "Ahmad/parsT5-base"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)
input_ids = tokenizer.encode('دانش آموزان به <extra_id_0> میروند و <extra_id_1> میخوانند.', return_tensors='pt')
with torch.no_grad():
hypotheses = model.generate(input_ids)
for h in hypotheses:
print(tokenizer.decode(h))
```
Steps: 725000
Accuracy: 0.66
Training More?
========
To train the model further please refer to its github repository at:
https://github.com/puraminy/parsT5
| [
-0.009901105426251888,
-0.0392649881541729,
0.01183412317186594,
0.05820661038160324,
0.00806773453950882,
0.021093308925628662,
-0.028953509405255318,
0.011932440102100372,
-0.031116347759962082,
0.03184978663921356,
0.03056228905916214,
-0.009432998485863209,
0.00020639349531847984,
0.04584354907274246,
-0.03668256476521492,
-0.02480529248714447,
-0.043126773089170456,
-0.012957279570400715,
-0.0446716770529747,
0.009797726757824421,
0.007451760116964579,
0.007690688595175743,
-0.011122438125312328,
0.03879150003194809,
-0.00853220745921135,
0.03764690086245537,
-0.011597555130720139,
0.05400418862700462,
0.021532438695430756,
-0.0833396166563034,
-0.007697293534874916,
-0.04869338497519493,
-0.00676340376958251,
-0.01771204173564911,
-0.023193053901195526,
0.012610401958227158,
-0.008855016902089119,
0.011380561627447605,
0.03754918649792671,
0.046336185187101364,
-0.022151358425617218,
0.00019192055333405733,
0.008135431446135044,
-0.046830687671899796,
0.053150735795497894,
-0.0010758695425465703,
-0.034934815019369125,
-0.0035794193390756845,
0.03458017855882645,
-0.021570375189185143,
-0.0322805754840374,
-0.06344818323850632,
-0.02849017083644867,
0.032286789268255234,
0.0013533896999433637,
-0.03688165545463562,
-0.04219956323504448,
-0.018713906407356262,
0.07495325803756714,
-0.03453193977475166,
-0.013276071287691593,
0.01734277978539467,
-0.04831010848283768,
0.02342943474650383,
0.059191882610321045,
-0.012294556014239788,
0.020165052264928818,
-0.050158221274614334,
0.022471033036708832,
-0.04668761044740677,
0.03074716217815876,
-0.0362880602478981,
-0.0006889563519507647,
-0.0940033495426178,
-0.015383257530629635,
-0.007666910532861948,
0.03990936651825905,
0.029747338965535164,
-0.048230525106191635,
0.07132085412740707,
0.030811181291937828,
-0.00412785355001688,
0.03439920023083687,
-0.004474864341318607,
-0.022744912654161453,
0.05238095298409462,
-0.01053222082555294,
-0.010730767622590065,
0.0023260859306901693,
0.04611221328377724,
-0.04393162578344345,
-0.04418178275227547,
-0.01394327450543642,
0.0021377450320869684,
-0.007469076197594404,
0.02388826571404934,
0.028953375294804573,
-0.00853102095425129,
0.04822811484336853,
0.04515606537461281,
0.054993886500597,
0.04211031645536423,
-0.009270615875720978,
0.041568465530872345,
-0.004554880317300558,
-0.01259689126163721,
-0.014862122014164925,
-0.051065512001514435,
-0.008094890974462032,
0.0397779606282711,
0.038326822221279144,
-0.04978416487574577,
-0.03917945548892021,
0.04199531674385071,
0.0011511773336678743,
-0.010573998093605042,
0.06159530207514763,
-0.037573814392089844,
-0.052701693028211594,
0.003958666697144508,
0.025937732309103012,
0.011195057071745396,
-0.004273933358490467,
-0.025832898914813995,
-0.0423692986369133,
0.02617473341524601,
-0.04621925950050354,
-0.01983773335814476,
-0.00045685615623369813,
0.03364141285419464,
-0.009041516110301018,
0.008227271027863026,
0.025424929335713387,
-0.07038772851228714,
-0.0006724310223944485,
0.01854170672595501,
-0.06158800795674324,
0.04062197729945183,
0.015430252999067307,
0.10999598354101181,
-0.07414177805185318,
-0.04721944406628609,
0.02622153051197529,
0.012297187931835651,
-0.04034925624728203,
-0.003696511732414365,
-0.002210671082139015,
-0.06373538076877594,
-0.03460002318024635,
-0.007729589939117432,
0.05063478276133537,
-0.06337875872850418,
0.0061531332321465015,
0.0454716794192791,
-0.007474859710782766,
0.015158328227698803,
-0.0323534831404686,
-0.00807985756546259,
0.00034552474971860647,
0.014101141132414341,
-0.05594005435705185,
0.028548523783683777,
-0.002235213527455926,
0.018462037667632103,
-0.06448347866535187,
-0.042671702802181244,
0.01810050755739212,
0.10383353382349014,
0.02465708926320076,
-0.009604004211723804,
-0.01779606007039547,
0.009188443422317505,
0.05112461745738983,
0.004513605497777462,
-0.020320825278759003,
0.04378043860197067,
0.04871033877134323,
0.021221593022346497,
-0.018067816272377968,
0.08526787906885147,
0.016755476593971252,
-0.034042954444885254,
-0.010505917482078075,
0.0022074298467487097,
-0.009245316497981548,
-0.02585267834365368,
0.015107383020222187,
0.041658978909254074,
-0.023675933480262756,
-0.014437413774430752,
0.001583220437169075,
0.06298231333494186,
-0.02271103858947754,
0.015325834043323994,
-0.024142174050211906,
-0.0027010878548026085,
-0.03359140083193779,
0.03450167924165726,
-0.035334739834070206,
0.006287878844887018,
-0.03352848440408707,
-0.0032069841399788857,
-0.0013982823584228754,
0.036407291889190674,
0.031804922968149185,
0.04160628840327263,
-0.04644973948597908,
0.11792828142642975,
-0.027915123850107193,
0.002444726647809148,
-0.04713503643870354,
-0.0415949821472168,
-0.01130843535065651,
0.052813831716775894,
0.028025686740875244,
0.019034869968891144,
0.00736214779317379,
-0.06137198954820633,
0.030228635296225548,
0.052486006170511246,
0.06849692016839981,
0.009689352475106716,
-0.03393573313951492,
0.011808781884610653,
0.03770624101161957,
0.061967622488737106,
-0.04011409729719162,
-0.038631096482276917,
0.027113670483231544,
0.029503246769309044,
-0.014886312186717987,
0.014451434835791588,
-0.018316561356186867,
0.036717839539051056,
-0.030960962176322937,
-0.04314080998301506,
0.02623152546584606,
0.015873489901423454,
0.018558168783783913,
0.01924249902367592,
-0.01886487752199173,
0.004809820093214512,
0.013467012904584408,
-0.007324085105210543,
0.01247694157063961,
-0.03966125473380089,
-0.0036135429982095957,
0.005856036674231291,
0.048833608627319336,
-0.04968811199069023,
0.047499172389507294,
-0.021112333983182907,
-0.001057730638422072,
0.04915110766887665,
-0.041601017117500305,
0.021731114014983177,
0.03903508186340332,
0.038883451372385025,
-0.03381350636482239,
0.034943994134664536,
-0.01889403909444809,
0.06343793869018555,
0.060162484645843506,
0.019624734297394753,
0.03881183639168739,
-0.014335358515381813,
0.04560970887541771,
0.07051698863506317,
0.006081178784370422,
0.0256663728505373,
0.023069478571414948,
0.06588368862867355,
0.015983091667294502,
-0.009695311076939106,
0.04805203899741173,
-0.06786894053220749,
0.0049652280285954475,
-0.043544892221689224,
0.015381773002445698,
-0.02541111223399639,
-0.012066423892974854,
0.05896478146314621,
0.01256051380187273,
-0.006378630176186562,
0.012174015864729881,
-0.008115273900330067,
-0.012773607857525349,
0.024618513882160187,
-0.012263047508895397,
-0.022082258015871048,
-0.031046319752931595,
-0.022646239027380943,
0.026888703927397728,
-0.07549918442964554,
-0.03488471731543541,
-0.0009012878872454166,
-0.04479912295937538,
-0.0031760884448885918,
-0.09435509890317917,
-0.03534138575196266,
-0.04305925592780113,
-0.03884945809841156,
0.0317663848400116,
0.012709119357168674,
0.026259060949087143,
-0.049589645117521286,
0.014262663200497627,
-0.03470313549041748,
-0.010878612287342548,
-0.05257532745599747,
-0.05890608951449394,
-0.039140596985816956,
-0.07137232273817062,
0.04846395179629326,
0.035837601870298386,
0.017151957377791405,
0.014203301630914211,
0.011407394893467426,
-0.020908256992697716,
-0.052486054599285126,
0.05484822764992714,
0.023884447291493416,
-0.04244628921151161,
-0.05851621925830841,
0.028517890721559525,
-0.0049210526049137115,
0.012790774926543236,
-0.016857841983437538,
-0.043014977127313614,
0.06222726032137871,
0.07071764022111893,
0.03124639019370079,
0.029607126489281654,
-0.01896432787179947,
-0.05377635359764099,
-0.041339222341775894,
-0.027601495385169983,
-0.057804133743047714,
-0.02499433234333992,
-0.008649567142128944,
-0.048174548894166946,
-0.030609698966145515,
-0.04573139175772667,
0.006734584923833609,
-0.0014305147342383862,
0.005134029779583216,
0.020861372351646423,
0.06212688609957695,
0.0420178547501564,
0.03568330407142639,
-0.030952611938118935,
-0.010106464847922325,
0.05624937638640404,
0.000299054168863222,
-0.007529492024332285,
-0.06412354111671448,
-0.03328704833984375,
0.05668764188885689,
0.02392915077507496,
0.011378581635653973,
-0.008820551447570324,
0.06473688036203384,
0.02033018134534359,
-0.004138370510190725,
0.016775522381067276,
-0.024007147178053856,
-0.024302221834659576,
-0.002744461642578244,
0.010032390244305134,
-0.009028390981256962,
-0.05019281059503555,
-0.02906706929206848,
-0.0013107771519571543,
0.04994042217731476,
-0.07046689838171005,
-0.05200178548693657,
-0.019350970163941383,
0.00838746502995491,
0.02213718369603157,
-0.0026925415731966496,
-0.03713695704936981,
0.008857487700879574,
-0.047584693878889084,
-0.042018432170152664,
0.010015245527029037,
-0.002256406471133232,
0.02896489016711712,
0.028068628162145615,
0.008253774605691433,
-0.020066993311047554,
0.05088597536087036,
0.015136685222387314,
0.07077722996473312,
0.029345231130719185,
-0.026082294061779976,
0.030612509697675705,
-0.03864526003599167,
0.023756416514515877,
0.010797066614031792,
-0.00418303394690156,
-0.04946305602788925,
-0.0679742768406868,
-0.03617793321609497,
0.012971499934792519,
-0.03246014937758446,
-0.016533909365534782,
0.046006206423044205,
-0.015372482128441334,
-0.01697784848511219,
-0.003516658442094922,
0.0260087251663208,
0.04546086862683296,
-0.04091505706310272,
0.03197475150227547,
-0.003151377197355032,
0.02773107774555683,
-0.02426757663488388,
0.004970950074493885,
-0.02329782024025917,
-0.013552303425967693,
-0.022786924615502357,
0.04892652481794357,
0.02660856582224369,
0.06716646999120712,
0.09241648763418198,
0.01682443730533123,
-0.01738128252327442,
0.053750425577163696,
0.06493381410837173,
-0.004326109308749437,
-0.06286352127790451,
-0.02659977599978447,
-0.007652152329683304,
-0.025033913552761078,
0.0007618273957632482,
-0.03820548206567764,
0.028102032840251923,
0.05730527639389038,
-0.022283144295215607,
0.0034971015993505716,
-0.016030536964535713,
-0.03438068926334381,
-0.03397192806005478,
-0.06331268697977066,
-0.01966438628733158,
0.03434102609753609,
-0.018837546929717064,
0.023815713822841644,
0.033595144748687744,
-0.0007425840012729168,
0.06783460825681686,
0.05491902306675911,
-0.015053010545670986,
-0.0453714095056057,
0.02225636877119541,
0.033906832337379456,
-0.03895728290081024,
-0.08004052937030792,
-0.05027870461344719,
0.028449706733226776,
0.04608582332730293,
-0.020618507638573647,
-0.06422294676303864,
0.011597045697271824,
0.04568367823958397,
-0.01875799335539341,
0.06910377740859985,
-0.025395892560482025,
0.01277307327836752,
0.0745554119348526,
-0.011274510994553566,
0.023512618616223335,
-0.0521773137152195,
0.013502376154065132,
0.022475823760032654,
0.040834940969944,
-0.02533363178372383,
-0.017582474276423454,
-0.08547738939523697,
0.028121385723352432,
0.016321998089551926,
0.03679203614592552,
0.039864443242549896,
-0.0295807383954525,
-0.043620817363262177,
0.020950833335518837,
0.027243852615356445,
-0.04778779670596123,
-0.0063870917074382305,
0.05243907868862152,
0.025168076157569885,
-0.0478956513106823,
-0.04220414161682129,
-0.030790822580456734,
0.009662854485213757,
0.006481630261987448,
-0.0021004595328122377,
-0.0448700375854969,
-0.04162079840898514,
0.007191350217908621,
-0.020724868401885033,
-0.030995680019259453,
-0.08895056694746017,
0.03805133327841759,
0.005749679636210203,
-0.03398958966135979,
0.051052264869213104,
0.02726740762591362,
0.019548995420336723,
0.04818684980273247,
0.019597025588154793,
0.03152290731668472,
-0.03090539015829563,
0.04412836581468582,
-0.01669173315167427,
-0.028823286294937134,
-0.02636471949517727,
-0.08274941146373749,
-0.007009065710008144,
-0.05734614282846451,
-0.02206171303987503,
-0.03847568482160568,
-0.0030432010535150766,
0.009113680571317673,
-0.028462693095207214,
0.008774005807936192,
-0.01664179377257824,
0.05895811691880226,
-0.020587649196386337,
-0.026617636904120445,
-0.01742476224899292,
-0.03558627516031265,
-0.08055280894041061,
-0.057803478091955185,
0.02121029421687126,
0.0009146707016043365,
0.01952454447746277,
-0.005534709431231022,
0.03972747176885605,
0.0011614937102422118,
-0.0073782638646662235,
-0.026471605524420738,
0.025149712339043617,
0.006951268762350082,
-0.023198897019028664,
-0.021782297641038895,
0.01425188034772873,
0.022854384034872055,
0.025760922580957413,
-0.02688525803387165,
0.03194395452737808,
0.013202746398746967,
-0.010456779971718788,
-0.015413113869726658,
-0.005022777710109949,
0.023230668157339096,
-0.07297614961862564,
-0.041022513061761856,
0.003249487606808543,
-0.043280597776174545,
0.002175020519644022,
-0.027760053053498268,
0.000054962176363915205,
0.003706644754856825,
0.03102012909948826,
0.035967662930488586,
0.014845217578113079,
-0.03449474275112152,
0.025379419326782227,
-0.03672007843852043,
0.03112436830997467,
-0.03180314972996712,
0.02099815011024475,
-0.02934608794748783,
0.01875353418290615,
-0.031643789261579514,
-0.002761996816843748,
-0.04565846547484398,
0.018828382715582848,
-0.00623390544205904,
-0.02232932858169079,
-0.018520299345254898,
0.010057643987238407,
-0.0333198681473732,
0.05620294436812401,
-0.007098503410816193,
0.01991131342947483,
-0.05155997723340988,
0.05980966240167618,
-0.04597637429833412,
0.010977293364703655,
-0.033532485365867615,
-0.0006493403925560415,
-0.031326159834861755,
-0.03623837232589722,
-0.006242948584258556,
-0.03679238632321358,
0.04346378520131111,
0.02885872684419155,
0.03788556903600693,
0.047588150948286057,
-0.007342041004449129,
0.013726010918617249,
0.02346828207373619,
-0.06040601804852486,
-0.03685195371508598,
-0.024413838982582092,
0.008164792321622372,
-0.00017612460942473263,
0.0571562796831131,
0.03304016962647438,
-0.0387292355298996,
-0.068781778216362,
0.05711306631565094,
0.03946220129728317,
-0.011565919034183025,
0.007660956121981144,
0.01680714637041092,
0.019446417689323425,
0.05410197004675865,
-0.01930452696979046,
-0.0008012450416572392,
-0.020075872540473938,
-0.018364712595939636,
0.028406424447894096,
0.008467774838209152,
0.001427767681889236,
-0.008277538232505322,
-0.03700844943523407,
-0.03068200871348381,
0.053452178835868835,
0.056330472230911255,
0.03350432217121124,
-0.0000060041907090635505,
-0.04994664341211319,
0.030518168583512306,
0.0023559164255857468,
-0.05824751779437065,
-0.015710029751062393,
0.005887107457965612,
-0.02788909710943699,
0.07109272480010986,
-0.025035593658685684,
0.02967839315533638,
0.03447648137807846,
0.042427558451890945,
-0.01617000624537468,
0.04973076283931732,
-0.041329432278871536,
-0.0038932671304792166,
0.017983704805374146,
-0.04627636820077896,
-0.008709637448191643,
-0.02201891504228115,
0.07117949426174164,
-0.020955320447683334,
0.038414113223552704,
0.03787029907107353,
0.007319596596062183,
0.003951583057641983,
-0.044287409633398056,
-0.011779398657381535,
0.02735336683690548,
-0.031753405928611755,
0.07379904389381409,
-0.01982862688601017,
-0.06960873305797577,
0.05767446756362915,
0.026256250217556953,
-0.09040255099534988,
0.060241248458623886,
0.05292462185025215,
0.02848588488996029,
0.028871404007077217,
0.029172031208872795,
-0.0579465813934803,
0.017751682549715042,
-0.04459177702665329,
0.006350785493850708,
-0.08120208233594894,
0.010829572565853596,
0.03930334746837616,
-0.019863976165652275,
-0.004695340525358915,
0.04121579974889755,
-0.01195745449513197,
0.013030510395765305,
0.022690918296575546,
-0.066385418176651,
-0.05641797557473183,
0.01303982362151146,
0.030944103375077248,
-0.014261827804148197,
0.02491401508450508,
-0.038697559386491776,
0.013939508236944675,
0.006832254584878683,
-0.009993023239076138,
-0.02609560824930668,
0.022546082735061646,
0.0032189986668527126,
-0.042090147733688354,
-0.04272061586380005,
0.030017130076885223,
0.02395566739141941,
-0.0353461317718029,
0.05778578296303749,
0.006957086734473705,
0.0018535245908424258,
0.019059039652347565,
0.0055937799625098705,
0.043853357434272766,
-0.04571925848722458,
-0.014635232277214527,
0.0227450393140316,
0.020711926743388176,
0.045746974647045135,
-0.023551853373646736,
0.023181280121207237,
0.05950953811407089,
0.019071541726589203,
0.007595962379127741,
-0.03493442013859749,
-0.01754840835928917,
0.013360788114368916,
-0.050869911909103394,
0.021761400625109673,
-0.002863415749743581,
-0.043116286396980286,
-0.018166298046708107,
-0.017248429358005524,
-0.030983416363596916,
0.01982489600777626,
-0.0555073507130146,
0.007786487694829702,
0.015876969322562218,
0.0010591614991426468,
-0.031307242810726166,
-0.05311400443315506,
-0.02843727357685566,
-0.025345707312226295,
0.020618902519345284,
0.029541289433836937,
-0.05249045416712761,
0.02901991456747055,
-0.051371049135923386,
-0.07367425411939621,
0.05076426640152931,
0.009362952783703804,
-0.04944794625043869,
0.06536690890789032,
0.04288223758339882,
-0.03864599019289017,
0.02325228415429592,
0.05097605288028717,
-0.05770598724484444,
0.03489568084478378,
-0.0013316713739186525,
-0.0021981350146234035,
0.015972819179296494,
0.035996925085783005,
-0.023352861404418945,
-0.017804298549890518,
-0.053479209542274475,
-0.05078624561429024,
-0.03402012586593628,
0.007882804609835148,
0.07131713628768921
] |
AhmedSSoliman/MarianCG-CoNaLa | [
"pytorch",
"marian",
"text2text-generation",
"transformers",
"autotrain_compatible",
"has_space"
] | text2text-generation | {
"architectures": [
"MarianMTModel"
],
"model_type": "marian",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 21 | null | ---
widget:
- text: "create array containing the maximum value of respective elements of array `[2, 3, 4]` and array `[1, 5, 2]"
- text: "check if all elements in list `mylist` are identical"
- text: "enable debug mode on flask application `app`"
- text: "getting the length of `my_tuple`"
- text: 'find all files in directory "/mydir" with extension ".txt"'
---
```
```
[](https://paperswithcode.com/sota/code-generation-on-conala?p=mariancg-a-code-generation-transformer-model)
```
```
# MarianCG: a code generation transformer model inspired by machine translation
This model is to improve the solving of the code generation problem and implement a transformer model that can work with high accurate results. We implemented MarianCG transformer model which is a code generation model that can be able to generate code from natural language. This work declares the impact of using Marian machine translation model for solving the problem of code generation. In our implementation, we prove that a machine translation model can be operated and working as a code generation model. Finally, we set the new contributors and state-of-the-art on CoNaLa reaching a BLEU score of 30.92 and Exact Match Accuracy of 6.2 in the code generation problem with CoNaLa dataset.
MarianCG model and its implemetation with the code of training and the generated output is available at this repository:
https://github.com/AhmedSSoliman/MarianCG-NL-to-Code
CoNaLa Dataset for Code Generation is available at
https://huggingface.co/datasets/AhmedSSoliman/CoNaLa
This is the model is avialable on the huggingface hub https://huggingface.co/AhmedSSoliman/MarianCG-CoNaLa
```python
# Model and Tokenizer
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
# model_name = "AhmedSSoliman/MarianCG-NL-to-Code"
model = AutoModelForSeq2SeqLM.from_pretrained("AhmedSSoliman/MarianCG-CoNaLa")
tokenizer = AutoTokenizer.from_pretrained("AhmedSSoliman/MarianCG-CoNaLa")
# Input (Natural Language) and Output (Python Code)
NL_input = "create array containing the maximum value of respective elements of array `[2, 3, 4]` and array `[1, 5, 2]"
output = model.generate(**tokenizer(NL_input, padding="max_length", truncation=True, max_length=512, return_tensors="pt"))
output_code = tokenizer.decode(output[0], skip_special_tokens=True)
```
This model is available in spaces using gradio at: https://huggingface.co/spaces/AhmedSSoliman/MarianCG-CoNaLa
---
Tasks:
- Translation
- Code Generation
- Text2Text Generation
- Text Generation
---
# Citation
We now have a [paper](https://doi.org/10.1186/s44147-022-00159-4) for this work and you can cite:
```
@article{soliman2022mariancg,
title={MarianCG: a code generation transformer model inspired by machine translation},
author={Soliman, Ahmed S and Hadhoud, Mayada M and Shaheen, Samir I},
journal={Journal of Engineering and Applied Science},
volume={69},
number={1},
pages={1--23},
year={2022},
publisher={SpringerOpen}
url={https://doi.org/10.1186/s44147-022-00159-4}
}
```
| [
-0.036963313817977905,
-0.016969092190265656,
0.00979140680283308,
0.056333914399147034,
0.04587133973836899,
0.019300581887364388,
-0.009029842913150787,
-0.005184822250157595,
-0.0016885449877008796,
0.051510289311409,
0.051042672246694565,
-0.008444000035524368,
-0.04000517353415489,
0.03751794248819351,
-0.03067118301987648,
-0.03381917625665665,
-0.020205441862344742,
-0.02506302110850811,
-0.06866269558668137,
-0.020555764436721802,
0.00869041308760643,
-0.03837600722908974,
-0.010565005242824554,
-0.0022903934586793184,
-0.005949190352112055,
-0.0032760147005319595,
0.01321099791675806,
0.021323030814528465,
0.034703806042671204,
-0.06881747394800186,
-0.024175133556127548,
-0.025856947526335716,
-0.020058656111359596,
0.004312282428145409,
-0.018629487603902817,
0.016428189352154732,
0.021489517763257027,
0.007037839852273464,
0.023360634222626686,
0.06872763484716415,
-0.0164327435195446,
0.013833103701472282,
-0.011423654854297638,
-0.01651940308511257,
0.052396610379219055,
0.011305508203804493,
-0.06197567656636238,
-0.0218723826110363,
0.03632931038737297,
-0.014059247449040413,
-0.0560244582593441,
-0.0627008005976677,
-0.04284342750906944,
0.06579311192035675,
-0.010433978401124477,
-0.03210795298218727,
-0.05871225893497467,
-0.013421978801488876,
0.04020791873335838,
-0.054216187447309494,
-0.005592431873083115,
0.034168779850006104,
-0.07806271314620972,
0.04036777466535568,
0.04483618214726448,
-0.005841859150677919,
0.01012386940419674,
-0.027095956727862358,
0.008364548906683922,
-0.0016494236188009381,
0.04750354215502739,
-0.05593706667423248,
0.020533449947834015,
-0.09538589417934418,
0.008087183348834515,
-0.018531881272792816,
0.04277969151735306,
0.025984974578022957,
-0.03096458502113819,
0.03866436704993248,
0.007219620048999786,
0.018803445622324944,
0.010533832013607025,
-0.009933293797075748,
-0.009954473003745079,
0.05301382392644882,
-0.032938145101070404,
0.006102974992245436,
-0.0012432943331077695,
0.05948014184832573,
-0.04901542142033577,
-0.04507672041654587,
-0.009361972101032734,
-0.015051835216581821,
-0.008870741352438927,
0.01858464814722538,
0.05566130578517914,
0.0017713267588987947,
0.04228786379098892,
0.01268902886658907,
-0.004443369340151548,
0.04600444808602333,
-0.01015267800539732,
0.0470222532749176,
0.002714234171435237,
-0.017777912318706512,
-0.018237050622701645,
-0.04913605377078056,
-0.05804990977048874,
0.017727436497807503,
0.03522191941738129,
-0.007934721186757088,
-0.027382230386137962,
0.05355430021882057,
0.000016081350622698665,
-0.039168160408735275,
0.02847973443567753,
-0.006054334342479706,
-0.05581964552402496,
-0.05723412707448006,
0.04182044044137001,
0.003026133170351386,
-0.03537788614630699,
0.01728886365890503,
-0.024226658046245575,
0.025463512167334557,
-0.04775245487689972,
-0.052716683596372604,
0.01928388699889183,
0.011685875244438648,
-0.0344039723277092,
0.037577684968709946,
0.014209299348294735,
-0.037409380078315735,
0.01868133246898651,
0.010054115206003189,
-0.0622292160987854,
0.05070006474852562,
0.0013290116330608726,
0.13795289397239685,
-0.06228093430399895,
-0.031364914029836655,
-0.0014525975566357374,
-0.0032361499033868313,
-0.0220099575817585,
0.007126276846975088,
-0.03937496617436409,
-0.056884605437517166,
-0.0011474571656435728,
-0.003171626478433609,
0.0778212770819664,
-0.045834802091121674,
0.004129644483327866,
0.036049287766218185,
-0.003613528795540333,
0.03501114621758461,
-0.03192109987139702,
-0.0027512821834534407,
-0.015199686400592327,
-0.016413522884249687,
-0.03802667558193207,
0.013773881830275059,
0.02705090306699276,
-0.0030196744482964277,
-0.049527816474437714,
-0.043804071843624115,
0.00828613992780447,
0.07142723351716995,
0.01862490549683571,
-0.03576367348432541,
-0.011396961286664009,
0.01152221392840147,
0.02938689850270748,
0.04412739351391792,
-0.034155577421188354,
0.060229022055864334,
0.03607294335961342,
0.011867178604006767,
-0.029529960826039314,
0.06945450603961945,
-0.011489441618323326,
-0.037300776690244675,
-0.03252783790230751,
0.009971696883440018,
-0.013730418868362904,
-0.04323209077119827,
-0.025202836841344833,
0.044750601053237915,
0.0033410731703042984,
0.010255628265440464,
-0.03199927881360054,
0.04612763226032257,
-0.0022417414002120495,
-0.01989930123090744,
-0.0018767572473734617,
0.011999610811471939,
-0.017742523923516273,
0.0737333819270134,
-0.02795647270977497,
0.012393609620630741,
-0.016576610505580902,
-0.024759244173765182,
0.02882341481745243,
0.025391489267349243,
0.048068564385175705,
0.04185447469353676,
-0.024179792031645775,
0.08379568159580231,
-0.041405294090509415,
0.015361908823251724,
-0.08670894056558609,
-0.08620241284370422,
-0.010679862461984158,
0.04245983809232712,
0.010881499387323856,
0.04851178452372551,
-0.0063295746222138405,
-0.015198132023215294,
0.04682885855436325,
0.07173597812652588,
0.052350182086229324,
0.014164388179779053,
-0.0378563329577446,
-0.016977718099951744,
0.0021581887267529964,
0.06607150286436081,
-0.05064999312162399,
-0.04559076577425003,
0.04718165844678879,
0.04741288721561432,
-0.0309329591691494,
0.02149883843958378,
-0.00958262663334608,
0.010547741316258907,
-0.03540400415658951,
-0.06455662846565247,
-0.007898446172475815,
0.030093364417552948,
0.03241710737347603,
0.008624364621937275,
-0.022562235593795776,
-0.026922456920146942,
0.0278471726924181,
0.0006825759191997349,
-0.0032924548722803593,
-0.06070561707019806,
0.022351741790771484,
-0.016590457409620285,
0.04983850568532944,
-0.04384203255176544,
0.0643000528216362,
0.0068649654276669025,
0.009703126735985279,
0.02505328133702278,
-0.04906117916107178,
0.00953666865825653,
0.05224444344639778,
0.024294888600707054,
-0.014813951216638088,
0.01329230610281229,
0.029221344739198685,
0.031654760241508484,
0.06846188753843307,
-0.003590078791603446,
0.05340465530753136,
0.026427768170833588,
0.04742559790611267,
0.07416577637195587,
0.02891799807548523,
-0.00540497899055481,
0.042838580906391144,
0.08135813474655151,
0.0018235243624076247,
-0.008541323244571686,
0.04106897488236427,
-0.05691196024417877,
0.025171738117933273,
-0.021746432408690453,
0.011859165504574776,
0.009079193696379662,
-0.0263956431299448,
0.09130155295133591,
0.02733033522963524,
-0.029773594811558723,
-0.004079385660588741,
-0.016883641481399536,
-0.003537407610565424,
0.005391329061239958,
-0.00331533863209188,
-0.011072679422795773,
0.00018020252173300833,
-0.01834404468536377,
0.00006167994433781132,
-0.06586823612451553,
-0.01921250857412815,
-0.013218292966485023,
-0.05980399623513222,
-0.014412684366106987,
-0.06840097159147263,
-0.02693173661828041,
-0.05814153328537941,
-0.025404786691069603,
0.053313303738832474,
0.008544410578906536,
0.01975276693701744,
-0.058504074811935425,
0.0003587224637158215,
-0.02149634063243866,
-0.040865179151296616,
-0.04865290969610214,
-0.04525361210107803,
-0.00221109576523304,
-0.05620119348168373,
0.004842087626457214,
0.00030612386763095856,
0.0008843629620969296,
-0.008997175842523575,
0.013960783369839191,
-0.011092503555119038,
-0.02107982337474823,
0.040143635123968124,
0.05331848934292793,
0.00914891716092825,
-0.03426365926861763,
0.013493570499122143,
-0.0027834319043904543,
0.028777582570910454,
-0.014941197820007801,
-0.048945218324661255,
0.06983968615531921,
0.05902731418609619,
0.012093613855540752,
0.006683396641165018,
0.004652644041925669,
-0.02539275772869587,
-0.039072975516319275,
-0.01629064604640007,
-0.040975283831357956,
-0.015955330803990364,
-0.026230012997984886,
-0.016384197399020195,
-0.026232808828353882,
-0.02617878094315529,
-0.015435674227774143,
0.012381186708807945,
0.021262705326080322,
0.027091138064861298,
0.06172648444771767,
0.056596506386995316,
0.017246246337890625,
-0.02276686392724514,
-0.032727379351854324,
0.03519212454557419,
0.0191720612347126,
-0.005266495514661074,
-0.05544129014015198,
-0.037423670291900635,
0.026959866285324097,
0.021574556827545166,
-0.014782577753067017,
-0.026443088427186012,
0.07580003887414932,
0.03733603656291962,
-0.015639791265130043,
-0.0050166998989880085,
-0.010393320582807064,
-0.015853699296712875,
-0.00826809462159872,
0.0032971822656691074,
-0.03691485524177551,
-0.05328945815563202,
-0.02311864122748375,
-0.021129688248038292,
0.0543476901948452,
-0.06420118361711502,
-0.06249579042196274,
-0.023585502058267593,
0.019937660545110703,
0.022044634446501732,
0.00130312773399055,
-0.028476079925894737,
0.011637695133686066,
-0.04998784884810448,
-0.028899511322379112,
0.03968938812613487,
0.031841833144426346,
0.0014691435499116778,
0.055390387773513794,
0.014255202375352383,
-0.025014638900756836,
0.036224331706762314,
0.027202850207686424,
0.04829668253660202,
0.03580908849835396,
-0.028022339567542076,
0.01636059768497944,
-0.029369529336690903,
0.01950836554169655,
-0.022457076236605644,
-0.048694908618927,
-0.049392540007829666,
-0.07883594930171967,
-0.03141041100025177,
-0.004489901941269636,
-0.02056782878935337,
-0.020678455010056496,
0.03369851037859917,
-0.004335670731961727,
-0.0069917612709105015,
-0.01068140659481287,
0.02508586086332798,
0.04921066761016846,
-0.06741216778755188,
0.05830737203359604,
0.010330180637538433,
0.03164592385292053,
-0.038768086582422256,
-0.0024514233227819204,
-0.03447767347097397,
-0.032396379858255386,
0.01945342868566513,
0.032250333577394485,
0.024558022618293762,
0.06725333631038666,
0.038828782737255096,
0.013915780000388622,
-0.03056785836815834,
0.058622151613235474,
0.02096841298043728,
-0.018682030960917473,
-0.04508372023701668,
0.006232781335711479,
-0.010792480781674385,
-0.053560275584459305,
0.0376737006008625,
-0.030779704451560974,
0.014487065374851227,
0.048272449523210526,
-0.004873604513704777,
-0.018162354826927185,
0.004811689257621765,
-0.024452734738588333,
-0.03469998762011528,
-0.05183086544275284,
-0.028774622827768326,
-0.03931138291954994,
-0.04645012691617012,
0.019499681890010834,
0.040127914398908615,
0.018513357266783714,
0.06621386110782623,
0.05731438100337982,
-0.022275181487202644,
-0.06856236606836319,
0.041090402752161026,
0.010774752125144005,
-0.03388366848230362,
-0.0671444684267044,
-0.0484045147895813,
0.028738277032971382,
0.03641311079263687,
0.005386984907090664,
-0.09881966561079025,
0.031021980568766594,
0.05088193342089653,
-0.036023352295160294,
0.046933770179748535,
0.006210345774888992,
0.010582328774034977,
0.03767060860991478,
-0.010581997223198414,
0.02950412593781948,
-0.038098957389593124,
0.0018489907961338758,
-0.010531079955399036,
0.026366638019680977,
-0.02622118405997753,
-0.03225036337971687,
-0.05899522081017494,
0.04621322825551033,
0.03226684778928757,
0.0339958481490612,
0.028366465121507645,
-0.015051142312586308,
-0.07542687654495239,
-0.030779879540205002,
0.04204748198390007,
-0.04925378039479256,
0.02721254900097847,
0.04101528972387314,
0.02930091693997383,
-0.039040956646203995,
-0.03691064938902855,
-0.0025238855741918087,
-0.005033879075199366,
0.024696646258234978,
-0.012418811209499836,
-0.03272739425301552,
-0.04248466342687607,
0.01442079059779644,
-0.006605724338442087,
-0.01625305414199829,
-0.1075943186879158,
0.02871619537472725,
-0.01189572922885418,
-0.05666434392333031,
0.056517016142606735,
0.05766083300113678,
0.014091774821281433,
0.044009532779455185,
-0.014879792928695679,
-0.008284754119813442,
-0.028958627954125404,
0.03764089196920395,
-0.02498709224164486,
-0.02295776642858982,
-0.012453393079340458,
-0.07393716275691986,
-0.02007581666111946,
-0.03349146619439125,
-0.04336879402399063,
-0.05488274618983269,
-0.009406313300132751,
0.020225856453180313,
-0.012816881760954857,
0.012358592823147774,
-0.012710010632872581,
0.02039734460413456,
-0.031479235738515854,
-0.01830950938165188,
-0.05456738546490669,
-0.03937741369009018,
-0.10038845986127853,
-0.04599486663937569,
0.04163047671318054,
-0.000989623717032373,
0.05306679382920265,
-0.01991734281182289,
0.018419498577713966,
0.02147471159696579,
0.006751019973307848,
-0.018279410898685455,
0.006933445576578379,
-0.005540529731661081,
-0.04368891939520836,
-0.034188587218523026,
0.009462552145123482,
0.010142918676137924,
0.028788691386580467,
-0.02605079859495163,
0.03293943777680397,
-0.0003574506554286927,
-0.016593068838119507,
-0.0007042111246846616,
0.031091509386897087,
0.0016442087944597006,
-0.07217545807361603,
-0.026244794949889183,
-0.012173427268862724,
-0.05929845944046974,
0.033389877527952194,
-0.0032789227552711964,
-0.03264245018362999,
-0.021631715819239616,
0.007290042471140623,
0.05267691612243652,
-0.020682085305452347,
-0.01687982678413391,
-0.006469357758760452,
-0.05432211235165596,
0.019555453211069107,
-0.06426218152046204,
0.057603318244218826,
-0.040067609399557114,
0.0031932946294546127,
-0.029409199953079224,
-0.02178274840116501,
-0.0362827368080616,
0.05754728615283966,
-0.026220280677080154,
-0.024923380464315414,
-0.008193077519536018,
0.04661272466182709,
-0.018407098948955536,
0.0468619130551815,
-0.029536139219999313,
0.036087553948163986,
-0.04470984265208244,
0.0390043705701828,
-0.04696743190288544,
0.013256506994366646,
-0.026889633387327194,
-0.013884496875107288,
-0.011201228015124798,
-0.034048642963171005,
-0.03546140715479851,
-0.06103426218032837,
0.05027167871594429,
0.0398896224796772,
0.03580821305513382,
-0.006410630885511637,
-0.014902550727128983,
-0.002006529364734888,
0.010930236428976059,
-0.07608618587255478,
-0.008755162358283997,
-0.014887111261487007,
0.04286675527691841,
0.004255740903317928,
0.03658092021942139,
0.03257385268807411,
-0.038417406380176544,
-0.04580342769622803,
0.035464514046907425,
0.021218594163656235,
0.010885528288781643,
0.011955414898693562,
0.017350006848573685,
0.04848872870206833,
0.035055384039878845,
-0.04309087619185448,
-0.020827779546380043,
-0.015304629690945148,
-0.03513194993138313,
0.009119559079408646,
-0.000281313230516389,
0.029112154617905617,
-0.002932628383859992,
-0.036664366722106934,
-0.04097087308764458,
0.07877914607524872,
0.027193091809749603,
0.019863519817590714,
0.009091738611459732,
-0.030229095369577408,
0.009870825335383415,
-0.002306054113432765,
-0.053886644542217255,
-0.027559621259570122,
-0.01798439212143421,
-0.06173420697450638,
0.05729517340660095,
-0.01673511415719986,
0.011334083043038845,
0.0320010744035244,
0.032589804381132126,
-0.0039223856292665005,
0.04826363921165466,
-0.04367685317993164,
-0.02064809575676918,
0.038374096155166626,
-0.046532291918992996,
-0.019905472174286842,
-0.009402409195899963,
0.08217591792345047,
-0.054139863699674606,
0.05513468384742737,
0.04289630427956581,
0.0011422197567299008,
-0.004172596614807844,
-0.05321010947227478,
-0.023374658077955246,
0.011458727531135082,
-0.051481474190950394,
0.06345333904027939,
-0.02093268744647503,
-0.058040570467710495,
0.0893712043762207,
0.03169713541865349,
-0.09965348243713379,
0.0165447685867548,
0.045092206448316574,
0.015543775632977486,
0.022703072056174278,
0.030567526817321777,
-0.06827043741941452,
0.031449101865291595,
-0.01078815944492817,
0.03672635182738304,
-0.05074319243431091,
-0.019629189744591713,
0.013307188637554646,
-0.03262310475111008,
-0.020461739972233772,
0.020893029868602753,
0.009454991668462753,
0.010679234750568867,
0.041962314397096634,
-0.05126960203051567,
-0.04106973484158516,
-0.029702909290790558,
0.034234870225191116,
-0.01850157044827938,
0.0069339582696557045,
-0.024955619126558304,
0.06282182782888412,
-0.013167103752493858,
-0.008061483502388,
-0.05241082236170769,
0.011567944660782814,
0.02976943366229534,
-0.08483783900737762,
-0.027342652902007103,
0.03228195384144783,
-0.021265121176838875,
-0.025515485554933548,
0.008293346501886845,
0.0037785295862704515,
0.002957934280857444,
0.018527885898947716,
-0.015413395129144192,
0.007596225012093782,
-0.033634003251791,
-0.0047844951041042805,
0.034792210906744,
-0.00267861713655293,
0.0483442023396492,
0.012390239164233208,
0.005493985489010811,
0.0384545736014843,
0.014489368535578251,
0.004707281943410635,
-0.021727165207266808,
-0.026826079934835434,
0.02872125804424286,
-0.04909930005669594,
0.010496463626623154,
0.0007643829449079931,
-0.013644925318658352,
-0.04747944697737694,
-0.02672502212226391,
-0.021594097837805748,
0.04590364545583725,
-0.04546771198511124,
0.018202615901827812,
0.04597907513380051,
-0.019016429781913757,
-0.034589800983667374,
-0.060747358947992325,
-0.028067035600543022,
-0.01646401174366474,
0.0008960936684161425,
0.02209419012069702,
-0.044277552515268326,
0.012958667241036892,
-0.03690445050597191,
-0.06455758959054947,
0.05141253024339676,
0.016694029793143272,
-0.02979472279548645,
5.245647827223365e-8,
0.03094516322016716,
-0.042009685188531876,
0.012611215934157372,
0.023619653657078743,
-0.03590890392661095,
0.015893280506134033,
0.014008100144565105,
0.007975899614393711,
0.022403951734304428,
0.032326146960258484,
-0.01942702755331993,
-0.012502781115472317,
-0.059691254049539566,
-0.03202899917960167,
-0.023106293752789497,
0.0012882533483207226,
0.04945851489901543
] |
AigizK/wav2vec2-large-xls-r-300m-bashkir-cv7_opt | [
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"ba",
"dataset:mozilla-foundation/common_voice_7_0",
"transformers",
"generated_from_trainer",
"hf-asr-leaderboard",
"mozilla-foundation/common_voice_7_0",
"robust-speech-event",
"license:apache-2.0",
"model-index",
"has_space"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 64 | null | ---
language:
- ba
license: apache-2.0
tags:
- automatic-speech-recognition
- generated_from_trainer
- hf-asr-leaderboard
- mozilla-foundation/common_voice_7_0
- robust-speech-event
datasets:
- mozilla-foundation/common_voice_7_0
model-index:
- name: wav2vec2-large-xls-r-300m-bashkir-cv7_opt
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice 7
type: mozilla-foundation/common_voice_7_0
args: ba
metrics:
- name: Test WER
type: wer
value: 0.04440795062008041
- name: "Test CER"
type: "cer"
value: 0.010491234992390509
---
<!-- 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-large-xls-r-300m-bashkir-cv7_opt
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the MOZILLA-FOUNDATION/COMMON_VOICE_7_0 - BA dataset.
It achieves the following results on the evaluation set:
- Training Loss: 0.268400
- Validation Loss: 0.088252
- WER without LM: 0.085588
- WER with LM: 0.04440795062008041
- CER with LM: 0.010491234992390509
## Model description
Trained with this [jupiter notebook](https://drive.google.com/file/d/1KohDXZtKBWXVPZYlsLtqfxJGBzKmTtSh/view?usp=sharing)
## Intended uses & limitations
In order to reduce the number of characters, the following letters have been replaced or removed:
- 'я' -> 'йа'
- 'ю' -> 'йу'
- 'ё' -> 'йо'
- 'е' -> 'йэ' for first letter
- 'е' -> 'э' for other cases
- 'ъ' -> deleted
- 'ь' -> deleted
Therefore, in order to get the correct text, you need to do the reverse transformation and use the language model.
## 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: 32
- eval_batch_size: 32
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 64
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 300
- num_epochs: 50
- mixed_precision_training: Native AMP
### Framework versions
- Transformers 4.16.1
- Pytorch 1.10.0+cu113
- Datasets 1.18.2
- Tokenizers 0.10.3
| [
-0.030909843742847443,
-0.009984084405004978,
-0.015481088310480118,
0.0359111912548542,
0.051136963069438934,
0.020162273198366165,
-0.011135826818645,
-0.013878224417567253,
-0.03439752757549286,
0.05986606329679489,
0.02261023409664631,
-0.028525015339255333,
0.012611466459929943,
0.015637246891856194,
-0.03473196178674698,
-0.06069783866405487,
-0.017593104392290115,
-0.008003794588148594,
-0.051686108112335205,
-0.01377516146749258,
0.0002909042523242533,
0.01959621161222458,
-0.033585477620363235,
0.026136932894587517,
-0.007800409570336342,
0.008743362501263618,
-0.01247133407741785,
0.013995732180774212,
0.004704922437667847,
-0.05479702353477478,
-0.009817956015467644,
-0.051669973880052567,
-0.04410318657755852,
-0.029482625424861908,
-0.00489310035482049,
0.017915349453687668,
-0.004459045827388763,
0.02216782420873642,
0.03771916776895523,
0.04880059137940407,
-0.00560110853984952,
0.02684006281197071,
-0.0021880134008824825,
-0.025614077225327492,
0.02944413758814335,
-0.00687704561278224,
-0.02591593749821186,
-0.009964081458747387,
0.0370650440454483,
-0.03612460196018219,
-0.04242813587188721,
-0.05636020377278328,
0.0013048816472291946,
0.01036022137850523,
-0.021686406806111336,
-0.02910848893225193,
-0.038643304258584976,
-0.01666085422039032,
0.0782046765089035,
-0.05104636028409004,
-0.038206275552511215,
0.0186140276491642,
-0.05480073392391205,
0.011580205522477627,
0.03239884227514267,
-0.04406806826591492,
0.017006637528538704,
-0.041993290185928345,
0.03702975809574127,
-0.017058461904525757,
0.06009569764137268,
-0.03390591964125633,
0.017121337354183197,
-0.08531934022903442,
0.004283724818378687,
-0.011899316683411598,
0.0406540110707283,
0.06978514790534973,
-0.022151125594973564,
0.056272026151418686,
0.02087094448506832,
0.009613579139113426,
0.04125463590025902,
-0.02282373607158661,
0.025525609031319618,
0.029707446694374084,
-0.03514059633016586,
0.014740907587110996,
0.019848624244332314,
0.019422562792897224,
-0.014864753000438213,
-0.038533955812454224,
-0.0342656746506691,
-0.0467529259622097,
-0.009765973314642906,
0.03946170210838318,
0.05009496212005615,
-0.023060012608766556,
0.036219704896211624,
0.014142381958663464,
0.023927586153149605,
0.01772053726017475,
-0.029231706634163857,
0.07107017934322357,
-0.02853572554886341,
-0.01662415638566017,
-0.013781806454062462,
-0.005941995419561863,
-0.0285387821495533,
0.014169332571327686,
0.02847418561577797,
-0.035767458379268646,
-0.0444524809718132,
0.036101289093494415,
0.011943403631448746,
-0.0249163918197155,
0.056506119668483734,
-0.03660513460636139,
-0.03191570192575455,
-0.047422438859939575,
0.020717443898320198,
0.024563660845160484,
0.002714114962145686,
0.02209036983549595,
-0.042183615267276764,
0.017536843195557594,
-0.024663157761096954,
-0.03903694823384285,
0.010084278881549835,
0.008626052178442478,
-0.004918769933283329,
0.05358148366212845,
0.024157797917723656,
-0.08018084615468979,
-0.009419853799045086,
-0.0059234388172626495,
-0.04964522272348404,
0.019106386229395866,
-0.01094222255051136,
0.08332677185535431,
-0.052575450390577316,
-0.07182606309652328,
0.009062016382813454,
0.019685914739966393,
-0.0005839429213665426,
0.036251604557037354,
0.014715022407472134,
-0.006024015136063099,
-0.03219322860240936,
-0.008571917191147804,
0.045614589005708694,
-0.06856514513492584,
-0.012700770981609821,
0.06665752828121185,
-0.029974456876516342,
0.03321950137615204,
-0.028272472321987152,
-0.01681956835091114,
0.016807490959763527,
-0.03038191795349121,
0.006567519623786211,
0.033331502228975296,
-0.014052489772439003,
-0.023191923275589943,
-0.03868819773197174,
-0.04985252395272255,
0.010285729542374611,
0.07167069613933563,
0.009410238824784756,
-0.013853776268661022,
-0.034906502813100815,
0.019941920414566994,
0.050749558955430984,
0.0080390190705657,
-0.04180530086159706,
0.043550848960876465,
0.05901101976633072,
0.028081532567739487,
-0.035747744143009186,
0.08076602965593338,
0.01582174375653267,
-0.0268620103597641,
-0.04840465262532234,
0.018442543223500252,
0.0010295214597135782,
-0.047579679638147354,
0.007550646550953388,
0.03971825912594795,
0.0003344478318467736,
-0.046207696199417114,
-0.042977750301361084,
0.06921893358230591,
0.0023053637705743313,
-0.005337088368833065,
0.0046867975033819675,
-0.006432438734918833,
-0.030865652486681938,
0.04346234351396561,
-0.019785383716225624,
0.009537984617054462,
-0.02404284104704857,
-0.028068793937563896,
0.007485219743102789,
0.01881539449095726,
0.02928159199655056,
0.06199998781085014,
-0.007435264531522989,
0.08735097944736481,
-0.04299076274037361,
0.01746484823524952,
-0.024195997044444084,
-0.05585053563117981,
-0.011780709028244019,
0.07176727056503296,
0.03413707762956619,
0.07495681196451187,
0.006143142003566027,
-0.04255383461713791,
0.026779908686876297,
0.0688110962510109,
0.0721951276063919,
0.006008067633956671,
-0.03342673182487488,
-0.009300041012465954,
0.04369557648897171,
0.047243881970644,
-0.05968761071562767,
-0.04489676281809807,
0.01041871402412653,
0.03626854345202446,
-0.018305271863937378,
0.006465908605605364,
-0.012781289406120777,
0.05805271118879318,
-0.053750570863485336,
-0.08331269025802612,
0.06492169946432114,
0.007315363734960556,
0.007517707068473101,
0.026151293888688087,
-0.0053708297200500965,
-0.003981184214353561,
0.028585102409124374,
0.023881735280156136,
-0.00711072888225317,
-0.029112640768289566,
0.010453036986291409,
0.00719617260619998,
0.04342813417315483,
-0.06278076022863388,
0.044200025498867035,
-0.03595654293894768,
0.007715712301433086,
0.037940606474876404,
-0.030375676229596138,
0.03521221503615379,
0.02103227563202381,
0.02382989041507244,
-0.045915719121694565,
0.009032723493874073,
0.02045457437634468,
0.03617413714528084,
0.050324127078056335,
0.010221977718174458,
0.05656149983406067,
0.012134992517530918,
0.06734310835599899,
0.07710260152816772,
0.03658819571137428,
0.009590497240424156,
0.005205912981182337,
0.073868528008461,
-0.000020523486455203965,
-0.022223301231861115,
0.07277488708496094,
-0.0409478135406971,
0.019738035276532173,
-0.046512529253959656,
0.005629061721265316,
0.0025995189789682627,
0.004549490753561258,
0.016507413238286972,
0.016280723735690117,
-0.021761704236268997,
-0.00008031766628846526,
-0.02863418310880661,
-0.021411366760730743,
0.04315865784883499,
-0.012059725821018219,
-0.007537979166954756,
-0.005539880134165287,
0.00004669341433327645,
-0.009105883538722992,
-0.07541803270578384,
-0.02976744808256626,
-0.002620997605845332,
-0.04090573638677597,
0.0046237437054514885,
-0.0713006928563118,
-0.007153215352445841,
-0.05581323057413101,
-0.006350614130496979,
0.026660142466425896,
0.021459529176354408,
0.004007996059954166,
-0.05303265154361725,
0.008045013062655926,
-0.05681337043642998,
-0.03687943145632744,
-0.04909302666783333,
-0.03367221727967262,
-0.03379097953438759,
-0.06692125648260117,
0.02915605530142784,
0.037292785942554474,
0.03341234475374222,
0.0025309138000011444,
0.004015337210148573,
-0.007025341968983412,
-0.02532361075282097,
0.04646708816289902,
0.04494376480579376,
-0.0364375039935112,
-0.0594043955206871,
0.021682409569621086,
-0.035976774990558624,
0.01825197972357273,
-0.010086385533213615,
-0.025854792445898056,
0.08010596036911011,
0.06175759434700012,
0.02171574905514717,
0.01831335946917534,
-0.039344802498817444,
-0.05416980758309364,
-0.049950454384088516,
-0.01814122125506401,
-0.03504922613501549,
-0.024966709315776825,
-0.04756281152367592,
-0.040813133120536804,
-0.013696274720132351,
-0.016697324812412262,
0.006143082398921251,
-0.013203985057771206,
-0.003544288920238614,
0.04621312394738197,
0.04436924308538437,
0.0059540728107094765,
0.028984423726797104,
-0.021486351266503334,
-0.04075870290398598,
0.08326354622840881,
0.019996197894215584,
0.023202134296298027,
-0.07998107373714447,
-0.028878988698124886,
0.020075077190995216,
0.02115248143672943,
-0.015279504470527172,
-0.0016131579177454114,
0.0909438505768776,
-0.009058266878128052,
-0.00940356869250536,
0.016012907028198242,
-0.029543612152338028,
-0.02703990787267685,
-0.01923869550228119,
-0.015910660848021507,
-0.002109633758664131,
-0.06012241542339325,
0.0068063619546592236,
0.001955014420673251,
0.04313122108578682,
-0.06546561419963837,
-0.054663967341184616,
-0.023852497339248657,
0.04037026688456535,
0.015561386942863464,
-0.01714630424976349,
-0.03440165892243385,
0.0033774455077946186,
-0.06475962698459625,
-0.023888979107141495,
0.01937755197286606,
0.019336605444550514,
0.006477840710431337,
0.0622258186340332,
0.00540452403947711,
-0.03281348943710327,
0.06102185323834419,
0.04488660767674446,
0.07190023362636566,
0.021631432697176933,
-0.0685209110379219,
0.010412284173071384,
-0.011943986639380455,
0.02521483227610588,
-0.014618176966905594,
-0.020782291889190674,
-0.033114176243543625,
-0.0876864492893219,
-0.009042431600391865,
0.014548608101904392,
-0.01308692991733551,
-0.02235802449285984,
0.03627827391028404,
-0.009191280230879784,
0.001445429865270853,
-0.0063561019487679005,
0.027998492121696472,
0.0345001146197319,
-0.04288048669695854,
0.03984353318810463,
-0.01609925925731659,
0.05305043235421181,
-0.07372447848320007,
0.01719740219414234,
-0.012426026165485382,
-0.021389300003647804,
0.009210590273141861,
0.0686374083161354,
0.002715552691370249,
0.042287327349185944,
0.08807852119207382,
0.03847283124923706,
-0.05251329019665718,
0.04410063847899437,
0.054170913994312286,
-0.04368345066905022,
-0.04206293448805809,
0.012240315787494183,
-0.01322699710726738,
-0.038771647959947586,
-0.01233691442757845,
-0.028003476560115814,
0.040900327265262604,
0.035931382328271866,
-0.011215412057936192,
0.005392950493842363,
0.014077707193791866,
-0.023680241778492928,
-0.025544576346874237,
-0.04306357353925705,
-0.0247470885515213,
0.021810153499245644,
-0.02193474769592285,
0.03840154781937599,
0.03579358011484146,
0.003803567262366414,
0.058815158903598785,
0.04357808828353882,
-0.046603940427303314,
-0.020160909742116928,
0.02273954637348652,
0.0233041699975729,
-0.03156040236353874,
-0.06708971410989761,
-0.01676684431731701,
0.06323660165071487,
0.023046329617500305,
-0.013922767713665962,
-0.07433391362428665,
-0.004649236798286438,
0.04649518430233002,
-0.03656847029924393,
0.04356830567121506,
-0.027656903490424156,
0.039740145206451416,
0.05394691228866577,
-0.01959884911775589,
0.04434019327163696,
-0.03319777175784111,
0.02100730501115322,
0.006659521721303463,
0.011577068828046322,
-0.0065485574305057526,
-0.024038420990109444,
-0.06768696010112762,
0.01848672144114971,
0.036950260400772095,
0.02765653096139431,
0.07077561318874359,
-0.016430674120783806,
-0.025293618440628052,
-0.008461611345410347,
0.012930444441735744,
-0.04196150600910187,
0.008733144961297512,
0.014060353860259056,
0.03601163253188133,
-0.030370667576789856,
-0.01855900138616562,
-0.0209637600928545,
0.00011653207911876962,
0.02139725722372532,
-0.002318310784175992,
-0.03848505765199661,
-0.023947110399603844,
0.029405631124973297,
-0.01599421724677086,
-0.03409736603498459,
-0.07894592732191086,
0.04344553500413895,
-0.00828152522444725,
0.0005571634392254055,
0.03496876731514931,
0.02132161147892475,
0.02757619135081768,
0.055397260934114456,
0.01441153697669506,
0.012894482351839542,
-0.03397268056869507,
0.038042694330215454,
-0.02993788570165634,
-0.02639441192150116,
-0.008835778571665287,
-0.035769931972026825,
-0.005943091120570898,
-0.028740249574184418,
-0.03397712484002113,
-0.03282373771071434,
-0.01810266822576523,
0.04564698785543442,
-0.0237005352973938,
-0.017213448882102966,
-0.03398134559392929,
0.03523730859160423,
-0.02790839411318302,
-0.028852617368102074,
-0.029491716995835304,
-0.022906368598341942,
-0.06302939355373383,
-0.04506908729672432,
0.03574196621775627,
-0.013072891160845757,
0.01343623362481594,
0.040507540106773376,
0.02940393052995205,
0.029357532039284706,
-0.010616936720907688,
-0.020608210936188698,
0.01869651861488819,
-0.018795667216181755,
-0.03513672202825546,
-0.024607891216874123,
0.030324747785925865,
0.013344641774892807,
0.054599009454250336,
-0.01229383610188961,
0.004282376728951931,
0.015910424292087555,
-0.03677864000201225,
-0.009284608066082,
0.02579289674758911,
0.04030850902199745,
-0.058568086475133896,
-0.05111681669950485,
0.009492338635027409,
-0.04498371109366417,
0.03384123370051384,
-0.013362987898290157,
-0.010926268063485622,
0.01257497351616621,
0.0070188697427511215,
0.041258666664361954,
0.0019917853642255068,
-0.01225978322327137,
0.03143310546875,
-0.03205069899559021,
0.0218057781457901,
-0.04437531158328056,
0.06827250123023987,
-0.03322812542319298,
0.01626811921596527,
-0.02209634892642498,
0.0033456976525485516,
-0.047072213143110275,
0.020899776369333267,
-0.00017694494454190135,
-0.009235227480530739,
0.006468974985182285,
0.042755112051963806,
-0.014758708886802197,
0.008405448868870735,
-0.003652944229543209,
0.020546868443489075,
-0.045924775302410126,
0.05976278334856033,
-0.019699230790138245,
0.01625489443540573,
-0.017100531607866287,
0.003107262309640646,
-0.032452818006277084,
0.019182240590453148,
-0.02003920078277588,
-0.05096730217337608,
0.027341436594724655,
0.05654802545905113,
0.03913883864879608,
0.04947301372885704,
-0.02649122104048729,
-0.004488818347454071,
0.011788597330451012,
-0.015198616310954094,
-0.01116671971976757,
0.01890094392001629,
0.03848506510257721,
-0.0038350140675902367,
0.06021555885672569,
0.03536326438188553,
-0.060467276722192764,
-0.07006442546844482,
0.030615048483014107,
0.008139185607433319,
0.004017869010567665,
0.016597390174865723,
0.024718010798096657,
0.04569285735487938,
0.061130836606025696,
-0.027111051604151726,
0.0003816470562014729,
-0.03480931743979454,
-0.03808086737990379,
0.034678854048252106,
-0.01155753806233406,
0.014101244509220123,
0.004306341987103224,
-0.04958866536617279,
-0.034568630158901215,
0.056316640228033066,
0.01770753227174282,
0.02758372388780117,
-0.02953537553548813,
-0.04585803672671318,
-0.00032535279751755297,
-0.023765886202454567,
-0.0597284696996212,
0.021253852173686028,
-0.005093636456876993,
-0.0160965733230114,
0.06559858471155167,
-0.012145829387009144,
0.016190949827432632,
0.04869352653622627,
0.029846983030438423,
-0.014647667296230793,
0.06404564529657364,
-0.014824100770056248,
-0.004498230759054422,
0.05063825473189354,
-0.08325102925300598,
-0.005596341099590063,
-0.03805473446846008,
0.07915306091308594,
-0.08641849458217621,
0.03210252523422241,
0.04658689349889755,
0.012259380891919136,
0.03775780275464058,
-0.04205305501818657,
-0.048700667917728424,
0.033434849232435226,
-0.04136807098984718,
0.0919763371348381,
0.02375820092856884,
-0.0379934161901474,
0.04248776659369469,
0.02362193912267685,
-0.09056365489959717,
0.040294647216796875,
0.035189926624298096,
0.039767298847436905,
0.011034082621335983,
0.050194673240184784,
-0.058923251926898956,
0.01869145594537258,
-0.03888750821352005,
0.036900389939546585,
-0.04635264724493027,
-0.006968959700316191,
0.02856927551329136,
-0.04266989603638649,
-0.02337534725666046,
0.025531332939863205,
-0.022840429097414017,
-0.03389795869588852,
0.026478612795472145,
-0.0515868216753006,
-0.05202271044254303,
0.0027852198109030724,
0.02848134934902191,
-0.06119915843009949,
0.01300874911248684,
-0.036031823605298996,
0.007519928272813559,
0.025507692247629166,
0.007621284574270248,
-0.021965760737657547,
-0.01604132167994976,
0.022535908967256546,
-0.058826226741075516,
-0.043953049927949905,
0.038114648312330246,
0.002625580644235015,
-0.01570052094757557,
0.033644892275333405,
0.019381411373615265,
0.011325272731482983,
0.0337817408144474,
-0.0037045134231448174,
0.007414155174046755,
-0.06310810148715973,
-0.02108834683895111,
0.0010982038220390677,
0.005754150450229645,
0.028154049068689346,
-0.005752272438257933,
0.03720000386238098,
0.04791983217000961,
0.0023615697864443064,
0.01303711999207735,
-0.026334727182984352,
-0.020738156512379646,
0.03142373263835907,
-0.0374256931245327,
0.01670897752046585,
0.0033952854573726654,
-0.049924567341804504,
-0.05066020041704178,
-0.008815450593829155,
-0.02142813429236412,
0.015231170691549778,
-0.06505080312490463,
-0.0147784985601902,
0.024361589923501015,
-0.03277928754687309,
-0.06163696572184563,
-0.09611796587705612,
-0.02113134041428566,
-0.042905449867248535,
0.0356154702603817,
0.030999891459941864,
-0.03829766809940338,
0.021007362753152847,
-0.04920357093214989,
-0.05781891569495201,
0.031002383679151535,
0.02389078587293625,
-0.024083029478788376,
0.044294971972703934,
0.02966114692389965,
-0.06099675968289375,
0.019196394830942154,
0.05867146700620651,
-0.03651159629225731,
0.019132543355226517,
0.02659640647470951,
0.01611408405005932,
0.039632488042116165,
0.03668838366866112,
-0.05517957732081413,
-0.009887446649372578,
-0.08104933053255081,
-0.040384817868471146,
-0.03090507909655571,
-0.006541816052049398,
0.046045929193496704
] |
AimB/mT5-en-kr-natural | [
"pytorch",
"mt5",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"MT5ForConditionalGeneration"
],
"model_type": "mt5",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 78 | null | you can use this model with simpletransfomers.
```
!pip install simpletransformers
from simpletransformers.t5 import T5Model
model = T5Model("mt5", "AimB/mT5-en-kr-natural")
print(model.predict(["I feel good today"]))
print(model.predict(["우리집 고양이는 세상에서 제일 귀엽습니다"]))
``` | [
-0.06004346162080765,
-0.016335109248757362,
0.006723075173795223,
0.02890191785991192,
0.0148444389924407,
0.0413275882601738,
0.006608871743083,
-0.003512646770104766,
-0.04621485620737076,
0.03126444295048714,
0.04113199934363365,
0.00006332839984679595,
0.018116896972060204,
0.025544967502355576,
-0.03692780062556267,
-0.002415836788713932,
-0.04158637300133705,
-0.011650255881249905,
-0.03960529714822769,
-0.01496332511305809,
0.004118459764868021,
0.009447447024285793,
-0.002363638486713171,
0.016163982450962067,
0.013518037274479866,
0.026658087968826294,
-0.03048260137438774,
0.028133144602179527,
0.0048398952931165695,
-0.058919355273246765,
-0.0009111260296776891,
-0.05018946900963783,
-0.052016690373420715,
-0.0176890529692173,
-0.04615344479680061,
0.009252836927771568,
0.014126166701316833,
-0.01996389962732792,
0.021644819527864456,
0.04521000012755394,
-0.00853118859231472,
0.021911166608333588,
-0.004005977418273687,
-0.03716569393873215,
0.026791296899318695,
0.012835018336772919,
-0.039475515484809875,
-0.014845127239823341,
0.02379678376019001,
-0.05311068519949913,
-0.05536079779267311,
-0.08639934659004211,
-0.03711074963212013,
0.02995704486966133,
-0.009193561039865017,
-0.01250891387462616,
-0.06332022696733475,
-0.03502126410603523,
0.04230380430817604,
-0.03234594315290451,
-0.018015529960393906,
0.03403588384389877,
-0.07800374925136566,
0.00010010113328462467,
0.03323712572455406,
-0.014141797088086605,
0.021700086072087288,
-0.03329640254378319,
0.03785062953829765,
-0.06240588054060936,
0.05146803706884384,
-0.012615542858839035,
0.017389792948961258,
-0.07881077378988266,
-0.019185369834303856,
-0.011156884953379631,
0.02633076347410679,
0.0357845164835453,
-0.054784443229436874,
0.036804892122745514,
0.04276026785373688,
-0.01205977238714695,
0.034183233976364136,
-0.0089442552998662,
-0.028672995045781136,
0.03527636080980301,
-0.025617675855755806,
0.010746092535555363,
0.014299673028290272,
0.036794718354940414,
-0.048490799963474274,
-0.05489613488316536,
0.006063125561922789,
-0.027258120477199554,
-0.02419198676943779,
0.019639423117041588,
0.03621002659201622,
-0.004974184557795525,
0.038738150149583817,
0.011871700175106525,
0.07298681139945984,
0.03222747519612312,
-0.001079797511920333,
0.04954685643315315,
-0.018445776775479317,
-0.011403946205973625,
0.006977615412324667,
-0.05742243677377701,
-0.008845715783536434,
0.017545754089951515,
0.019441038370132446,
-0.0295135248452425,
-0.012771312147378922,
0.0413246676325798,
0.0069134910590946674,
-0.011191142722964287,
0.039175935089588165,
-0.031481776386499405,
-0.040628887712955475,
-0.020656272768974304,
0.06923465430736542,
0.014180230908095837,
0.0166407972574234,
-0.0100877545773983,
-0.03529215231537819,
0.014048188924789429,
-0.04965949058532715,
0.00683949189260602,
-0.025126468390226364,
0.033619292080402374,
-0.012368020601570606,
0.014438197948038578,
0.02547675371170044,
-0.055688828229904175,
-0.007825430482625961,
0.0153633002191782,
-0.07121209800243378,
0.04405836760997772,
0.015345948748290539,
0.09859651327133179,
-0.07190098613500595,
-0.04146277904510498,
0.007588280830532312,
-0.002434847177937627,
-0.06216994300484657,
0.0043166945688426495,
0.017558885738253593,
-0.04713995009660721,
-0.04999386519193649,
-0.006921812891960144,
0.07944737374782562,
-0.050305962562561035,
0.00027980157756246626,
0.025785556063055992,
0.0010477416217327118,
0.014949138276278973,
-0.020408455282449722,
0.011821025982499123,
-0.009288500994443893,
0.00801301933825016,
-0.037739600986242294,
0.05149400979280472,
-0.0009564924985170364,
-0.020626870915293694,
-0.05633244663476944,
-0.024051440879702568,
0.04091396555304527,
0.06013892963528633,
0.008953096345067024,
-0.02485228143632412,
-0.004649527370929718,
0.018767718225717545,
0.01086768414825201,
0.026014385744929314,
-0.05698611959815025,
0.05459517613053322,
0.05102904513478279,
0.026671255007386208,
-0.01745307818055153,
0.04014813154935837,
0.0021911868825554848,
-0.03151583671569824,
-0.012660766951739788,
0.008735241368412971,
-0.007578689139336348,
-0.038474444299936295,
0.03336052596569061,
0.044581640511751175,
-0.019450213760137558,
-0.003153139492496848,
-0.016631152480840683,
0.03258863463997841,
-0.012024213559925556,
0.01435326598584652,
-0.022636426612734795,
-0.03194634988903999,
-0.048817045986652374,
0.019790450111031532,
-0.0051511432975530624,
-0.0059251561760902405,
-0.034294962882995605,
-0.03814830631017685,
-0.021402645856142044,
0.015237873420119286,
0.023454079404473305,
0.04446425288915634,
-0.04041038826107979,
0.08911465853452682,
-0.04702136665582657,
-0.00048511038767173886,
-0.06772906333208084,
-0.039188072085380554,
-0.01870131306350231,
0.06583074480295181,
0.019214821979403496,
0.04395660012960434,
0.001978942658752203,
-0.0665510892868042,
0.002276851562783122,
0.03587986156344414,
0.06640210002660751,
0.00963960587978363,
-0.028010709211230278,
-0.0003056896384805441,
0.016351724043488503,
0.06831044703722,
-0.05359255149960518,
-0.018828604370355606,
0.02058313973248005,
0.04536846652626991,
0.0008982167346403003,
0.03875638544559479,
-0.003431050106883049,
0.03483813256025314,
-0.062441401183605194,
-0.0402938649058342,
0.028729842975735664,
0.015080186538398266,
0.016112418845295906,
0.00728206941857934,
-0.013915716670453548,
-0.0033036288805305958,
0.002313056495040655,
-0.022522157058119774,
0.0023727586958557367,
-0.04114184528589249,
-0.009705616161227226,
-0.009490421041846275,
0.060287877917289734,
-0.019902946427464485,
0.05178219452500343,
-0.020044442266225815,
0.0010773889953270555,
0.04781192168593407,
-0.07107707858085632,
0.03595747798681259,
0.01649901084601879,
0.021501945331692696,
-0.030515896156430244,
0.0482039712369442,
0.012188814580440521,
0.0616607703268528,
0.05395125225186348,
-0.01721174083650112,
0.06133148819208145,
-0.010291967540979385,
0.03116808645427227,
0.09045857191085815,
0.0077799721620976925,
0.01863502897322178,
0.03270811215043068,
0.06816083937883377,
0.01185955386608839,
0.0005938296671956778,
0.05042998865246773,
-0.055775657296180725,
0.024315491318702698,
-0.06303253024816513,
-0.0019743922166526318,
-0.0030340382363647223,
-0.017468640580773354,
0.06399151682853699,
0.005662266630679369,
-0.03147995471954346,
0.019941462203860283,
0.001061680493876338,
0.018375994637608528,
0.030789954587817192,
0.008298438042402267,
-0.009568965993821621,
-0.010162894614040852,
-0.03444168344140053,
0.02427004463970661,
-0.08585729449987411,
-0.012048379518091679,
-0.009659160859882832,
-0.03584880381822586,
-0.014568441547453403,
-0.06594976782798767,
-0.021544814109802246,
-0.04883013665676117,
-0.03521629050374031,
0.04359467700123787,
0.006616357248276472,
0.006244919262826443,
-0.04209612309932709,
0.02527179941534996,
-0.058521073311567307,
-0.025866109877824783,
-0.037501513957977295,
-0.04012588784098625,
-0.008486165665090084,
-0.0792945995926857,
0.040430109947919846,
0.011347892694175243,
0.020384883508086205,
-0.006546679884195328,
0.000413670641137287,
-0.016070406883955002,
-0.02493252605199814,
0.07240661233663559,
0.014044394716620445,
-0.027095291763544083,
-0.048179689794778824,
0.017032140865921974,
-0.019336041063070297,
0.01697579212486744,
-0.010214773938059807,
-0.028363315388560295,
0.07378684729337692,
0.07832656055688858,
0.0295801293104887,
0.03363433852791786,
-0.006127895787358284,
-0.06980881839990616,
-0.07853478938341141,
-0.031090669333934784,
-0.030219057574868202,
-0.028150351718068123,
-0.035979703068733215,
-0.030275290831923485,
-0.006290706340223551,
-0.04880955070257187,
-0.05075153708457947,
-0.002960770856589079,
0.01177598349750042,
0.04039473459124565,
0.07751592248678207,
0.028074154630303383,
0.047383204102516174,
-0.002349598566070199,
-0.008395135402679443,
0.03183068707585335,
0.0161227285861969,
-0.019512996077537537,
-0.07124968618154526,
-0.03212876617908478,
0.03491198271512985,
0.015599077567458153,
0.008159621618688107,
-0.019983360543847084,
0.08971250802278519,
0.01595262438058853,
-0.0348963662981987,
-0.003178783692419529,
-0.013419419527053833,
0.0031972387805581093,
0.0053772833198308945,
-0.007157189305871725,
0.005780389998108149,
-0.06974624842405319,
-0.026765834540128708,
-0.001970547018572688,
0.03840984031558037,
-0.07744219899177551,
-0.04369250312447548,
-0.018539955839514732,
0.014885833486914635,
0.01085570640861988,
0.013244615867733955,
-0.061364367604255676,
-0.02074809931218624,
-0.07342535257339478,
-0.02480381727218628,
0.023754823952913284,
0.00644054776057601,
0.012093055993318558,
0.029762109741568565,
0.028367500752210617,
-0.04250671714544296,
0.023506106808781624,
0.020054809749126434,
0.03797109052538872,
0.012182078324258327,
-0.022551406174898148,
0.022069387137889862,
-0.02841556817293167,
0.02375773712992668,
0.01984455995261669,
-0.03141935542225838,
-0.03285721689462662,
-0.0750536248087883,
-0.03206467255949974,
-0.0007400007452815771,
-0.03611665964126587,
-0.006704365368932486,
0.013321341015398502,
-0.012946625240147114,
-0.03263139724731445,
0.010462474077939987,
0.03801308944821358,
0.033299241214990616,
-0.048303745687007904,
0.0447082482278347,
0.006092503201216459,
0.02265196479856968,
-0.022599659860134125,
0.01017541904002428,
-0.02419702522456646,
0.0020388856064528227,
0.0020812018774449825,
0.023816915228962898,
0.03375697880983353,
0.07554594427347183,
0.06867918372154236,
-0.006918675731867552,
-0.04692116007208824,
0.06625920534133911,
0.07117974013090134,
-0.019119184464216232,
-0.06372091919183731,
0.0022638970986008644,
-0.02643366903066635,
-0.03652738779783249,
-0.005394137930124998,
-0.04326562210917473,
0.024113865569233894,
0.02652081474661827,
-0.017510199919342995,
0.010332858189940453,
-0.017826927825808525,
-0.004026884213089943,
-0.043055277317762375,
-0.06935729086399078,
-0.04507029056549072,
0.028570884838700294,
-0.008309200406074524,
0.015466353856027126,
0.02040938287973404,
0.02416010946035385,
0.06331594288349152,
0.029533782973885536,
-0.019180556759238243,
-0.05364546552300453,
0.0035925456322729588,
0.03730012848973274,
-0.04685841500759125,
-0.07398272305727005,
-0.06931726634502411,
0.012657451443374157,
0.04886620119214058,
-0.027470003813505173,
-0.05088295787572861,
0.028822321444749832,
0.04663693532347679,
-0.033630672842264175,
0.0732802003622055,
-0.029244303703308105,
0.019645441323518753,
0.07864025980234146,
-0.03541015088558197,
0.017671048641204834,
-0.05783083662390709,
-0.004264356102794409,
0.004131225869059563,
0.03571507707238197,
-0.055716417729854584,
-0.04740734025835991,
-0.0632636621594429,
0.034211963415145874,
0.01662215031683445,
0.0431886725127697,
0.06020759418606758,
-0.00862362515181303,
-0.04445233196020126,
0.024698128923773766,
0.03377290815114975,
-0.04303037375211716,
0.03865060582756996,
0.05575220286846161,
0.021055256947875023,
-0.050716351717710495,
-0.04868932068347931,
-0.0277874618768692,
-0.0048795356415212154,
0.020260555669665337,
-0.0006221566000021994,
-0.049223676323890686,
-0.034023333340883255,
-0.009698028676211834,
-0.019148364663124084,
-0.013961623422801495,
-0.09321820735931396,
-0.0011393693275749683,
-0.005516909062862396,
-0.03150378540158272,
0.04711830988526344,
0.06148760765790939,
0.015369633212685585,
0.027258794754743576,
0.006206687074154615,
0.015954410657286644,
-0.02193799801170826,
0.04873630777001381,
-0.0455593504011631,
-0.006870269309729338,
-0.026742516085505486,
-0.06385000795125961,
-0.03058755025267601,
-0.03163924440741539,
-0.04743550717830658,
-0.06060990318655968,
0.005752188619226217,
0.01589270494878292,
-0.018743939697742462,
0.03603709489107132,
0.016245169565081596,
0.03793562948703766,
-0.01044499408453703,
-0.02223038859665394,
-0.04813302308320999,
-0.02275298535823822,
-0.07792650163173676,
-0.050173722207546234,
0.02946995012462139,
0.002688718494027853,
0.02249715104699135,
-0.001488012378104031,
0.019508372992277145,
0.0517708882689476,
-0.00629902258515358,
-0.03568848595023155,
0.02648279070854187,
0.017516715452075005,
-0.026669610291719437,
-0.0373336523771286,
-0.0035830079577863216,
0.004737074486911297,
0.025014158338308334,
-0.016700193285942078,
0.029302293434739113,
0.00633396627381444,
-0.008031629957258701,
-0.029842032119631767,
0.003977713640779257,
0.013107038103044033,
-0.0662417933344841,
-0.004906915128231049,
0.0090113440528512,
-0.052081361413002014,
0.022851010784506798,
-0.028681930154561996,
-0.01278113666921854,
0.026976527646183968,
0.02898007445037365,
0.018602637574076653,
-0.002666684566065669,
-0.023242441937327385,
0.013381682336330414,
-0.03182605281472206,
0.0040190257132053375,
-0.055956266820430756,
0.01309466827660799,
-0.03166872635483742,
0.040648214519023895,
-0.023721065372228622,
0.008649696595966816,
-0.04111381992697716,
0.034409523010253906,
-0.02811320498585701,
-0.0016032973071560264,
-0.0161559097468853,
0.03446148708462715,
-0.023213909938931465,
0.05180180072784424,
-0.009318836033344269,
-0.012929916381835938,
-0.05119045078754425,
0.053789444267749786,
-0.012156225740909576,
0.01219923421740532,
-0.030661126598715782,
0.0034495883155614138,
-0.019102569669485092,
-0.043690137565135956,
-0.012753119692206383,
-0.05407661572098732,
0.03814049810171127,
0.0068369354121387005,
0.017990324646234512,
0.03718330338597298,
0.0030452783685177565,
-0.00045944316661916673,
-0.0033827517181634903,
-0.07982566952705383,
-0.01615302823483944,
-0.011618108488619328,
-0.007959016598761082,
0.012887140735983849,
0.020351607352495193,
0.022008148953318596,
-0.06167750805616379,
-0.040494441986083984,
0.01463128812611103,
0.03731923550367355,
0.014413278549909592,
0.003753699827939272,
0.024830617010593414,
0.011840958148241043,
0.03270493447780609,
-0.014913119375705719,
-0.0014021151000633836,
0.014343495480716228,
-0.004497877787798643,
0.04156270623207092,
-0.01013131719082594,
0.026993419975042343,
-0.011024106293916702,
-0.04737870767712593,
-0.0017252969555556774,
0.07070707529783249,
0.03357132524251938,
0.023814911022782326,
0.03410671278834343,
-0.04077378287911415,
0.03598988056182861,
0.00881899893283844,
-0.037328723818063736,
0.009263124316930771,
0.036973387002944946,
-0.02482839673757553,
0.06351783871650696,
0.0019119189819321036,
-0.001927597215399146,
0.04002009704709053,
0.03750278800725937,
-0.0082960594445467,
0.03417017310857773,
-0.03415090963244438,
0.043268997222185135,
0.0062581817619502544,
-0.025233149528503418,
-0.022278927266597748,
-0.008356542326509953,
0.07917846739292145,
-0.03749614953994751,
0.05175670236349106,
0.04398871958255768,
0.012353782542049885,
-0.03211989253759384,
-0.04897557571530342,
-0.04496418684720993,
0.01717771403491497,
-0.046361975371837616,
0.06750766187906265,
-0.032300710678100586,
-0.046928856521844864,
0.06426151841878891,
0.014185036532580853,
-0.08519935607910156,
0.030561208724975586,
0.024162160232663155,
0.0351189523935318,
0.037702713161706924,
0.05607694759964943,
-0.058392010629177094,
0.009354276582598686,
-0.010938328690826893,
0.014939744025468826,
-0.053546175360679626,
-0.02035193331539631,
0.026911545544862747,
-0.032393135130405426,
-0.01245857123285532,
0.0547683909535408,
0.001572709996253252,
-0.013896267861127853,
0.022578086704015732,
-0.05897561460733414,
-0.024529237300157547,
-0.0018988788360729814,
0.006221722811460495,
0.000005996394975227304,
0.01668979413807392,
-0.0518764890730381,
0.03813839703798294,
0.03290007263422012,
-0.0282664205878973,
-0.03123481571674347,
0.02115001156926155,
0.011636631563305855,
-0.08206586539745331,
-0.027265217155218124,
0.03487677872180939,
0.013067773543298244,
-0.04191822186112404,
0.04320622235536575,
-0.006097177509218454,
0.022928161546587944,
0.03456700220704079,
0.009442511014640331,
0.04511262848973274,
-0.04741169884800911,
-0.04215523973107338,
-0.0060760327614843845,
0.002462955191731453,
0.04872734844684601,
-0.03699858859181404,
0.04031598940491676,
0.05644242838025093,
0.0037986452225595713,
0.013341018930077553,
-0.024457741528749466,
-0.043398912996053696,
-0.003426115959882736,
-0.06549462676048279,
0.006953111384063959,
0.009543811902403831,
-0.024467334151268005,
-0.06786777824163437,
-0.0403994657099247,
-0.01408536359667778,
0.06058548018336296,
-0.02909274399280548,
0.03172929584980011,
0.0406465120613575,
0.032719142735004425,
-0.04880167543888092,
-0.047019459307193756,
-0.04237373545765877,
-0.04528955742716789,
0.03459319472312927,
0.01581581123173237,
-0.06386207789182663,
0.004839299712330103,
-0.06378274410963058,
-0.06599602103233337,
0.05727114528417587,
0.013507984578609467,
-0.0026257287245243788,
0.07219304889440536,
0.053920332342386246,
-0.03997476398944855,
0.013037020340561867,
0.001107252319343388,
-0.05025734379887581,
0.04166797176003456,
0.013538419269025326,
0.027919793501496315,
0.03171417489647865,
0.02371743693947792,
-0.0481344535946846,
-0.024973075836896896,
-0.06706571578979492,
-0.025442996993660927,
-0.05705619230866432,
-0.020465029403567314,
0.04746146872639656
] |
Ajay191191/autonlp-Test-530014983 | [
"pytorch",
"bert",
"text-classification",
"en",
"dataset:Ajay191191/autonlp-data-Test",
"transformers",
"autonlp",
"co2_eq_emissions"
] | text-classification | {
"architectures": [
"BertForSequenceClassification"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 34 | null | ---
tags: autonlp
language: en
widget:
- text: "I love AutoNLP 🤗"
datasets:
- Ajay191191/autonlp-data-Test
co2_eq_emissions: 55.10196329868386
---
# Model Trained Using AutoNLP
- Problem type: Binary Classification
- Model ID: 530014983
- CO2 Emissions (in grams): 55.10196329868386
## Validation Metrics
- Loss: 0.23171618580818176
- Accuracy: 0.9298837645294338
- Precision: 0.9314414866901055
- Recall: 0.9279459594696022
- AUC: 0.979447403984557
- F1: 0.9296904373981703
## Usage
You can use cURL to access this model:
```
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/Ajay191191/autonlp-Test-530014983
```
Or Python API:
```
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("Ajay191191/autonlp-Test-530014983", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("Ajay191191/autonlp-Test-530014983", use_auth_token=True)
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
outputs = model(**inputs)
``` | [
-0.0234396792948246,
-0.024233898147940636,
-0.0071845087222754955,
0.03859707713127136,
0.031028475612401962,
0.012503944337368011,
-0.018656479194760323,
-0.024432623758912086,
-0.03983224183320999,
0.08175364136695862,
0.02413497120141983,
0.018310442566871643,
-0.004602005705237389,
0.03824572637677193,
-0.02281264401972294,
-0.021351857110857964,
0.00020971070625819266,
-0.015983596444129944,
-0.04182730242609978,
-0.014538280665874481,
-0.033239349722862244,
0.002116481540724635,
-0.008512081578373909,
-0.0008521310519427061,
-0.027813484892249107,
0.028172774240374565,
-0.03033686801791191,
0.027844460681080818,
0.01654941216111183,
-0.06706592440605164,
-0.011491329409182072,
-0.016547678038477898,
-0.03535820543766022,
-0.005916103720664978,
-0.020043352618813515,
-0.008855372667312622,
0.020140673965215683,
0.009248679503798485,
-0.000059278536355122924,
0.02909458801150322,
0.011716477572917938,
0.007042469456791878,
0.016728539019823074,
0.0011338333133608103,
0.06421926617622375,
0.004521548748016357,
-0.04363192245364189,
-0.007433137856423855,
0.04149305075407028,
-0.030074160546064377,
-0.06495187431573868,
-0.058842577040195465,
-0.04088003188371658,
0.02237294241786003,
-0.04178841412067413,
-0.021831462159752846,
-0.04273604974150658,
-0.01731366477906704,
0.07497534900903702,
-0.07792992144823074,
-0.036544762551784515,
0.0030948766507208347,
-0.1146506816148758,
0.02994030900299549,
0.03251093998551369,
-0.030313631519675255,
-0.002518875291571021,
-0.04290281608700752,
0.008726990781724453,
-0.01867382600903511,
0.0677664503455162,
-0.037595998495817184,
0.01696735806763172,
-0.08871572464704514,
0.004813361447304487,
-0.007781630847603083,
0.03650907054543495,
0.028929293155670166,
-0.01476313266903162,
0.041095271706581116,
0.04623567685484886,
-0.0031527315732091665,
0.015260115265846252,
-0.018761878833174706,
-0.010654629208147526,
0.03008119948208332,
-0.05187635123729706,
-0.0007599936798214912,
0.010982990264892578,
0.03924034163355827,
-0.051660340279340744,
-0.05314530059695244,
-0.00451158732175827,
-0.03777066245675087,
-0.03286596015095711,
0.030407274141907692,
0.04465343430638313,
-0.03150360286235809,
0.0405636690557003,
0.01697925664484501,
0.03708560764789581,
0.03958670049905777,
-0.011563182808458805,
0.08257456123828888,
0.0098571190610528,
-0.026053935289382935,
0.001741952495649457,
-0.04357193782925606,
-0.04028477519750595,
0.06015777215361595,
0.043169524520635605,
-0.021324995905160904,
-0.05706370621919632,
0.037259746342897415,
0.027112029492855072,
-0.008332275785505772,
0.04410896822810173,
-0.03236256167292595,
-0.05303073674440384,
-0.05734618753194809,
0.033370744436979294,
0.012165972031652927,
-0.005556200630962849,
-0.029456550255417824,
-0.04917960241436958,
0.010444111190736294,
-0.04314364120364189,
-0.012553001753985882,
-0.0057440465316176414,
0.030849210917949677,
-0.01167366560548544,
0.03251440078020096,
0.01775193400681019,
-0.028961684554815292,
-0.010055129416286945,
0.02482205629348755,
-0.06234528869390488,
0.04123285785317421,
0.010793764144182205,
0.1057208701968193,
-0.053066693246364594,
-0.06396833062171936,
0.039932604879140854,
-0.010834181681275368,
-0.024989036843180656,
0.0005900940741412342,
-0.007887818850576878,
-0.027387434616684914,
-0.03169229254126549,
-0.011236338876187801,
0.05655147135257721,
-0.07676150649785995,
0.002699336502701044,
0.04176703095436096,
0.002539107110351324,
0.07176879048347473,
-0.04062461853027344,
0.006254628300666809,
0.0032150070182979107,
-0.017252082005143166,
-0.04136665537953377,
0.013765743002295494,
-0.011000877246260643,
-0.024958103895187378,
-0.018177654594182968,
-0.050494905561208725,
0.007071862928569317,
0.09295493364334106,
0.012053011916577816,
0.02089778147637844,
-0.03496907651424408,
0.03064553625881672,
0.034910112619400024,
-0.001501145656220615,
-0.03245299309492111,
0.04248499497771263,
0.060119275003671646,
0.030576450750231743,
-0.024981919676065445,
0.053203970193862915,
0.02100464142858982,
-0.015670182183384895,
-0.02069246582686901,
-0.013170798309147358,
-0.0032617496326565742,
-0.020504839718341827,
0.004967783112078905,
0.03514765575528145,
-0.0062818368896842,
-0.022554324939846992,
0.018591193482279778,
0.06247013807296753,
0.016778111457824707,
-0.001027046935632825,
-0.030360156670212746,
0.00011668685328913853,
-0.004859186243265867,
0.05102914944291115,
0.004578597843647003,
-0.0014467228902503848,
-0.023144392296671867,
-0.045328058302402496,
0.021450793370604515,
0.015832554548978806,
0.04109444096684456,
0.053557999432086945,
-0.010350944474339485,
0.07984240353107452,
-0.05600621923804283,
0.016838300973176956,
-0.045518241822719574,
-0.041351817548274994,
0.02090928703546524,
0.059454839676618576,
0.03369971737265587,
0.040151435881853104,
-0.015829872339963913,
-0.02313835173845291,
0.03416251391172409,
0.06076112017035484,
0.051434218883514404,
0.0076921856962144375,
-0.025150738656520844,
-0.028225982561707497,
0.01756209507584572,
0.05804532393813133,
-0.0897645354270935,
-0.043242670595645905,
0.009788267314434052,
0.054584138095378876,
-0.03878431394696236,
0.030806316062808037,
-0.015782425180077553,
0.013480986468493938,
-0.047521572560071945,
-0.060349658131599426,
0.027907293289899826,
0.04498985409736633,
0.0440688319504261,
0.04187444970011711,
-0.003393239574506879,
-0.008274787105619907,
0.030346237123012543,
-0.002060123486444354,
-0.007596900686621666,
-0.02646675892174244,
0.0004521644441410899,
0.03591854125261307,
0.05282687768340111,
-0.04317593574523926,
0.02793501503765583,
0.0018970284145325422,
0.025189204141497612,
0.041207678616046906,
-0.050961632281541824,
0.04275190457701683,
0.03671787679195404,
0.007194352336227894,
-0.030365630984306335,
0.03157179057598114,
-0.010119070298969746,
0.026633840054273605,
0.04498725011944771,
-0.004924600478261709,
0.05680491030216217,
0.006103097461163998,
0.041623976081609726,
0.11500663310289383,
0.030669260770082474,
-0.0022670847829431295,
0.01930461823940277,
0.07144548743963242,
0.008924507535994053,
-0.019630180671811104,
0.05361490324139595,
-0.03551666438579559,
0.048606958240270615,
-0.030344093218445778,
0.015429766848683357,
-0.027907146140933037,
-0.015340669080615044,
0.04716682434082031,
0.027172688394784927,
-0.0217891875654459,
0.010962571948766708,
0.008689300157129765,
-0.0010539504000917077,
0.03274722769856453,
-0.001512258080765605,
-0.021582486107945442,
0.011966320686042309,
0.0012147040106356144,
0.02452818490564823,
-0.061865050345659256,
-0.04575076699256897,
-0.00512815173715353,
-0.024060118943452835,
-0.0030910130590200424,
-0.08879413455724716,
-0.019529839977622032,
-0.06332169473171234,
-0.003990295808762312,
0.03126511722803116,
0.024433689191937447,
0.008825836703181267,
-0.044726449996232986,
0.01508952397853136,
-0.04350210353732109,
-0.043455641716718674,
-0.04244348034262657,
-0.05461687967181206,
-0.02163570746779442,
-0.07714740931987762,
0.03601456061005592,
0.01071430929005146,
0.02017058990895748,
-0.004605820868164301,
-0.011208401061594486,
-0.032720714807510376,
-0.027671122923493385,
0.046828147023916245,
0.051468413323163986,
-0.018733350560069084,
-0.04139663279056549,
0.003112516598775983,
-0.025373710319399834,
0.008369524963200092,
-0.01860947534441948,
-0.025937216356396675,
0.06621167808771133,
0.0631052553653717,
0.02079668454825878,
0.015621320344507694,
-0.056820109486579895,
-0.03766888380050659,
-0.010516161099076271,
-0.03727184608578682,
-0.03880590200424194,
-0.018018482252955437,
-0.03511415049433708,
-0.03725995868444443,
0.02485371008515358,
-0.02648480422794819,
-0.023342613130807877,
-0.014003192074596882,
0.01634109951555729,
0.028633970767259598,
0.0625685453414917,
0.038047902286052704,
0.05044239014387131,
-0.024189138785004616,
-0.043319664895534515,
0.07394817471504211,
-0.010761565528810024,
0.005280707497149706,
-0.06274282187223434,
-0.03053118847310543,
0.03714277595281601,
0.026701100170612335,
0.013448989018797874,
-0.00509415240958333,
0.08348584175109863,
0.01799265667796135,
-0.024284230545163155,
-0.01098843663930893,
0.0012254498433321714,
-0.016276873648166656,
-0.03222725912928581,
-0.043949589133262634,
-0.009377938695251942,
-0.04158389940857887,
-0.029258733615279198,
-0.011595973744988441,
0.03692356124520302,
-0.06797149777412415,
-0.051869552582502365,
-0.020390039309859276,
0.03474902734160423,
0.01577751897275448,
0.0302164014428854,
-0.056342680007219315,
-0.002751321066170931,
-0.06175420433282852,
-0.01000313088297844,
0.030765879899263382,
0.024695077911019325,
0.007654555607587099,
0.05867711082100868,
0.03749490901827812,
-0.03601963073015213,
0.037562333047389984,
0.0033426496665924788,
0.05123637244105339,
0.0179126113653183,
-0.05677688121795654,
0.00414882879704237,
-0.0005846544518135488,
-0.00032248353818431497,
-0.0029049026779830456,
-0.02110152132809162,
-0.048098571598529816,
-0.08337331563234329,
-0.003180841915309429,
-0.008843674324452877,
-0.003704516915604472,
-0.03448181599378586,
0.05116194486618042,
0.006229271646589041,
-0.0012301997048780322,
-0.0017489324091002345,
0.023844972252845764,
0.014479384757578373,
-0.049733035266399384,
0.048341114073991776,
0.02375805377960205,
0.013597480021417141,
-0.04270251467823982,
0.006190089043229818,
-0.023097872734069824,
-0.022926107048988342,
0.008747648447751999,
0.026586497202515602,
0.029507555067539215,
0.07681408524513245,
0.03278409317135811,
0.01242212112993002,
-0.049372702836990356,
0.060557667165994644,
0.060441017150878906,
-0.02466941997408867,
-0.0713835284113884,
0.011522472836077213,
0.004403144121170044,
-0.020886503159999847,
-0.011897805146872997,
-0.020466938614845276,
0.029324395582079887,
0.05660763010382652,
-0.017101742327213287,
-0.012208225205540657,
0.009320791810750961,
-0.01645016483962536,
-0.013255201280117035,
-0.06180967390537262,
-0.0058868578635156155,
0.01576419174671173,
-0.027612458914518356,
0.012666228227317333,
0.04174818843603134,
0.03166733309626579,
0.04905540123581886,
0.04824225977063179,
-0.015223893336951733,
-0.05008798465132713,
0.03885836526751518,
0.046109601855278015,
-0.028634395450353622,
-0.06727147102355957,
-0.03199433907866478,
0.0578763447701931,
0.05855683982372284,
-0.026047945022583008,
-0.0777253732085228,
-0.011811708100140095,
0.04238360747694969,
-0.04503436014056206,
0.07887226343154907,
-0.022725677117705345,
0.013732921332120895,
0.05839686095714569,
-0.016899602487683296,
0.024200553074479103,
-0.0328986719250679,
0.001680301153101027,
0.019961576908826828,
0.00540730357170105,
-0.039318885654211044,
-0.039690062403678894,
-0.04574357718229294,
0.02837943471968174,
0.02071239985525608,
0.05886726453900337,
0.05315928906202316,
-0.027051538228988647,
-0.0811588242650032,
0.007846415974199772,
0.04829208180308342,
-0.004854923114180565,
0.018111325800418854,
0.03001983091235161,
0.026227004826068878,
-0.05042432248592377,
-0.01828213408589363,
-0.016721125692129135,
-0.013401194475591183,
0.03169836103916168,
0.027878250926733017,
-0.03436212241649628,
-0.023457864299416542,
0.014800474047660828,
-0.02525361254811287,
-0.001874733716249466,
-0.05110309273004532,
0.03813331201672554,
-0.02771170809864998,
-0.014239316806197166,
0.02665351703763008,
0.045540668070316315,
0.05347564071416855,
0.040941014885902405,
0.004040863364934921,
0.007309243083000183,
-0.0171466376632452,
0.037021487951278687,
-0.035143692046403885,
-0.01169554889202118,
-0.012242630124092102,
-0.07262703776359558,
-0.005643170326948166,
-0.041047777980566025,
-0.048374954611063004,
-0.05882519111037254,
-0.009003302082419395,
0.011824719607830048,
0.0021898497361689806,
-0.008962361142039299,
-0.007154023740440607,
0.0512404590845108,
-0.043570131063461304,
-0.026192426681518555,
-0.04392111301422119,
-0.03407058119773865,
-0.07815510779619217,
-0.05900992825627327,
0.028157193213701248,
-0.021084481850266457,
0.05307134613394737,
-0.0080758361145854,
0.024930469691753387,
0.02142615243792534,
0.009831643663346767,
-0.034925319254398346,
0.017687968909740448,
0.005585490260273218,
-0.03161134570837021,
-0.034195952117443085,
0.034223999828100204,
0.006318976171314716,
0.04503992944955826,
-0.007554096635431051,
0.016137680038809776,
0.02962358482182026,
-0.05504823848605156,
-0.02296287938952446,
0.020850230008363724,
0.02821475639939308,
-0.048618316650390625,
-0.009782313369214535,
-0.007464317604899406,
-0.06530030071735382,
0.01417071744799614,
0.0010389738017693162,
-0.0060296510346233845,
-0.008889143355190754,
0.013329530134797096,
0.03614674136042595,
-0.023410111665725708,
-0.03101729415357113,
-0.009685262106359005,
-0.057872623205184937,
0.018473470583558083,
-0.03971564397215843,
0.06417009234428406,
-0.03132586181163788,
0.006032275967299938,
0.003223292762413621,
-0.0303437989205122,
-0.04690128564834595,
0.04990287870168686,
-0.003132270183414221,
-0.017657430842518806,
-0.002222256502136588,
0.0364408977329731,
-0.037687622010707855,
0.044022947549819946,
0.002748076105490327,
0.035205163061618805,
-0.033515360206365585,
0.04902234300971031,
-0.04718323424458504,
0.007116902619600296,
-0.03496655821800232,
0.006993861868977547,
-0.021350760012865067,
-0.013188183307647705,
-0.02142450399696827,
-0.02806062623858452,
0.026568695902824402,
0.06147832050919533,
0.033432167023420334,
0.022355053573846817,
-0.04508926346898079,
0.021484248340129852,
0.003927868790924549,
-0.04976000264286995,
-0.012740543112158775,
-0.009183519519865513,
0.04041237384080887,
-0.010909022763371468,
0.05630854144692421,
0.03785547986626625,
-0.04529883712530136,
-0.04943250119686127,
0.060841962695121765,
0.02909034490585327,
0.003321422031149268,
0.006181672681123018,
0.020490802824497223,
0.024671180173754692,
0.011579773388803005,
-0.03139171749353409,
-0.0043111564591526985,
0.018965885043144226,
-0.04297507554292679,
0.014718400314450264,
-0.009202246554195881,
0.02820631116628647,
-0.011349255219101906,
-0.029723824933171272,
-0.011722891591489315,
0.04963389039039612,
0.025783704593777657,
0.00757841719314456,
0.004310596734285355,
-0.025266656652092934,
0.013678861781954765,
-0.021523872390389442,
-0.06011355668306351,
0.003695099614560604,
0.008089004084467888,
-0.029139328747987747,
0.06641688197851181,
-0.012102757580578327,
0.014509315602481365,
0.037503235042095184,
0.03360229730606079,
-0.012498191557824612,
0.0781533420085907,
-0.03464876115322113,
0.006454520858824253,
0.040194492787122726,
-0.05236627534031868,
0.004249020479619503,
-0.016210084781050682,
0.07596857100725174,
-0.06039418652653694,
0.06073164939880371,
0.04062062129378319,
0.016578225418925285,
0.023705068975687027,
-0.03772006183862686,
-0.053125083446502686,
0.02662358246743679,
-0.056552398949861526,
0.07192762196063995,
0.017594285309314728,
-0.05092642456293106,
0.06340587884187698,
0.01711580716073513,
-0.07987590879201889,
0.015077371150255203,
0.030953260138630867,
0.02208041027188301,
0.018881985917687416,
0.058611221611499786,
-0.03529708832502365,
0.03197973966598511,
-0.03259763866662979,
0.057533178478479385,
-0.054439716041088104,
-0.023692604154348373,
-0.014877994544804096,
-0.05862044915556908,
-0.04012122005224228,
0.06274399906396866,
-0.013425576500594616,
-0.024406220763921738,
0.012908016331493855,
-0.040400903671979904,
-0.023419411852955818,
-0.010337715037167072,
-0.005931555759161711,
-0.01452765241265297,
0.022341953590512276,
-0.03610585629940033,
0.0066580502316355705,
-0.013026692904531956,
0.0055622016079723835,
-0.03114009089767933,
-0.009837424382567406,
0.04056843742728233,
-0.061729948967695236,
-0.04382569342851639,
0.04033094272017479,
-0.013643467798829079,
-0.013674954883754253,
-0.0029688100330531597,
0.0061606960371136665,
0.015506437048316002,
0.024684911593794823,
-0.01437948364764452,
0.02141527459025383,
-0.043881047517061234,
-0.022939208894968033,
0.028966300189495087,
0.00442923977971077,
0.021066319197416306,
-0.003876191098242998,
0.05026675760746002,
0.04068898409605026,
0.03271922096610069,
0.00596817210316658,
-0.02712252363562584,
-0.032990165054798126,
0.018624473363161087,
-0.049138884991407394,
0.025413496419787407,
0.004772470332682133,
-0.04060794785618782,
-0.035889286547899246,
-0.009766986593604088,
-0.03031681850552559,
0.04200198873877525,
-0.04326046630740166,
-0.005349558778107166,
0.022547399625182152,
-0.0076857442036271095,
-0.03721937537193298,
-0.07957475632429123,
-0.030911333858966827,
-0.03323994576931,
0.04065728187561035,
0.017571622505784035,
-0.03650849312543869,
-0.0038076441269367933,
-0.04129216447472572,
-0.07564293593168259,
0.031100591644644737,
0.02202867716550827,
-0.026186252012848854,
0.03659842535853386,
0.05515149608254433,
-0.029871685430407524,
0.01799624040722847,
0.021849583834409714,
-0.05520976707339287,
-0.008803530596196651,
0.010810431092977524,
0.003807477653026581,
0.04664261266589165,
0.02933773398399353,
-0.044247761368751526,
-0.02914227358996868,
-0.06376329064369202,
-0.03159763291478157,
-0.038040053099393845,
-0.013740511611104012,
0.07260283082723618
] |
Ajaykannan6/autonlp-manthan-16122692 | [
"pytorch",
"bart",
"text2text-generation",
"unk",
"dataset:Ajaykannan6/autonlp-data-manthan",
"transformers",
"autonlp",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"BartForConditionalGeneration"
],
"model_type": "bart",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": true,
"length_penalty": 2,
"max_length": 142,
"min_length": 56,
"no_repeat_ngram_size": 3,
"num_beams": 4,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | null | ---
tags: autonlp
language: unk
widget:
- text: "I love AutoNLP 🤗"
datasets:
- Ajaykannan6/autonlp-data-manthan
---
# Model Trained Using AutoNLP
- Problem type: Summarization
- Model ID: 16122692
## Validation Metrics
- Loss: 1.1877621412277222
- Rouge1: 42.0713
- Rouge2: 23.3043
- RougeL: 37.3755
- RougeLsum: 37.8961
- Gen Len: 60.7117
## 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/Ajaykannan6/autonlp-manthan-16122692
``` | [
-0.03189496695995331,
-0.01676969602704048,
0.002092089969664812,
0.048906125128269196,
0.019152024760842323,
0.006377926096320152,
-0.02794368751347065,
-0.035520344972610474,
-0.021031726151704788,
0.06908029317855835,
0.0329279899597168,
0.006093441508710384,
0.01684638112783432,
0.028109120205044746,
-0.004171594046056271,
-0.0025232431944459677,
-0.025477932766079903,
0.00024060221039690077,
-0.03413365036249161,
0.005297868978232145,
-0.013319996185600758,
0.020200135186314583,
-0.024423139169812202,
0.019875820726156235,
0.0006293428596109152,
0.04005309194326401,
-0.02264929562807083,
0.037087999284267426,
0.01093941368162632,
-0.06383766233921051,
0.004925094544887543,
-0.02439144253730774,
-0.015253102406859398,
-0.010407896712422371,
-0.023170189931988716,
0.007334849797189236,
0.022419502958655357,
0.017893174663186073,
-0.0015398949617519975,
0.05573631823062897,
0.008341895416378975,
0.007700467482209206,
0.025512350723147392,
-0.01931861788034439,
0.04224980250000954,
-0.004588373936712742,
-0.04379570111632347,
-0.01949709840118885,
0.04357561469078064,
-0.019465196877717972,
-0.04743808135390282,
-0.055143993347883224,
-0.028464259579777718,
0.016542570665478706,
-0.019673053175210953,
-0.017511215060949326,
-0.03250187262892723,
-0.011682371608912945,
0.06992807984352112,
-0.06966611742973328,
-0.03460097312927246,
-0.0022746564354747534,
-0.10147135704755783,
0.031301502138376236,
0.03590011224150658,
-0.030761145055294037,
0.009233464486896992,
-0.04699449613690376,
-0.0010788354557007551,
-0.033096738159656525,
0.05909886583685875,
-0.04225289449095726,
0.013234604150056839,
-0.1005067303776741,
-0.02220311015844345,
-0.0024831376504153013,
0.04570075869560242,
0.0433303527534008,
-0.015768786892294884,
0.04259233921766281,
0.05175163969397545,
-0.012046164833009243,
0.021039828658103943,
-0.012905606999993324,
-0.020725693553686142,
0.03034396283328533,
-0.031526803970336914,
-0.002260591834783554,
-0.001439279760234058,
0.03944174572825432,
-0.04620058462023735,
-0.05235829949378967,
-0.002501106821000576,
-0.04059212654829025,
-0.030694490298628807,
0.03634415194392204,
0.03755168616771698,
-0.015878429636359215,
0.04571032524108887,
0.0224785003811121,
0.026778824627399445,
0.046032752841711044,
-0.0339089073240757,
0.07661450654268265,
0.009338971227407455,
-0.02603871561586857,
-0.005897564813494682,
-0.040268223732709885,
-0.047614648938179016,
0.051327429711818695,
0.03553161397576332,
-0.04792170226573944,
-0.06317730993032455,
0.038305047899484634,
0.01660684496164322,
-0.026182353496551514,
0.03613176569342613,
-0.0602509044110775,
-0.06860195845365524,
-0.050188034772872925,
0.047466594725847244,
0.0021480091381818056,
-0.00557633675634861,
-0.029132090508937836,
-0.05768505111336708,
0.027834977954626083,
-0.043351948261260986,
-0.005641281139105558,
0.0016158578218892217,
0.017800888046622276,
-0.007944977842271328,
0.05152861028909683,
-0.0032687948551028967,
-0.05370065197348595,
0.004430421628057957,
0.027182864025235176,
-0.050488416105508804,
0.022288136184215546,
0.028352567926049232,
0.11114238947629929,
-0.05977974086999893,
-0.07220137119293213,
0.03415666148066521,
-0.003386832308024168,
-0.024744601920247078,
0.008345216512680054,
0.03355247899889946,
-0.021201087161898613,
-0.03439312428236008,
-0.02668200433254242,
0.04287852346897125,
-0.0676492303609848,
-0.009300841018557549,
0.04366249218583107,
0.0019475570879876614,
0.04532472416758537,
-0.033858634531497955,
0.01701006107032299,
0.018469179049134254,
-0.0028841185849159956,
-0.016872750595211983,
0.015150931663811207,
0.006616188678890467,
-0.03564504161477089,
-0.043423134833574295,
-0.040962036699056625,
0.016803056001663208,
0.07695942372083664,
0.0009437893750146031,
0.011777214705944061,
-0.046441610902547836,
0.037860069423913956,
0.021353160962462425,
-0.0018130035605281591,
-0.012518474832177162,
0.024256080389022827,
0.06960772722959518,
0.04329804703593254,
-0.015342248603701591,
0.038996580988168716,
0.01729976199567318,
-0.014865833334624767,
-0.02524397522211075,
-0.019696669653058052,
0.0014470437308773398,
-0.021829668432474136,
0.011371868662536144,
0.05873220041394234,
0.009443135932087898,
-0.022117184475064278,
0.025363586843013763,
0.057705990970134735,
0.008311629295349121,
-0.022986028343439102,
-0.0067414790391922,
-0.023475907742977142,
0.006781552452594042,
0.04711279645562172,
-0.006996443960815668,
-0.005341635551303625,
-0.036387261003255844,
-0.041734352707862854,
0.0565720796585083,
0.017622333019971848,
0.03202372416853905,
0.06319841742515564,
-0.02128424122929573,
0.09406931698322296,
-0.053954675793647766,
0.009002641774713993,
-0.04160531982779503,
-0.026655176654458046,
0.018788157030940056,
0.05845774710178375,
0.04372134432196617,
0.048699215054512024,
-0.00925850123167038,
-0.044822897762060165,
0.03334607183933258,
0.07629304379224777,
0.04355250671505928,
0.027190273627638817,
-0.024238688871264458,
-0.03195299953222275,
0.01683354564011097,
0.05349792167544365,
-0.07908681780099869,
-0.044054169207811356,
0.006277463398873806,
0.06135927513241768,
-0.020703911781311035,
0.011333415284752846,
-0.013881622813642025,
0.017034605145454407,
-0.044087525457143784,
-0.06212461367249489,
0.03787897154688835,
0.0242855753749609,
0.018065690994262695,
0.040340274572372437,
-0.008382720872759819,
0.013743127696216106,
0.024558696895837784,
0.0030791573226451874,
-0.006101823877543211,
-0.017292190343141556,
-0.008397122845053673,
0.016341961920261383,
0.05996594950556755,
-0.03765515238046646,
0.028963930904865265,
0.014869027771055698,
0.03107505291700363,
0.04387645795941353,
-0.057396627962589264,
0.04733039066195488,
0.06172413006424904,
0.007741900626569986,
-0.03114444389939308,
0.03318452462553978,
-0.0027674983721226454,
0.04712417349219322,
0.032211944460868835,
-0.015006594359874725,
0.07668952643871307,
-0.0013283906737342477,
0.03675590083003044,
0.0942608192563057,
0.013582857325673103,
0.0081689627841115,
0.013519826345145702,
0.07683883607387543,
0.004400966223329306,
-0.009177174419164658,
0.06751808524131775,
-0.0286753810942173,
0.027820652350783348,
-0.019797880202531815,
0.014968464151024818,
-0.034397006034851074,
-0.018536532297730446,
0.03699798882007599,
0.010765270330011845,
0.005196408834308386,
0.008862314745783806,
0.001594310044310987,
0.0032698106952011585,
0.035283010452985764,
-0.005030650179833174,
-0.006660085637122393,
0.0039039466064423323,
-0.012207670137286186,
0.04652231186628342,
-0.06309106945991516,
-0.03424946591258049,
0.00271832337602973,
-0.022495590150356293,
0.01762213185429573,
-0.0834023654460907,
-0.02477813884615898,
-0.046581365168094635,
-0.01720995269715786,
0.02971551939845085,
0.020418312400579453,
0.012631306424736977,
-0.044107574969530106,
0.014449882321059704,
-0.025603370741009712,
-0.03313133493065834,
-0.05451279133558273,
-0.04169346019625664,
-0.007786191068589687,
-0.07830973714590073,
0.03443484380841255,
0.01977206952869892,
0.048954591155052185,
-0.016295980662107468,
-0.018485816195607185,
-0.030618086457252502,
-0.034988414496183395,
0.03477249667048454,
0.059749044477939606,
-0.01692315749824047,
-0.05366923287510872,
-0.01640126295387745,
-0.01196556817740202,
-0.007297865115106106,
-0.02127210609614849,
-0.021299051120877266,
0.080924391746521,
0.06843686103820801,
0.014968681149184704,
0.01553953904658556,
-0.03850387781858444,
-0.05619242414832115,
-0.016091372817754745,
-0.026494070887565613,
-0.03639091178774834,
-0.044692009687423706,
-0.041089270263910294,
-0.04771830141544342,
0.01556418277323246,
-0.035926274955272675,
-0.0356108695268631,
-0.008995620533823967,
0.022249190136790276,
0.013973855413496494,
0.05658090487122536,
0.04689938575029373,
0.04599898308515549,
-0.03351068124175072,
-0.022528305649757385,
0.0735241174697876,
-0.00800924003124237,
-0.006679349113255739,
-0.06093230098485947,
-0.04689192771911621,
0.04475238546729088,
0.036558568477630615,
0.028368612751364708,
-0.02421075850725174,
0.0828811302781105,
0.011308382265269756,
-0.022925006225705147,
-0.012335876934230328,
-0.0049113063141703606,
-0.022926412522792816,
-0.030972475185990334,
-0.03632784262299538,
-0.004680253565311432,
-0.049529414623975754,
-0.0037347166799008846,
-0.03367065638303757,
0.035775963217020035,
-0.05738542601466179,
-0.04260661453008652,
-0.02632795087993145,
0.01833765208721161,
0.035876963287591934,
0.01072766724973917,
-0.03656921163201332,
-0.0052991705015301704,
-0.060455627739429474,
-0.005223216023296118,
0.01816464401781559,
0.017680084332823753,
0.020550156012177467,
0.05452841892838478,
0.03380049392580986,
-0.048703379929065704,
0.03169826790690422,
0.0055822208523750305,
0.06452351808547974,
0.028959041461348534,
-0.03966384381055832,
0.011611747555434704,
-0.005972855258733034,
0.0065858676098287106,
-0.012680449523031712,
-0.041358161717653275,
-0.0640980526804924,
-0.07896585762500763,
-0.002519829897210002,
-0.004454378038644791,
0.004283657763153315,
-0.025396078824996948,
0.07350283861160278,
-0.014567787759006023,
-0.0005788198322989047,
0.003323583398014307,
0.005054611247032881,
0.02338656596839428,
-0.040030281990766525,
0.046942196786403656,
0.008808603510260582,
0.011540950275957584,
-0.03371094539761543,
0.011401021853089333,
-0.02676675096154213,
-0.01789742335677147,
-0.011291067115962505,
0.03578726947307587,
0.017056787386536598,
0.060334790498018265,
0.02500751242041588,
0.0015479923458769917,
-0.056641340255737305,
0.06272926181554794,
0.06333377957344055,
0.0005439083906821907,
-0.059619855135679245,
0.02132280170917511,
0.012858415953814983,
-0.02148864045739174,
-0.039053626358509064,
-0.024435346946120262,
0.02209366299211979,
0.061619263142347336,
-0.010941321961581707,
0.0014121694257482886,
0.029955880716443062,
-0.028610268607735634,
-0.011215213686227798,
-0.06217706948518753,
-0.0008814521715976298,
-0.008208116516470909,
-0.04325418919324875,
0.021601708605885506,
0.052352383732795715,
0.027806563302874565,
0.04213240370154381,
0.03766126185655594,
-0.021183529868721962,
-0.051211003214120865,
0.057966697961091995,
0.04944145306944847,
-0.039354268461465836,
-0.07134778797626495,
-0.05282043665647507,
0.043324586004018784,
0.050224997103214264,
-0.00802683923393488,
-0.08259512484073639,
-0.0008444166160188615,
0.031649257987737656,
-0.040950436145067215,
0.06247580051422119,
-0.021461481228470802,
0.032401323318481445,
0.053378209471702576,
0.0006683296523988247,
0.02460312470793724,
-0.020226018503308296,
-0.010374149307608604,
0.018864506855607033,
0.010531430132687092,
-0.03411300480365753,
-0.030056586489081383,
-0.03629991412162781,
0.023075656965374947,
0.0066681778989732265,
0.05137625336647034,
0.06348355859518051,
-0.032719846814870834,
-0.07085837423801422,
0.0068816845305264,
0.0387563519179821,
-0.01565123163163662,
0.02861871011555195,
0.03543417155742645,
0.03516117110848427,
-0.06321684271097183,
-0.02090841718018055,
-0.0024485373869538307,
-0.01431281864643097,
0.04603512957692146,
-0.0030486327596008778,
-0.03450530767440796,
-0.03594610467553139,
-0.003283560508862138,
-0.03738841414451599,
-0.008904406800866127,
-0.043207861483097076,
0.02222936414182186,
-0.006117846351116896,
-0.01001686230301857,
0.020540209487080574,
0.04559898376464844,
0.047683898359537125,
0.03394010663032532,
0.0008465010905638337,
0.01944558694958687,
-0.017694804817438126,
0.055505502969026566,
-0.038565028458833694,
-0.021563611924648285,
0.003952575847506523,
-0.07050863653421402,
-0.014439345337450504,
-0.04891030490398407,
-0.03312667831778526,
-0.06255437433719635,
-0.0003512898401822895,
0.02281367778778076,
-0.015608320012688637,
0.004923100583255291,
-0.0013463159557431936,
0.036549899727106094,
-0.0307080689817667,
-0.014451759867370129,
-0.03417167067527771,
-0.033848222345113754,
-0.07502450793981552,
-0.049581073224544525,
0.0052954331040382385,
-0.03089810535311699,
0.042340852320194244,
-0.008703622035682201,
0.014753898605704308,
0.025032419711351395,
0.014496676623821259,
-0.032802168279886246,
0.02087268978357315,
0.00756449718028307,
-0.03369922563433647,
-0.029181426391005516,
0.0160264540463686,
0.008541742339730263,
0.053665030747652054,
-0.02937043085694313,
0.022601185366511345,
0.010408254340291023,
-0.04978007450699806,
-0.01687764748930931,
0.01018088310956955,
0.019181234762072563,
-0.04916822165250778,
-0.01898764818906784,
-0.014834440313279629,
-0.044437721371650696,
0.01578909158706665,
-0.01981770060956478,
-0.019710738211870193,
0.013321994803845882,
0.008337709121406078,
0.023405350744724274,
-0.0005518255638889968,
-0.03089742735028267,
-0.017255764454603195,
-0.04860231280326843,
0.016422700136899948,
-0.051120441406965256,
0.04577475041151047,
-0.04281383007764816,
0.009392281994223595,
-0.0072524636052548885,
-0.02599424310028553,
-0.06656984984874725,
0.05721264332532883,
-0.016148442402482033,
0.0024483695160597563,
0.0018681297078728676,
0.03230363875627518,
-0.04000203311443329,
0.05092910677194595,
-0.009719079360365868,
0.02280261553823948,
-0.024073468521237373,
0.05263526365160942,
-0.04269934073090553,
-0.0013104976387694478,
-0.02847703918814659,
-0.005905570462346077,
-0.014715333469212055,
-0.013879229314625263,
-0.011188381351530552,
-0.008616767823696136,
0.025793299078941345,
0.05406763777136803,
0.04011731594800949,
0.03141283988952637,
-0.04745769873261452,
0.016831157729029655,
0.00030656965100206435,
-0.047738999128341675,
-0.012605113908648491,
0.0016417063307017088,
0.04716839641332626,
-0.02326572686433792,
0.07384990900754929,
0.03649638220667839,
-0.03646797686815262,
-0.036395877599716187,
0.04546832665801048,
0.008489045314490795,
0.00647476501762867,
0.020619086921215057,
0.015375325456261635,
0.02697889879345894,
0.01989291049540043,
-0.012495581991970539,
0.009485763497650623,
0.013360188342630863,
-0.047853898257017136,
0.015101894736289978,
-0.014313708990812302,
0.02643771655857563,
-0.008864376693964005,
-0.01902766339480877,
-0.03250303119421005,
0.07405012845993042,
0.02844620868563652,
0.011318678967654705,
-0.0016262424178421497,
-0.028511743992567062,
0.02476656623184681,
-0.005108807701617479,
-0.06323167681694031,
0.008190375752747059,
0.006301483139395714,
-0.02254159189760685,
0.05515997111797333,
-0.011904934421181679,
0.009748325683176517,
0.055792901664972305,
0.019622810184955597,
-0.04114679619669914,
0.06237896904349327,
-0.018601883202791214,
0.011743690818548203,
0.06199086457490921,
-0.0522436685860157,
-0.01891748048365116,
-0.03482259064912796,
0.08922673016786575,
-0.058246955275535583,
0.05902519449591637,
0.033763252198696136,
0.017693137750029564,
0.04936961457133293,
-0.038473550230264664,
-0.051340099424123764,
0.030777527019381523,
-0.05520031601190567,
0.061119578778743744,
0.017967041581869125,
-0.04023044556379318,
0.051266852766275406,
0.023995472118258476,
-0.06219414994120598,
0.020395008847117424,
0.011647969484329224,
0.007020875811576843,
0.006812098901718855,
0.03509211912751198,
-0.030595144256949425,
0.027720391750335693,
-0.03324791416525841,
0.048967089504003525,
-0.061176009476184845,
-0.035073790699243546,
-0.01145530678331852,
-0.07598857581615448,
-0.041856832802295685,
0.05430666729807854,
-0.007379365153610706,
-0.017982160672545433,
0.017035847529768944,
-0.04416313394904137,
-0.05596207082271576,
0.0005350120482034981,
-0.014737051911652088,
-0.014837317168712616,
0.026916511356830597,
-0.04042770341038704,
-0.003554028458893299,
0.0018387790769338608,
0.002936904551461339,
-0.02630663849413395,
-0.01182432472705841,
0.033115096390247345,
-0.05471054092049599,
-0.03489096090197563,
0.05022220313549042,
-0.004519368521869183,
-0.016873225569725037,
-0.012795901857316494,
0.0008379771024920046,
0.013273673132061958,
0.03255632892251015,
-0.025693150237202644,
0.02394033409655094,
-0.06149463355541229,
-0.028832197189331055,
0.0392882265150547,
0.00766513217240572,
0.0261392705142498,
-0.012770597822964191,
0.05146241933107376,
0.04714500159025192,
0.02712411805987358,
0.01356826163828373,
-0.03214707598090172,
-0.041541606187820435,
0.019276244565844536,
-0.033862072974443436,
0.04395456612110138,
-0.008421272970736027,
-0.03164304792881012,
-0.025857362896203995,
-0.007446807809174061,
-0.018418654799461365,
0.04365936294198036,
-0.04284093156456947,
-0.0030185130890458822,
0.02583223581314087,
-0.011690152809023857,
-0.0365341491997242,
-0.0812465250492096,
-0.022618087008595467,
-0.018329374492168427,
0.04444335028529167,
0.022860683500766754,
-0.04407031834125519,
-0.004016447346657515,
-0.058261048048734665,
-0.05959971621632576,
0.048809368163347244,
0.03529897332191467,
-0.031371403485536575,
0.045972950756549835,
0.044247210025787354,
-0.030732376500964165,
0.016842806711792946,
0.013898775912821293,
-0.054067108780145645,
0.005315007641911507,
0.015696343034505844,
0.008230719715356827,
0.038718629628419876,
0.015957297757267952,
-0.0391254797577858,
-0.02900700457394123,
-0.06970040500164032,
-0.045869067311286926,
-0.04434207081794739,
0.005606531631201506,
0.09159659594297409
] |
Akari/albert-base-v2-finetuned-squad | [
"pytorch",
"tensorboard",
"albert",
"question-answering",
"dataset:squad_v2",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"autotrain_compatible"
] | question-answering | {
"architectures": [
"AlbertForQuestionAnswering"
],
"model_type": "albert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 13 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
datasets:
- squad_v2
model-index:
- name: albert-base-v2-finetuned-squad
results: []
---
<!-- 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. -->
# albert-base-v2-finetuned-squad
This model is a fine-tuned version of [albert-base-v2](https://huggingface.co/albert-base-v2) on the squad_v2 dataset.
It achieves the following results on the evaluation set:
- Loss: 0.9492
## 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: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:-----:|:---------------:|
| 0.8695 | 1.0 | 8248 | 0.8813 |
| 0.6333 | 2.0 | 16496 | 0.8042 |
| 0.4372 | 3.0 | 24744 | 0.9492 |
### Framework versions
- Transformers 4.12.3
- Pytorch 1.7.1
- Datasets 1.15.1
- Tokenizers 0.10.3
| [
-0.029572684317827225,
-0.020743416622281075,
-0.016498945653438568,
0.04478905722498894,
0.04452267661690712,
0.006870929151773453,
-0.026607204228639603,
0.013551851734519005,
-0.029215577989816666,
0.04142707586288452,
0.04274341091513634,
-0.015718000009655952,
0.006309848744422197,
0.0355350524187088,
-0.06201643869280815,
-0.046518951654434204,
0.005945345852524042,
-0.006584129296243191,
-0.025049764662981033,
-0.02388966642320156,
0.00882721971720457,
0.005741554778069258,
0.015417664311826229,
0.01446401234716177,
0.006224194075912237,
0.021039845421910286,
-0.019058652222156525,
0.02124548703432083,
0.0533825121819973,
-0.04741738364100456,
0.0174137931317091,
-0.022323239594697952,
-0.039528585970401764,
-0.03478414937853813,
-0.007599331438541412,
-0.004793989472091198,
0.008266379125416279,
0.013844121247529984,
0.04547742009162903,
0.0502183735370636,
-0.008555423468351364,
0.02473270334303379,
-0.01725711114704609,
-0.009049203246831894,
0.06854497641324997,
0.020782800391316414,
-0.017628749832510948,
-0.018702900037169456,
0.04536648839712143,
-0.028504133224487305,
-0.0689823254942894,
-0.06909332424402237,
-0.03362129628658295,
0.03612751513719559,
0.001807190477848053,
-0.007008784916251898,
-0.06382758915424347,
0.007809502072632313,
0.06402178108692169,
-0.06828015297651291,
-0.033421266824007034,
0.028704173862934113,
-0.061308957636356354,
0.027986302971839905,
0.03563056141138077,
-0.02984584867954254,
0.02774483524262905,
-0.046298589557409286,
0.04407356306910515,
-0.01330428384244442,
0.06974165141582489,
0.007960698567330837,
0.02907031588256359,
-0.0574466735124588,
0.009103123098611832,
-0.006525417324155569,
0.024892989546060562,
0.03942813351750374,
-0.033099010586738586,
0.05983611196279526,
0.015467138960957527,
-0.011403241194784641,
0.024479560554027557,
-0.0302896685898304,
-0.010275311768054962,
0.03060857579112053,
-0.047051750123500824,
0.03166317939758301,
0.02044099010527134,
0.03514035791158676,
-0.0510818287730217,
-0.0146985137835145,
-0.03666091710329056,
-0.028956692665815353,
-0.018659403547644615,
0.03476395457983017,
0.0385134220123291,
0.029228316619992256,
0.024822328239679337,
0.010424819774925709,
0.042592853307724,
0.04867137596011162,
-0.02755582518875599,
0.0730186402797699,
0.004463567864149809,
-0.013318503275513649,
-0.019064491614699364,
-0.013658871874213219,
-0.03717866167426109,
0.032405465841293335,
0.04051247611641884,
-0.02714795246720314,
-0.04383376985788345,
0.01703992299735546,
0.03037288226187229,
-0.0032373685389757156,
0.0748283863067627,
-0.028894225135445595,
-0.035880498588085175,
-0.037412237375974655,
0.03438502177596092,
0.013847160153090954,
-0.010084682144224644,
-0.010337200947105885,
-0.029354294762015343,
-0.030696172267198563,
-0.02423478476703167,
-0.04729391634464264,
-0.015246422961354256,
0.024827420711517334,
0.009497668594121933,
0.0616399310529232,
0.0207968857139349,
-0.06663333624601364,
-0.011296405456960201,
0.005458979867398739,
-0.055271368473768234,
0.04815371707081795,
-0.0051523661240935326,
0.10852938145399094,
-0.05959920212626457,
-0.07705594599246979,
0.035890668630599976,
0.001954261912032962,
-0.014348971657454967,
-0.007296659052371979,
-0.006322245113551617,
-0.05897053703665733,
-0.015231538563966751,
0.014790830202400684,
0.06876453012228012,
-0.036230336874723434,
-0.011667449958622456,
0.07285083830356598,
-0.009059827774763107,
0.02514907717704773,
-0.046723417937755585,
-0.009791701100766659,
0.02346504107117653,
-0.01292811892926693,
-0.01905537024140358,
0.060548797249794006,
-0.018319612368941307,
-0.02050740271806717,
-0.014163022860884666,
-0.03419288992881775,
-0.009385655634105206,
0.09209377318620682,
0.008224950172007084,
-0.01269146054983139,
-0.016709914430975914,
0.031281694769859314,
0.029942303895950317,
0.03629078343510628,
-0.008687104098498821,
0.03703496232628822,
0.06667781621217728,
0.03304601088166237,
-0.029843546450138092,
0.029627621173858643,
0.03960121423006058,
-0.024312803521752357,
-0.014651967212557793,
0.011529574170708656,
-0.00548646179959178,
-0.02927355282008648,
0.046946145594120026,
0.014062988571822643,
0.0113219004124403,
-0.05267948657274246,
-0.03788679093122482,
0.04844679310917854,
-0.01381524745374918,
0.0015128583181649446,
0.002249391982331872,
0.005349344108253717,
-0.02365613356232643,
0.048250142484903336,
-0.025536973029375076,
-0.005432321690022945,
-0.04216634854674339,
-0.03557935357093811,
0.018851183354854584,
0.004144853446632624,
0.030144652351737022,
0.05800437554717064,
-0.004921244457364082,
0.10885444283485413,
-0.026634778827428818,
0.027659228071570396,
-0.02951042354106903,
-0.03108745440840721,
0.02257446013391018,
0.06037266552448273,
0.06184447184205055,
0.05784691497683525,
0.012375695630908012,
-0.048144612461328506,
0.0385696142911911,
0.054663438349962234,
0.032376259565353394,
0.015544549562036991,
-0.02938908524811268,
-0.02637971192598343,
0.03631781041622162,
0.057479217648506165,
-0.03865565359592438,
-0.007086762692779303,
0.017371946945786476,
0.028947440907359123,
0.010571782477200031,
0.028551816940307617,
-0.017180951312184334,
0.03439534083008766,
-0.06195150315761566,
-0.05815701186656952,
0.03671422600746155,
0.027241848409175873,
-0.03258323669433594,
0.028634699061512947,
-0.003931266255676746,
-0.0053780218586325645,
0.009928097017109394,
0.02684170939028263,
-0.000042430099711054936,
-0.03491044044494629,
0.017560556530952454,
-0.0009304534178227186,
0.057600222527980804,
-0.04470078647136688,
0.04818087816238403,
-0.01997007615864277,
0.02645064704120159,
0.03093208558857441,
-0.03250028192996979,
0.03170749545097351,
0.050077758729457855,
0.020584875717759132,
-0.022006571292877197,
0.026838315650820732,
0.01922512613236904,
0.037624236196279526,
0.04608040675520897,
0.0019074581796303391,
0.07237830013036728,
-0.002327239839360118,
0.04541202634572983,
0.06639168411493301,
0.03172898665070534,
0.036375779658555984,
0.03124813735485077,
0.07310427725315094,
0.025947008281946182,
-0.007349788211286068,
0.044156793504953384,
-0.05174453929066658,
0.012615224346518517,
-0.028049644082784653,
0.0025109276175498962,
-0.02255961112678051,
-0.003627820871770382,
0.051343463361263275,
0.012656365521252155,
-0.00946989469230175,
-0.028749773278832436,
-0.014362206682562828,
-0.007921415381133556,
0.014353632926940918,
-0.00563983665779233,
-0.0042967163026332855,
0.018814856186509132,
-0.010803804732859135,
-0.02719517983496189,
-0.0666785016655922,
-0.03155643865466118,
0.0012987165246158838,
-0.02325195074081421,
-0.02906206250190735,
-0.07196538895368576,
-0.018472392112016678,
-0.06010682135820389,
-0.02090389095246792,
0.039480872452259064,
-0.01554743479937315,
-0.0028671545442193747,
-0.03712322562932968,
0.026499956846237183,
-0.05476875230669975,
-0.03509281948208809,
-0.040383949875831604,
-0.054610565304756165,
-0.030124567449092865,
-0.05822271853685379,
0.027948368340730667,
0.021582961082458496,
0.021082747727632523,
-0.00015798975073266774,
0.005078521557152271,
-0.013651377521455288,
-0.033196523785591125,
0.0457797572016716,
0.05522151291370392,
-0.03281554579734802,
-0.06223824992775917,
0.019152779132127762,
-0.0040383110754191875,
0.016783537343144417,
0.02632865495979786,
-0.0253438763320446,
0.08545276522636414,
0.07021591812372208,
0.013833063654601574,
0.020650450140237808,
-0.02234739251434803,
-0.0583810992538929,
-0.060105033218860626,
-0.024511391296982765,
-0.044562432914972305,
-0.008671159856021404,
-0.03428524732589722,
-0.03164124861359596,
-0.031673770397901535,
-0.019189847633242607,
0.009764684364199638,
-0.0015620716148987412,
0.020769167691469193,
0.040514025837183,
0.03610610589385033,
0.010795382782816887,
0.022430341690778732,
-0.038634248077869415,
-0.04296328127384186,
0.03794209659099579,
0.0031306499149650335,
0.004639007616788149,
-0.08480755984783173,
-0.028018532320857048,
0.03387902304530144,
0.03116987831890583,
0.0037158422637730837,
0.001466869842261076,
0.0835718885064125,
-0.005386766511946917,
0.007855943404138088,
0.026022426784038544,
-0.010476493276655674,
-0.040834423154592514,
-0.013939031399786472,
0.01163945160806179,
0.004372456576675177,
-0.03859058767557144,
-0.004303845576941967,
0.013395956717431545,
0.046087879687547684,
-0.04911328852176666,
-0.046419668942689896,
-0.009371423162519932,
0.045653942972421646,
0.050223737955093384,
-0.008129709400236607,
-0.04036865755915642,
-0.02147343009710312,
-0.07759111374616623,
-0.0103342579677701,
0.027746081352233887,
0.0037670175079256296,
-0.0073750508017838,
0.043226584792137146,
0.034267835319042206,
-0.030922845005989075,
0.03974501043558121,
0.042511872947216034,
0.08751633763313293,
0.005895535461604595,
-0.05224446952342987,
0.004540464840829372,
-0.029976023361086845,
0.03938155621290207,
0.001741952495649457,
-0.03778212144970894,
-0.018421052023768425,
-0.11242397874593735,
-0.025932012125849724,
-0.005114913452416658,
-0.008755471557378769,
-0.013921287842094898,
0.040963657200336456,
0.005004937294870615,
-0.02785188890993595,
-0.0020738192833960056,
0.010954060591757298,
0.04602761194109917,
-0.029392743483185768,
0.06612623482942581,
-0.013582260347902775,
0.026378056034445763,
-0.03794034570455551,
-0.004249326419085264,
-0.012799883261322975,
-0.023725852370262146,
0.013284415937960148,
0.04696473851799965,
-0.013493712060153484,
0.05252326652407646,
0.06531257182359695,
0.03192480653524399,
-0.04069413244724274,
0.04244658723473549,
0.05769382417201996,
-0.026874206960201263,
-0.04515258967876434,
0.005886424332857132,
-0.010634707286953926,
-0.013806349597871304,
0.004523945972323418,
-0.003273801878094673,
0.030371839180588722,
0.04173162952065468,
-0.014181705191731453,
0.024837594479322433,
-0.008048707619309425,
-0.004743879195302725,
-0.03639910742640495,
-0.029259027913212776,
-0.012041664682328701,
0.026551904156804085,
-0.008126083761453629,
0.01351610105484724,
0.0327579490840435,
0.013775651343166828,
0.062299102544784546,
0.044144079089164734,
-0.02999747544527054,
-0.05121162533760071,
0.029742509126663208,
0.015963232144713402,
-0.023174813017249107,
-0.08406736701726913,
-0.022951330989599228,
0.042434025555849075,
0.029775753617286682,
-0.015286127105355263,
-0.06319756805896759,
-0.013247247785329819,
0.04784746840596199,
-0.05162423476576805,
0.05666421726346016,
-0.007343110162764788,
0.051914602518081665,
0.07446799427270889,
-0.0350881963968277,
0.023486364632844925,
-0.0219972375780344,
-0.02191822975873947,
0.012969291768968105,
0.01914183981716633,
-0.018829399719834328,
-0.04289335384964943,
-0.049541886895895004,
0.026684729382395744,
0.08336219936609268,
0.029461534693837166,
0.031036177650094032,
-0.02137288637459278,
-0.03303797170519829,
0.02278684638440609,
0.04134640842676163,
-0.04778328165411949,
-0.0070343054831027985,
0.023274468258023262,
0.03243468329310417,
-0.04472291097044945,
-0.04637030512094498,
-0.03527839481830597,
-0.01124428678303957,
0.033119410276412964,
-0.0026555703952908516,
-0.034596920013427734,
-0.043331194669008255,
0.0395105704665184,
0.012368815019726753,
-0.021492591127753258,
-0.06969818472862244,
0.04760259762406349,
-0.009019268676638603,
0.0018763241823762655,
0.06438667327165604,
0.028970859944820404,
0.0316728912293911,
0.05728236585855484,
0.03637918084859848,
0.015074758790433407,
-0.039527252316474915,
0.039245206862688065,
-0.017428018152713776,
-0.024528836831450462,
0.006190554704517126,
-0.04050437733530998,
-0.019052719697356224,
-0.01478654332458973,
-0.034720007330179214,
-0.0439489483833313,
-0.03124835342168808,
0.001568663865327835,
-0.00043132409336976707,
0.007041349541395903,
-0.009527315385639668,
0.02832994982600212,
-0.015657830983400345,
-0.03958728164434433,
-0.02177741564810276,
-0.00870963092893362,
-0.0608379989862442,
-0.04150919243693352,
0.02245899848639965,
-0.0009957135189324617,
0.04889095947146416,
0.018087459728121758,
0.031046157702803612,
0.009055759757757187,
0.003623242722824216,
-0.05431666970252991,
-0.00266366102732718,
-0.004327516071498394,
-0.015690965577960014,
-0.024831125512719154,
0.014282415620982647,
0.02016540989279747,
0.027932316064834595,
-0.021614454686641693,
0.03786534443497658,
0.025193825364112854,
-0.0016218445962294936,
-0.013084267266094685,
0.028566883876919746,
0.027691412717103958,
-0.08207535743713379,
-0.014117560349404812,
-0.007173345424234867,
-0.04099799320101738,
0.007211191114038229,
-0.053547196090221405,
-0.0014007978606969118,
0.01930982619524002,
0.011000393889844418,
0.037325989454984665,
0.009746338240802288,
-0.021503137424588203,
0.02282666601240635,
-0.02609698846936226,
0.019788315519690514,
-0.07153422385454178,
0.028646793216466904,
-0.032900478690862656,
0.011950855143368244,
-0.029290691018104553,
0.013022324070334435,
-0.04615560919046402,
0.041324906051158905,
-0.033659983426332474,
-0.008345452137291431,
-0.021293597295880318,
0.04104606807231903,
-0.040990691632032394,
0.02774643339216709,
-0.015144349075853825,
0.04893006011843681,
-0.03748239949345589,
0.050227586179971695,
-0.029623765498399734,
0.01592142879962921,
-0.04568477347493172,
0.04099312424659729,
-0.03244223818182945,
0.03061525709927082,
-0.00685453973710537,
-0.01829589530825615,
0.018572300672531128,
0.07028911262750626,
0.05538949742913246,
0.009558556601405144,
-0.028931589797139168,
-0.006629902869462967,
0.027487745508551598,
-0.049582190811634064,
-0.014869307167828083,
0.01738019473850727,
-0.0007977269706316292,
0.000988020678050816,
0.032629020512104034,
0.05029881000518799,
-0.04372666776180267,
-0.05369089916348457,
0.04472595080733299,
0.013115798123180866,
0.007196841295808554,
-0.0035389873664826155,
0.03188159316778183,
0.02413237653672695,
0.05338144674897194,
-0.03706948831677437,
0.0004988265573047101,
-0.021300338208675385,
-0.02944541536271572,
0.04128412902355194,
-0.012090646661818027,
0.04591793194413185,
0.024751393124461174,
-0.03240653872489929,
-0.024752844125032425,
0.07495776563882828,
0.03590543568134308,
0.01405310072004795,
-0.015753449872136116,
-0.04297833889722824,
0.03830293193459511,
-0.014882005751132965,
-0.02918059751391411,
0.023934558033943176,
0.006651026196777821,
-0.04074663296341896,
0.07005626708269119,
0.002775486558675766,
0.004344521556049585,
0.013871809467673302,
0.024332545697689056,
-0.0016105325194075704,
0.06433174014091492,
-0.022844364866614342,
0.0383753776550293,
0.04930852726101875,
-0.08434205502271652,
0.008598966524004936,
-0.04972601309418678,
0.062036819756031036,
-0.05595957115292549,
0.021546227857470512,
0.059961579740047455,
0.0076036290265619755,
0.016563385725021362,
-0.05114404112100601,
-0.05839228630065918,
0.0013042043428868055,
-0.06006576493382454,
0.06684360653162003,
0.018721934407949448,
-0.06264491379261017,
0.0431683249771595,
0.01451664138585329,
-0.05926363915205002,
0.04820003733038902,
0.039155829697847366,
0.06600742787122726,
0.0364508330821991,
0.05490173026919365,
-0.07575825601816177,
0.017297687008976936,
-0.033869095146656036,
0.038756754249334335,
-0.07412940263748169,
-0.02670920267701149,
0.039250049740076065,
-0.03901582956314087,
-0.011524577625095844,
0.051025956869125366,
-0.003592001972720027,
-0.0037585620302706957,
0.03542815521359444,
-0.045478563755750656,
-0.029178494587540627,
0.010136660188436508,
0.004843830596655607,
-0.03442965820431709,
0.017810530960559845,
-0.04450346902012825,
0.0099185761064291,
0.013344132341444492,
0.013678462244570255,
-0.027920180931687355,
0.011498781852424145,
0.01063119899481535,
-0.04151098430156708,
-0.019180050119757652,
0.03318996727466583,
-0.015546024776995182,
-0.034397173672914505,
0.03189854696393013,
0.02073223888874054,
0.02788316085934639,
0.010519124567508698,
0.004424680024385452,
0.023806635290384293,
-0.032496970146894455,
-0.022857701405882835,
0.012976448982954025,
-0.020807193592190742,
0.029534947127103806,
0.005998683627694845,
0.0411822535097599,
0.024617360904812813,
0.012423505075275898,
-0.014103060588240623,
-0.0230982955545187,
-0.03900168463587761,
0.0459909550845623,
-0.02354031801223755,
0.004909547511488199,
-0.018572168424725533,
-0.04008207842707634,
-0.05139663815498352,
-0.005365403369069099,
-0.030512185767292976,
0.016264019533991814,
-0.04732281342148781,
0.005571797955781221,
0.02189255692064762,
-0.007961480878293514,
-0.07047469913959503,
-0.093421570956707,
0.0028227129951119423,
-0.0395796038210392,
0.020815609022974968,
0.04083683714270592,
-0.04349096119403839,
0.024653077125549316,
-0.04133925586938858,
-0.04908313602209091,
0.06470707803964615,
0.02061355859041214,
-0.051765844225883484,
0.03713168203830719,
0.051726747304201126,
-0.064879409968853,
-0.0038745750207453966,
0.011653195135295391,
-0.033246736973524094,
0.00708737364038825,
0.017904724925756454,
0.04188578203320503,
0.032097168266773224,
0.007166942115873098,
-0.05799543857574463,
-0.035666923969984055,
-0.08068649470806122,
-0.048252448439598083,
-0.045865852385759354,
0.03178894892334938,
0.08530420064926147
] |
Akash7897/bert-base-cased-wikitext2 | [
"pytorch",
"tensorboard",
"bert",
"fill-mask",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
model-index:
- name: bert-base-cased-wikitext2
results: []
---
<!-- 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. -->
# bert-base-cased-wikitext2
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the None dataset.
It achieves the following results on the evaluation set:
- Loss: 6.8544
## 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: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3.0
### Training results
| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 7.0915 | 1.0 | 2346 | 7.0517 |
| 6.905 | 2.0 | 4692 | 6.8735 |
| 6.8565 | 3.0 | 7038 | 6.8924 |
### Framework versions
- Transformers 4.16.2
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.11.6
| [
-0.017138328403234482,
-0.01508724968880415,
-0.0287577286362648,
0.04021750018000603,
0.03171816095709801,
0.013152047991752625,
-0.010431719943881035,
-0.021625515073537827,
-0.04631798341870308,
0.06324805319309235,
0.007839635014533997,
-0.021449975669384003,
0.01795564405620098,
0.04290119186043739,
-0.02515418827533722,
-0.03186814859509468,
-0.00010081304208142683,
0.0012844073353335261,
-0.03293376788496971,
-0.006907033268362284,
-0.004458783660084009,
-0.0007841126061975956,
-0.0012076173443347216,
0.009227870963513851,
0.009038252755999565,
0.02548242174088955,
-0.01467214897274971,
0.023363111540675163,
0.029953762888908386,
-0.06796649843454361,
-0.0011265950743108988,
-0.026982784271240234,
-0.04581284895539284,
-0.019195033237338066,
-0.009528644382953644,
-0.01763823628425598,
-0.011845829896628857,
0.0025983040686696768,
0.033138457685709,
0.04692554846405983,
-0.005115891341120005,
0.03161807730793953,
0.008706647902727127,
-0.033484719693660736,
0.05636740103363991,
0.008607096038758755,
-0.03885030746459961,
0.0008033186895772815,
0.04505479708313942,
-0.022576862946152687,
-0.07557372003793716,
-0.054376088082790375,
-0.046274248510599136,
0.036329999566078186,
-0.01507127471268177,
-0.01433913316577673,
-0.057263921946287155,
0.0111261997371912,
0.08025268465280533,
-0.02486872486770153,
-0.041049133986234665,
0.008218272589147091,
-0.0642559677362442,
0.025727124884724617,
0.036311328411102295,
-0.02292107604444027,
0.016046792268753052,
-0.03815235570073128,
0.033959150314331055,
-0.030321212485432625,
0.06119334325194359,
-0.005685549695044756,
-0.00020116852829232812,
-0.10607059299945831,
-0.028932610526680946,
0.0003146078670397401,
0.049721188843250275,
0.0598081536591053,
-0.027121787890791893,
0.05514245852828026,
0.0098063750192523,
-0.002233658218756318,
0.045754823833703995,
-0.014365720562636852,
0.021469466388225555,
0.046092551201581955,
-0.03797429800033569,
0.0017709925305098295,
0.004238781053572893,
0.04703471064567566,
-0.03910975158214569,
-0.015993716195225716,
-0.03627103939652443,
-0.01776791177690029,
-0.02241843193769455,
0.028196029365062714,
0.01726304180920124,
0.013239581137895584,
0.04553034529089928,
0.01519862562417984,
0.03133339062333107,
0.035637304186820984,
-0.01340454164892435,
0.06712821125984192,
0.01368713565170765,
-0.012353078462183475,
-0.004086171742528677,
-0.00849020853638649,
-0.03815672546625137,
0.028414029628038406,
0.030190778896212578,
-0.028223810717463493,
-0.040838807821273804,
0.038462281227111816,
0.015325620770454407,
-0.012785155326128006,
0.0761520117521286,
-0.026762980967760086,
-0.04896840453147888,
-0.031592316925525665,
0.0453861765563488,
-0.00332465348765254,
-0.003947804216295481,
0.00677851028740406,
-0.04188743978738785,
-0.013030393049120903,
-0.01983122155070305,
-0.005314401816576719,
-0.005040207412093878,
0.0038807615637779236,
-0.0033230711705982685,
0.06278505176305771,
0.02983296476304531,
-0.07208756357431412,
-0.011979348957538605,
0.017605653032660484,
-0.05245427042245865,
0.058846890926361084,
0.0017502798000350595,
0.10901131480932236,
-0.07327666133642197,
-0.05778643861413002,
0.012349641881883144,
0.004588412586599588,
-0.024583367630839348,
0.0051935091614723206,
0.0208858922123909,
-0.026357753202319145,
-0.00040957017336040735,
-0.0004685337480623275,
0.058193936944007874,
-0.042372725903987885,
-0.024752289056777954,
0.05943114683032036,
-0.01178760826587677,
0.04168558120727539,
-0.05591064691543579,
-0.014458561316132545,
0.033957600593566895,
-0.01864396221935749,
-0.02751881815493107,
0.03995136916637421,
-0.020051898434758186,
-0.013214406557381153,
-0.024037301540374756,
-0.037379324436187744,
0.0022521994542330503,
0.08719366043806076,
-0.0005254657589830458,
-0.02919129468500614,
-0.011912425048649311,
0.02531874179840088,
0.06186961755156517,
0.043101631104946136,
-0.03785233572125435,
0.03644360229372978,
0.062429189682006836,
0.03774406760931015,
-0.03454422578215599,
0.04218670353293419,
0.013189590536057949,
-0.03474823385477066,
-0.028565825894474983,
0.03629852458834648,
-0.004236230161041021,
-0.04316798970103264,
0.043572936207056046,
0.02309579588472843,
0.001970017096027732,
-0.05432647094130516,
-0.027180524542927742,
0.05269450694322586,
0.00826577004045248,
-0.01157122477889061,
0.021335309371352196,
0.011526654474437237,
-0.025195620954036713,
0.03614473715424538,
-0.02637430466711521,
0.0005949958576820791,
-0.0260416679084301,
-0.016999341547489166,
0.014304431155323982,
-0.01760605350136757,
0.02249728888273239,
0.051838189363479614,
-0.005260934587568045,
0.08714117109775543,
-0.038604188710451126,
0.02363724075257778,
-0.05034725368022919,
-0.03709452599287033,
0.01758488640189171,
0.05252157896757126,
0.048023734241724014,
0.04723813757300377,
0.014608469791710377,
-0.04454899951815605,
0.022990765050053596,
0.059574782848358154,
0.04110150411725044,
0.021396838128566742,
-0.0389595665037632,
-0.007485645357519388,
0.03367706388235092,
0.06462413817644119,
-0.03550216928124428,
-0.03762305900454521,
-0.002414833288639784,
0.049143869429826736,
-0.008898116648197174,
0.03170009329915047,
-0.01634255051612854,
0.026093656197190285,
-0.03554433956742287,
-0.0562758632004261,
0.053408075124025345,
0.03300860896706581,
0.0039860839024186134,
0.02580743283033371,
-0.006659962702542543,
0.012588735669851303,
0.020648764446377754,
0.02048857882618904,
-0.005321495234966278,
-0.05564239248633385,
0.01136401854455471,
0.021658992394804955,
0.04386294633150101,
-0.044617909938097,
0.05367506667971611,
-0.00918813981115818,
0.017287245020270348,
0.033281322568655014,
-0.031024165451526642,
0.030186966061592102,
0.045808251947164536,
0.013848584145307541,
-0.04068397730588913,
0.02009359560906887,
0.01363955345004797,
0.028666023164987564,
0.042003948241472244,
0.02256453037261963,
0.0774141475558281,
0.005000402219593525,
0.04221821948885918,
0.0805244967341423,
0.024244990199804306,
0.04508072882890701,
0.028971992433071136,
0.0763828232884407,
0.002659472171217203,
-0.014977690763771534,
0.062388770282268524,
-0.03177164867520332,
0.013693355023860931,
-0.05063668265938759,
-0.005374596919864416,
-0.02606542408466339,
-0.014292198233306408,
0.042420726269483566,
0.01588756963610649,
-0.012684375047683716,
-0.003043974982574582,
-0.01028580591082573,
-0.013940599747002125,
0.027424385771155357,
0.01486013550311327,
0.014938346110284328,
0.001549028092995286,
-0.005612497683614492,
-0.005757827777415514,
-0.07901715487241745,
-0.0393979474902153,
-0.0132942209020257,
-0.02860977314412594,
-0.014708043076097965,
-0.09265554696321487,
-0.021497007459402084,
-0.08392885327339172,
-0.025310656055808067,
0.0364890918135643,
0.002593319397419691,
-0.023005256429314613,
-0.034685373306274414,
0.006118047516793013,
-0.04144245758652687,
-0.042969781905412674,
-0.04613596573472023,
-0.04823615401983261,
-0.06064023822546005,
-0.08454880863428116,
0.034407418221235275,
0.0346575602889061,
0.019336752593517303,
0.0015132855623960495,
0.000696738890837878,
0.002323238179087639,
-0.024065930396318436,
0.03833829239010811,
0.050809480249881744,
-0.04156326875090599,
-0.05132036656141281,
0.03268420323729515,
-0.024911411106586456,
0.03785359486937523,
0.015920856967568398,
-0.01901673898100853,
0.08410200476646423,
0.0594589002430439,
0.016611317172646523,
0.020962733775377274,
-0.016548315063118935,
-0.056705374270677567,
-0.06386048346757889,
-0.025039520114660263,
-0.024220798164606094,
-0.01889537088572979,
-0.04939919710159302,
-0.04632599279284477,
-0.0196477472782135,
-0.03772296756505966,
0.015351603738963604,
-0.014616386033594608,
0.009147675707936287,
0.01401013508439064,
0.03316164389252663,
0.016509348526597023,
0.04246769845485687,
-0.027788961306214333,
-0.04342558979988098,
0.06494559347629547,
0.00863764900714159,
0.008126672357320786,
-0.0892849937081337,
-0.013131033629179,
0.034996066242456436,
0.026949625462293625,
0.021268635988235474,
-0.0018362832488492131,
0.056697625666856766,
-0.0004919925122521818,
-0.009361673146486282,
0.00392177002504468,
-0.026761114597320557,
-0.037475667893886566,
-0.00673007732257247,
-0.0062156603671610355,
-0.01993964985013008,
-0.038615528494119644,
-0.029012281447649002,
-0.0036634912248700857,
0.03228658065199852,
-0.066490039229393,
-0.04651065543293953,
-0.0016820369055494666,
0.03138059377670288,
0.02275031991302967,
-0.0011593971867114305,
-0.0420793779194355,
-0.014622502028942108,
-0.06211105361580849,
-0.01659252680838108,
0.036694809794425964,
-0.0034383528400212526,
0.018043598160147667,
0.043633174151182175,
0.028162023052573204,
-0.017313912510871887,
0.03483990952372551,
0.039014577865600586,
0.05986637994647026,
0.004948298912495375,
-0.08719564229249954,
0.009515279904007912,
-0.02314884029328823,
0.02092421054840088,
-0.026363130658864975,
-0.01586868055164814,
-0.03211163356900215,
-0.10092376917600632,
-0.007736752741038799,
0.008837258443236351,
-0.009818335995078087,
-0.018804362043738365,
0.03712163120508194,
-0.017508629709482193,
-0.026023052632808685,
-0.003636839333921671,
0.0034550984855741262,
0.024725131690502167,
-0.02882729098200798,
0.04291072487831116,
-0.016633743420243263,
0.021201036870479584,
-0.06713277101516724,
0.009250598028302193,
-0.04158363491296768,
-0.008615697734057903,
0.004065682180225849,
0.05717362463474274,
0.005755323451012373,
0.057255007326602936,
0.07770475745201111,
0.04026526212692261,
-0.050785914063453674,
0.042849887162446976,
0.05261632427573204,
-0.016739994287490845,
-0.03214123845100403,
0.01432025246322155,
-0.015448513440787792,
-0.02394746243953705,
-0.0004199519462417811,
-0.022112542763352394,
0.05062026157975197,
0.03814464062452316,
0.002010427415370941,
0.003885244019329548,
0.005682371091097593,
0.0014986870810389519,
-0.04004785045981407,
-0.05849052965641022,
-0.011907460168004036,
-0.014132915064692497,
-0.0287525225430727,
0.02253626473248005,
0.04058491811156273,
0.013157001696527004,
0.06337182968854904,
0.03703970089554787,
-0.04543118551373482,
-0.019151534885168076,
0.024469265714287758,
0.02775823324918747,
-0.014516433700919151,
-0.0738183856010437,
-0.041064534336328506,
0.03114793822169304,
0.0383492186665535,
-0.02814498357474804,
-0.0827672928571701,
0.010187619365751743,
0.05025069788098335,
-0.05318516865372658,
0.05432141572237015,
-0.009797175414860249,
0.04545045271515846,
0.07422330975532532,
-0.0247134231030941,
0.045848261564970016,
-0.01367560587823391,
-0.010719474405050278,
-0.00892830640077591,
0.021354341879487038,
-0.015851657837629318,
-0.045445702970027924,
-0.03665344417095184,
0.026742614805698395,
0.04026801511645317,
0.03318380191922188,
0.03432982787489891,
-0.03249453380703926,
-0.051688361912965775,
0.009450213052332401,
0.04322423040866852,
-0.02893408015370369,
-0.0008368663256987929,
0.02898094244301319,
0.030301859602332115,
-0.05827243626117706,
-0.0284865852445364,
-0.03726059943437576,
-0.018995463848114014,
0.03902549296617508,
-0.0075251213274896145,
-0.023681391030550003,
-0.04521402344107628,
0.029980499297380447,
0.004749709274619818,
-0.009976740926504135,
-0.057994890958070755,
0.04750676453113556,
-0.0033402128610759974,
-0.019069980829954147,
0.04510834068059921,
0.031861815601587296,
0.009640072472393513,
0.05400639399886131,
0.010760088451206684,
0.00554043659940362,
-0.040774665772914886,
0.03946952521800995,
-0.03714797645807266,
-0.02122560702264309,
0.005372070241719484,
-0.035795629024505615,
-0.000978753319941461,
-0.02885115146636963,
-0.04917904734611511,
-0.04243244603276253,
-0.018607247620821,
0.0340743213891983,
-0.0024362781550735235,
-0.008556985296308994,
-0.005736307706683874,
0.05796123668551445,
-0.02997894026339054,
-0.031010357663035393,
-0.037150297313928604,
-0.02885964699089527,
-0.05645371973514557,
-0.044669464230537415,
0.00791666004806757,
0.025503752753138542,
0.03422999754548073,
0.024981463328003883,
0.008515196852385998,
0.004873643163591623,
-0.0010081809014081955,
-0.045749910175800323,
0.001698593026958406,
0.004243432078510523,
-0.030736779794096947,
-0.025997232645750046,
0.041521478444337845,
0.030834706500172615,
0.030241984874010086,
-0.029705505818128586,
0.029053306207060814,
0.016226207837462425,
-0.005120076239109039,
-0.0302879735827446,
0.0202016644179821,
0.008233651518821716,
-0.07396946102380753,
-0.020650630816817284,
-0.006908626761287451,
-0.04839080199599266,
0.03725605085492134,
-0.04370326176285744,
-0.0336710624396801,
0.005307972896844149,
0.021090727299451828,
0.04470372572541237,
-0.022162025794386864,
-0.029422175139188766,
0.024777211248874664,
-0.03272031247615814,
0.023447666317224503,
-0.05448924005031586,
0.0430852435529232,
-0.03650389984250069,
0.014702198095619678,
-0.025606494396924973,
0.012718084268271923,
-0.04211385175585747,
0.0374675989151001,
-0.010824755765497684,
-0.035866543650627136,
-0.005213576834648848,
0.04386881738901138,
-0.01747879572212696,
0.026505284011363983,
-0.003961063455790281,
0.030555076897144318,
-0.015311510302126408,
0.06028662249445915,
-0.04280848056077957,
0.014467548578977585,
-0.041658494621515274,
0.016774456948041916,
-0.028567317873239517,
0.004008221440017223,
-0.005431258585304022,
-0.03349076956510544,
0.0360206663608551,
0.05163778364658356,
0.03270415589213371,
0.02379324473440647,
-0.013316280208528042,
-0.0028093052096664906,
0.029113518074154854,
-0.049451977014541626,
-0.025582535192370415,
0.011050708591938019,
-0.005900720600038767,
-0.00796951912343502,
0.0573415607213974,
0.04429914057254791,
-0.06907685846090317,
-0.06674911826848984,
0.04417525604367256,
0.013799662701785564,
-0.006753807421773672,
0.007297586649656296,
0.039121415466070175,
0.03417336568236351,
0.05029793456196785,
-0.025503862649202347,
0.0012968877563253045,
-0.01504907663911581,
-0.04935105890035629,
0.04584084078669548,
-0.003672055434435606,
0.040260832756757736,
0.019742803648114204,
-0.030344292521476746,
-0.035648200660943985,
0.058139920234680176,
0.02304673381149769,
0.027548039332032204,
-0.007842193357646465,
-0.03762035071849823,
0.03354526311159134,
0.001678599277511239,
-0.045598480850458145,
0.013077951967716217,
0.01411221083253622,
-0.033194247633218765,
0.06505196541547775,
-0.005452918820083141,
0.002250736579298973,
0.04011288285255432,
0.025964681059122086,
-0.013917595148086548,
0.0781797245144844,
-0.04149708151817322,
0.011821165680885315,
0.054218392819166183,
-0.06672663241624832,
-0.014308519661426544,
-0.0235223900526762,
0.06938908994197845,
-0.0590444914996624,
0.028251392766833305,
0.039332203567028046,
0.011573897674679756,
0.022487306967377663,
-0.04017951712012291,
-0.038870345801115036,
0.01258375495672226,
-0.0626550018787384,
0.09199298918247223,
0.005843668710440397,
-0.05407511070370674,
0.05079042166471481,
0.010734492912888527,
-0.061361704021692276,
0.03246765583753586,
0.034655023366212845,
0.03586535528302193,
0.02139377035200596,
0.04709099233150482,
-0.048597514629364014,
0.0032538471277803183,
-0.053228672593832016,
0.02686253748834133,
-0.04307298734784126,
-0.015799229964613914,
0.030178086832165718,
-0.03650312125682831,
-0.008783342316746712,
0.036020759493112564,
-0.016967475414276123,
-0.011202143505215645,
0.04845423251390457,
-0.06592587381601334,
-0.054734766483306885,
0.008981393650174141,
0.026760462671518326,
-0.052097417414188385,
-0.004197270609438419,
-0.04445236548781395,
0.013659319840371609,
-0.0003323126002214849,
0.0027717978227883577,
-0.03059464320540428,
0.007416081614792347,
0.021585246548056602,
-0.06345314532518387,
-0.03913994878530502,
0.04193906858563423,
-0.0022279550321400166,
-0.02713373489677906,
0.03988077864050865,
0.00786890834569931,
0.017901424318552017,
0.03205813467502594,
-0.008656123653054237,
0.022335385903716087,
-0.03932303562760353,
-0.016755251213908195,
0.0191318541765213,
-0.004361993633210659,
0.05780290067195892,
-0.00449163606390357,
0.02355681173503399,
0.011795111931860447,
0.026706088334321976,
-0.004740557167679071,
-0.06127901375293732,
-0.03234080970287323,
0.012505943886935711,
-0.03047247603535652,
0.00312765222042799,
-0.001077833934687078,
-0.04436666518449783,
-0.04172392189502716,
0.0034638175275176764,
-0.04405166208744049,
0.024277931079268456,
-0.06791108846664429,
0.022371571511030197,
0.0481484979391098,
-0.01210706401616335,
-0.07344577461481094,
-0.11081258207559586,
-0.013624356128275394,
-0.04885207489132881,
0.003757024649530649,
0.03443034365773201,
-0.024179747328162193,
0.029705455526709557,
-0.049083612859249115,
-0.042317237704992294,
0.03900236636400223,
0.021973466500639915,
-0.06791002303361893,
0.04823630303144455,
0.06138264015316963,
-0.04529871419072151,
0.006224514450877905,
0.02640913985669613,
-0.032135605812072754,
0.007752633653581142,
0.014022588729858398,
0.008624404668807983,
0.029498828575015068,
0.02403452806174755,
-0.04235142841935158,
-0.018921377137303352,
-0.08367454260587692,
-0.0407458133995533,
-0.040621764957904816,
0.013791551813483238,
0.0619596503674984
] |
Akash7897/distilbert-base-uncased-finetuned-cola | [
"pytorch",
"tensorboard",
"distilbert",
"text-classification",
"dataset:glue",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"model-index"
] | text-classification | {
"architectures": [
"DistilBertForSequenceClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 31 | null | ---
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
metrics:
- name: Matthews Correlation
type: matthews_correlation
value: 0.522211073949747
---
<!-- 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: 1.0789
- Matthews Correlation: 0.5222
## 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.1472 | 1.0 | 535 | 0.8407 | 0.4915 |
| 0.1365 | 2.0 | 1070 | 0.9236 | 0.4990 |
| 0.1194 | 3.0 | 1605 | 0.8753 | 0.4953 |
| 0.1313 | 4.0 | 2140 | 0.9684 | 0.5013 |
| 0.0895 | 5.0 | 2675 | 1.0789 | 0.5222 |
### Framework versions
- Transformers 4.16.2
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.11.6
| [
-0.016847942024469376,
0.012150720693171024,
-0.01897217333316803,
0.04333428293466568,
0.06852603703737259,
0.023040657863020897,
-0.0285385400056839,
-0.026320114731788635,
-0.04608210176229477,
0.05947006493806839,
0.034364018589258194,
-0.011909706518054008,
0.021749870851635933,
0.03322174772620201,
-0.01470303162932396,
-0.01845112070441246,
-0.018848678097128868,
-0.014671136625111103,
-0.02987714111804962,
-0.01939580962061882,
0.0017925179563462734,
-0.024010436609387398,
-0.017285853624343872,
0.0016103859525173903,
-0.0101380730047822,
0.008350119926035404,
0.004934066906571388,
0.02315474860370159,
0.044238071888685226,
-0.06493862718343735,
-0.0011088193859905005,
-0.05866251140832901,
-0.03599657118320465,
-0.010938904248178005,
-0.010531715117394924,
-0.014531108550727367,
0.007347553502768278,
0.024369429796934128,
0.023632045835256577,
0.044344712048769,
-0.002271654549986124,
0.006273492239415646,
-0.00469919852912426,
-0.03162214532494545,
0.048181939870119095,
0.004977395758032799,
-0.03733723238110542,
-0.010903516784310341,
0.03215918689966202,
-0.011432618834078312,
-0.0670386329293251,
-0.058678578585386276,
-0.025797991082072258,
0.03034636378288269,
-0.001467150286771357,
-0.02327222377061844,
-0.05286116898059845,
0.03140406683087349,
0.05121287703514099,
-0.04020705074071884,
-0.03541135787963867,
0.02138070948421955,
-0.06512904167175293,
0.0007601121324114501,
0.020836874842643738,
-0.02677413634955883,
-0.0091566676273942,
-0.04265012592077255,
0.02669590152800083,
-0.013815361075103283,
0.05713936313986778,
-0.019141461700201035,
0.04010234400629997,
-0.05854705348610878,
-0.020583098754286766,
0.003173344535753131,
0.0195189006626606,
0.039113059639930725,
-0.038228802382946014,
0.05029973015189171,
0.041836321353912354,
0.008711769245564938,
0.028411366045475006,
-0.02510122023522854,
0.004425491206347942,
0.003956694155931473,
-0.046021804213523865,
-0.0037600533105432987,
0.04907993972301483,
0.006186169106513262,
-0.03482487425208092,
-0.04075411707162857,
-0.04184959828853607,
-0.03758419677615166,
0.002898824168369174,
0.029434796422719955,
0.019538437947630882,
-0.0017754524014890194,
0.053297776728868484,
0.01570151373744011,
0.0227873045951128,
0.04002278670668602,
-0.03549014404416084,
0.06601203978061676,
-0.014581950381398201,
-0.0035479716025292873,
0.00838126614689827,
-0.005877624731510878,
-0.061540473252534866,
0.008568985387682915,
0.018943805247545242,
-0.013080130331218243,
-0.028006520122289658,
0.046376071870326996,
-0.010453490540385246,
-0.01411744300276041,
0.05552263185381889,
-0.03431957587599754,
-0.03650188818573952,
-0.050817325711250305,
0.050231050699949265,
0.00974526721984148,
0.008679388090968132,
0.020714139565825462,
-0.03221436217427254,
-0.006984025239944458,
-0.016105011105537415,
-0.028321363031864166,
-0.037615034729242325,
0.02717103809118271,
0.01838371530175209,
0.06651961803436279,
0.016278358176350594,
-0.07991772145032883,
0.009983764961361885,
0.03218498453497887,
-0.03527797758579254,
0.04178648814558983,
0.029720382764935493,
0.12131203711032867,
-0.07340813428163528,
-0.06327468156814575,
0.018229061737656593,
0.021077187731862068,
-0.019903084263205528,
0.017526065930724144,
-0.004412890877574682,
-0.025230946019291878,
0.00032725511118769646,
0.007263036910444498,
0.06422790884971619,
-0.058833397924900055,
-0.0013471676502376795,
0.07700517773628235,
-0.011165044270455837,
0.028733082115650177,
-0.057292383164167404,
-0.01158630009740591,
0.008451241068542004,
-0.0248552355915308,
-0.038629427552223206,
0.03954264521598816,
0.007555819116532803,
-0.021823961287736893,
-0.03282591700553894,
-0.037598975002765656,
0.0006888792268000543,
0.08976414799690247,
-0.010432397946715355,
-0.028872985392808914,
-0.02205219306051731,
0.026262400671839714,
0.059811241924762726,
0.03638492897152901,
-0.034084420651197433,
0.04241935908794403,
0.07193812727928162,
0.037128426134586334,
-0.023939508944749832,
0.029455428943037987,
0.0065369633957743645,
-0.001829840475693345,
-0.0472223274409771,
0.026918087154626846,
-0.017492691054940224,
-0.057567574083805084,
0.036877527832984924,
-0.01445769239217043,
0.015587588772177696,
-0.05551856383681297,
-0.06491372734308243,
0.05463945120573044,
-0.019442887976765633,
-0.013058922253549099,
0.0020658723078668118,
0.0123854149132967,
-0.0392037108540535,
0.043733686208724976,
-0.011952782981097698,
0.006461313460022211,
-0.026934640482068062,
-0.04193662852048874,
0.048550620675086975,
-0.022187719121575356,
0.03362523764371872,
0.04881029203534126,
-0.007498547434806824,
0.08079970628023148,
-0.03906150162220001,
0.0015315631171688437,
-0.054297689348459244,
-0.0420653410255909,
0.017084112390875816,
0.05046727508306503,
0.04410308599472046,
0.06649091839790344,
-0.00813885685056448,
-0.027090033516287804,
0.04339144006371498,
0.06768075376749039,
0.033748794347047806,
0.004632120486348867,
-0.016311150044202805,
-0.021720511838793755,
0.03193698450922966,
0.050830479711294174,
-0.06635365635156631,
-0.02347773127257824,
0.01165183074772358,
0.03763793781399727,
0.0006485519115813076,
-0.004259969107806683,
-0.015475737862288952,
0.02927110344171524,
-0.049985844641923904,
-0.05299702286720276,
0.04079375043511391,
0.020262349396944046,
-0.003915160428732634,
0.008981643244624138,
0.0037066140212118626,
-0.0049009546637535095,
0.01993432827293873,
0.022180642932653427,
0.007365110795944929,
-0.06816966086626053,
0.021722402423620224,
0.027422714978456497,
0.058895617723464966,
-0.060038939118385315,
0.037198666483163834,
-0.01199138443917036,
0.009729424491524696,
0.03397025167942047,
-0.036323629319667816,
0.04596203938126564,
0.06120476499199867,
0.028108635917305946,
-0.01094988826662302,
0.0341077521443367,
0.02112022042274475,
0.03700189292430878,
0.010945716872811317,
0.008763732388615608,
0.06857524067163467,
-0.0006740604876540601,
0.04653211683034897,
0.07645417749881744,
0.014204823412001133,
0.017175978049635887,
0.027163315564393997,
0.07409965246915817,
0.034408845007419586,
-0.013318579643964767,
0.03853042423725128,
-0.06479767709970474,
0.02397080697119236,
-0.0434027723968029,
-0.0007787799695506692,
-0.04137377068400383,
0.006870971992611885,
0.0619814470410347,
0.05769006535410881,
-0.02077338844537735,
-0.002304455265402794,
0.03274662047624588,
0.004684029147028923,
0.026909034699201584,
-0.004718905780464411,
-0.00022156861086841673,
-0.026998257264494896,
-0.01104310154914856,
-0.03275343403220177,
-0.06373316794633865,
-0.052310314029455185,
-0.01115696132183075,
-0.023604337126016617,
-0.01512087695300579,
-0.0899125188589096,
-0.020632972940802574,
-0.08908937126398087,
-0.0314263179898262,
0.034477800130844116,
0.01509709283709526,
0.0009020526777021587,
-0.03682240843772888,
-0.017020996659994125,
-0.04750334471464157,
-0.031175522133708,
-0.04129946231842041,
-0.04313018172979355,
-0.0678040012717247,
-0.05220780521631241,
0.035790544003248215,
0.03497772291302681,
0.016839182004332542,
0.0034221175592392683,
0.01730223186314106,
-0.004451069049537182,
-0.017319360747933388,
0.050042200833559036,
0.05350097268819809,
-0.028409484773874283,
-0.03602692112326622,
0.030768660828471184,
-0.019914986565709114,
0.012248467653989792,
0.008964109234511852,
-0.03881634771823883,
0.08929409831762314,
0.06629461795091629,
0.03111448511481285,
0.003987286239862442,
0.003906243247911334,
-0.05728211998939514,
-0.06681714951992035,
-0.024365350604057312,
-0.04135443642735481,
-0.009150603786110878,
-0.06363489478826523,
-0.03953445702791214,
-0.01575968600809574,
-0.036612801253795624,
0.004707473795861006,
-0.00881603267043829,
0.0025254262145608664,
0.00701542105525732,
0.030328167602419853,
0.022926464676856995,
0.041391726583242416,
-0.013666276820003986,
-0.028301220387220383,
0.04931355640292168,
0.030055642127990723,
0.0012058537686243653,
-0.08234529197216034,
-0.018141720443964005,
0.036052048206329346,
-0.004534498788416386,
-0.016703493893146515,
-0.010660741478204727,
0.07127648591995239,
0.01412975788116455,
-0.00013330075307749212,
0.010384337045252323,
-0.042665015906095505,
0.012230658903717995,
-0.0016053603030741215,
-0.005979697220027447,
-0.00183828454464674,
-0.023967048153281212,
-0.031244603917002678,
-0.003397447755560279,
0.03807195648550987,
-0.08216497302055359,
-0.05278974398970604,
-0.0016205826541408896,
0.03355831280350685,
0.05329487845301628,
0.007862869650125504,
-0.0300364401191473,
-0.010495448485016823,
-0.07056856900453568,
-0.003153064753860235,
0.03618998825550079,
0.024974791333079338,
-0.004728799220174551,
0.04081098362803459,
0.007633809000253677,
-0.01520607527345419,
0.035055723041296005,
0.03330119326710701,
0.06128022074699402,
0.018954942002892494,
-0.06194058433175087,
0.009539826773107052,
-0.021218538284301758,
0.026322564110159874,
-0.025424346327781677,
-0.020542072132229805,
-0.03804943710565567,
-0.08109308034181595,
-0.01977439597249031,
-0.001607489655725658,
0.009729291312396526,
-0.039107099175453186,
0.016758747398853302,
-0.0064156753942370415,
-0.014555485919117928,
0.002661621430888772,
0.03250052034854889,
0.030524175614118576,
-0.016607781872153282,
0.08092692494392395,
-0.008919898420572281,
0.005549367982894182,
-0.07519739866256714,
0.0052426280453801155,
-0.06048787012696266,
-0.010102308355271816,
0.025670267641544342,
0.04017830640077591,
-0.02727210707962513,
0.05541502311825752,
0.04987163469195366,
0.03612131625413895,
-0.0393071323633194,
0.05174687132239342,
0.07155659049749374,
-0.03993722423911095,
-0.04947027191519737,
-0.009976865723729134,
0.013751907274127007,
-0.02744443528354168,
0.005106240976601839,
-0.03369862586259842,
0.04291989654302597,
0.04959681257605553,
-0.005226672627031803,
-0.00641633290797472,
-0.011260627768933773,
-0.010259047150611877,
-0.038416653871536255,
-0.07916975766420364,
-0.04489009454846382,
-0.012645890936255455,
-0.04062606766819954,
0.022470418363809586,
0.06917902827262878,
0.04161038622260094,
0.07101777195930481,
0.029363008216023445,
-0.02862301841378212,
-0.004245842341333628,
0.020874682813882828,
0.012739344500005245,
-0.018811168149113655,
-0.0625959262251854,
-0.055302031338214874,
0.03337402641773224,
0.04535288363695145,
0.002771152649074793,
-0.061441998928785324,
0.009355828166007996,
0.04260615259408951,
-0.047535065561532974,
0.05089091882109642,
0.01741272211074829,
0.04981014132499695,
0.061997976154088974,
0.011093836277723312,
0.03899112343788147,
-0.03921603783965111,
0.002340075094252825,
0.00574167724698782,
0.03436613082885742,
-0.016090933233499527,
-0.038382332772016525,
-0.030716422945261,
0.029344424605369568,
0.05295675992965698,
0.03724826127290726,
0.026373500004410744,
-0.021680552512407303,
-0.04361910745501518,
0.0007103326497599483,
0.02729584090411663,
-0.039729781448841095,
-0.011631814762949944,
0.04313492402434349,
0.03990316763520241,
-0.06533236801624298,
-0.029388563707470894,
-0.024123664945364,
-0.016151782125234604,
0.016627531498670578,
0.016786029562354088,
-0.03169795125722885,
-0.06366415321826935,
0.034945204854011536,
0.011956258676946163,
-0.03359174355864525,
-0.08218160271644592,
0.050010401755571365,
-0.006334355100989342,
-0.025326663628220558,
0.03836799040436745,
0.03069491498172283,
0.04008068889379501,
0.0644708052277565,
0.03116857260465622,
0.006598846986889839,
-0.01650507003068924,
0.019775232300162315,
-0.02852226421236992,
-0.02166939713060856,
0.005612226668745279,
-0.05757482349872589,
-0.04167477786540985,
0.002586818765848875,
-0.03945569694042206,
-0.04873425513505936,
-0.04584961757063866,
0.023138893768191338,
-0.005127499811351299,
-0.03602027893066406,
-0.006852544378489256,
0.03773633763194084,
-0.010889478959143162,
-0.0198209248483181,
-0.05619251728057861,
-0.030072377994656563,
-0.0727311223745346,
-0.06253058463335037,
0.001093813218176365,
-0.004338475875556469,
0.028117280453443527,
0.010118288919329643,
0.017514392733573914,
0.012026391923427582,
0.018922941759228706,
-0.0222625769674778,
0.014245891012251377,
0.004993724636733532,
-0.03905406966805458,
-0.021204348653554916,
0.018182728439569473,
0.010350448079407215,
0.02969454973936081,
-0.018438100814819336,
0.02434905245900154,
-0.01269796397536993,
-0.01093779131770134,
-0.011341319419443607,
0.029059896245598793,
0.01798258349299431,
-0.05274597927927971,
-0.04596968740224838,
-0.017500700429081917,
-0.026702510192990303,
0.029875820502638817,
-0.0325818695127964,
-0.025077050551772118,
0.012941288761794567,
0.01583927497267723,
0.03610413148999214,
-0.01206483505666256,
-0.006877617910504341,
0.00848403200507164,
-0.014796916395425797,
0.03397652879357338,
-0.04365568235516548,
0.0599609799683094,
-0.044405244290828705,
0.02010200545191765,
-0.022347500547766685,
0.00806774664670229,
-0.031070467084646225,
0.043796174228191376,
-0.013000432401895523,
-0.01601325534284115,
-0.0015516800340265036,
0.05520841106772423,
-0.03453037515282631,
0.027812814339995384,
-0.002928337547928095,
0.03406178578734398,
-0.032401081174612045,
0.058742135763168335,
-0.06271491199731827,
-0.007675072178244591,
-0.04149994999170303,
0.023332934826612473,
-0.022003574296832085,
0.00231071631424129,
-0.027874788269400597,
-0.027988947927951813,
0.025546936318278313,
0.04059021174907684,
0.024855488911271095,
0.04376218840479851,
0.0026460879016667604,
0.0004928013659082353,
0.012380522675812244,
-0.04172944650053978,
-0.01909739524126053,
-0.0015870158094912767,
-0.02023063413798809,
-0.0064782509580254555,
0.05659272521734238,
0.011667273938655853,
-0.04759006202220917,
-0.08340416848659515,
0.0727355033159256,
0.025691019371151924,
0.018538791686296463,
-0.0028251809999346733,
0.058154914528131485,
0.025829315185546875,
0.02285151369869709,
-0.03146246448159218,
-0.008821001276373863,
-0.0021831204649060965,
-0.03866179659962654,
0.017143284901976585,
0.002986991312354803,
0.03345771133899689,
0.0036052302457392216,
-0.04513031616806984,
-0.008522078394889832,
0.052921466529369354,
0.022971274331212044,
0.021849673241376877,
-0.006490420550107956,
-0.04995383322238922,
0.02066255919635296,
0.016442952677607536,
-0.039531808346509933,
0.005085611715912819,
0.023293592035770416,
-0.03196045011281967,
0.03820840269327164,
-0.005525581073015928,
0.005461042746901512,
0.07014236599206924,
0.020026661455631256,
-0.005594602320343256,
0.034160319715738297,
-0.04622423276305199,
0.017168721184134483,
0.027996569871902466,
-0.07957158982753754,
-0.01581253856420517,
-0.05664613097906113,
0.06043320149183273,
-0.0680258721113205,
0.04296074062585831,
0.04678194224834442,
0.0006559813627973199,
0.017044158652424812,
-0.04159229248762131,
-0.05388879403471947,
0.022948745638132095,
-0.045504018664360046,
0.06020355224609375,
0.0036097029224038124,
-0.058175764977931976,
0.055583659559488297,
0.009678288362920284,
-0.05703018605709076,
0.035101789981126785,
0.0184883214533329,
0.06950917840003967,
0.02261797897517681,
0.04299045354127884,
-0.03841647133231163,
0.013983025215566158,
-0.03813135251402855,
0.028614163398742676,
-0.04816439747810364,
-0.0301422830671072,
0.018497120589017868,
-0.03165409341454506,
-0.02905353717505932,
0.03843821957707405,
-0.028611281886696815,
0.001790512353181839,
0.044522982090711594,
-0.03798473998904228,
-0.06374719738960266,
0.025538332760334015,
0.013344223611056805,
-0.02083844318985939,
-0.029915379360318184,
-0.02808382175862789,
0.021265944465994835,
0.01807611808180809,
-0.008248846046626568,
-0.029379088431596756,
-0.041349731385707855,
0.0485924556851387,
-0.041561808437108994,
-0.01830756850540638,
0.04590052738785744,
-0.006722673308104277,
-0.03769201785326004,
0.021484846249222755,
0.031505271792411804,
0.001575393951497972,
0.014095291495323181,
-0.035442229360342026,
0.027156347408890724,
-0.042391009628772736,
-0.02324134111404419,
0.022034630179405212,
-0.011048275046050549,
0.02924586832523346,
0.008727912791073322,
0.03951176255941391,
0.04276249185204506,
0.016566967591643333,
0.010059785097837448,
-0.024285243824124336,
-0.02325720340013504,
0.010745625011622906,
-0.04127650707960129,
0.011165838688611984,
-0.004591064061969519,
-0.04248783737421036,
-0.023366956040263176,
0.004167890176177025,
-0.038177892565727234,
0.023258045315742493,
-0.06840687245130539,
0.018121039494872093,
0.034877777099609375,
-0.03245183452963829,
-0.023298032581806183,
-0.09501917660236359,
-0.02591516450047493,
-0.039558593183755875,
-0.02566239796578884,
0.029607556760311127,
-0.026853591203689575,
0.02385888434946537,
-0.022582244127988815,
-0.024701878428459167,
0.03960581496357918,
0.04333089292049408,
-0.05258523300290108,
0.06750162690877914,
0.029471861198544502,
-0.045363862067461014,
0.019740983843803406,
0.030849231407046318,
-0.03999790549278259,
-0.0015731563325971365,
0.005545541178435087,
0.02982085384428501,
0.0276052113622427,
0.01713622733950615,
-0.0631738156080246,
-0.026663189753890038,
-0.07262830436229706,
-0.04469254985451698,
-0.05969056114554405,
-0.005526555702090263,
0.04256195202469826
] |
Akash7897/distilbert-base-uncased-finetuned-sst2 | [
"pytorch",
"tensorboard",
"distilbert",
"text-classification",
"dataset:glue",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"model-index"
] | text-classification | {
"architectures": [
"DistilBertForSequenceClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 31 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
datasets:
- glue
metrics:
- accuracy
model-index:
- name: distilbert-base-uncased-finetuned-sst2
results:
- task:
name: Text Classification
type: text-classification
dataset:
name: glue
type: glue
args: sst2
metrics:
- name: Accuracy
type: accuracy
value: 0.9036697247706422
---
<!-- 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-sst2
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.3010
- Accuracy: 0.9037
## 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: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
| 0.1793 | 1.0 | 4210 | 0.3010 | 0.9037 |
### Framework versions
- Transformers 4.16.2
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.11.6
| [
-0.017538683488965034,
0.0022388496436178684,
-0.029487038031220436,
0.04940084367990494,
0.07627291232347488,
0.03173481673002243,
-0.008243282325565815,
-0.026529349386692047,
-0.05034610629081726,
0.07153264433145523,
0.019475091248750687,
-0.013240296393632889,
0.016702184453606606,
0.029868770390748978,
-0.011163870804011822,
-0.029573574662208557,
-0.0029931836761534214,
-0.00799987930804491,
-0.012473205104470253,
-0.014884065836668015,
-0.003689420875161886,
-0.003977684304118156,
-0.006867730990052223,
-0.0076634022407233715,
-0.002534904982894659,
0.0012193875154480338,
0.0029490836896002293,
0.010601024143397808,
0.0470421276986599,
-0.06751276552677155,
0.011893553659319878,
-0.0463249571621418,
-0.038716770708560944,
-0.013229915872216225,
-0.021472517400979996,
-0.005360893905162811,
0.0008148169727064669,
0.010804190300405025,
0.024796146899461746,
0.042965926229953766,
-0.007689470890909433,
0.0069411019794642925,
-0.003004151163622737,
-0.027858108282089233,
0.053026556968688965,
0.013099045492708683,
-0.03378880023956299,
0.0048790848813951015,
0.027144374325871468,
-0.01915898732841015,
-0.06945677846670151,
-0.07392671704292297,
-0.03201451897621155,
0.027977202087640762,
-0.004210958257317543,
-0.00950606819242239,
-0.06510807573795319,
0.0064589050598442554,
0.050582390278577805,
-0.03544512018561363,
-0.03207911178469658,
0.027332887053489685,
-0.05897502973675728,
-0.004595146048814058,
0.013876732438802719,
-0.02828722819685936,
-0.0164064709097147,
-0.03367408737540245,
0.0407133512198925,
-0.030580004677176476,
0.06811423599720001,
-0.02393713966012001,
0.03307872265577316,
-0.07924608886241913,
-0.021558675915002823,
-0.012345562689006329,
0.01470146980136633,
0.038777418434619904,
-0.02926778420805931,
0.045636098831892014,
0.04375414550304413,
0.008783201687037945,
0.038238994777202606,
-0.020015355199575424,
-0.011635883711278439,
0.00819835439324379,
-0.047885626554489136,
0.003531696740537882,
0.013266579248011112,
0.03817372024059296,
-0.03470071777701378,
-0.037672679871320724,
-0.05687662214040756,
-0.04555817320942879,
-0.007781571242958307,
0.015628937631845474,
0.017023587599396706,
0.0013671846827492118,
0.039599258452653885,
0.02409125491976738,
0.033235322684049606,
0.04033856466412544,
-0.035878736525774,
0.059251852333545685,
0.006992061156779528,
0.008259479887783527,
0.002081536455079913,
-0.01207431685179472,
-0.0627170205116272,
0.018352951854467392,
0.02367079071700573,
-0.01108663808554411,
-0.014962348155677319,
0.04387853294610977,
0.004654670134186745,
-0.010291783139109612,
0.0636928603053093,
-0.019099876284599304,
-0.03278093412518501,
-0.042291656136512756,
0.03587229922413826,
0.016751373186707497,
0.01620659790933132,
0.02519346959888935,
-0.02622479572892189,
-0.0020680646412074566,
-0.025188712403178215,
-0.030034927651286125,
-0.039591431617736816,
0.02343934029340744,
0.010492219589650631,
0.0662396103143692,
0.01314953900873661,
-0.07337149977684021,
0.01153612695634365,
0.036885298788547516,
-0.04754544794559479,
0.04578598588705063,
0.040662989020347595,
0.1263308972120285,
-0.07322104275226593,
-0.06324450671672821,
0.015769634395837784,
0.022185122594237328,
-0.033419568091630936,
0.007215917110443115,
0.005360053386539221,
-0.03866630420088768,
-0.0018265623366460204,
0.007998236455023289,
0.06571146845817566,
-0.050637662410736084,
-0.005408446304500103,
0.060064949095249176,
0.0010987210553139448,
0.02404879219830036,
-0.06880408525466919,
-0.010832547210156918,
0.027114082127809525,
-0.01213173009455204,
-0.04139202460646629,
0.05339524522423744,
-0.004480366129428148,
-0.021315738558769226,
-0.03357231616973877,
-0.03621717914938927,
0.009710223414003849,
0.07433249056339264,
-0.010306114330887794,
-0.03613986074924469,
-0.008865171112120152,
0.027486247941851616,
0.06044621393084526,
0.04866807907819748,
-0.02607828564941883,
0.03380705788731575,
0.0674094557762146,
0.03716370463371277,
-0.02766484022140503,
0.044307395815849304,
0.013699664734303951,
-0.014538144692778587,
-0.02986564114689827,
0.016857244074344635,
-0.010508429259061813,
-0.05383862182497978,
0.03773884102702141,
-0.003249002620577812,
0.009505953639745712,
-0.061845775693655014,
-0.04740839824080467,
0.0531947985291481,
0.0017424523830413818,
-0.01152894552797079,
0.014521287754178047,
0.019375666975975037,
-0.01948811113834381,
0.03611185401678085,
-0.02003178745508194,
0.011044059880077839,
-0.028984129428863525,
-0.03724232688546181,
0.03381497785449028,
-0.015670618042349815,
0.036986928433179855,
0.04332119598984718,
-0.0009649040875956416,
0.07868549972772598,
-0.030681442469358444,
0.014770913869142532,
-0.05208341404795647,
-0.03788633272051811,
0.010215532965958118,
0.04537317156791687,
0.04676671698689461,
0.05937664955854416,
0.000012659264029935002,
-0.034458503127098083,
0.03854037821292877,
0.06212541460990906,
0.030674578621983528,
0.010664033703505993,
-0.03550783172249794,
-0.03391275182366371,
0.04248298704624176,
0.058548733592033386,
-0.0497443862259388,
-0.018148021772503853,
0.01593206450343132,
0.028020896017551422,
-0.0022429069504141808,
0.01129667367786169,
-0.015533923171460629,
0.032203495502471924,
-0.04082070291042328,
-0.04846633970737457,
0.043547965586185455,
0.011750126257538795,
-0.007117696572095156,
0.0127379996702075,
0.024643508717417717,
0.01623525097966194,
0.024428674951195717,
0.012463696300983429,
0.01100555993616581,
-0.05636649951338768,
0.015265366993844509,
0.02526174671947956,
0.056412190198898315,
-0.04854767397046089,
0.02836228348314762,
-0.015760084614157677,
0.010497285053133965,
0.03636709228157997,
-0.03441138565540314,
0.023182230070233345,
0.05293889343738556,
0.023445330560207367,
-0.0225085336714983,
0.01992359384894371,
0.010927770286798477,
0.0422956645488739,
0.03238862752914429,
0.014672900550067425,
0.07879170030355453,
-0.002536599989980459,
0.0586761049926281,
0.07934817671775818,
0.024513712152838707,
0.03512893617153168,
0.030955534428358078,
0.060786694288253784,
0.01686347834765911,
-0.01895499788224697,
0.036629438400268555,
-0.055423129349946976,
0.021370191127061844,
-0.0538703054189682,
0.011956863105297089,
-0.024428633973002434,
0.0010822644690051675,
0.04776490479707718,
0.04105806350708008,
-0.023721935227513313,
0.003920955583453178,
0.008819385431706905,
-0.0018988405354321003,
0.03220956027507782,
-0.00438785320147872,
0.005820598918944597,
-0.012602846138179302,
-0.016932429745793343,
-0.03744613751769066,
-0.07482122629880905,
-0.06013798341155052,
-0.034295786172151566,
-0.023067696020007133,
-0.01410328783094883,
-0.10103905946016312,
-0.02160920947790146,
-0.07876643538475037,
-0.030516482889652252,
0.03608525171875954,
0.019145671278238297,
-0.006000317167490721,
-0.031375087797641754,
-0.005881079938262701,
-0.045715827494859695,
-0.03324788808822632,
-0.04676598682999611,
-0.040340643376111984,
-0.06109030544757843,
-0.06529662013053894,
0.028677020221948624,
0.02662011981010437,
0.02290070243179798,
0.0028095950838178396,
0.007328585255891085,
-0.02088777720928192,
-0.008825510740280151,
0.04492083191871643,
0.05539955943822861,
-0.02805301919579506,
-0.04253864660859108,
0.034533001482486725,
-0.018176566809415817,
0.019252557307481766,
0.017566021531820297,
-0.03169231489300728,
0.09091164916753769,
0.08085859566926956,
0.016178743913769722,
0.012346135452389717,
-0.006006966810673475,
-0.057816728949546814,
-0.06806880980730057,
-0.019880853593349457,
-0.04270043596625328,
0.0008660421590320766,
-0.04874955117702484,
-0.05136678367853165,
-0.04053622856736183,
-0.03679773584008217,
-0.0006652721203863621,
-0.012857567518949509,
0.02569700963795185,
0.013044354505836964,
0.04325750842690468,
0.02615518867969513,
0.04528120905160904,
-0.03858085349202156,
-0.03238234296441078,
0.05067780986428261,
0.018986649811267853,
0.008801781572401524,
-0.09688736498355865,
-0.01075250655412674,
0.020436793565750122,
0.0048722461797297,
-0.01675259880721569,
0.00936830136924982,
0.074759341776371,
0.0004054568416904658,
-0.009942500852048397,
0.018024884164333344,
-0.0227186419069767,
0.0036544424947351217,
-0.007423189468681812,
0.0005730083794333041,
-0.0035948383156210184,
-0.023106345906853676,
-0.03828749060630798,
-0.0062109376303851604,
0.03358844667673111,
-0.08224198967218399,
-0.059700775891542435,
-0.006910830270498991,
0.04772716388106346,
0.0484832264482975,
0.007114533334970474,
-0.03588128089904785,
0.0003140170592814684,
-0.0751059502363205,
-0.013171827420592308,
0.04213499277830124,
0.019324008375406265,
-0.007465284317731857,
0.04644594341516495,
0.020670607686042786,
-0.038387399166822433,
0.04391474276781082,
0.05040759593248367,
0.06447269767522812,
-0.004357547499239445,
-0.06280013173818588,
0.007357442751526833,
-0.021646346896886826,
0.03151148557662964,
-0.002153292763978243,
-0.028099695220589638,
-0.02650955133140087,
-0.09581595659255981,
-0.024355284869670868,
-0.0005093160434626043,
-0.0009495139238424599,
-0.02562268078327179,
0.024677982553839684,
-0.017735213041305542,
-0.034023869782686234,
0.013954530470073223,
0.019402679055929184,
0.0508662573993206,
-0.018052855506539345,
0.067989282310009,
-0.02057849057018757,
0.015768518671393394,
-0.06149453669786453,
0.0009838275145739317,
-0.03413545340299606,
-0.026106644421815872,
-0.0064347609877586365,
0.05458687245845795,
-0.015662532299757004,
0.04795817658305168,
0.06742317229509354,
0.03641935810446739,
-0.04756968468427658,
0.045298051089048386,
0.06793755292892456,
-0.031011078506708145,
-0.03583011403679848,
-0.015996921807527542,
0.01290653645992279,
-0.022170398384332657,
-0.00794545840471983,
-0.01645502634346485,
0.045527517795562744,
0.03158335015177727,
0.0011567521141842008,
0.007881156168878078,
-0.0013896966120228171,
-0.029153186827898026,
-0.04107643663883209,
-0.07274803519248962,
-0.02950293757021427,
0.007190374657511711,
-0.02839946746826172,
0.021793656051158905,
0.05671015381813049,
0.02072744071483612,
0.07608155161142349,
0.031738996505737305,
-0.0161531213670969,
-0.014408557675778866,
0.03408295288681984,
0.017459549009799957,
-0.021956870332360268,
-0.07094310224056244,
-0.052697088569402695,
0.019868604838848114,
0.058694686740636826,
-0.006075566168874502,
-0.0653531402349472,
0.006072871387004852,
0.04751705005764961,
-0.04816513508558273,
0.05434002727270126,
-0.005726248025894165,
0.053128812462091446,
0.06639132648706436,
0.009491926059126854,
0.04208435118198395,
-0.02911982126533985,
-0.007040050812065601,
0.003318814793601632,
0.0210446547716856,
-0.0067537203431129456,
-0.03437003865838051,
-0.03695284202694893,
0.028928978368639946,
0.05659138783812523,
0.04685024172067642,
0.04109449312090874,
-0.02275044657289982,
-0.04633452743291855,
0.010301761329174042,
0.03548964858055115,
-0.051606230437755585,
-0.003468601033091545,
0.03153316304087639,
0.04552202299237251,
-0.05575473979115486,
-0.031273253262043,
-0.03642461448907852,
-0.02828211523592472,
0.03904731199145317,
0.012014108709990978,
-0.029075855389237404,
-0.05387210100889206,
0.03815429285168648,
-0.004688553512096405,
-0.037625666707754135,
-0.08129077404737473,
0.04318542778491974,
0.00197023106738925,
-0.015544315800070763,
0.058938004076480865,
0.034436292946338654,
0.037876952439546585,
0.06582947820425034,
0.03613559156656265,
0.015494280494749546,
-0.030158288776874542,
0.03562767431139946,
-0.044583361595869064,
-0.03192361444234848,
0.01645239256322384,
-0.05632367357611656,
-0.03745392709970474,
-0.0010777116985991597,
-0.04231254756450653,
-0.04810015484690666,
-0.02207873947918415,
0.019751695916056633,
0.002086646156385541,
-0.03795578330755234,
-0.011890223249793053,
0.03916501626372337,
-0.016366204246878624,
-0.02507764659821987,
-0.05994922295212746,
-0.0317080058157444,
-0.058126844465732574,
-0.05878884717822075,
-0.007486982736736536,
-0.003402621950954199,
0.01660335250198841,
0.027672775089740753,
0.023194480687379837,
0.020791709423065186,
0.020375335589051247,
-0.02742711640894413,
0.014746623113751411,
0.016921276226639748,
-0.036300886422395706,
-0.021885516121983528,
0.028938161209225655,
0.019559724256396294,
0.034652456641197205,
-0.025373725220561028,
0.0419987291097641,
-0.010941429063677788,
-0.007665372919291258,
-0.018213938921689987,
0.04038291051983833,
0.02266797423362732,
-0.05528661236166954,
-0.046954866498708725,
-0.011886750347912312,
-0.02636047452688217,
0.03273581713438034,
-0.024629447609186172,
-0.021528664976358414,
0.025771265849471092,
0.017605960369110107,
0.04423722252249718,
-0.010475171729922295,
-0.008188926614820957,
0.03273632749915123,
-0.015651457011699677,
0.0383196584880352,
-0.03656493127346039,
0.05417982116341591,
-0.04091249406337738,
0.015100386925041676,
-0.021620256826281548,
0.0053721144795417786,
0.0003751752956304699,
0.04452529177069664,
-0.0114907156676054,
-0.013975373469293118,
-0.00824055541306734,
0.03417779132723808,
-0.030701706185936928,
0.022424884140491486,
-0.011371350847184658,
0.02524397149682045,
-0.0424109622836113,
0.05788545310497284,
-0.060401201248168945,
0.009697992354631424,
-0.043709419667720795,
0.01909065805375576,
-0.015909532085061073,
-0.004860364831984043,
-0.018335992470383644,
-0.0232598427683115,
0.03259548917412758,
0.04376301169395447,
0.01518799178302288,
0.018624000251293182,
0.0037041844334453344,
0.0075313625857234,
0.021104561164975166,
-0.04439925029873848,
-0.022333521395921707,
-0.01226459164172411,
-0.02520560473203659,
-0.021165935322642326,
0.056705228984355927,
0.019874371588230133,
-0.06132785603404045,
-0.07087994366884232,
0.06791050732135773,
0.017348309978842735,
0.004154260735958815,
0.005407624412328005,
0.05590922757983208,
0.03842349722981453,
0.03626050800085068,
-0.028255729004740715,
-0.00255728792399168,
-0.002827537013217807,
-0.04272547736763954,
0.023331278935074806,
-0.0030186623334884644,
0.03420174866914749,
0.018175356090068817,
-0.032388363033533096,
-0.016795337200164795,
0.06907492130994797,
0.02182728424668312,
0.01724390499293804,
-0.008240792900323868,
-0.0487007200717926,
0.03328343853354454,
0.013493751175701618,
-0.03376425430178642,
0.007721506990492344,
0.02672639489173889,
-0.030432840809226036,
0.050989340990781784,
0.011055112816393375,
-0.005832788534462452,
0.05936238169670105,
0.019089970737695694,
-0.013145815581083298,
0.053794875741004944,
-0.034768544137477875,
0.008066861890256405,
0.029261775314807892,
-0.06703497469425201,
-0.02598731778562069,
-0.04796530678868294,
0.06447634100914001,
-0.059232909232378006,
0.030382871627807617,
0.039152052253484726,
0.005246748216450214,
0.02365131862461567,
-0.04283679276704788,
-0.049775078892707825,
0.01683761551976204,
-0.053163520991802216,
0.06767499446868896,
-0.007217143662273884,
-0.027605557814240456,
0.05809677019715309,
0.011874492280185223,
-0.06378723680973053,
0.03871616721153259,
0.032395824790000916,
0.07218602299690247,
0.01387759018689394,
0.04386096075177193,
-0.03816070035099983,
0.005538830533623695,
-0.04092991724610329,
0.024938972666859627,
-0.05829132720828056,
-0.010827425867319107,
0.027319174259901047,
-0.036087434738874435,
-0.022762015461921692,
0.04999048262834549,
-0.026376737281680107,
-0.005927876103669405,
0.042918819934129715,
-0.03795906901359558,
-0.037313904613256454,
0.013761757872998714,
0.016304096207022667,
-0.022708004340529442,
0.0020448523573577404,
-0.03787845000624657,
0.01835164800286293,
0.018748989328742027,
-0.014278141781687737,
-0.019343573600053787,
-0.007465478964149952,
0.03383670374751091,
-0.041432298719882965,
-0.0324241928756237,
0.03205331414937973,
-0.002177806803956628,
-0.030739154666662216,
0.03652777895331383,
0.027456743642687798,
0.02261173538863659,
0.025693528354167938,
-0.02039225399494171,
0.01837236061692238,
-0.0342586413025856,
-0.013154933229088783,
0.012171843089163303,
-0.005912806373089552,
0.013010265305638313,
0.003048325888812542,
0.02957797236740589,
0.04413967952132225,
0.031846266239881516,
-0.0017016669735312462,
-0.026582982391119003,
-0.029538067057728767,
0.014230147004127502,
-0.03867948800325394,
0.008550706319510937,
-0.0008631358505226672,
-0.05395359545946121,
-0.029648391529917717,
0.01284508965909481,
-0.02972855046391487,
0.03795997053384781,
-0.05107701197266579,
0.007960897870361805,
0.04109790176153183,
-0.012445122003555298,
-0.04157745838165283,
-0.1102679893374443,
-0.015871303156018257,
-0.04439806193113327,
-0.0007341505843214691,
0.04727715626358986,
-0.031128406524658203,
0.041014913469552994,
-0.027172885835170746,
-0.03524462878704071,
0.03433201462030411,
0.03333061560988426,
-0.05599737539887428,
0.06255468726158142,
0.033297132700681686,
-0.046250637620687485,
0.02049257792532444,
0.022827450186014175,
-0.04640137404203415,
-0.0014803446829319,
0.02522406540811062,
0.018504157662391663,
0.014211499132215977,
0.015352010726928711,
-0.05647647753357887,
-0.017852798104286194,
-0.0659126490354538,
-0.04487551003694534,
-0.060737244784832,
-0.0012962055625393987,
0.039976317435503006
] |
Akash7897/gpt2-wikitext2 | [
"pytorch",
"tensorboard",
"gpt2",
"text-generation",
"transformers",
"generated_from_trainer",
"license:mit"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": true,
"max_length": 50
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | ---
license: mit
tags:
- generated_from_trainer
model-index:
- name: gpt2-wikitext2
results: []
---
<!-- 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. -->
# gpt2-wikitext2
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the None dataset.
It achieves the following results on the evaluation set:
- Loss: 6.1079
## 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: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3.0
### Training results
| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 6.558 | 1.0 | 2249 | 6.4672 |
| 6.1918 | 2.0 | 4498 | 6.1970 |
| 6.0019 | 3.0 | 6747 | 6.1079 |
### Framework versions
- Transformers 4.16.2
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.11.6
| [
-0.020038191229104996,
-0.021166520193219185,
-0.013148708269000053,
0.032234739512205124,
0.02591344341635704,
0.018762804567813873,
-0.006228595972061157,
0.002977769821882248,
-0.041567280888557434,
0.05789986997842789,
0.016291866078972816,
-0.020257001742720604,
0.016534266993403435,
0.046284932643175125,
-0.039283428341150284,
-0.03316805139183998,
-0.00892095360904932,
-0.00020024762488901615,
-0.022983960807323456,
-0.006244486663490534,
0.0008338895277120173,
0.0013572478201240301,
-0.006815921049565077,
0.008901740424335003,
0.0012757828226312995,
0.01578941009938717,
0.008742653764784336,
0.0020578159019351006,
0.020152796059846878,
-0.07187201082706451,
-0.0014478691155090928,
-0.05441410839557648,
-0.04340258985757828,
-0.016535038128495216,
-0.01759055070579052,
-0.021841375157237053,
-0.010563939809799194,
-0.0013123498065397143,
0.024943727999925613,
0.0574040561914444,
-0.0006710795569233596,
0.0402759425342083,
-0.011581514030694962,
-0.02563655935227871,
0.049733683466911316,
0.015362356789410114,
-0.0391169972717762,
-0.004076848737895489,
0.04261750355362892,
-0.017232289537787437,
-0.0734560415148735,
-0.06008712574839592,
-0.03632042929530144,
0.024984415620565414,
-0.021520795300602913,
-0.019647266715765,
-0.06620646268129349,
-0.007838626392185688,
0.07973256707191467,
-0.038809582591056824,
-0.05814679339528084,
0.021200144663453102,
-0.07516378164291382,
0.023100407794117928,
0.03460758179426193,
-0.022738056257367134,
0.01727372407913208,
-0.029823722317814827,
0.02699788101017475,
-0.021042538806796074,
0.07058289647102356,
-0.003982952330261469,
0.014330555684864521,
-0.11395419389009476,
-0.02453608438372612,
-0.001044726581312716,
0.02523842453956604,
0.04382887855172157,
-0.03242431581020355,
0.04810813069343567,
0.03232179209589958,
-0.018833881244063377,
0.05482717603445053,
-0.006693451665341854,
0.00621373113244772,
0.028862226754426956,
-0.05059530958533287,
0.0008129689376801252,
0.008101764135062695,
0.05477241426706314,
-0.04575207084417343,
-0.02450253628194332,
-0.034875381737947464,
-0.02609718032181263,
-0.03268608823418617,
0.01819399744272232,
0.04290110245347023,
0.006121982354670763,
0.03943727910518646,
0.01572413370013237,
0.03841881826519966,
0.026628049090504646,
-0.019340163096785545,
0.057778555899858475,
0.015763813629746437,
-0.01438479870557785,
-0.02004348300397396,
-0.022372273728251457,
-0.05405908450484276,
0.02646718919277191,
0.018491502851247787,
-0.026257315650582314,
-0.04473062977194786,
0.02651594765484333,
0.005768058821558952,
-0.0025506115052849054,
0.06926091015338898,
-0.04111647978425026,
-0.039251696318387985,
-0.04009296000003815,
0.044207971543073654,
0.015340703539550304,
-0.015359045937657356,
0.0015065521001815796,
-0.044702138751745224,
-0.003632182953879237,
-0.014169499278068542,
-0.02569371648132801,
0.005113285966217518,
0.0059234099462628365,
-0.00894924532622099,
0.06450164318084717,
0.03572240471839905,
-0.05060441046953201,
-0.013489588163793087,
0.02057811990380287,
-0.038492005318403244,
0.046329863369464874,
0.01557234674692154,
0.10462117940187454,
-0.07964789122343063,
-0.06653737276792526,
0.019811440259218216,
-0.0045545645989477634,
-0.013096250593662262,
0.005877032410353422,
0.004972667898982763,
-0.0350576713681221,
-0.01674719713628292,
-0.013833548873662949,
0.044244617223739624,
-0.05494297295808792,
-0.02300477772951126,
0.05434316769242287,
-0.008187702856957912,
0.05582244694232941,
-0.046344831585884094,
-0.024854931980371475,
0.021109357476234436,
-0.008770341984927654,
-0.018078846856951714,
0.026481010019779205,
-0.01740267127752304,
0.007263265550136566,
-0.019593654200434685,
-0.036069028079509735,
-0.0030728948768228292,
0.09101388603448868,
-0.011335429735481739,
-0.027911504730582237,
-0.022999368607997894,
0.03393211215734482,
0.059702277183532715,
0.055180877447128296,
-0.032211098819971085,
0.04260687530040741,
0.04338282719254494,
0.04492220655083656,
-0.03473027050495148,
0.04398529604077339,
0.019330047070980072,
-0.03086972050368786,
-0.02805851772427559,
0.010675866156816483,
0.002931731753051281,
-0.0518144853413105,
0.0103613818064332,
0.022294163703918457,
0.018812628462910652,
-0.0567462295293808,
-0.02327839285135269,
0.04316932335495949,
-0.00914347916841507,
-0.010764623992145061,
0.011934616602957249,
0.001461012871004641,
-0.02960110642015934,
0.03722171485424042,
-0.02128363586962223,
0.0056638531386852264,
-0.025624016299843788,
-0.017201920971274376,
0.012791718356311321,
0.008348394185304642,
0.032078955322504044,
0.0446709506213665,
-0.012645677663385868,
0.08657152205705643,
-0.02516414225101471,
0.02163207158446312,
-0.018588058650493622,
-0.04821743071079254,
0.006252291612327099,
0.054529573768377304,
0.049085576087236404,
0.039122432470321655,
0.013733834028244019,
-0.047508355230093,
0.03689109534025192,
0.0655071958899498,
0.036647729575634,
0.024754837155342102,
-0.04698127135634422,
0.0009940671734511852,
0.025537807494401932,
0.061433129012584686,
-0.04524070769548416,
-0.03323965147137642,
0.024590520188212395,
0.04673609882593155,
-0.02891152910888195,
0.026844941079616547,
-0.020465297624468803,
0.034519124776124954,
-0.047058507800102234,
-0.06827840954065323,
0.03885556012392044,
0.03222661465406418,
-0.004986423999071121,
0.023602476343512535,
-0.00880482979118824,
0.014032459817826748,
0.01131853275001049,
0.0009213277953676879,
0.0036387694999575615,
-0.05555175244808197,
0.015398127026855946,
0.03578057140111923,
0.04824713245034218,
-0.028903158381581306,
0.04163196682929993,
-0.004695261362940073,
0.00022514381271321326,
0.03440916910767555,
-0.04808548465371132,
0.024484140798449516,
0.04108797758817673,
0.023776331916451454,
-0.04144842177629471,
0.008724077604711056,
0.006408108863979578,
0.03303235024213791,
0.03830580785870552,
0.014832955785095692,
0.08049832284450531,
-0.0011533366050571203,
0.04897139593958855,
0.08398668467998505,
0.028008289635181427,
0.04233217611908913,
0.034286804497241974,
0.07482029497623444,
-0.00036035300581716,
-0.0031161026563495398,
0.0582539401948452,
-0.044982459396123886,
0.007905503734946251,
-0.048430271446704865,
0.010338648222386837,
-0.03390781953930855,
-0.0166219063103199,
0.04872254654765129,
0.013517862185835838,
-0.02159060165286064,
0.006910266820341349,
-0.023181602358818054,
-0.024573098868131638,
0.018561067059636116,
0.004956868011504412,
-0.008972234092652798,
0.003886868478730321,
0.0010846022050827742,
-0.009027509018778801,
-0.08073487132787704,
-0.032096460461616516,
-0.033169303089380264,
-0.020390745252370834,
-0.019956020638346672,
-0.09811879694461823,
0.0008885936695151031,
-0.06734637171030045,
-0.01925056241452694,
0.03207080066204071,
-0.0011246816720813513,
-0.008737598545849323,
-0.03493266925215721,
0.013962090015411377,
-0.05076286941766739,
-0.04706548899412155,
-0.059115875512361526,
-0.05295354500412941,
-0.05233662202954292,
-0.08737552911043167,
0.031129103153944016,
0.029148811474442482,
0.02130410633981228,
0.009785526432096958,
-0.001934510306455195,
-0.0019693549256771803,
-0.033610980957746506,
0.04323584958910942,
0.055079177021980286,
-0.03817075490951538,
-0.05009244382381439,
0.04747305065393448,
-0.02172972448170185,
0.0274051446467638,
0.009687581099569798,
-0.020536495372653008,
0.08757209777832031,
0.06661724299192429,
0.008432292379438877,
0.02182568795979023,
-0.028291473165154457,
-0.06451912224292755,
-0.0636482685804367,
-0.02572067454457283,
-0.029026906937360764,
-0.019945237785577774,
-0.025936909019947052,
-0.0449819453060627,
-0.035587284713983536,
-0.03707892447710037,
0.00022268549946602434,
-0.0018948116339743137,
0.016465457156300545,
0.026678798720240593,
0.03345061093568802,
0.035238489508628845,
0.03250013291835785,
-0.034638550132513046,
-0.04643973335623741,
0.06305082142353058,
0.013530963100492954,
-0.002519504865631461,
-0.07893603295087814,
-0.02345079556107521,
0.03767957165837288,
0.023259589448571205,
0.010973319411277771,
-0.0046216752380132675,
0.06188155338168144,
-0.0012465709587559104,
-0.009818846359848976,
0.020009517669677734,
-0.020456915721297264,
-0.0312411580234766,
-0.0036353522446006536,
-0.006403196603059769,
-0.025013206526637077,
-0.036985527724027634,
-0.016527587547898293,
-0.024101223796606064,
0.04880145564675331,
-0.06320903450250626,
-0.048963263630867004,
-0.01139616034924984,
0.02931232936680317,
0.04154471680521965,
-0.002127799903973937,
-0.026780445128679276,
-0.009634687565267086,
-0.05992082506418228,
0.004926436580717564,
0.043976590037345886,
0.007422049064189196,
0.025496477261185646,
0.04455050826072693,
0.022971728816628456,
-0.027855005115270615,
0.04979555308818817,
0.03245355933904648,
0.06573937088251114,
0.013971379958093166,
-0.06222761422395706,
0.017964793369174004,
-0.014879198744893074,
0.01841030828654766,
-0.02010383829474449,
-0.01207655854523182,
-0.038942933082580566,
-0.11094429343938828,
-0.00544119393453002,
-0.0055684237740933895,
-0.010357046499848366,
-0.0028719427064061165,
0.04807789996266365,
-0.012371709570288658,
-0.025659391656517982,
0.00495013827458024,
0.003469871822744608,
0.040193021297454834,
-0.04275956377387047,
0.03592129424214363,
-0.003343536052852869,
0.022129714488983154,
-0.06352443993091583,
-0.005102356430143118,
-0.03304528072476387,
-0.014732281677424908,
0.0040901233442127705,
0.06700635701417923,
0.0012626020470634103,
0.058795735239982605,
0.08722074329853058,
0.029320627450942993,
-0.04404338821768761,
0.03073682077229023,
0.05668359994888306,
-0.029204322025179863,
-0.039361223578453064,
0.004618062637746334,
-0.00731273926794529,
-0.016123421490192413,
-0.008623813278973103,
-0.005348384380340576,
0.058396581560373306,
0.04687980189919472,
0.007155749946832657,
0.012666858732700348,
0.010370654985308647,
-0.00927842129021883,
-0.027409231290221214,
-0.053531695157289505,
-0.016388768330216408,
-0.01137015875428915,
-0.03222152218222618,
0.0026626712642610073,
0.030221879482269287,
0.015793196856975555,
0.06070592254400253,
0.0316583588719368,
-0.04017839953303337,
-0.03671736270189285,
0.018720880150794983,
0.026680966839194298,
-0.026056664064526558,
-0.06866222620010376,
-0.02896064706146717,
0.03499213233590126,
0.03498523682355881,
-0.036526281386613846,
-0.06605728715658188,
-0.0049353898502886295,
0.0423840694129467,
-0.047070104628801346,
0.04962749779224396,
-0.006483037956058979,
0.0278196819126606,
0.06199633702635765,
-0.0239180326461792,
0.03923454508185387,
-0.01555634569376707,
0.0004997617215849459,
-0.003084939904510975,
0.023535121232271194,
-0.009531687013804913,
-0.039065878838300705,
-0.04729707911610603,
0.025738617405295372,
0.035918496549129486,
0.04092128574848175,
0.035274628549814224,
-0.03202049434185028,
-0.05088897794485092,
0.01613803021609783,
0.04297664761543274,
-0.043398212641477585,
0.005302152130752802,
0.0362558476626873,
0.03249383717775345,
-0.0598006546497345,
-0.04045642539858818,
-0.03618514910340309,
-0.015443975105881691,
0.03476293757557869,
-0.00995813962072134,
-0.028025055304169655,
-0.032789431512355804,
0.034063875675201416,
0.004018189385533333,
0.006157567258924246,
-0.06482238322496414,
0.03878980875015259,
-0.00887937843799591,
-0.020081382244825363,
0.05476623773574829,
0.03904607892036438,
0.019623197615146637,
0.05326928570866585,
0.015903200954198837,
0.03479725867509842,
-0.041914936155080795,
0.0422530472278595,
-0.03805943951010704,
-0.009962469339370728,
0.017272010445594788,
-0.03380695730447769,
-0.010505025275051594,
-0.033325448632240295,
-0.041571665555238724,
-0.04588429629802704,
-0.029712453484535217,
0.02276461385190487,
-0.003494064323604107,
-0.009870379231870174,
-0.0018441681750118732,
0.060348864644765854,
-0.018773457035422325,
-0.027119314298033714,
-0.021185873076319695,
-0.02721063233911991,
-0.06894941627979279,
-0.06214669346809387,
0.028711944818496704,
0.0015830469783395529,
0.04216686263680458,
0.020555829629302025,
0.016038551926612854,
0.009120216593146324,
0.005400976166129112,
-0.02916775643825531,
0.021082770079374313,
-0.007285222876816988,
-0.007346697151660919,
-0.025259269401431084,
0.03126540035009384,
0.013901478610932827,
0.015419126488268375,
-0.01811334490776062,
0.0257502980530262,
0.019388539716601372,
-0.009998098947107792,
-0.014175969175994396,
0.009825663641095161,
0.018662145361304283,
-0.07237840443849564,
-0.019400805234909058,
-0.0037703788839280605,
-0.046902790665626526,
0.017249206081032753,
-0.035756345838308334,
-0.02326219715178013,
-0.013224274851381779,
0.02764846943318844,
0.04161466658115387,
-0.0155971460044384,
-0.03033192828297615,
0.01960255391895771,
-0.03813696652650833,
0.022171026095747948,
-0.051311567425727844,
0.04060797393321991,
-0.04138849675655365,
0.008484707213938236,
-0.02884824573993683,
0.02629830315709114,
-0.03993741422891617,
0.0397668294608593,
-0.0011330877896398306,
-0.0171823687851429,
-0.007831749506294727,
0.030369699001312256,
-0.023727763444185257,
0.04288695007562637,
0.006509573198854923,
0.025468360632658005,
-0.02992461994290352,
0.06868019700050354,
-0.045132990926504135,
0.010955121368169785,
-0.0328298956155777,
0.019167723134160042,
-0.03054543398320675,
0.004069927614182234,
-0.019030407071113586,
-0.04214230552315712,
0.015133580192923546,
0.06042790785431862,
0.029581094160676003,
0.006284305825829506,
-0.01988864690065384,
0.0003231952723581344,
0.028052862733602524,
-0.05087781324982643,
-0.015461847186088562,
-0.005522316787391901,
-0.026516389101743698,
-0.016490213572978973,
0.052436262369155884,
0.0531439445912838,
-0.0502953976392746,
-0.07303191721439362,
0.04061030223965645,
0.008005372248589993,
0.004345235880464315,
0.009552293457090855,
0.03269651159644127,
0.03720259293913841,
0.05074941739439964,
-0.029461892321705818,
0.00844158511608839,
-0.022379407659173012,
-0.03492455184459686,
0.04302158206701279,
0.004969366360455751,
0.0325005017220974,
0.018994616344571114,
-0.03662349656224251,
-0.025119153782725334,
0.07416093349456787,
0.03363655507564545,
0.024943051859736443,
-0.0019010870018973947,
-0.05427324026823044,
0.038502227514982224,
-0.00041631722706370056,
-0.04833332449197769,
0.00669765193015337,
0.013072719797492027,
-0.031343355774879456,
0.05611055716872215,
-0.022292939946055412,
0.009333556517958641,
0.05363792926073074,
0.03384767845273018,
-0.018558930605649948,
0.06445017457008362,
-0.01568550430238247,
0.006563722621649504,
0.05504786595702171,
-0.0638052448630333,
-0.010761646553874016,
-0.01917792670428753,
0.07386074215173721,
-0.05930356681346893,
0.025023138150572777,
0.0381484255194664,
0.013261218555271626,
0.012573213316500187,
-0.04244358092546463,
-0.04368406534194946,
0.006653111428022385,
-0.04768669232726097,
0.09466167539358139,
0.01164352148771286,
-0.044265229254961014,
0.058400485664606094,
-0.0008791345171630383,
-0.0634055957198143,
0.05716010183095932,
0.03019060753285885,
0.04627110809087753,
0.02848188392817974,
0.03851404786109924,
-0.05907620117068291,
0.004189207684248686,
-0.03864988684654236,
0.01978331431746483,
-0.04915199801325798,
-0.01740090735256672,
0.029020007699728012,
-0.04438497871160507,
-0.023634513840079308,
0.031015904620289803,
-0.004609056748449802,
-0.022065529599785805,
0.04278731346130371,
-0.06952380388975143,
-0.04691724479198456,
0.018993237987160683,
0.020215261727571487,
-0.037684936076402664,
0.012119211256504059,
-0.04346080496907234,
0.0038933921605348587,
0.016920769587159157,
0.004631215240806341,
-0.009303801693022251,
0.0020159955602139235,
0.03039718233048916,
-0.07756750285625458,
-0.04484584182500839,
0.030614245682954788,
-0.007427334785461426,
-0.022985003888607025,
0.0360555537045002,
0.008215048350393772,
0.028625110164284706,
0.028657477349042892,
-0.005584667902439833,
0.020753588527441025,
-0.03005334548652172,
-0.02130940929055214,
0.016507001593708992,
-0.0007582601392641664,
0.0547654964029789,
-0.0027033810038119555,
0.03166797384619713,
-0.003215531352907419,
0.028040383011102676,
-0.01004443783313036,
-0.047951485961675644,
-0.038494694977998734,
0.0102178193628788,
-0.033483851701021194,
0.0018672340083867311,
0.003438703017309308,
-0.065044105052948,
-0.05469106510281563,
-0.010984990745782852,
-0.0368407666683197,
0.01723579317331314,
-0.06111767143011093,
0.002134309383109212,
0.037296146154403687,
-0.005899299867451191,
-0.06097406521439552,
-0.10657651722431183,
-0.017294811084866524,
-0.03291618824005127,
0.00835920125246048,
0.039347801357507706,
-0.0321308895945549,
0.050248634070158005,
-0.0546325147151947,
-0.04650557041168213,
0.041517771780490875,
0.009485699236392975,
-0.04324047267436981,
0.03634098172187805,
0.06003423035144806,
-0.04539094865322113,
0.011820750311017036,
0.029687996953725815,
-0.04477294534444809,
0.008854133076965809,
0.012117616832256317,
0.006245753727853298,
0.03461272269487381,
0.005432064179331064,
-0.04413589835166931,
-0.006350002717226744,
-0.09257370978593826,
-0.04646836221218109,
-0.0521719753742218,
0.02115393802523613,
0.06679732352495193
] |
Akashpb13/Swahili_xlsr | [
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"sw",
"dataset:mozilla-foundation/common_voice_8_0",
"transformers",
"generated_from_trainer",
"hf-asr-leaderboard",
"model_for_talk",
"mozilla-foundation/common_voice_8_0",
"robust-speech-event",
"license:apache-2.0",
"model-index"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | 2022-01-30T05:50:47Z | ---
language:
- sw
license: apache-2.0
tags:
- automatic-speech-recognition
- generated_from_trainer
- hf-asr-leaderboard
- model_for_talk
- mozilla-foundation/common_voice_8_0
- robust-speech-event
- sw
datasets:
- mozilla-foundation/common_voice_8_0
model-index:
- name: Akashpb13/Swahili_xlsr
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice 8
type: mozilla-foundation/common_voice_8_0
args: sw
metrics:
- name: Test WER
type: wer
value: 0.11763625454589981
- name: Test CER
type: cer
value: 0.02884228669922436
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Dev Data
type: speech-recognition-community-v2/dev_data
args: kmr
metrics:
- name: Test WER
type: wer
value: 0.11763625454589981
- name: Test CER
type: cer
value: 0.02884228669922436
---
# Akashpb13/Swahili_xlsr
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the MOZILLA-FOUNDATION/COMMON_VOICE_7_0 - hu dataset.
It achieves the following results on the evaluation set (which is 10 percent of train data set merged with dev datasets):
- Loss: 0.159032
- Wer: 0.187934
## Model description
"facebook/wav2vec2-xls-r-300m" was finetuned.
## Intended uses & limitations
More information needed
## Training and evaluation data
Training data -
Common voice Hausa train.tsv and dev.tsv
Only those points were considered where upvotes were greater than downvotes and duplicates were removed after concatenation of all the datasets given in common voice 7.0
## Training procedure
For creating the training dataset, all possible datasets were appended and 90-10 split was used.
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.000096
- train_batch_size: 16
- eval_batch_size: 16
- seed: 13
- gradient_accumulation_steps: 2
- lr_scheduler_type: cosine_with_restarts
- lr_scheduler_warmup_steps: 500
- num_epochs: 80
- mixed_precision_training: Native AMP
### Training results
| Step | Training Loss | Validation Loss | Wer |
|------|---------------|-----------------|----------|
| 500 | 4.810000 | 2.168847 | 0.995747 |
| 1000 | 0.564200 | 0.209411 | 0.303485 |
| 1500 | 0.217700 | 0.153959 | 0.239534 |
| 2000 | 0.150700 | 0.139901 | 0.216327 |
| 2500 | 0.119400 | 0.137543 | 0.208828 |
| 3000 | 0.099500 | 0.140921 | 0.203045 |
| 3500 | 0.087100 | 0.138835 | 0.199649 |
| 4000 | 0.074600 | 0.141297 | 0.195844 |
| 4500 | 0.066600 | 0.148560 | 0.194127 |
| 5000 | 0.060400 | 0.151214 | 0.194388 |
| 5500 | 0.054400 | 0.156072 | 0.192187 |
| 6000 | 0.051100 | 0.154726 | 0.190322 |
| 6500 | 0.048200 | 0.159847 | 0.189538 |
| 7000 | 0.046400 | 0.158727 | 0.188307 |
| 7500 | 0.046500 | 0.159032 | 0.187934 |
### Framework versions
- Transformers 4.16.0.dev0
- Pytorch 1.10.0+cu102
- Datasets 1.18.3
- Tokenizers 0.10.3
#### Evaluation Commands
1. To evaluate on `mozilla-foundation/common_voice_8_0` with split `test`
```bash
python eval.py --model_id Akashpb13/Swahili_xlsr --dataset mozilla-foundation/common_voice_8_0 --config sw --split test
```
| [
-0.031882546842098236,
-0.014554023742675781,
-0.023722512647509575,
0.031780537217855453,
0.0516783744096756,
0.03899982199072838,
-0.026388373225927353,
-0.012011697515845299,
-0.02731936052441597,
0.06612816452980042,
0.034311000257730484,
-0.027303773909807205,
0.005662569310516119,
0.009143120609223843,
-0.03221117705106735,
-0.06801695376634598,
-0.02547921985387802,
-0.017395345494151115,
-0.04796227440237999,
-0.01562747173011303,
0.004666302353143692,
0.03673988953232765,
-0.03733767569065094,
0.03253565728664398,
-0.00816008448600769,
0.019263850525021553,
-0.029750218614935875,
0.029723897576332092,
0.005754385143518448,
-0.04957698658108711,
-0.02010399103164673,
-0.035021524876356125,
-0.03192281723022461,
-0.04029320180416107,
-0.010661195032298565,
0.004497881513088942,
-0.005399536807090044,
0.01570102386176586,
0.0424867682158947,
0.04462273046374321,
-0.010251548141241074,
0.005254662130028009,
0.0005181412561796606,
-0.011636262759566307,
0.0492837093770504,
-0.0060257078148424625,
-0.035122405737638474,
-0.026492910459637642,
0.03451201692223549,
-0.025480737909674644,
-0.0460839606821537,
-0.057720791548490524,
-0.01277248002588749,
0.011276752687990665,
-0.009124062955379486,
-0.038384318351745605,
-0.03626718744635582,
-0.014154947362840176,
0.07819731533527374,
-0.07133428752422333,
-0.02611059881746769,
0.015133820474147797,
-0.04727733135223389,
0.0032013326417654753,
0.02480820193886757,
-0.04687041789293289,
0.017908573150634766,
-0.03839081898331642,
0.03829392045736313,
-0.02330023981630802,
0.061800386756658554,
-0.043284881860017776,
0.021435793489217758,
-0.07763010263442993,
0.001042760326527059,
-0.010684344917535782,
0.03819596767425537,
0.060353219509124756,
-0.03881626948714256,
0.07511835545301437,
0.037270382046699524,
0.004374146461486816,
0.036875925958156586,
-0.004935252945870161,
0.018518967553973198,
0.02328183688223362,
-0.04557272791862488,
0.03614937141537666,
0.01504628174006939,
0.018365999683737755,
-0.02335227280855179,
-0.05130208656191826,
-0.012200582772493362,
-0.055028047412633896,
-0.0024029724299907684,
0.05416044220328331,
0.051636550575494766,
-0.027770988643169403,
0.020373141393065453,
0.018068203702569008,
0.00901039969176054,
0.018139708787202835,
-0.02615526132285595,
0.06178455054759979,
-0.018124520778656006,
0.0037002689205110073,
0.009619672782719135,
-0.00431806780397892,
-0.03750615566968918,
0.001046815188601613,
0.020526975393295288,
-0.03342888131737709,
-0.04378260299563408,
0.02512414939701557,
0.004271526820957661,
-0.03305745869874954,
0.04981941357254982,
-0.049680110067129135,
-0.03700929880142212,
-0.06041661277413368,
0.03207729756832123,
0.025071794167160988,
0.0047150226309895515,
0.003672153688967228,
-0.04630013555288315,
0.02417280152440071,
-0.026101499795913696,
-0.039762772619724274,
-0.0016589720034971833,
0.014931529760360718,
0.00959070585668087,
0.048806335777044296,
0.025257695466279984,
-0.05505238100886345,
-0.01073444727808237,
-0.0023781622294336557,
-0.061129093170166016,
0.017784487456083298,
0.0235733725130558,
0.09103953093290329,
-0.047497257590293884,
-0.06982389092445374,
0.006983758881688118,
0.021954132243990898,
-0.010022034868597984,
0.03380395472049713,
0.015051588416099548,
-0.002143042627722025,
-0.03925561532378197,
-0.0021378484088927507,
0.04258622229099274,
-0.07161034643650055,
-0.002489132573828101,
0.0607677586376667,
-0.03226492926478386,
0.04196979105472565,
-0.02268867753446102,
-0.012051114812493324,
0.017635062336921692,
-0.03047681599855423,
-0.004690445028245449,
0.0382796935737133,
0.003930713050067425,
-0.0272696353495121,
-0.031220674514770508,
-0.06011837348341942,
0.014156189747154713,
0.06511980295181274,
0.0008928269380703568,
-0.014424002729356289,
-0.03819604590535164,
0.021976714953780174,
0.04860726743936539,
0.0006979875615797937,
-0.03956200182437897,
0.020807109773159027,
0.0620732344686985,
0.032391104847192764,
-0.03906508535146713,
0.0672263354063034,
0.027340929955244064,
-0.011713380925357342,
-0.03880545124411583,
0.0015337154036387801,
0.002339312108233571,
-0.043060366064310074,
-0.013216263614594936,
0.05688721314072609,
0.006980673409998417,
-0.03389523923397064,
-0.041249584406614304,
0.06435054540634155,
-0.02150128409266472,
-0.007398045621812344,
-0.014451050199568272,
-0.01066854503005743,
-0.024120690301060677,
0.053520604968070984,
-0.022824054583907127,
0.003816782496869564,
-0.037232693284749985,
-0.029968583956360817,
0.013200636953115463,
0.02485988661646843,
0.02604585699737072,
0.03534550219774246,
-0.009449747391045094,
0.10231458395719528,
-0.03646218031644821,
0.009885142557322979,
-0.03437172248959541,
-0.0716014951467514,
-0.013998722657561302,
0.058437593281269073,
0.030531994998455048,
0.07702745497226715,
-0.008639165200293064,
-0.045009881258010864,
0.027178356423974037,
0.06209203600883484,
0.07901399582624435,
0.017790762707591057,
-0.018450645729899406,
-0.006516596768051386,
0.04675628989934921,
0.04887966811656952,
-0.05723293870687485,
-0.04537346959114075,
0.011057905852794647,
0.030916763469576836,
-0.025213101878762245,
-0.0008732906426303089,
-0.01979527808725834,
0.039980679750442505,
-0.06331928819417953,
-0.07482651621103287,
0.06020185723900795,
0.00986087042838335,
0.011414739303290844,
0.03370029851794243,
-0.010132537223398685,
-0.0007641702541150153,
0.021303199231624603,
0.016805168241262436,
0.0012043251190334558,
-0.03951827064156532,
0.010229210369288921,
0.015527117066085339,
0.05152100324630737,
-0.06650425493717194,
0.0260907169431448,
-0.02482686936855316,
0.0032383794896304607,
0.037428200244903564,
-0.039143431931734085,
0.03465236350893974,
0.03766576573252678,
0.01199303288012743,
-0.03989839181303978,
0.020410733297467232,
0.018787723034620285,
0.03384890407323837,
0.05844787508249283,
0.015890153124928474,
0.06937534362077713,
0.024455519393086433,
0.04800502583384514,
0.09123822301626205,
0.03704635426402092,
0.0055974144488573074,
0.0033222755882889032,
0.07737946510314941,
0.015556984581053257,
-0.021435076370835304,
0.07860547304153442,
-0.030455870553851128,
0.0287927258759737,
-0.02862408198416233,
-0.0031916212756186724,
-0.00030264697852544487,
0.0029870644211769104,
0.011242913082242012,
0.009561016224324703,
-0.01569986157119274,
-0.00021936242410447448,
-0.01430567353963852,
-0.022529268637299538,
0.06376448273658752,
-0.031190168112516403,
-0.027803529053926468,
-0.009671875275671482,
-0.006309294607490301,
-0.0020567812025547028,
-0.08346685767173767,
-0.03566378727555275,
-0.00793569814413786,
-0.032666586339473724,
0.011283987201750278,
-0.058336369693279266,
-0.006653732154518366,
-0.07249946892261505,
-0.0060013337060809135,
0.036123137921094894,
0.019741374999284744,
0.013519343920052052,
-0.02467421442270279,
0.005482276435941458,
-0.06764401495456696,
-0.039760906249284744,
-0.05959969386458397,
-0.03581755608320236,
-0.01477289292961359,
-0.05832196772098541,
0.031694963574409485,
0.03104115091264248,
0.05390273407101631,
-0.0007217174861580133,
-0.005664749536663294,
-0.016254639253020287,
-0.03846372663974762,
0.044752221554517746,
0.043457575142383575,
-0.031513381749391556,
-0.06348962336778641,
0.022525813430547714,
-0.04020651429891586,
-0.001674551866017282,
-0.004085635766386986,
-0.03361427038908005,
0.0696290135383606,
0.058915067464113235,
0.0255519337952137,
0.02677653357386589,
-0.03480706736445427,
-0.03906944394111633,
-0.059006135910749435,
-0.034548357129096985,
-0.026465903967618942,
-0.015979310497641563,
-0.034412022680044174,
-0.0445430614054203,
-0.011041664518415928,
-0.005141722969710827,
-0.0014788724947720766,
-0.041274942457675934,
-0.009142084047198296,
0.039361339062452316,
0.035405296832323074,
0.036338236182928085,
0.04663870483636856,
-0.0333416685461998,
-0.04326878860592842,
0.07430800050497055,
0.014178579673171043,
0.008243913762271404,
-0.07149534672498703,
-0.03475881367921829,
0.01326562650501728,
0.025591004639863968,
-0.01236405223608017,
-0.008179030381143093,
0.08169323951005936,
0.004893392324447632,
-0.01759978197515011,
0.013207362033426762,
-0.038891639560461044,
-0.015164966695010662,
-0.018785305321216583,
-0.018287982791662216,
0.00518850889056921,
-0.05721093714237213,
0.0021922863088548183,
0.0023111405316740274,
0.044615328311920166,
-0.0681971088051796,
-0.04867186397314072,
-0.010988518595695496,
0.03760572895407677,
0.03372833877801895,
-0.0035339132882654667,
-0.037961166352033615,
0.007779130712151527,
-0.05942930653691292,
-0.017670217901468277,
0.009433404542505741,
0.023354001343250275,
0.004738481715321541,
0.04947090521454811,
0.01738487184047699,
-0.02741331234574318,
0.037312403321266174,
0.02283455803990364,
0.06669342517852783,
0.02609924040734768,
-0.05471618473529816,
0.006432744208723307,
-0.005439497996121645,
0.0189784187823534,
-0.00504159415140748,
-0.016592727974057198,
-0.043271031230688095,
-0.08377651125192642,
-0.022982317954301834,
0.01566179282963276,
-0.00348119274713099,
-0.01736941747367382,
0.04127856716513634,
-0.019163567572832108,
-0.0019424784695729613,
0.0075501855462789536,
0.037192441523075104,
0.0356014184653759,
-0.04284976050257683,
0.039103079587221146,
-0.015122434124350548,
0.032010000199079514,
-0.07573461532592773,
0.008539559319615364,
-0.01289022620767355,
-0.017877710983157158,
0.014285260811448097,
0.06988051533699036,
-0.000245431816438213,
0.03169991821050644,
0.07834517955780029,
0.023928800597786903,
-0.04188743978738785,
0.04175582155585289,
0.049459390342235565,
-0.046820346266031265,
-0.0403115451335907,
0.009372859261929989,
-0.016898393630981445,
-0.038538917899131775,
-0.014415450394153595,
-0.03045412339270115,
0.04556425288319588,
0.035598024725914,
-0.014813563786447048,
-0.002745347796007991,
0.030949439853429794,
-0.0379205085337162,
-0.02138015814125538,
-0.05204155296087265,
-0.028788354247808456,
0.0433768555521965,
-0.0381908118724823,
0.029054129496216774,
0.040863268077373505,
0.014949054457247257,
0.05444633960723877,
0.04049920290708542,
-0.05377138406038284,
-0.029902765527367592,
0.030848920345306396,
0.012426022440195084,
-0.037754423916339874,
-0.0568859800696373,
-0.01940046437084675,
0.056555796414613724,
0.019342221319675446,
-0.01600656658411026,
-0.07389329373836517,
-0.01371582131832838,
0.04223405197262764,
-0.05417855456471443,
0.030146460980176926,
-0.012314323335886002,
0.040140602737665176,
0.04501689597964287,
-0.014043404720723629,
0.03177232667803764,
-0.026068435981869698,
0.018295666202902794,
0.006865446921437979,
0.019618717953562737,
-0.018113188445568085,
-0.02524341456592083,
-0.06716279685497284,
0.01345871202647686,
0.04512561112642288,
0.03174570947885513,
0.05787881463766098,
-0.009733215905725956,
-0.019817152991890907,
-0.017199529334902763,
0.03041890636086464,
-0.033452700823545456,
0.013342047110199928,
0.0221996009349823,
0.029488561674952507,
-0.02662079781293869,
-0.02866317704319954,
0.001490185153670609,
0.0011113297659903765,
0.009113287553191185,
-0.017721567302942276,
-0.04491886496543884,
-0.025750722736120224,
0.01854030229151249,
-0.012480861507356167,
-0.023472268134355545,
-0.08560165762901306,
0.034269098192453384,
-0.012895790860056877,
0.0034401840530335903,
0.0425572395324707,
0.028265880420804024,
0.029019678011536598,
0.048481330275535583,
0.020349673926830292,
0.010854467749595642,
-0.025581909343600273,
0.042008090764284134,
-0.02487003616988659,
-0.019060149788856506,
-0.009691261686384678,
-0.031089916825294495,
-0.020771119743585587,
-0.01689990423619747,
-0.043379656970500946,
-0.030272964388132095,
-0.02322486788034439,
0.04214393347501755,
-0.025763820856809616,
-0.010014334693551064,
-0.020955214276909828,
0.03862247243523598,
-0.03616572916507721,
-0.030720096081495285,
-0.03085942566394806,
-0.04122842475771904,
-0.05217608064413071,
-0.04727017506957054,
0.03678147494792938,
-0.01702200062572956,
0.0260617733001709,
0.025989580899477005,
0.02182811126112938,
0.03090617060661316,
0.00703710550442338,
-0.0256694033741951,
0.01278240978717804,
-0.015140388160943985,
-0.03996310010552406,
-0.042452048510313034,
0.014100843109190464,
0.01321039441972971,
0.0744423195719719,
-0.009675346314907074,
0.014638041146099567,
0.026968685910105705,
-0.05918319895863533,
-0.013427981175482273,
0.02343968115746975,
0.02745814248919487,
-0.043237414211034775,
-0.04837646335363388,
0.0004441401979420334,
-0.05014466866850853,
0.018537817522883415,
-0.018557311967015266,
0.006278662942349911,
0.02141615003347397,
0.011070421896874905,
0.03815951198339462,
-0.0038957963697612286,
-0.0235632061958313,
0.03969606012105942,
-0.024826183915138245,
0.008078331127762794,
-0.05382183939218521,
0.06303483992815018,
-0.02776077203452587,
0.01732654869556427,
-0.007463777903467417,
-0.0011570053175091743,
-0.05775253102183342,
0.019743522629141808,
-0.007648696191608906,
-0.0018271678127348423,
0.013599436730146408,
0.013894685544073582,
-0.008289788849651814,
0.022767741233110428,
-0.013543606735765934,
0.012195304967463017,
-0.04736516252160072,
0.062490351498126984,
-0.015283381566405296,
0.007908795960247517,
-0.013278761878609657,
-0.012085977010428905,
-0.028292592614889145,
0.005477874539792538,
-0.018793530762195587,
-0.05716903135180473,
0.037690844386816025,
0.061983950436115265,
0.045706991106271744,
0.05028403550386429,
-0.03621920198202133,
0.007913797162473202,
0.006831141654402018,
-0.02411053143441677,
0.0007893829606473446,
0.009169857017695904,
0.03732987120747566,
0.0015733747277408838,
0.06602133065462112,
0.029591713100671768,
-0.05661732703447342,
-0.06627575308084488,
0.016943614929914474,
0.01234259083867073,
0.003226341214030981,
0.01002518180757761,
0.014324961230158806,
0.05455945432186127,
0.05573832243680954,
-0.022290213033556938,
-0.003255264600738883,
-0.03659407049417496,
-0.031139396131038666,
0.03271069377660751,
-0.01531701534986496,
-0.003167414804920554,
0.0035105235874652863,
-0.041618455201387405,
-0.027763606980443,
0.05805269628763199,
0.02372036688029766,
0.01117537822574377,
-0.03700711578130722,
-0.029373956844210625,
0.012392478995025158,
-0.02294723317027092,
-0.050934597849845886,
0.00492009287700057,
0.004305205773562193,
-0.018013644963502884,
0.06559421867132187,
-0.00953977182507515,
0.02464592643082142,
0.04424288123846054,
0.019528435543179512,
-0.01989741064608097,
0.06101129949092865,
-0.013158501125872135,
0.010946429334580898,
0.05249595642089844,
-0.06925667822360992,
-0.008413261733949184,
-0.028647873550653458,
0.07480085641145706,
-0.09621172398328781,
0.03599557653069496,
0.045724187046289444,
0.012348754331469536,
0.03392232209444046,
-0.03696458786725998,
-0.04340449720621109,
0.03523470088839531,
-0.03690042346715927,
0.07872320711612701,
0.028659457340836525,
-0.05832976847887039,
0.0441950298845768,
0.035787105560302734,
-0.08902344852685928,
0.031718477606773376,
0.03839832916855812,
0.016990313306450844,
0.021801311522722244,
0.05683568865060806,
-0.06697169691324234,
0.019084343686699867,
-0.03625064343214035,
0.016380557790398598,
-0.049765102565288544,
0.00005627275095321238,
0.03032130002975464,
-0.0639476478099823,
-0.020123373717069626,
0.002296857303008437,
-0.010518199764192104,
-0.01825277879834175,
0.012031139805912971,
-0.03573398292064667,
-0.04178917407989502,
0.005583618301898241,
0.032273970544338226,
-0.05611151456832886,
0.0025609724689275026,
-0.030971793457865715,
0.007742488756775856,
0.018579255789518356,
0.022630473598837852,
-0.026681071147322655,
-0.02700287289917469,
0.026941565796732903,
-0.051624927669763565,
-0.03594134375452995,
0.05557506904006004,
-0.006095415912568569,
-0.0170041024684906,
0.03235391154885292,
0.007452125195413828,
0.01941726915538311,
0.03686726093292236,
0.0015995786525309086,
0.027805179357528687,
-0.06155231595039368,
-0.028429143130779266,
-0.009590939618647099,
0.014878618530929089,
0.0036452847998589277,
-0.013963417150080204,
0.04384366795420647,
0.05515175312757492,
-0.0028699906542897224,
0.02385813556611538,
-0.03111310489475727,
-0.018467120826244354,
0.02784373052418232,
-0.042821574956178665,
0.03409777581691742,
0.026258714497089386,
-0.05508007854223251,
-0.04637224227190018,
-0.017384745180606842,
-0.0009432498482055962,
0.02621498703956604,
-0.04200233146548271,
-0.01954657956957817,
0.03796868026256561,
-0.03897743299603462,
-0.06281260401010513,
-0.08535885065793991,
-0.03292953595519066,
-0.037602949887514114,
0.04066077247262001,
0.027122696861624718,
-0.04370684549212456,
0.01486129965633154,
-0.04870953783392906,
-0.06693009287118912,
0.008558986708521843,
0.02585996687412262,
-0.03312539681792259,
0.06608840078115463,
0.03946547582745552,
-0.06840141862630844,
0.021551532670855522,
0.05897236987948418,
-0.01685156114399433,
0.020970921963453293,
0.011363804340362549,
0.008196767419576645,
0.04019718989729881,
0.035143133252859116,
-0.0363054983317852,
-0.023815028369426727,
-0.07954490184783936,
-0.062284331768751144,
-0.02274232730269432,
-0.006554109044373035,
0.05814570188522339
] |
Akashpb13/xlsr_hungarian_new | [
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"hu",
"dataset:mozilla-foundation/common_voice_8_0",
"transformers",
"generated_from_trainer",
"hf-asr-leaderboard",
"model_for_talk",
"mozilla-foundation/common_voice_8_0",
"robust-speech-event",
"license:apache-2.0",
"model-index"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | ---
language:
- hu
license: apache-2.0
tags:
- automatic-speech-recognition
- generated_from_trainer
- hf-asr-leaderboard
- hu
- model_for_talk
- mozilla-foundation/common_voice_8_0
- robust-speech-event
datasets:
- mozilla-foundation/common_voice_8_0
model-index:
- name: Akashpb13/xlsr_hungarian_new
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice 8
type: mozilla-foundation/common_voice_8_0
args: hu
metrics:
- name: Test WER
type: wer
value: 0.2851621517163838
- name: Test CER
type: cer
value: 0.06112982522287432
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Dev Data
type: speech-recognition-community-v2/dev_data
args: hu
metrics:
- name: Test WER
type: wer
value: 0.2851621517163838
- name: Test CER
type: cer
value: 0.06112982522287432
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Test Data
type: speech-recognition-community-v2/eval_data
args: hu
metrics:
- name: Test WER
type: wer
value: 47.15
---
# Akashpb13/xlsr_hungarian_new
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the MOZILLA-FOUNDATION/COMMON_VOICE_8_0 - hu dataset.
It achieves the following results on evaluation set (which is 10 percent of train data set merged with invalidated data, reported, other and dev datasets):
- Loss: 0.197464
- Wer: 0.330094
## Model description
"facebook/wav2vec2-xls-r-300m" was finetuned.
## Intended uses & limitations
More information needed
## Training and evaluation data
Training data -
Common voice hungarian train.tsv, dev.tsv, invalidated.tsv, reported.tsv, and other.tsv
Only those points were considered where upvotes were greater than downvotes and duplicates were removed after concatenation of all the datasets given in common voice 7.0
## Training procedure
For creating the train dataset, all possible datasets were appended and 90-10 split was used.
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.000095637994662983496
- train_batch_size: 16
- eval_batch_size: 16
- seed: 13
- gradient_accumulation_steps: 16
- lr_scheduler_type: cosine_with_restarts
- lr_scheduler_warmup_steps: 500
- num_epochs: 100
- mixed_precision_training: Native AMP
### Training results
| Step | Training Loss | Validation Loss | Wer |
|------|---------------|-----------------|----------|
| 500 | 4.785300 | 0.952295 | 0.796236 |
| 1000 | 0.535800 | 0.217474 | 0.381613 |
| 1500 | 0.258400 | 0.205524 | 0.345056 |
| 2000 | 0.202800 | 0.198680 | 0.336264 |
| 2500 | 0.182700 | 0.197464 | 0.330094 |
### Framework versions
- Transformers 4.16.0.dev0
- Pytorch 1.10.0+cu102
- Datasets 1.18.3
- Tokenizers 0.10.3
#### Evaluation Commands
1. To evaluate on `mozilla-foundation/common_voice_8_0` with split `test`
```bash
python eval.py --model_id Akashpb13/xlsr_hungarian_new --dataset mozilla-foundation/common_voice_8_0 --config hu --split test
```
| [
-0.011181526817381382,
-0.02494693547487259,
-0.03199692443013191,
0.036355748772621155,
0.042448826134204865,
0.03664779290556908,
-0.013177667744457722,
-0.007614721078425646,
-0.035155896097421646,
0.05814102664589882,
0.028566565364599228,
-0.018567267805337906,
0.013594227842986584,
0.013561873696744442,
-0.015637535601854324,
-0.047163911163806915,
-0.03907553851604462,
-0.003489157883450389,
-0.06262250244617462,
-0.005539180710911751,
-0.009097535163164139,
0.043293897062540054,
-0.04605517536401749,
0.03934428095817566,
-0.0022372149396687746,
0.014041214250028133,
-0.031246498227119446,
0.029760345816612244,
-0.002441523829475045,
-0.05479130893945694,
-0.02118397317826748,
-0.04083786532282829,
-0.027236655354499817,
-0.034585680812597275,
-0.023851653560996056,
-0.00567763252183795,
0.00326147279702127,
0.020319638773798943,
0.02649126946926117,
0.053114958107471466,
-0.0038226651959121227,
0.017748216167092323,
-0.005717745050787926,
-0.0350617840886116,
0.04206706956028938,
0.006340038031339645,
-0.04779994487762451,
-0.029354043304920197,
0.04130110889673233,
-0.026289021596312523,
-0.0416327603161335,
-0.07221894711256027,
-0.01113316509872675,
0.009281034581363201,
-0.015980100259184837,
-0.035205766558647156,
-0.05583098158240318,
-0.008271086029708385,
0.08100511878728867,
-0.055102523416280746,
-0.026593919843435287,
0.004889420699328184,
-0.0637173056602478,
0.014458244666457176,
0.03539297729730606,
-0.041985295712947845,
0.012556996196508408,
-0.034908391535282135,
0.041133586317300797,
-0.021813947707414627,
0.05519040301442146,
-0.057190969586372375,
0.02507954277098179,
-0.08227917551994324,
0.0028322141151875257,
-0.010809306055307388,
0.0439017154276371,
0.04837984964251518,
-0.02516363002359867,
0.06251467764377594,
0.029712827876210213,
0.0022663555573672056,
0.03761089965701103,
-0.024525152519345284,
0.000695863040164113,
0.017855852842330933,
-0.043192487210035324,
0.019663162529468536,
0.0159361083060503,
0.034744102507829666,
-0.032973762601614,
-0.04283247888088226,
-0.02274659462273121,
-0.056364867836236954,
-0.005554100498557091,
0.041591621935367584,
0.04434186965227127,
-0.01407361589372158,
0.017225611954927444,
0.03491869568824768,
0.013383148238062859,
0.026785574853420258,
-0.027304774150252342,
0.0525217242538929,
-0.00959059502929449,
-0.008574808947741985,
0.002831327496096492,
-0.008532964624464512,
-0.04736316576600075,
-0.008131812326610088,
0.02919662371277809,
-0.03335289657115936,
-0.03855485841631889,
0.031324006617069244,
0.0010886640520766377,
-0.032195430248975754,
0.04542330652475357,
-0.04374207183718681,
-0.03894583508372307,
-0.06499045342206955,
0.032284367829561234,
0.02432095631957054,
0.009709645062685013,
0.012114115990698338,
-0.05100717395544052,
0.032399218529462814,
-0.03040367364883423,
-0.026814399287104607,
0.0069291903637349606,
-0.0035583837889134884,
0.0007161953253671527,
0.04561910033226013,
0.029587654396891594,
-0.07634212076663971,
-0.007189850322902203,
-0.013916668482124805,
-0.05572429299354553,
0.011147536337375641,
0.015911057591438293,
0.07744740694761276,
-0.035618700087070465,
-0.055604446679353714,
0.009957860223948956,
0.017711184918880463,
-0.02109123207628727,
0.03405458852648735,
0.0116445142775774,
-0.008725655265152454,
-0.023632889613509178,
-0.002784791635349393,
0.031341567635536194,
-0.07873963564634323,
-0.002084135776385665,
0.06621280312538147,
-0.027289701625704765,
0.03955788537859917,
-0.03139466792345047,
-0.005035919602960348,
0.005166627466678619,
-0.011926454491913319,
0.004123828373849392,
0.038624357432127,
0.016882413998246193,
-0.03643346205353737,
-0.03964638710021973,
-0.056560490280389786,
0.030259286984801292,
0.06513441354036331,
0.0031698327511548996,
-0.0102628068998456,
-0.051630936563014984,
0.026047609746456146,
0.05305059626698494,
0.015251541510224342,
-0.023361656814813614,
0.025501275435090065,
0.04792160540819168,
0.0396261066198349,
-0.02319915220141411,
0.06966235488653183,
0.016201985999941826,
-0.017232486978173256,
-0.042235635221004486,
-0.0020096166990697384,
0.011167040094733238,
-0.03191762790083885,
-0.007700048387050629,
0.0541544072329998,
0.0023925695568323135,
-0.02911568246781826,
-0.0372455008327961,
0.07115016132593155,
-0.027543680742383003,
-0.014573276042938232,
0.002285377588123083,
-0.018116900697350502,
-0.019238848239183426,
0.04898970574140549,
-0.026859965175390244,
0.00575588783249259,
-0.026759296655654907,
-0.027940791100263596,
0.019684437662363052,
0.02224990539252758,
0.029155371710658073,
0.03947945684194565,
-0.006455614231526852,
0.1019020825624466,
-0.0360272116959095,
0.013429691083729267,
-0.042180225253105164,
-0.07250058650970459,
-0.027033952996134758,
0.04778572916984558,
0.04286012053489685,
0.08262335509061813,
-0.011638498865067959,
-0.049844738095998764,
0.025679314509034157,
0.07247854769229889,
0.06673824042081833,
0.013703778386116028,
-0.017879795283079147,
-0.02034408412873745,
0.047270920127630234,
0.05838460847735405,
-0.06282854080200195,
-0.04282204806804657,
-0.007679750211536884,
0.032809142023324966,
-0.03229648619890213,
-0.007610071450471878,
-0.0070429472252726555,
0.04627249762415886,
-0.06274481862783432,
-0.0750625878572464,
0.07302916049957275,
0.003898581489920616,
0.0006763693527318537,
0.02019188553094864,
-0.003892965381965041,
0.002451473381370306,
0.021386735141277313,
0.021562499925494194,
0.0028138491325080395,
-0.036702483892440796,
0.0027430697809904814,
0.006552825681865215,
0.06824619323015213,
-0.06334856152534485,
0.02095641754567623,
-0.03167174011468887,
0.015328599140048027,
0.038996752351522446,
-0.04694714769721031,
0.039326950907707214,
0.030265353620052338,
0.02443806268274784,
-0.02948220632970333,
0.024433938786387444,
0.01578621380031109,
0.04182518273591995,
0.04091544449329376,
0.012197372503578663,
0.054746001958847046,
0.012359396554529667,
0.05074629932641983,
0.09479296952486038,
0.017513660714030266,
-0.0074330591596663,
0.006611923687160015,
0.07347873598337173,
0.00917082279920578,
-0.022140953689813614,
0.07491108030080795,
-0.04112457111477852,
0.039328865706920624,
-0.030917135998606682,
0.0026060917880386114,
0.0037130345590412617,
0.002451817039400339,
0.025183886289596558,
-0.008239761926233768,
-0.00987565703690052,
-0.00038881012005731463,
-0.020282546058297157,
-0.03184443339705467,
0.05403144285082817,
-0.036571722477674484,
-0.008357424288988113,
-0.008421043865382671,
-0.013540256768465042,
-0.001993347192183137,
-0.07516174018383026,
-0.045025717467069626,
-0.0004474469751585275,
-0.03516464680433273,
0.019856484606862068,
-0.060486674308776855,
-0.009637661278247833,
-0.07217906415462494,
-0.011951548978686333,
0.03954806923866272,
0.030524110421538353,
0.015953505411744118,
-0.04225535690784454,
0.007510154973715544,
-0.05736229941248894,
-0.04069989547133446,
-0.046042267233133316,
-0.024227991700172424,
-0.023455971851944923,
-0.05939206853508949,
0.03316473215818405,
0.02910718321800232,
0.05395963415503502,
-0.004203492775559425,
0.0019360262667760253,
-0.03417421132326126,
-0.026977278292179108,
0.049236103892326355,
0.05292511731386185,
-0.03381882235407829,
-0.05833905562758446,
0.02854735031723976,
-0.0166154932230711,
0.012150690890848637,
-0.01636980101466179,
-0.038060978055000305,
0.06702321022748947,
0.07603111118078232,
0.021394530311226845,
0.02177267149090767,
-0.01375653687864542,
-0.046132802963256836,
-0.04286609962582588,
-0.026823420077562332,
-0.030872337520122528,
-0.017977073788642883,
-0.038793619722127914,
-0.03911162167787552,
-0.006816626526415348,
-0.00584085937589407,
-0.01776641234755516,
-0.04055909439921379,
-0.015441007912158966,
0.025655362755060196,
0.038540925830602646,
0.042203955352306366,
0.042555179446935654,
-0.016193076968193054,
-0.05104006826877594,
0.08738940954208374,
0.010762852616608143,
0.006468116771429777,
-0.07243074476718903,
-0.036609966307878494,
0.000532653066329658,
0.017132757231593132,
-0.019630389288067818,
-0.02353499084711075,
0.0736880749464035,
0.009320144541561604,
-0.01060178130865097,
-0.0002536583924666047,
-0.03703760728240013,
-0.016789475455880165,
-0.03074014186859131,
-0.014794907532632351,
0.01241917535662651,
-0.0631478950381279,
0.006566000636667013,
-0.00030811893520876765,
0.04166708141565323,
-0.0810362696647644,
-0.05751164257526398,
-0.013290044851601124,
0.035052549093961716,
0.0180410984903574,
-0.0037759130354970694,
-0.0383034385740757,
0.023424668237566948,
-0.0466492660343647,
-0.027936464175581932,
-0.0011864658445119858,
0.034342020750045776,
0.0005827496643178165,
0.04679194465279579,
0.026743700727820396,
-0.02293247915804386,
0.05160128325223923,
0.04074658080935478,
0.0621320866048336,
0.03800901025533676,
-0.0495297908782959,
0.01787041872739792,
-0.015063718892633915,
0.02352200262248516,
-0.0036148843355476856,
-0.008326399140059948,
-0.049030907452106476,
-0.09221605956554413,
-0.019327443093061447,
0.030282771214842796,
0.00540543207898736,
-0.02101418375968933,
0.03737917169928551,
-0.016876494511961937,
0.003829555120319128,
0.009118358604609966,
0.03234365954995155,
0.04007301479578018,
-0.050747133791446686,
0.03710734471678734,
-0.0031120115891098976,
0.04650944843888283,
-0.06944303959608078,
0.012963303364813328,
-0.016414528712630272,
-0.02306780219078064,
0.014807132072746754,
0.06713307648897171,
0.01865839585661888,
0.04772857576608658,
0.07215970754623413,
0.01483486220240593,
-0.02425219863653183,
0.03818192705512047,
0.03153928369283676,
-0.02461354248225689,
-0.056279804557561874,
-0.005396215710788965,
-0.014495296403765678,
-0.039568427950143814,
-0.002898060018196702,
-0.024588096886873245,
0.037116557359695435,
0.023652400821447372,
0.004720406141132116,
-0.0024213423021137714,
0.036187369376420975,
-0.03398846089839935,
-0.016548287123441696,
-0.05129897594451904,
-0.04307166486978531,
0.03270101919770241,
-0.03628597408533096,
0.030737511813640594,
0.04222538322210312,
0.011663883924484253,
0.042404044419527054,
0.04493485763669014,
-0.041912585496902466,
-0.0308173056691885,
0.03769323229789734,
0.012341398745775223,
-0.051190830767154694,
-0.051471106708049774,
-0.015219083055853844,
0.061404529958963394,
0.009638453833758831,
0.00843367725610733,
-0.07306822389364243,
0.0061770109459757805,
0.05477118119597435,
-0.032548561692237854,
0.02178739756345749,
-0.006758004426956177,
0.045654892921447754,
0.05085387080907822,
-0.007455454673618078,
0.03496730700135231,
-0.023686477914452553,
0.016928154975175858,
0.005499643739312887,
0.02025613933801651,
-0.013465041294693947,
-0.007284694351255894,
-0.07246200740337372,
0.013561667874455452,
0.039545267820358276,
0.02951304242014885,
0.0535203292965889,
-0.019140571355819702,
-0.02301812171936035,
-0.013093821704387665,
0.030198460444808006,
-0.06522325426340103,
0.033073656260967255,
0.033430349081754684,
0.02812197059392929,
-0.04039972275495529,
-0.038880642503499985,
0.006036361213773489,
-0.0024073345120996237,
0.012948419898748398,
-0.007166736293584108,
-0.03672356158494949,
-0.026129020377993584,
0.029093056917190552,
-0.010473485104739666,
-0.035203978419303894,
-0.0859275832772255,
0.02823023498058319,
-0.01951804757118225,
-0.0056740473955869675,
0.03440401703119278,
0.02989787422120571,
0.03460441529750824,
0.05418843403458595,
0.009332067333161831,
-0.00680021895095706,
-0.025076357647776604,
0.03506474569439888,
-0.035714127123355865,
-0.021824730560183525,
-0.009647155180573463,
-0.040284834802150726,
-0.017538361251354218,
-0.03377861529588699,
-0.038827650249004364,
-0.03763850778341293,
-0.008332613855600357,
0.045309171080589294,
-0.022991858422756195,
-0.009623351506888866,
-0.020405234768986702,
0.028631050139665604,
-0.024773234501481056,
-0.03315701335668564,
-0.02962774969637394,
-0.027374405413866043,
-0.0423305369913578,
-0.052226774394512177,
0.03644990548491478,
-0.025319062173366547,
0.03137776628136635,
0.021496085450053215,
0.023888204246759415,
0.02985987812280655,
-0.0002308220136910677,
-0.023434491828083992,
0.02238820493221283,
-0.01848594844341278,
-0.04392318055033684,
-0.031065914779901505,
0.011797782965004444,
0.004189285449683666,
0.0824165791273117,
-0.01621091365814209,
0.03469035401940346,
0.026564419269561768,
-0.06014757230877876,
-0.0066121420823037624,
0.02658466435968876,
0.029304755851626396,
-0.04119618237018585,
-0.06743314862251282,
0.0058296252973377705,
-0.05139971151947975,
0.023038538172841072,
-0.018991995602846146,
0.004317751154303551,
0.01757756434381008,
0.012545956298708916,
0.04018910974264145,
-0.002814446110278368,
-0.02931000106036663,
0.03534180298447609,
-0.018028972670435905,
0.01128876581788063,
-0.061484113335609436,
0.047432221472263336,
-0.01736576110124588,
0.024617066606879234,
-0.017174115404486656,
-0.00906328484416008,
-0.06002278998494148,
0.0033008125610649586,
-0.014100945554673672,
-0.014004034921526909,
0.016285741701722145,
0.019815465435385704,
-0.010110260918736458,
0.020847858861088753,
-0.01354162860661745,
0.015260623767971992,
-0.04501786455512047,
0.05775908753275871,
-0.03131371736526489,
-0.0023870349396020174,
-0.026267725974321365,
-0.005260847508907318,
-0.043901391327381134,
0.00884457677602768,
-0.020275207236409187,
-0.057432908564805984,
0.03139398247003555,
0.05552533268928528,
0.032136470079422,
0.048276763409376144,
-0.05408402904868126,
0.005976131651550531,
0.0047246976755559444,
-0.021549319848418236,
0.006688359193503857,
0.0023612549994140863,
0.013702531345188618,
0.019976001232862473,
0.04612922668457031,
0.0372270904481411,
-0.06083974614739418,
-0.06620746850967407,
0.010683676227927208,
0.0014371202560141683,
-0.0018624678486958146,
0.024074280634522438,
0.0175169724971056,
0.06055411696434021,
0.049655526876449585,
-0.0083762276917696,
-0.005616781301796436,
-0.026085225865244865,
-0.038598351180553436,
0.034484125673770905,
-0.01680704951286316,
0.009415951557457447,
0.008974767290055752,
-0.03836464136838913,
-0.016353772953152657,
0.068755604326725,
0.018401090055704117,
0.014403868466615677,
-0.028503859415650368,
-0.03817063570022583,
0.024298444390296936,
-0.01639382168650627,
-0.054266706109046936,
0.013881105929613113,
0.021044258028268814,
-0.024688223376870155,
0.07173166424036026,
-0.02115514688193798,
0.024063872173428535,
0.0446140356361866,
0.015706663951277733,
-0.03425566852092743,
0.048665523529052734,
-0.007164280861616135,
0.0033339234068989754,
0.04238133504986763,
-0.06174197047948837,
-0.01970355026423931,
-0.03231918439269066,
0.07213099300861359,
-0.10221797227859497,
0.02761044166982174,
0.06137894093990326,
0.010515820235013962,
0.028429588302969933,
-0.030220206826925278,
-0.05389602482318878,
0.04797547310590744,
-0.04093227535486221,
0.07568187266588211,
0.009098507463932037,
-0.05319835990667343,
0.04874677211046219,
0.010203148238360882,
-0.08618304878473282,
0.02788541652262211,
0.027067437767982483,
-0.00018807404558174312,
0.013859876431524754,
0.05375496670603752,
-0.0493195466697216,
0.01605190336704254,
-0.02610083296895027,
0.03719215840101242,
-0.04567885026335716,
0.009090394712984562,
0.01999708265066147,
-0.05575397610664368,
-0.020971408113837242,
0.022368023172020912,
-0.014389913529157639,
-0.01789112575352192,
0.017457803711295128,
-0.042107272893190384,
-0.04074889048933983,
0.013951464556157589,
0.03570004552602768,
-0.04127730801701546,
0.006168718915432692,
-0.03892895579338074,
0.011265034787356853,
0.0335426926612854,
0.002607056638225913,
-0.028632206842303276,
-0.02960391156375408,
0.013445913791656494,
-0.06735317409038544,
-0.033909376710653305,
0.04663300886750221,
-0.013986368663609028,
-0.019203489646315575,
0.021911581978201866,
0.023161131888628006,
0.029630620032548904,
0.03987932205200195,
0.00420333631336689,
0.02337879315018654,
-0.06440440565347672,
-0.03319358080625534,
-0.01446191594004631,
0.020243778824806213,
0.003796220989897847,
-0.019613217562437057,
0.03769185021519661,
0.04838859289884567,
0.018766727298498154,
0.018404269590973854,
-0.03356298804283142,
-0.00812256895005703,
0.020768040791153908,
-0.049193426966667175,
0.03367060422897339,
0.03363217040896416,
-0.06288117915391922,
-0.04876820370554924,
-0.01740206964313984,
0.009844952262938023,
0.028543828055262566,
-0.041269734501838684,
0.001370925921946764,
0.04213317856192589,
-0.023953786119818687,
-0.055338285863399506,
-0.0692301020026207,
-0.03840207681059837,
-0.04996171221137047,
0.031037133187055588,
0.039619915187358856,
-0.04033014923334122,
-0.0015615553129464388,
-0.05483720824122429,
-0.06892060488462448,
0.0026245315093547106,
0.013373540714383125,
-0.0335211381316185,
0.06315043568611145,
0.016640178859233856,
-0.06791671365499496,
0.016143158078193665,
0.05168427154421806,
-0.010180730372667313,
0.024241996929049492,
0.010949291288852692,
0.013239407911896706,
0.046704281121492386,
0.02771308645606041,
-0.025903502479195595,
-0.020758377388119698,
-0.055553339421749115,
-0.06052026152610779,
-0.02011246047914028,
-0.009994649328291416,
0.05735710635781288
] |
Akashpb13/xlsr_kurmanji_kurdish | [
"pytorch",
"safetensors",
"wav2vec2",
"automatic-speech-recognition",
"kmr",
"ku",
"dataset:mozilla-foundation/common_voice_8_0",
"transformers",
"mozilla-foundation/common_voice_8_0",
"generated_from_trainer",
"robust-speech-event",
"model_for_talk",
"hf-asr-leaderboard",
"license:apache-2.0",
"model-index"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | 2022-01-29T13:25:14Z | ---
language:
- kmr
- ku
license: apache-2.0
tags:
- automatic-speech-recognition
- mozilla-foundation/common_voice_8_0
- generated_from_trainer
- kmr
- robust-speech-event
- model_for_talk
- hf-asr-leaderboard
datasets:
- mozilla-foundation/common_voice_8_0
model-index:
- name: Akashpb13/xlsr_kurmanji_kurdish
results:
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice 8
type: mozilla-foundation/common_voice_8_0
args: kmr
metrics:
- name: Test WER
type: wer
value: 0.33073206986250464
- name: Test CER
type: cer
value: 0.08035244447163924
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Dev Data
type: speech-recognition-community-v2/dev_data
args: kmr
metrics:
- name: Test WER
type: wer
value: 0.33073206986250464
- name: Test CER
type: cer
value: 0.08035244447163924
---
# Akashpb13/xlsr_kurmanji_kurdish
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the MOZILLA-FOUNDATION/COMMON_VOICE_7_0 - hu dataset.
It achieves the following results on the evaluation set (which is 10 percent of train data set merged with invalidated data, reported, other, and dev datasets):
- Loss: 0.292389
- Wer: 0.388585
## Model description
"facebook/wav2vec2-xls-r-300m" was finetuned.
## Intended uses & limitations
More information needed
## Training and evaluation data
Training data -
Common voice Kurmanji Kurdish train.tsv, dev.tsv, invalidated.tsv, reported.tsv, and other.tsv
Only those points were considered where upvotes were greater than downvotes and duplicates were removed after concatenation of all the datasets given in common voice 7.0
## Training procedure
For creating the training dataset, all possible datasets were appended and 90-10 split was used.
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.000096
- train_batch_size: 16
- eval_batch_size: 16
- seed: 13
- gradient_accumulation_steps: 16
- lr_scheduler_type: cosine_with_restarts
- lr_scheduler_warmup_steps: 200
- num_epochs: 100
- mixed_precision_training: Native AMP
### Training results
| Step | Training Loss | Validation Loss | Wer |
|------|---------------|-----------------|----------|
| 200 | 4.382500 | 3.183725 | 1.000000 |
| 400 | 2.870200 | 0.996664 | 0.781117 |
| 600 | 0.609900 | 0.333755 | 0.445052 |
| 800 | 0.326800 | 0.305729 | 0.403157 |
| 1000 | 0.255000 | 0.290734 | 0.391621 |
| 1200 | 0.226300 | 0.292389 | 0.388585 |
### Framework versions
- Transformers 4.16.0.dev0
- Pytorch 1.10.0+cu102
- Datasets 1.18.1
- Tokenizers 0.10.3
#### Evaluation Commands
1. To evaluate on `mozilla-foundation/common_voice_8_0` with split `test`
```bash
python eval.py --model_id Akashpb13/xlsr_kurmanji_kurdish --dataset mozilla-foundation/common_voice_8_0 --config kmr --split test
```
| [
-0.017029309645295143,
-0.016133397817611694,
-0.020054088905453682,
0.043810706585645676,
0.05538635328412056,
0.028422478586435318,
-0.019076960161328316,
-0.015273897908627987,
-0.03868124634027481,
0.06927556544542313,
0.030099056661128998,
-0.037190910428762436,
-0.000940995872952044,
0.00429166853427887,
-0.02379351668059826,
-0.06411343812942505,
-0.017948152497410774,
-0.011768817901611328,
-0.061306580901145935,
-0.017789678648114204,
0.0005603101453743875,
0.040226783603429794,
-0.03620557487010956,
0.025271568447351456,
-0.003958775661885738,
0.01178422849625349,
-0.026949312537908554,
0.023929812014102936,
0.00814544502645731,
-0.04597421735525131,
-0.016003277152776718,
-0.03189760074019432,
-0.027992824092507362,
-0.03872397169470787,
-0.017756257206201553,
-0.0023120155092328787,
-0.002306276699528098,
0.017716271802783012,
0.0373932309448719,
0.04844420403242111,
-0.008725153282284737,
0.019697749987244606,
-0.004775533452630043,
-0.014224599115550518,
0.03217477723956108,
-0.012316232547163963,
-0.034472834318876266,
-0.021757004782557487,
0.04018241539597511,
-0.030788730829954147,
-0.043920423835515976,
-0.04777302220463753,
-0.01817726343870163,
0.015127572230994701,
0.0005083085270598531,
-0.04104999452829361,
-0.032611165195703506,
-0.017300309613347054,
0.07256411761045456,
-0.06797090917825699,
-0.03644178807735443,
0.016557028517127037,
-0.06427734345197678,
0.0123674888163805,
0.007822620682418346,
-0.04792576655745506,
0.013872828334569931,
-0.037941236048936844,
0.032343730330467224,
-0.018951155245304108,
0.06223904713988304,
-0.039168283343315125,
0.02575613372027874,
-0.07805892080068588,
0.0012919552391394973,
-0.009156919084489346,
0.03880742937326431,
0.059853073209524155,
-0.03150596842169762,
0.07616671174764633,
0.03823540732264519,
0.0009744036942720413,
0.03594816103577614,
-0.011373471468687057,
0.01427371520549059,
0.02502542734146118,
-0.03916110098361969,
0.02351582981646061,
0.012545357458293438,
0.015355195850133896,
-0.02484757825732231,
-0.04476397484540939,
-0.01894092932343483,
-0.05100013688206673,
-0.007738370448350906,
0.04626878350973129,
0.058359481394290924,
-0.022404585033655167,
0.031114712357521057,
0.01819063350558281,
0.011407732963562012,
0.024526672437787056,
-0.03514551743865013,
0.056058306246995926,
-0.022492127493023872,
-0.003269687294960022,
0.006297079846262932,
-0.004264131188392639,
-0.04643792659044266,
0.007580352947115898,
0.018609384074807167,
-0.04581845924258232,
-0.048191800713539124,
0.025194674730300903,
0.015164216049015522,
-0.02954389899969101,
0.051540035754442215,
-0.041446276009082794,
-0.030009621754288673,
-0.057052869349718094,
0.031324513256549835,
0.018446121364831924,
0.00979398563504219,
-0.0029296923894435167,
-0.04569563269615173,
0.027331147342920303,
-0.030603796243667603,
-0.027988312765955925,
0.010350166819989681,
0.02527271956205368,
0.00880613923072815,
0.049857739359140396,
0.03457873314619064,
-0.06230038404464722,
-0.007485030218958855,
0.0003372827486600727,
-0.059474971145391464,
0.016655003651976585,
0.021709732711315155,
0.08088958263397217,
-0.04836748540401459,
-0.07947360724210739,
0.0015476527623832226,
0.0244830884039402,
-0.0025591484736651182,
0.0350048691034317,
0.016066722571849823,
0.0009077773429453373,
-0.04263392463326454,
0.003841669764369726,
0.04209894314408302,
-0.07444625347852707,
-0.0031876391731202602,
0.057857073843479156,
-0.02777830697596073,
0.04529137164354324,
-0.009257595986127853,
0.0010606986470520496,
0.020632782950997353,
-0.021634645760059357,
-0.010781504213809967,
0.027486858889460564,
0.0026406850665807724,
-0.025046618655323982,
-0.03212258219718933,
-0.06623335927724838,
0.009385251440107822,
0.07531049847602844,
0.008280613459646702,
-0.007350230123847723,
-0.04149060323834419,
0.019524628296494484,
0.035773761570453644,
-0.00010970723087666556,
-0.042106423527002335,
0.02600884437561035,
0.05633571371436119,
0.03730601444840431,
-0.04452270269393921,
0.06688182055950165,
0.031572453677654266,
-0.01633417420089245,
-0.026384860277175903,
0.0016447259113192558,
0.00687780138105154,
-0.032149478793144226,
-0.01072333287447691,
0.05892302095890045,
0.004300713073462248,
-0.031885821372270584,
-0.03609142825007439,
0.056356992572546005,
-0.021509481593966484,
-0.006931181997060776,
-0.011779779568314552,
-0.017969103530049324,
-0.029770459979772568,
0.04768828675150871,
-0.034647345542907715,
0.00363464024849236,
-0.033347297459840775,
-0.014596349559724331,
0.021370381116867065,
0.036946043372154236,
0.024362143129110336,
0.04380199685692787,
-0.01065306831151247,
0.10263878107070923,
-0.0394965335726738,
0.007985122501850128,
-0.029977379366755486,
-0.07203125953674316,
-0.0110777011141181,
0.04707472026348114,
0.028226347640156746,
0.07545717805624008,
0.0007107742130756378,
-0.0359300896525383,
0.028923042118549347,
0.0628521591424942,
0.07656283676624298,
0.01116190291941166,
-0.00977129116654396,
-0.01873031072318554,
0.04700471833348274,
0.04735260829329491,
-0.05538132041692734,
-0.04071875661611557,
0.012415208853781223,
0.040846120566129684,
-0.019398914650082588,
0.0015502728056162596,
-0.014327247627079487,
0.04344865679740906,
-0.05251624807715416,
-0.08678702265024185,
0.06740929186344147,
0.00583654036745429,
0.00012533263361547142,
0.028563816100358963,
-0.004212009254842997,
0.007907625287771225,
0.017293041571974754,
0.0179394893348217,
0.013204114511609077,
-0.030065318569540977,
0.008280180394649506,
0.019274892285466194,
0.05728911980986595,
-0.052107684314250946,
0.032639794051647186,
-0.02017839625477791,
0.008363278582692146,
0.042611122131347656,
-0.04071223363280296,
0.03246667608618736,
0.018952682614326477,
0.014568948186933994,
-0.03682846948504448,
0.020385434851050377,
0.018429789692163467,
0.04084578901529312,
0.061759211122989655,
0.004307068884372711,
0.05146544426679611,
0.01870434172451496,
0.05962776765227318,
0.09599762409925461,
0.026656685397028923,
0.009163839742541313,
-0.0045996056869626045,
0.07007540762424469,
0.024945296347141266,
-0.017680829390883446,
0.07678966969251633,
-0.04320931062102318,
0.027046939358115196,
-0.03837829455733299,
0.01535078790038824,
0.00918224360793829,
0.00797961838543415,
0.007167156785726547,
0.010544565506279469,
-0.012003864161670208,
0.010095189325511456,
-0.02075730450451374,
-0.017286185175180435,
0.0578792467713356,
-0.02863667532801628,
-0.030353588983416557,
-0.00027981793391518295,
-0.006784405559301376,
-0.008808566257357597,
-0.07913414388895035,
-0.03359830006957054,
-0.007805644068866968,
-0.028687765821814537,
0.016769161447882652,
-0.06817279011011124,
-0.009183366782963276,
-0.07213704288005829,
-0.0048757754266262054,
0.03667513653635979,
0.01815791428089142,
0.008268620818853378,
-0.024910692125558853,
0.004531165584921837,
-0.06868742406368256,
-0.03782469034194946,
-0.05470230430364609,
-0.03437243029475212,
-0.02240692637860775,
-0.06203891336917877,
0.025631573051214218,
0.030284292995929718,
0.040063101798295975,
-0.0029147486202418804,
0.006914823316037655,
-0.019147483631968498,
-0.03958022966980934,
0.03144083544611931,
0.043774597346782684,
-0.03183674067258835,
-0.06349056959152222,
0.03114495426416397,
-0.04065251350402832,
0.00043675166671164334,
0.004211715422570705,
-0.040687523782253265,
0.076022669672966,
0.07017838954925537,
0.031768254935741425,
0.03174120932817459,
-0.028727395460009575,
-0.04643921181559563,
-0.056766144931316376,
-0.02951485849916935,
-0.03731781989336014,
-0.015588775277137756,
-0.0406680554151535,
-0.048803262412548065,
-0.00800508726388216,
-0.01241531316190958,
-0.004196321591734886,
-0.04195480793714523,
0.0037674822378903627,
0.0445241741836071,
0.04289691522717476,
0.04218234121799469,
0.05157548561692238,
-0.028372718021273613,
-0.03714532032608986,
0.0764743760228157,
0.00983948353677988,
0.016831781715154648,
-0.06340532004833221,
-0.03003360703587532,
0.01958286575973034,
0.022383561357855797,
-0.00864437036216259,
-0.010151075199246407,
0.0788477435708046,
-0.004240828100591898,
-0.00667826272547245,
0.013939092867076397,
-0.033670611679553986,
-0.012177144177258015,
-0.02254967764019966,
-0.019021952524781227,
0.0007382044568657875,
-0.06920618563890457,
0.009153347462415695,
0.0008281826740130782,
0.05880674347281456,
-0.06139228492975235,
-0.04810256138443947,
-0.0157940611243248,
0.03443271294236183,
0.02866028994321823,
-0.015075894072651863,
-0.03792126476764679,
0.00873326975852251,
-0.05676526948809624,
-0.016912300139665604,
0.01476842351257801,
0.014092043042182922,
0.002368542132899165,
0.06469431519508362,
0.013697341084480286,
-0.02326926775276661,
0.05401036888360977,
0.02857828326523304,
0.07099198549985886,
0.020956533029675484,
-0.06089508533477783,
0.003522093640640378,
-0.010136843658983707,
0.017641058191657066,
0.003956605214625597,
-0.028456298634409904,
-0.04936613887548447,
-0.08371300250291824,
-0.020926453173160553,
0.013851639814674854,
-0.010193427093327045,
-0.01362999901175499,
0.04527846351265907,
-0.007358315400779247,
0.001179733662866056,
0.006871181074529886,
0.03807384893298149,
0.0325222983956337,
-0.03977428376674652,
0.037047699093818665,
-0.02603764645755291,
0.03400242328643799,
-0.08277638256549835,
0.011731656268239021,
-0.01171964779496193,
-0.01581181026995182,
0.019039947539567947,
0.071937695145607,
-0.0026608379557728767,
0.025399303063750267,
0.07599830627441406,
0.017960336059331894,
-0.03930525481700897,
0.039620693773031235,
0.05156032368540764,
-0.04539487883448601,
-0.0493437685072422,
-0.0022937613539397717,
-0.007613347377628088,
-0.045956868678331375,
-0.012464615516364574,
-0.02973724715411663,
0.04475846886634827,
0.03467854484915733,
-0.01017452497035265,
0.006428142078220844,
0.02822420746088028,
-0.03859744593501091,
-0.02657742239534855,
-0.054923854768276215,
-0.020623864606022835,
0.03579138219356537,
-0.030787203460931778,
0.025500589981675148,
0.042815666645765305,
0.012178773991763592,
0.058455899357795715,
0.030535006895661354,
-0.050497498363256454,
-0.03616486117243767,
0.01951250247657299,
0.01378373522311449,
-0.04342658817768097,
-0.06583331525325775,
-0.01435719896107912,
0.0581505186855793,
0.026747480034828186,
-0.022546330466866493,
-0.06925591081380844,
0.00756693072617054,
0.04968234524130821,
-0.037799328565597534,
0.045842528343200684,
-0.012079373933374882,
0.043966587632894516,
0.043134771287441254,
-0.026332905516028404,
0.02674560621380806,
-0.026583874598145485,
0.014583910815417767,
0.004765747115015984,
0.016838423907756805,
-0.01605333760380745,
-0.021785452961921692,
-0.06929007172584534,
0.010996745899319649,
0.044604960829019547,
0.029322607442736626,
0.052666075527668,
-0.009337964467704296,
-0.017356503754854202,
-0.01634431816637516,
0.033562641590833664,
-0.042988840490579605,
0.024410570040345192,
0.020177293568849564,
0.032164573669433594,
-0.03059118241071701,
-0.03285593539476395,
0.005804822780191898,
-0.0009147855453193188,
0.011586288921535015,
-0.01890101470053196,
-0.047607410699129105,
-0.029202833771705627,
0.009082197211682796,
-0.01632188819348812,
-0.022672360762953758,
-0.08021624386310577,
0.0324283204972744,
-0.004020437598228455,
0.00326523813419044,
0.04655991122126579,
0.02790294960141182,
0.02009313553571701,
0.037312284111976624,
0.019941888749599457,
0.00919719785451889,
-0.024557098746299744,
0.041777197271585464,
-0.022467872127890587,
-0.014961697161197662,
-0.017215445637702942,
-0.03540153056383133,
-0.011331525631248951,
-0.024598393589258194,
-0.03623576834797859,
-0.038649726659059525,
-0.024051286280155182,
0.04176965355873108,
-0.031623873859643936,
-0.0012439339188858867,
-0.01860201358795166,
0.03671035170555115,
-0.04306577518582344,
-0.04411854222416878,
-0.024755774065852165,
-0.04058367758989334,
-0.056390777230262756,
-0.05060970038175583,
0.028590351343154907,
-0.010086975991725922,
0.01675618812441826,
0.02332191728055477,
0.022064387798309326,
0.024276969954371452,
-0.00004570221790345386,
-0.02616092935204506,
0.019623754546046257,
-0.015883630141615868,
-0.02152073383331299,
-0.04901298135519028,
0.014325964264571667,
0.013170373626053333,
0.07609716057777405,
-0.003871071385219693,
0.009716414846479893,
0.021405339241027832,
-0.04838401824235916,
-0.014014579355716705,
0.01882924512028694,
0.03393125906586647,
-0.04779750481247902,
-0.057046808302402496,
0.0016782147577032447,
-0.04708647355437279,
0.016682248562574387,
-0.029477952048182487,
-0.00564213190227747,
0.019739801064133644,
0.00618875864893198,
0.03206782042980194,
0.0013323789462447166,
-0.020773913711309433,
0.031449731439352036,
-0.008567703887820244,
0.011008663102984428,
-0.05723823979496956,
0.060452722012996674,
-0.02467457577586174,
0.0204770565032959,
-0.014457440003752708,
-0.008962539955973625,
-0.06469075381755829,
0.01835436187684536,
-0.004338715225458145,
-0.005817221477627754,
0.001156691461801529,
0.01705285534262657,
-0.015961194410920143,
0.021722733974456787,
-0.003141259541735053,
0.01708286441862583,
-0.04001811519265175,
0.06101502850651741,
-0.02604864351451397,
0.01256223488599062,
-0.013525212183594704,
-0.013462700881063938,
-0.026526084169745445,
0.0064548649825155735,
-0.019026458263397217,
-0.06522800028324127,
0.0269765742123127,
0.057340215891599655,
0.03971880301833153,
0.05656511336565018,
-0.03503261134028435,
0.014534620568156242,
0.011456715874373913,
-0.021912679076194763,
0.006307300645858049,
0.004673833027482033,
0.03474796935915947,
-0.010156608186662197,
0.0643431544303894,
0.035890623927116394,
-0.056722983717918396,
-0.06679558008909225,
0.01977449469268322,
0.005746942479163408,
0.011482033878564835,
0.005955923814326525,
0.016944998875260353,
0.04971781000494957,
0.05565918609499931,
-0.020732726901769638,
-0.005820029880851507,
-0.03411366790533066,
-0.031087825074791908,
0.029698465019464493,
-0.008671642281115055,
-0.007159105967730284,
0.0110994977876544,
-0.04267559200525284,
-0.02977718412876129,
0.060501452535390854,
0.02580312080681324,
0.02432159148156643,
-0.028644736856222153,
-0.03695402294397354,
0.006630965042859316,
-0.009740584529936314,
-0.05432859808206558,
0.014590115286409855,
0.0013726175529882312,
-0.025081446394324303,
0.07232462614774704,
-0.009970765560865402,
0.020899536088109016,
0.04602653905749321,
0.02097945660352707,
-0.02071838453412056,
0.06386588513851166,
-0.013330888003110886,
0.012762120924890041,
0.04645560309290886,
-0.06889838725328445,
-0.005161352455615997,
-0.030131913721561432,
0.06755112111568451,
-0.09770943224430084,
0.03359631448984146,
0.041602034121751785,
0.0132010318338871,
0.040601518005132675,
-0.0405007041990757,
-0.046506572514772415,
0.04008351266384125,
-0.036853935569524765,
0.07936219871044159,
0.026716740801930428,
-0.04785558208823204,
0.04378058388829231,
0.032255008816719055,
-0.09226025640964508,
0.036561958491802216,
0.04013628885149956,
0.02116326056420803,
0.013515528291463852,
0.0574021115899086,
-0.06779160350561142,
0.0224505215883255,
-0.03526837006211281,
0.026363659650087357,
-0.043694812804460526,
0.00018180727784056216,
0.026623014360666275,
-0.05140641704201698,
-0.016341235488653183,
0.0032234909012913704,
-0.014117326587438583,
-0.024065451696515083,
0.018385566771030426,
-0.03374950587749481,
-0.04054047167301178,
0.004787406884133816,
0.034029338508844376,
-0.06036663427948952,
0.006467967759817839,
-0.038524970412254333,
0.007573442999273539,
0.014227953739464283,
0.017803780734539032,
-0.025839846581220627,
-0.02423257939517498,
0.037048399448394775,
-0.05684269219636917,
-0.037850648164749146,
0.061938557773828506,
-0.0050364769995212555,
-0.02928227372467518,
0.03087991289794445,
0.010266807861626148,
0.024817639961838722,
0.03291049599647522,
-0.001821646699681878,
0.024711813777685165,
-0.06050597131252289,
-0.029445454478263855,
-0.008093228563666344,
0.004508707206696272,
0.01706964336335659,
-0.017019717022776604,
0.03809555247426033,
0.06423763185739517,
-0.0062546986155211926,
0.02641637623310089,
-0.039361752569675446,
-0.023341795429587364,
0.03280922397971153,
-0.048960112035274506,
0.027040092274546623,
0.0207626111805439,
-0.04897703230381012,
-0.04150572791695595,
-0.020029300823807716,
-0.004156673327088356,
0.02775089628994465,
-0.0461096353828907,
-0.014467040076851845,
0.018649784848093987,
-0.03955363109707832,
-0.06335838884115219,
-0.07580829411745071,
-0.024836214259266853,
-0.03613421320915222,
0.038700949400663376,
0.0256457831710577,
-0.033242739737033844,
0.014044837094843388,
-0.05090706795454025,
-0.0682184100151062,
0.008492962457239628,
0.029001593589782715,
-0.02862105704843998,
0.05996723845601082,
0.04545000195503235,
-0.05726087465882301,
0.020202651619911194,
0.05494442582130432,
-0.01765706203877926,
0.036820247769355774,
0.0068916925229132175,
0.0018344192067161202,
0.0431557334959507,
0.03787752240896225,
-0.0359894298017025,
-0.016121381893754005,
-0.08701084554195404,
-0.055016838014125824,
-0.025528594851493835,
0.000597325328271836,
0.05814451351761818
] |
Akashpb13/xlsr_maltese_wav2vec2 | [
"pytorch",
"jax",
"wav2vec2",
"automatic-speech-recognition",
"mt",
"dataset:common_voice",
"transformers",
"audio",
"speech",
"xlsr-fine-tuning-week",
"license:apache-2.0",
"model-index"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
language: mt
datasets:
- common_voice
tags:
- audio
- automatic-speech-recognition
- speech
- xlsr-fine-tuning-week
license: apache-2.0
model-index:
- name: XLSR Wav2Vec2 Maltese by Akash PB
results:
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice mt
type: common_voice
args: {lang_id}
metrics:
- name: Test WER
type: wer
value: 29.42
---
# Wav2Vec2-Large-XLSR-53-Maltese
Fine-tuned [facebook/wav2vec2-large-xlsr-53](https://huggingface.co/facebook/wav2vec2-large-xlsr-53) in Maltese using the [Common Voice](https://huggingface.co/datasets/common_voice)
When using this model, make sure that your speech input is sampled at 16kHz.
## Usage
The model can be used directly (without a language model) as follows:
```python
import torchaudio
from datasets import load_dataset, load_metric
from transformers import (
Wav2Vec2ForCTC,
Wav2Vec2Processor,
)
import torch
import re
import sys
model_name = "Akashpb13/xlsr_maltese_wav2vec2"
device = "cuda"
chars_to_ignore_regex = '[\\,\\?\\.\\!\\-\\;\\:\\"\\“\\%\\‘\\”\\�\\)\\(\\*)]'
model = Wav2Vec2ForCTC.from_pretrained(model_name).to(device)
processor = Wav2Vec2Processor.from_pretrained(model_name)
ds = load_dataset("common_voice", "mt", split="test", data_dir="./cv-corpus-6.1-2020-12-11")
resampler = torchaudio.transforms.Resample(orig_freq=48_000, new_freq=16_000)
def map_to_array(batch):
speech, _ = torchaudio.load(batch["path"])
batch["speech"] = resampler.forward(speech.squeeze(0)).numpy()
batch["sampling_rate"] = resampler.new_freq
batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() + " "
return batch
ds = ds.map(map_to_array)
def map_to_pred(batch):
features = processor(batch["speech"], sampling_rate=batch["sampling_rate"][0], padding=True, return_tensors="pt")
input_values = features.input_values.to(device)
attention_mask = features.attention_mask.to(device)
with torch.no_grad():
logits = model(input_values, attention_mask=attention_mask).logits
pred_ids = torch.argmax(logits, dim=-1)
batch["predicted"] = processor.batch_decode(pred_ids)
batch["target"] = batch["sentence"]
return batch
result = ds.map(map_to_pred, batched=True, batch_size=1, remove_columns=list(ds.features.keys()))
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
**Test Result**: 29.42 %
| [
-0.024652456864714622,
-0.022942891344428062,
-0.019556356593966484,
0.043677158653736115,
0.0559670552611351,
0.04088230058550835,
-0.01576230116188526,
-0.005111028905957937,
-0.02309916540980339,
0.07648169249296188,
0.027662048116326332,
-0.03434057906270027,
-0.006564888637512922,
0.02621057629585266,
-0.009573488496243954,
-0.04729364067316055,
0.00024091123486869037,
-0.012644007802009583,
-0.062326282262802124,
-0.017802001908421516,
-0.012851040810346603,
0.01777234859764576,
-0.015854375436902046,
0.026992017403244972,
-0.008024108596146107,
-0.000546957366168499,
0.00667524291202426,
0.015906767919659615,
0.006349964067339897,
-0.07244043797254562,
-0.011951848864555359,
-0.021745307371020317,
-0.017349764704704285,
-0.05302756652235985,
-0.01629505306482315,
-0.012203470803797245,
0.006633167155086994,
0.019617699086666107,
0.017874503508210182,
0.04829841107130051,
-0.013954813592135906,
0.01397668570280075,
-0.0207985769957304,
-0.008578828535974026,
0.027088433504104614,
0.008189762942492962,
-0.03951777145266533,
-0.0040520005859434605,
0.029047617688775063,
-0.03161383792757988,
-0.029966358095407486,
-0.07512348890304565,
-0.006469919811934233,
0.01847897283732891,
-0.018459372222423553,
-0.013678813353180885,
-0.05538105219602585,
-0.004952698014676571,
0.07000292837619781,
-0.047087423503398895,
-0.026859711855649948,
0.007689829915761948,
-0.06680446118116379,
0.020012611523270607,
0.0255377609282732,
-0.02697567082941532,
0.002097722142934799,
-0.05001549795269966,
0.025902103632688522,
-0.02406502515077591,
0.0560213066637516,
-0.04409582167863846,
0.015474792569875717,
-0.08026531338691711,
0.007195108104497194,
-0.025953495875000954,
0.036904122680425644,
0.04095086455345154,
-0.0301178190857172,
0.04396823048591614,
0.03336076810956001,
0.0002799241046886891,
0.02245241217315197,
-0.04340282082557678,
-0.008192727342247963,
0.035513415932655334,
-0.028344471007585526,
0.008114076219499111,
0.016137324273586273,
0.0453595332801342,
-0.04268655180931091,
-0.04846948757767677,
-0.015621531754732132,
-0.041630104184150696,
0.011450010351836681,
0.03842059522867203,
0.04152419790625572,
-0.01893935166299343,
0.05454350262880325,
0.04331447184085846,
0.019072500988841057,
0.026221074163913727,
-0.015966501086950302,
0.06971459090709686,
-0.019707679748535156,
-0.006455004680901766,
-0.010501495562493801,
-0.04413750767707825,
-0.029864659532904625,
0.004770964849740267,
0.040385901927948,
-0.03399253636598587,
-0.03328071907162666,
0.04691408574581146,
0.009689835831522942,
-0.009456680156290531,
0.05487953498959541,
-0.041647739708423615,
-0.04284445941448212,
-0.06427514553070068,
0.04313337430357933,
0.0009053343674167991,
-0.007572089787572622,
0.020378613844513893,
-0.04185260087251663,
0.01664367876946926,
-0.028363917022943497,
-0.03452853858470917,
-0.004518736153841019,
0.0029253342654556036,
-0.014320079237222672,
0.05003112554550171,
0.01359870657324791,
-0.03722845017910004,
-0.0016861234325915575,
0.007827728055417538,
-0.05519594997167587,
0.0358373187482357,
0.006825847085565329,
0.10718677937984467,
-0.05123339965939522,
-0.046789880841970444,
0.015186840668320656,
-0.0010520012583583593,
-0.01011930126696825,
0.016778672114014626,
0.0033111374359577894,
-0.024799982085824013,
-0.0203215591609478,
-0.006997986696660519,
0.039548564702272415,
-0.060366660356521606,
-0.002642416162416339,
0.040724266320466995,
-0.023252420127391815,
0.03413943573832512,
-0.02966068685054779,
-0.006667787209153175,
0.0207746010273695,
-0.015166875906288624,
-0.004538107663393021,
0.045159608125686646,
-0.003888927400112152,
-0.030217912048101425,
-0.022240575402975082,
-0.05064019933342934,
-0.013827726244926453,
0.07385747879743576,
0.0011823908425867558,
-0.002424021949991584,
-0.014167835004627705,
0.026747724041342735,
0.0374923050403595,
0.034634146839380264,
-0.04466038942337036,
0.046504028141498566,
0.06831049174070358,
0.03089091181755066,
-0.017839133739471436,
0.07595984637737274,
0.021093329414725304,
-0.03753237426280975,
-0.04137187451124191,
-0.0032195905223488808,
-0.0028372956439852715,
-0.019646817818284035,
0.007609021384268999,
0.04342285543680191,
-0.012457819655537605,
-0.026158150285482407,
-0.007952489890158176,
0.04511938989162445,
-0.017175687476992607,
-0.004110018257051706,
-0.003906074445694685,
-0.007793066557496786,
-0.027382345870137215,
0.05787380039691925,
-0.03329100459814072,
-0.0056182267144322395,
-0.01797463558614254,
-0.03580902889370918,
0.0042625777423381805,
0.027565836906433105,
0.03660859912633896,
0.052867431193590164,
0.0037738496903330088,
0.09046924859285355,
-0.03506654128432274,
0.004808102734386921,
-0.04980112984776497,
-0.04427505284547806,
-0.0015248823910951614,
0.05487927794456482,
0.012044613249599934,
0.052036505192518234,
-0.012996421195566654,
-0.036748722195625305,
0.015568379312753677,
0.05556407570838928,
0.06808824092149734,
0.012479458935558796,
-0.025923727080225945,
-0.00015288130089174956,
0.01674741320312023,
0.06491038203239441,
-0.07871127873659134,
-0.04015686362981796,
0.012249930761754513,
0.033919163048267365,
-0.032593611627817154,
0.018941635265946388,
-0.011851253919303417,
0.03146512806415558,
-0.04743437469005585,
-0.08400461822748184,
0.05300600826740265,
0.032012712210416794,
0.018911952152848244,
0.01598169282078743,
-0.02400434948503971,
0.011572729796171188,
0.036076463758945465,
0.0047527095302939415,
0.001054195687174797,
-0.04032371938228607,
-0.0014146803878247738,
0.007624713238328695,
0.05300768092274666,
-0.05684877559542656,
0.038332387804985046,
-0.02139674872159958,
-0.0010575138730928302,
0.04209579899907112,
-0.05580207705497742,
0.029377242550253868,
0.020097043365240097,
0.02111237496137619,
-0.03303227201104164,
0.01844598539173603,
0.005565999075770378,
0.048428915441036224,
0.04763253033161163,
0.0014406442642211914,
0.06800675392150879,
-0.0004188369493931532,
0.060881901532411575,
0.0965910255908966,
0.024768857285380363,
-0.008845021948218346,
0.006596029736101627,
0.07268088310956955,
0.004933518823236227,
-0.024573562666773796,
0.06953684240579605,
-0.04645008221268654,
0.022680379450321198,
-0.029342656955122948,
0.007462324108928442,
-0.005530389025807381,
0.005097208544611931,
0.020268723368644714,
0.008873808197677135,
-0.02425401099026203,
0.002765055513009429,
-0.014772867783904076,
-0.024355094879865646,
0.0390661284327507,
-0.024483241140842438,
-0.010736682452261448,
-0.0066019813530147076,
-0.008795136585831642,
0.02328912913799286,
-0.08284860104322433,
-0.04238187149167061,
-0.018831966444849968,
-0.04083142429590225,
0.005846695974469185,
-0.07978423684835434,
-0.021379638463258743,
-0.05791083723306656,
-0.0048814560286700726,
0.011460749432444572,
0.02984406054019928,
0.010286292061209679,
-0.03414882719516754,
0.014147486537694931,
-0.07090064883232117,
-0.039571307599544525,
-0.06438155472278595,
-0.035549748688936234,
-0.03190477937459946,
-0.07264920324087143,
0.03785340487957001,
0.019635900855064392,
0.03324247524142265,
0.0006239362992346287,
0.0005927860038354993,
-0.028852447867393494,
-0.02193623222410679,
0.04693317413330078,
0.024890290573239326,
-0.043051622807979584,
-0.06144503876566887,
0.04106227308511734,
-0.036937639117240906,
0.011615616269409657,
0.004714781418442726,
-0.0336417518556118,
0.08132678270339966,
0.06477867066860199,
0.01820279099047184,
0.03455560281872749,
-0.019899442791938782,
-0.06278978288173676,
-0.044070445001125336,
-0.02718314714729786,
-0.03868035227060318,
-0.019752340391278267,
-0.006604809779673815,
-0.03207648545503616,
-0.02179885469377041,
-0.012149740010499954,
-0.02455298788845539,
-0.012023980729281902,
0.02477618306875229,
0.03769102692604065,
0.062011025846004486,
0.04315731301903725,
0.03136510029435158,
-0.04334672540426254,
-0.05591714009642601,
0.06684614717960358,
0.028014037758111954,
-0.0003551263362169266,
-0.0683806836605072,
-0.047368232160806656,
0.013758348301053047,
0.007052098400890827,
-0.01612340286374092,
0.0015917496057227254,
0.08424290269613266,
0.006065079942345619,
-0.014398017898201942,
0.012572461739182472,
-0.019258618354797363,
-0.018334005028009415,
-0.001785997417755425,
-0.021397918462753296,
-0.0001436434395145625,
-0.05319705232977867,
-0.0061889523640275,
0.013205768540501595,
0.04510633274912834,
-0.06008812040090561,
-0.0683046206831932,
-0.01202319748699665,
0.03477548435330391,
0.027962593361735344,
0.0003740351239684969,
-0.04717322438955307,
0.019393127411603928,
-0.04102053865790367,
-0.028674326837062836,
0.013656566850841045,
0.014995095320045948,
0.01616421528160572,
0.05376603826880455,
0.012362811714410782,
-0.03979892656207085,
0.03896140307188034,
0.04032783582806587,
0.08013053238391876,
0.011576954275369644,
-0.052336934953927994,
0.014524875208735466,
-0.027330080047249794,
0.018207546323537827,
-0.005311940796673298,
-0.03395892679691315,
-0.030217358842492104,
-0.09164348244667053,
-0.014439069665968418,
0.025080088526010513,
-0.020310964435338974,
-0.024727817624807358,
0.045563533902168274,
-0.00982899870723486,
0.01266743615269661,
-0.004634872078895569,
0.024485314264893532,
0.05088253691792488,
-0.051707033067941666,
0.033599987626075745,
0.010016999207437038,
0.034813035279512405,
-0.07529708743095398,
0.017978908494114876,
-0.00640244223177433,
-0.029507122933864594,
0.0008323725196532905,
0.05991249158978462,
0.01643606834113598,
0.04377302527427673,
0.08377166092395782,
0.02403257042169571,
-0.044659845530986786,
0.052052635699510574,
0.02102258987724781,
-0.048375993967056274,
-0.05989404022693634,
-0.009846985340118408,
-0.02440555952489376,
-0.03522023186087608,
0.0007921006763353944,
-0.026941511780023575,
0.05144748464226723,
0.01774296909570694,
-0.008279956877231598,
-0.034578535705804825,
-0.0008942263084463775,
-0.03425026684999466,
-0.017440181225538254,
-0.041150014847517014,
-0.052159059792757034,
0.040893811732530594,
-0.02185111679136753,
0.02751142904162407,
0.03254863619804382,
0.014731296338140965,
0.06380492448806763,
0.03791995719075203,
-0.022785209119319916,
-0.050945088267326355,
0.023863086476922035,
0.02321489341557026,
-0.053731709718704224,
-0.0691375732421875,
-0.03627708554267883,
0.04661085829138756,
0.024153970181941986,
0.0017432773020118475,
-0.07920841872692108,
-0.008055267855525017,
0.05673659220337868,
-0.03409167006611824,
0.06575135886669159,
-0.03638043627142906,
0.051653020083904266,
0.06324516981840134,
-0.012346654199063778,
0.009720733389258385,
-0.031043164432048798,
0.019093802198767662,
0.011060081422328949,
0.024765832349658012,
0.018176374956965446,
-0.041017912328243256,
-0.07101251929998398,
0.023786669597029686,
0.0311944168061018,
0.029329529032111168,
0.04627419635653496,
-0.013638816773891449,
-0.07231243699789047,
-0.006114069372415543,
0.03300434723496437,
-0.04642973095178604,
0.026839908212423325,
0.034915272146463394,
0.030459517613053322,
-0.04633483663201332,
-0.005257345736026764,
-0.019360022619366646,
0.002749041421338916,
0.029769813641905785,
0.004558824934065342,
-0.057079996913671494,
-0.029125478118658066,
0.006032929290086031,
-0.015584228560328484,
-0.026911430060863495,
-0.08193047344684601,
0.014695354737341404,
-0.02313922345638275,
-0.01717277057468891,
0.057279832661151886,
0.06177060306072235,
0.056585073471069336,
0.018055519089102745,
0.002166423946619034,
0.016464324668049812,
-0.028072774410247803,
0.0486709326505661,
-0.002886934904381633,
-0.007496670354157686,
-0.011458134278655052,
-0.03607672452926636,
-0.02045934647321701,
-0.024981414899230003,
-0.053645677864551544,
-0.05807606503367424,
-0.012803489342331886,
0.03131015971302986,
-0.01196844968944788,
-0.015497228130698204,
-0.014888758771121502,
0.04351261630654335,
-0.02818378247320652,
-0.028929924592375755,
-0.03387715667486191,
-0.0068473960272967815,
-0.07048092782497406,
-0.05722808837890625,
0.03494343161582947,
-0.005542335566133261,
0.042356349527835846,
-0.00339757208712399,
0.010964096523821354,
0.02328999899327755,
-0.008954606018960476,
0.025463497266173363,
0.029551180079579353,
-0.012604610063135624,
-0.05667867884039879,
-0.022217465564608574,
0.024956734851002693,
0.02170589566230774,
0.06682039052248001,
-0.017095517367124557,
0.025484077632427216,
0.045212145894765854,
-0.046113889664411545,
-0.004726519342511892,
0.013026919215917587,
0.027953825891017914,
-0.06914009898900986,
-0.03782586008310318,
-0.0027257183101028204,
-0.06856417655944824,
0.00821935385465622,
-0.006702800747007132,
0.0012083204928785563,
0.012608319520950317,
0.02730412594974041,
0.042147889733314514,
-0.009184292517602444,
-0.0272799264639616,
0.018559828400611877,
-0.014502576552331448,
0.0037133118603378534,
-0.04918412119150162,
0.053402554243803024,
-0.02531302161514759,
0.02211662381887436,
-0.0033905066084116697,
-0.014267733320593834,
-0.03993845731019974,
0.037709616124629974,
-0.02312992699444294,
-0.0018885449972003698,
-0.0003086881770286709,
0.016355890780687332,
-0.007129369769245386,
0.02158465050160885,
-0.02068040706217289,
0.003837559139356017,
-0.029303941875696182,
0.051414068788290024,
-0.025123393163084984,
0.009687528945505619,
-0.025646645575761795,
0.00044310634257271886,
-0.017580648884177208,
-0.023697977885603905,
-0.0135831069201231,
-0.048516497015953064,
0.053025633096694946,
0.04613453894853592,
0.04687737673521042,
0.035331256687641144,
-0.031828489154577255,
0.0062683504074811935,
-0.021692922338843346,
-0.04222607612609863,
-0.009011698886752129,
-0.003960608504712582,
0.0560738742351532,
0.030420368537306786,
0.043426234275102615,
0.02034604735672474,
-0.05778730288147926,
-0.062344327569007874,
0.041247621178627014,
0.018920402973890305,
0.009348937310278416,
0.014301735907793045,
0.033138029277324677,
0.05180962383747101,
0.0457729697227478,
-0.022587217390537262,
-0.006177267525345087,
-0.02094908058643341,
-0.040268417447805405,
0.025538139045238495,
-0.007110778708010912,
0.02235659956932068,
0.011185132898390293,
-0.04659688100218773,
-0.023037519305944443,
0.07409872114658356,
0.01235608384013176,
0.019115393981337547,
-0.02249434031546116,
-0.027620233595371246,
0.012330952100455761,
-0.010628162883222103,
-0.041160110384225845,
0.014647496864199638,
-0.0047236219979822636,
-0.0347386971116066,
0.07264328747987747,
-0.02377011813223362,
-0.00463842274621129,
0.020485173910856247,
0.012773185968399048,
-0.01886923424899578,
0.06318634748458862,
0.0010649299947544932,
0.024145759642124176,
0.04809437319636345,
-0.07239679247140884,
-0.017767375335097313,
-0.026593344286084175,
0.07417084276676178,
-0.08578386157751083,
0.026035955175757408,
0.0617530457675457,
0.015680890530347824,
0.031396593898534775,
-0.044702332466840744,
-0.052538979798555374,
0.046145714819431305,
-0.04832660034298897,
0.0802205353975296,
0.03401033580303192,
-0.040157049894332886,
0.0817263051867485,
0.03207710012793541,
-0.09995575994253159,
0.05675678327679634,
0.04246457293629646,
0.020312229171395302,
0.01722831465303898,
0.03663509711623192,
-0.05750457942485809,
0.004064003936946392,
-0.04762808978557587,
0.028095999732613564,
-0.05610636621713638,
0.012071597389876842,
-0.0010236016241833568,
-0.03560192510485649,
-0.012783358804881573,
0.017184561118483543,
-0.01850111596286297,
-0.009959980845451355,
0.010820668190717697,
-0.050043050199747086,
-0.036554403603076935,
-0.012350684963166714,
0.020311899483203888,
-0.04451841861009598,
-0.005424115341156721,
-0.035240281373262405,
0.017209872603416443,
0.02327943593263626,
0.0073821330443024635,
-0.03106039948761463,
-0.022368114441633224,
0.008659222163259983,
-0.06750977784395218,
-0.05343536287546158,
0.03592509403824806,
0.017628245055675507,
-0.03535081446170807,
0.052595194429159164,
0.009348608553409576,
0.01683884859085083,
0.029870714992284775,
0.010040951892733574,
0.033064134418964386,
-0.07457296550273895,
-0.03183750435709953,
0.0001303113385802135,
0.016943296417593956,
0.037587881088256836,
-0.014870980754494667,
0.03751775994896889,
0.02301260642707348,
0.006625600159168243,
0.012690774165093899,
-0.027683475986123085,
-0.022565701976418495,
0.010652713477611542,
-0.047606583684682846,
0.016038132831454277,
0.01614273712038994,
-0.04348034784197807,
-0.022320905700325966,
-0.0008279395988211036,
0.01347973383963108,
0.026010358706116676,
-0.04231186583638191,
-0.0024902373552322388,
0.0250814538449049,
-0.028610460460186005,
-0.05035591870546341,
-0.0816253200173378,
-0.03333365172147751,
-0.025802921503782272,
0.029507866129279137,
0.016228584572672844,
-0.04998196288943291,
0.006381253711879253,
-0.05793348327279091,
-0.053247205913066864,
0.021626431494951248,
0.013105237856507301,
-0.022296883165836334,
0.05127737298607826,
0.04320753365755081,
-0.040830496698617935,
0.009152514860033989,
0.04703206196427345,
-0.021076606586575508,
0.03119788132607937,
0.009083254262804985,
-0.001745280809700489,
0.031028129160404205,
0.02673686109483242,
-0.03544839471578598,
-0.011350596323609352,
-0.06541439890861511,
-0.03127671405673027,
-0.022680995985865593,
0.006288717966526747,
0.05132552981376648
] |
Akjder/DialoGPT-small-harrypotter | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
tags:
- conversational
---
# Harry Potter DialoGPT Model | [
-0.029324334114789963,
0.006045046728104353,
0.013366674073040485,
0.034415628761053085,
0.0064101917669177055,
0.0184163898229599,
0.0027549832593649626,
0.015343309380114079,
-0.019336814060807228,
0.01679833233356476,
0.02836332842707634,
-0.0335305817425251,
0.010642284527420998,
0.03561847656965256,
-0.026645774021744728,
-0.022012796252965927,
-0.0374370738863945,
-0.007161307148635387,
-0.011235304176807404,
-0.024762284010648727,
0.01878328248858452,
0.019173908978700638,
-0.023326190188527107,
0.04056162014603615,
-0.00013032220886088908,
0.01604306325316429,
-0.017776837572455406,
0.007180109620094299,
0.02825922891497612,
-0.05232449620962143,
0.0054761734791100025,
-0.04873955622315407,
-0.04309379681944847,
-0.02253297157585621,
-0.03122914582490921,
-0.03367152065038681,
0.01157275028526783,
-0.0038235762622207403,
-0.0015630485722795129,
0.035578105598688126,
-0.023000074550509453,
0.006916804704815149,
0.0018112226389348507,
-0.056640177965164185,
0.07643008232116699,
-0.0021587542723864317,
-0.04019196704030037,
-0.013396967202425003,
0.019284876063466072,
-0.03964890167117119,
-0.02973981760442257,
-0.06467559188604355,
-0.057371340692043304,
-0.02214694954454899,
0.021305561065673828,
-0.047492701560258865,
-0.07273899763822556,
-0.009300298057496548,
0.09301820397377014,
-0.008789985440671444,
-0.003479601349681616,
-0.0015972885303199291,
-0.06657750904560089,
0.0034638172946870327,
0.022680899128317833,
-0.08078191429376602,
0.021663960069417953,
-0.03377952054142952,
0.006651107221841812,
-0.03950415179133415,
0.05879628285765648,
-0.0505913682281971,
0.014896580018103123,
-0.08635079860687256,
-0.006956600118428469,
0.006866901181638241,
0.062096644192934036,
0.056914135813713074,
-0.05117888003587723,
0.04631425812840462,
0.03922424092888832,
0.019339002668857574,
0.038175541907548904,
-0.02033150941133499,
-0.03604703024029732,
0.04485022649168968,
-0.049899447709321976,
-0.015213698148727417,
0.002321400912478566,
0.041603583842515945,
-0.028948627412319183,
-0.04592858999967575,
-0.03450830280780792,
-0.011223982088267803,
-0.006015983410179615,
0.06087745726108551,
0.027222031727433205,
-0.03689863532781601,
0.009819765575230122,
0.05178665369749069,
0.022423744201660156,
0.05077588930726051,
-0.02648092247545719,
0.02764766477048397,
-0.015271658077836037,
0.0276294257491827,
0.025957558304071426,
-0.021426763385534286,
-0.028382839635014534,
0.02598307467997074,
0.00972988735884428,
-0.03767849877476692,
-0.03283713757991791,
0.04257403314113617,
0.018710672855377197,
0.014837652444839478,
0.03926532343029976,
-0.038093142211437225,
-0.034723252058029175,
-0.06044483184814453,
0.04765630513429642,
-0.008917461149394512,
0.00722747715190053,
-0.0038273672107607126,
-0.0535883754491806,
-0.003075293730944395,
-0.04485759884119034,
-0.02825883962213993,
-0.016061797738075256,
0.0031830216757953167,
0.02533522993326187,
0.03805280104279518,
-0.028510073199868202,
-0.0657055675983429,
0.015092626214027405,
0.04771393537521362,
-0.06248725205659866,
0.0037312330678105354,
0.046378303319215775,
0.10275783389806747,
-0.07461053133010864,
-0.022824198007583618,
0.016644421964883804,
0.01629127562046051,
-0.0266636423766613,
0.00005521136336028576,
-0.008702308870851994,
-0.017780471593141556,
-0.05689717456698418,
-0.01681748777627945,
0.006729383487254381,
-0.05807029828429222,
-0.007673975080251694,
0.04841874912381172,
-0.014388065785169601,
0.009547034278512001,
-0.03169182687997818,
0.006040643434971571,
-0.020283591002225876,
-0.03357336297631264,
-0.04814692586660385,
0.03068779781460762,
-0.01935543119907379,
-0.021936746314167976,
-0.05094262957572937,
-0.03968610242009163,
0.012327304109930992,
0.0705903172492981,
0.021678997203707695,
-0.014923504553735256,
-0.027380215004086494,
0.04607361555099487,
0.0663459524512291,
0.039896946400403976,
-0.025043867528438568,
0.014710103161633015,
0.037086427211761475,
0.014699638821184635,
-0.028026485815644264,
0.06597111374139786,
0.007464506197720766,
-0.034463342279195786,
-0.04504704102873802,
-0.02622162736952305,
0.023382164537906647,
-0.016682155430316925,
0.014659442007541656,
0.040892571210861206,
-0.037681784480810165,
-0.043271467089653015,
0.025090549141168594,
0.05521121248602867,
-0.02454865723848343,
0.00022230457398109138,
-0.015020915307104588,
-0.017583895474672318,
-0.03008204512298107,
0.03579287603497505,
-0.04497387632727623,
0.0007514043245464563,
-0.024583086371421814,
-0.004709289409220219,
0.027974503114819527,
-0.004079547710716724,
-0.009944266639649868,
0.035158999264240265,
0.0007475509191863239,
0.07896332442760468,
-0.029629364609718323,
0.02389870211482048,
-0.02972949482500553,
-0.0038248610217124224,
-0.027765914797782898,
0.02494957484304905,
0.02031428925693035,
0.04876300320029259,
-0.04660053178668022,
-0.060219962149858475,
0.03221181407570839,
0.06487572193145752,
0.027613649144768715,
0.031065847724676132,
-0.02008022554218769,
-0.016284359619021416,
0.030312977731227875,
0.039717547595500946,
-0.038305364549160004,
0.0014758353354409337,
0.0009163497015833855,
0.028793707489967346,
-0.0077044544741511345,
-0.029279274865984917,
-0.038149476051330566,
0.003091629594564438,
-0.03434260934591293,
-0.07473298907279968,
0.047628700733184814,
0.031131526455283165,
-0.00892054382711649,
0.02309340424835682,
-0.013147242367267609,
0.013761166483163834,
0.03681659325957298,
0.012213367037475109,
0.0028349999338388443,
-0.07353322952985764,
-0.0017687792424112558,
0.011865610256791115,
0.08528615534305573,
-0.050786443054676056,
0.009875438176095486,
0.01450960524380207,
0.028331726789474487,
0.03657151013612747,
-0.011829410679638386,
0.03377189487218857,
0.05878402665257454,
0.043790269643068314,
-0.02899227663874626,
0.046585459262132645,
-0.002162110060453415,
0.0480341799557209,
0.055273812264204025,
0.003149155294522643,
0.053119514137506485,
-0.006468884646892548,
0.02760019153356552,
0.039632849395275116,
0.01438270416110754,
-0.0320330485701561,
0.03415761888027191,
0.07532195001840591,
0.0007230250630527735,
0.03211534395813942,
0.0394044853746891,
-0.0006387882749550045,
0.0007480086642317474,
-0.03934842348098755,
-0.008443034254014492,
0.010566980578005314,
-0.011486753821372986,
0.05970734357833862,
0.007821928709745407,
-0.01563885062932968,
-0.010194342583417892,
-0.014454849995672703,
-0.013643015176057816,
0.04400497302412987,
-0.017525989562273026,
-0.015870314091444016,
-0.014409157447516918,
0.00028267272864468396,
0.011324447579681873,
-0.05840837582945824,
-0.07261456549167633,
-0.00892136711627245,
-0.04502694308757782,
0.0015251465374603868,
-0.10529199242591858,
-0.033938802778720856,
-0.051022861152887344,
-0.01648094691336155,
0.040511712431907654,
0.01596754603087902,
0.02945655584335327,
-0.004817067179828882,
0.006404382176697254,
-0.02895386889576912,
-0.05527380853891373,
-0.05277848243713379,
-0.013484315946698189,
-0.011922584846615791,
-0.05986711382865906,
0.03639623522758484,
0.03594469651579857,
0.059636440128088,
0.004005639813840389,
-0.031525757163763046,
-0.04907754063606262,
-0.011161072179675102,
0.049111414700746536,
0.029080145061016083,
-0.04609939455986023,
-0.026032710447907448,
0.002191880950704217,
0.01638808660209179,
0.005718542728573084,
-0.03371670842170715,
-0.05463572219014168,
0.07348424196243286,
0.037300724536180496,
0.018640462309122086,
0.006455768831074238,
-0.003478005528450012,
-0.03578047826886177,
-0.021421674638986588,
-0.0400761216878891,
-0.04631587490439415,
-0.006308929529041052,
-0.03676237165927887,
-0.05955388769507408,
-0.030016839504241943,
-0.0606619156897068,
0.004153134301304817,
-0.0064947050996124744,
0.0026194551028311253,
0.01437730249017477,
0.017646076157689095,
0.030950473621487617,
0.01628406159579754,
-0.020657874643802643,
-0.01649150438606739,
0.028876960277557373,
-0.005001821089535952,
-0.01918436773121357,
-0.07858137786388397,
-0.04967968165874481,
0.010130629874765873,
0.018305519595742226,
-0.011504319496452808,
-0.002546550240367651,
0.03047904744744301,
0.027014032006263733,
-0.0036192380357533693,
0.027359556406736374,
-0.060156289488077164,
0.009445133619010448,
-0.044433508068323135,
-0.044254038482904434,
-0.025507858023047447,
-0.024130068719387054,
-0.025223398581147194,
-0.009120017290115356,
0.04303348809480667,
-0.08471989631652832,
-0.027839569374918938,
-0.009472784586250782,
0.010087325237691402,
0.027230044826865196,
0.0053651416674256325,
-0.06074148043990135,
-0.0025745003949850798,
-0.03820035234093666,
-0.024975325912237167,
-0.014738112688064575,
-0.018760642036795616,
0.003309398889541626,
0.027584483847022057,
0.03569645434617996,
-0.04446111246943474,
0.055457744747400284,
0.012019732035696507,
0.05459335073828697,
0.06237439438700676,
-0.02545018680393696,
0.02867874689400196,
-0.042907826602458954,
0.042373865842819214,
0.004029440227895975,
-0.03830255940556526,
-0.054072923958301544,
-0.09945599734783173,
-0.04973861947655678,
0.0275014266371727,
-0.007318167015910149,
0.013769112527370453,
0.038077931851148605,
-0.044596243649721146,
-0.039812974631786346,
0.01465238630771637,
0.035569336265325546,
0.04650743678212166,
-0.030582720413804054,
0.048671092838048935,
0.014076371677219868,
0.006929371505975723,
-0.05133192613720894,
0.004024306312203407,
-0.05675031989812851,
-0.028189698234200478,
-0.008334139361977577,
0.04396547004580498,
0.014822574332356453,
0.0701635554432869,
0.07078737765550613,
0.046007510274648666,
-0.05500912666320801,
0.06339516490697861,
0.08126981556415558,
-0.007854863069951534,
-0.037003785371780396,
-0.00683246785774827,
-0.00846167840063572,
0.00026697901193983853,
-0.0014921199763193727,
-0.015141051262617111,
0.026136642321944237,
0.04228907451033592,
0.00297183683142066,
0.000511582416947931,
0.029101410880684853,
-0.015128291212022305,
-0.012436055578291416,
-0.0765959694981575,
0.0032401259522885084,
-0.025109941139817238,
-0.032988619059324265,
0.05356369912624359,
0.03872525319457054,
0.005621433723717928,
0.05566524714231491,
0.022301461547613144,
-0.010847410187125206,
-0.04954244941473007,
0.03685742989182472,
0.020767906680703163,
-0.05409272760152817,
-0.047952596098184586,
-0.06094774603843689,
0.036577943712472916,
0.05609051138162613,
-0.011115551926195621,
-0.08585789054632187,
0.02011454850435257,
0.0463884174823761,
-0.0551876574754715,
0.04372739419341087,
0.005179118365049362,
0.0625462457537651,
0.01610248163342476,
0.009406471624970436,
0.03418578580021858,
-0.06436669081449509,
0.015213262289762497,
-0.010873571038246155,
0.04413327947258949,
-0.05113816261291504,
-0.051073893904685974,
-0.06846770644187927,
0.04051796719431877,
0.02092994749546051,
0.026323679834604263,
0.01026386208832264,
-0.05436021462082863,
-0.03328754007816315,
-0.009042703546583652,
0.014465195126831532,
-0.007088589947670698,
0.022031152620911598,
0.018190819770097733,
0.053670693188905716,
-0.0702144205570221,
0.0025187924038618803,
0.01905016228556633,
0.02234090305864811,
0.015032424591481686,
-0.020317483693361282,
-0.04864870756864548,
-0.009062418714165688,
0.02697126194834709,
-0.03206963092088699,
0.006005092989653349,
-0.09589269012212753,
0.014080235734581947,
-0.024870790541172028,
-0.024516701698303223,
0.0635879710316658,
0.05623811110854149,
0.05504676327109337,
0.07299675047397614,
-0.007165116257965565,
0.044777099043130875,
-0.01823703944683075,
0.04584970325231552,
-0.03918127343058586,
-0.021183477714657784,
-0.0004742054152302444,
-0.09294062852859497,
-0.024923225864768028,
-0.02198467217385769,
-0.030108192935585976,
-0.04360305517911911,
0.018514160066843033,
-0.004303574096411467,
-0.02432386763393879,
0.005927645601332188,
0.001532129943370819,
0.027096247300505638,
-0.0260924082249403,
-0.04185408726334572,
-0.00774267828091979,
-0.011413153260946274,
-0.09150898456573486,
-0.051739972084760666,
0.030621178448200226,
-0.03692938759922981,
0.012287834659218788,
-0.00610322505235672,
0.0063345045782625675,
0.061451513320207596,
0.006252190563827753,
-0.013939211145043373,
0.005934006534516811,
0.040698371827602386,
-0.042205821722745895,
-0.013071139343082905,
0.008154467679560184,
0.0029791579581797123,
0.004696345422416925,
-0.039839740842580795,
0.0385361947119236,
0.008949578739702702,
-0.05626218765974045,
-0.032879456877708435,
0.038065411150455475,
0.006613257806748152,
-0.07458451390266418,
-0.005305635742843151,
-0.025044642388820648,
-0.04123532772064209,
0.005882963538169861,
-0.04165685921907425,
-0.022826137021183968,
-0.008985799737274647,
0.029600806534290314,
0.022460687905550003,
-0.007589888293296099,
-0.021002883091568947,
0.000597560778260231,
-0.023328177630901337,
0.03661675751209259,
-0.059721387922763824,
0.01907220669090748,
-0.021868718788027763,
0.029988015070557594,
-0.031072424724698067,
0.011503472924232483,
-0.03803470358252525,
0.04737085849046707,
-0.033153094351291656,
-0.008493160828948021,
-0.005506565328687429,
-0.01269377302378416,
0.0029418987687677145,
0.03680837154388428,
0.009493755176663399,
0.006852645426988602,
-0.03660179302096367,
0.07498744875192642,
-0.06040522828698158,
0.02503969706594944,
-0.018646009266376495,
-0.025875579565763474,
-0.0221214909106493,
0.010518569499254227,
-0.00243677687831223,
-0.04895931854844093,
0.02525801956653595,
0.026589417830109596,
0.01125175878405571,
0.056251946836709976,
0.004884405992925167,
0.002131040906533599,
0.04290904104709625,
-0.047080472111701965,
-0.04695260152220726,
0.01371457427740097,
-0.0036854492500424385,
0.010200509801506996,
0.06730148941278458,
0.019656850025057793,
-0.051269304007291794,
-0.03298187628388405,
0.036224622279405594,
0.03920775651931763,
0.01547351386398077,
0.013992264866828918,
0.038688454777002335,
0.05340225622057915,
0.06545703113079071,
-0.014284899458289146,
-0.008399687707424164,
0.02632058784365654,
-0.015389695763587952,
-0.010931363329291344,
-0.0011463254923000932,
0.007501407992094755,
0.02187659963965416,
-0.02314271405339241,
-0.017980478703975677,
0.07055877894163132,
-0.002504604170098901,
0.003662115428596735,
-0.003091471502557397,
-0.033761415630578995,
0.06009666994214058,
0.009287005290389061,
-0.051856182515621185,
-0.006517966277897358,
0.033703580498695374,
-0.03184324502944946,
0.029390254989266396,
-0.02171221934258938,
0.008781238459050655,
0.040882062166929245,
0.018404237926006317,
0.017135364934802055,
0.022892175242304802,
-0.02161395363509655,
-0.0020907986909151077,
0.020904554054141045,
-0.042144861072301865,
-0.029485343024134636,
-0.04201829433441162,
0.042180344462394714,
-0.052373386919498444,
0.05242586508393288,
0.01947634108364582,
0.039626237004995346,
0.00204284256324172,
-0.04078803211450577,
-0.024650808423757553,
-0.022751539945602417,
-0.0470784492790699,
0.06416257470846176,
-0.022259114310145378,
-0.04111771285533905,
0.07285141199827194,
0.032809942960739136,
-0.07665783166885376,
0.03320395573973656,
0.02954564429819584,
0.04169195145368576,
0.01691335253417492,
0.06123942509293556,
-0.0454246960580349,
0.012235907837748528,
-0.0315406359732151,
0.001444325316697359,
-0.032137177884578705,
-0.029147351160645485,
-0.01114110741764307,
-0.039019957184791565,
0.00825886894017458,
0.03404037654399872,
-0.02594446763396263,
0.020991912111639977,
0.008665453642606735,
-0.037056297063827515,
-0.04209477826952934,
-0.010286766104400158,
0.027574384585022926,
-0.0018829028122127056,
-0.002804409246891737,
-0.002874651923775673,
0.01882787235081196,
0.029967091977596283,
-0.020682567730545998,
-0.06116577610373497,
0.019078020006418228,
-0.01757967472076416,
-0.054765768349170685,
-0.06269072741270065,
0.05467918515205383,
0.024424761533737183,
-0.021622810512781143,
-0.00860762782394886,
0.03603753075003624,
0.013047618791460991,
0.03396212309598923,
-0.00953170470893383,
0.01731584593653679,
-0.08252567797899246,
0.000751139537896961,
0.026040880009531975,
0.02617098204791546,
-0.011058756150305271,
-0.012689783237874508,
0.015810219570994377,
0.0690523311495781,
0.05578429624438286,
-0.00024373790074605495,
-0.045822955667972565,
-0.02362227439880371,
-0.012840475887060165,
-0.038220446556806564,
0.05083516985177994,
0.016029030084609985,
-0.061181697994470596,
-0.03173583373427391,
-0.009317218326032162,
0.002656501019373536,
0.022773977369070053,
-0.04440457001328468,
0.023512249812483788,
0.010786732658743858,
-0.005174492485821247,
-0.038444988429546356,
-0.09174039959907532,
-0.03351268172264099,
-0.019307183101773262,
0.02875979244709015,
0.03961571305990219,
-0.07238275557756424,
0.014237849041819572,
-0.027363313362002373,
-0.022072048857808113,
0.049900829792022705,
0.00413566455245018,
-0.014953586272895336,
0.07735265046358109,
0.04406217485666275,
-0.045390162616968155,
0.05342625826597214,
0.020868640393018723,
-0.05321521311998367,
0.052108488976955414,
0.009516383521258831,
0.033601313829422,
0.0004953616880811751,
0.014341053552925587,
-0.01190819963812828,
0.006626333110034466,
-0.022978195920586586,
-0.04506203159689903,
-0.0010064292000606656,
0.003309110179543495,
0.03568396344780922
] |
AkshatSurolia/BEiT-FaceMask-Finetuned | [
"pytorch",
"beit",
"image-classification",
"dataset:Face-Mask18K",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | image-classification | {
"architectures": [
"BeitForImageClassification"
],
"model_type": "beit",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 239 | null | ---
license: apache-2.0
tags:
- image-classification
datasets:
- Face-Mask18K
---
# BEiT for Face Mask Detection
BEiT model pre-trained and fine-tuned on Self Currated Custom Face-Mask18K Dataset (18k images, 2 classes) at resolution 224x224. It was introduced in the paper BEIT: BERT Pre-Training of Image Transformers by Hangbo Bao, Li Dong and Furu Wei.
## Model description
The BEiT model is a Vision Transformer (ViT), which is a transformer encoder model (BERT-like). In contrast to the original ViT model, BEiT is pretrained on a large collection of images in a self-supervised fashion, namely ImageNet-21k, at a resolution of 224x224 pixels. The pre-training objective for the model is to predict visual tokens from the encoder of OpenAI's DALL-E's VQ-VAE, based on masked patches. Next, the model was fine-tuned in a supervised fashion on ImageNet (also referred to as ILSVRC2012), a dataset comprising 1 million images and 1,000 classes, also at resolution 224x224.
Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. Contrary to the original ViT models, BEiT models do use relative position embeddings (similar to T5) instead of absolute position embeddings, and perform classification of images by mean-pooling the final hidden states of the patches, instead of placing a linear layer on top of the final hidden state of the [CLS] token.
By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image. Alternatively, one can mean-pool the final hidden states of the patch embeddings, and place a linear layer on top of that.
## Training Metrics
epoch = 0.55
total_flos = 576468516GF
train_loss = 0.151
train_runtime = 0:58:16.56
train_samples_per_second = 16.505
train_steps_per_second = 1.032
---
## Evaluation Metrics
epoch = 0.55
eval_accuracy = 0.975
eval_loss = 0.0803
eval_runtime = 0:03:13.02
eval_samples_per_second = 18.629
eval_steps_per_second = 2.331 | [
-0.020677804946899414,
-0.017275972291827202,
0.0066489712335169315,
0.028485625982284546,
0.04120609536767006,
0.0074081504717469215,
-0.000487236597109586,
-0.0013661521952599287,
0.005351048894226551,
0.0399339459836483,
0.0002983034064527601,
0.0007545743719674647,
0.00821635127067566,
0.05728359520435333,
-0.026247233152389526,
-0.0453001894056797,
0.00477290665730834,
-0.0011758697219192982,
-0.017021024599671364,
-0.007410396821796894,
0.008266977034509182,
-0.01091219112277031,
0.014306695200502872,
0.02215462177991867,
0.01380965393036604,
-0.006692017428576946,
0.030296672135591507,
0.021755453199148178,
0.03927597403526306,
-0.08677495270967484,
-0.0011928451713174582,
-0.06097468361258507,
-0.052731890231370926,
-0.013485009782016277,
-0.02333677001297474,
-0.0012197308242321014,
-0.0016543925739824772,
0.005290932022035122,
0.023725928738713264,
0.07350317388772964,
-0.007051621098071337,
-0.009533620439469814,
-0.017787978053092957,
-0.039330773055553436,
0.03047037497162819,
0.0015206494135782123,
-0.03734986484050751,
-0.0044214013032615185,
0.007416282314807177,
-0.013386810198426247,
-0.07070621848106384,
-0.07520975172519684,
-0.04550597816705704,
0.006967160850763321,
-0.015623390674591064,
-0.02193932980298996,
-0.039191603660583496,
-0.024608956649899483,
0.05155684053897858,
-0.055592313408851624,
-0.04012960195541382,
0.014865513890981674,
-0.03773648291826248,
0.04484669119119644,
0.022535160183906555,
-0.01720914989709854,
0.0392356812953949,
-0.029117655009031296,
0.02063562162220478,
-0.014420819468796253,
0.04783346503973007,
-0.026472952216863632,
-0.0103652598336339,
-0.08807137608528137,
-0.0005886725266464055,
-0.03441861644387245,
0.03981984779238701,
0.05236199498176575,
-0.02551666460931301,
0.0311609897762537,
0.0274924635887146,
0.003131754230707884,
0.021995829418301582,
-0.04246845841407776,
-0.011440730653703213,
0.022152408957481384,
-0.038560252636671066,
0.04054432734847069,
0.011773612350225449,
0.03614063933491707,
-0.03466811776161194,
0.007702223025262356,
-0.053718216717243195,
-0.0515834279358387,
-0.028270544484257698,
0.002742160577327013,
0.03134353086352348,
0.01640983298420906,
0.03625338897109032,
0.022286701947450638,
0.04715584218502045,
0.052790846675634384,
-0.005998533219099045,
0.053934600204229355,
-0.03368831053376198,
-0.03532267361879349,
-0.013042839244008064,
-0.035159092396497726,
-0.04673319682478905,
0.005564904771745205,
0.03726128861308098,
-0.007519445847719908,
-0.02460590936243534,
0.04072573781013489,
-0.011590611189603806,
-0.015429669059813023,
0.07054134458303452,
-0.024885956197977066,
-0.03238482400774956,
-0.03758972883224487,
0.0345742367208004,
-0.007406233809888363,
0.018577460199594498,
-0.00414237380027771,
-0.04990719258785248,
0.026370905339717865,
-0.01555743720382452,
-0.02816321887075901,
0.0019909092225134373,
0.04334992542862892,
0.020090995356440544,
0.03637375682592392,
0.026022866368293762,
-0.036257632076740265,
0.02032708004117012,
0.03092147968709469,
-0.055985916405916214,
0.06051705405116081,
0.024980105459690094,
0.10609105974435806,
-0.06009939685463905,
-0.05737665668129921,
0.011489233933389187,
0.0022106284741312265,
-0.02670636586844921,
0.023475604131817818,
0.020100321620702744,
-0.05393488332629204,
-0.024648675695061684,
-0.025896675884723663,
0.05936870723962784,
-0.0857587680220604,
-0.004232555162161589,
0.05911659449338913,
0.009770374745130539,
0.04522872343659401,
-0.06542301923036575,
-0.020877398550510406,
-0.03431039676070213,
-0.013314351439476013,
-0.021677663549780846,
0.0563117153942585,
-0.022563008591532707,
0.006045245565474033,
-0.02417321689426899,
-0.035079725086688995,
-0.030490731820464134,
0.06684311479330063,
0.0000976608571363613,
-0.02930818498134613,
-0.021654682233929634,
0.009154095314443111,
0.04883916676044464,
0.06282779574394226,
-0.024552328512072563,
0.040267713367938995,
0.06269184499979019,
0.00523386150598526,
-0.038614287972450256,
0.06839567422866821,
0.027745775878429413,
-0.04404967650771141,
-0.028053486719727516,
-0.005814998410642147,
0.0037037532310932875,
-0.06088939681649208,
0.02960783615708351,
0.027560189366340637,
0.0020347004756331444,
-0.020006639882922173,
-0.016879063099622726,
0.04194285348057747,
-0.0015674126334488392,
0.01936114951968193,
0.014074230566620827,
-0.01717553101480007,
-0.034849271178245544,
0.02546236850321293,
-0.018083959817886353,
0.0010483632795512676,
-0.03163985535502434,
-0.01613914780318737,
-0.024941004812717438,
-0.013375455513596535,
0.05259881541132927,
0.03599080070853233,
-0.010002832859754562,
0.05893229320645332,
-0.008078480139374733,
0.013939502649009228,
-0.06133081391453743,
-0.05719384551048279,
0.022504162043333054,
0.031636226922273636,
0.025411788374185562,
0.03235297650098801,
0.009748692624270916,
-0.019022226333618164,
0.026195544749498367,
0.08247461915016174,
0.0628964900970459,
0.011641914024949074,
-0.06308386474847794,
0.001871504820883274,
0.01389947161078453,
0.05288008600473404,
-0.07588480412960052,
-0.017420154064893723,
0.04039325565099716,
0.029279712587594986,
0.0004079933278262615,
0.02185935527086258,
-0.03071765974164009,
0.03815808892250061,
-0.05015088617801666,
-0.07386991381645203,
0.02318413183093071,
0.01871201954782009,
-0.008135933429002762,
0.05550333857536316,
-0.008302848786115646,
-0.015465245582163334,
0.00565565237775445,
0.011143351905047894,
0.003583654761314392,
-0.019586488604545593,
0.024607503786683083,
0.03344138339161873,
0.050954826176166534,
-0.04979131743311882,
0.029881808906793594,
0.012590071186423302,
-0.0040594167076051235,
0.03651439771056175,
0.0062131453305482864,
0.025007983669638634,
0.06144769862294197,
-0.010282233357429504,
-0.005317640490829945,
0.028099767863750458,
0.004015264566987753,
0.03268154338002205,
0.05320548266172409,
0.018658870831131935,
0.06854882836341858,
-0.008649777621030807,
0.03488297015428543,
0.0646214485168457,
0.02149532549083233,
0.03612073138356209,
0.03352672606706619,
0.07467274367809296,
0.011026577092707157,
-0.008277567103505135,
0.06757207214832306,
-0.038031741976737976,
0.007697884924709797,
-0.02824120596051216,
0.005059261340647936,
-0.012891112826764584,
-0.006747798528522253,
0.06363110989332199,
0.010948318056762218,
0.005432886071503162,
-0.026326550170779228,
-0.014396531507372856,
-0.009518548846244812,
0.0681462362408638,
0.009029948152601719,
-0.0016072758007794619,
0.014095616526901722,
-0.03911249712109566,
-0.009623921476304531,
-0.056301016360521317,
-0.030639857053756714,
-0.04232283681631088,
-0.04646661877632141,
-0.01902727037668228,
-0.09189889580011368,
-0.007809011731296778,
-0.05790102854371071,
-0.02829698659479618,
0.040226344019174576,
0.032556161284446716,
0.011784273199737072,
-0.0475614108145237,
0.026489149779081345,
-0.02955976314842701,
-0.021352499723434448,
-0.031301699578762054,
-0.05269711837172508,
-0.053017936646938324,
-0.06715620309114456,
0.05045923963189125,
0.018400004133582115,
0.01933610811829567,
-0.013530250638723373,
0.0035256848204880953,
-0.021293623372912407,
-0.009561094455420971,
0.05206335335969925,
0.05181553214788437,
-0.029960712417960167,
-0.04116636514663696,
0.016259949654340744,
-0.0277748703956604,
-0.0025966851972043514,
-0.017942726612091064,
-0.011941302567720413,
0.11160271614789963,
0.09563762694597244,
0.045373011380434036,
-0.009145747870206833,
-0.012532013468444347,
-0.041189830750226974,
-0.07529876381158829,
-0.022025499492883682,
-0.03972180187702179,
-0.020765163004398346,
-0.010246159508824348,
-0.030086258426308632,
-0.018272817134857178,
-0.018468011170625687,
-0.0005355937755666673,
0.0016998621867969632,
0.000052633222367148846,
0.045082855969667435,
0.051270224153995514,
0.007795217912644148,
0.05383503809571266,
-0.024546418339014053,
-0.028860870748758316,
0.03543868660926819,
0.012031253427267075,
0.008709602989256382,
-0.05858929827809334,
-0.01260096114128828,
0.0368482731282711,
0.05318720266222954,
-0.0035236480180174112,
0.003129209391772747,
0.08869501948356628,
-0.004964999854564667,
-0.042645953595638275,
0.00973724015057087,
-0.011964862234890461,
-0.010679373517632484,
-0.019127132371068,
0.009004853665828705,
-0.007543125189840794,
-0.052148424088954926,
-0.040405359119176865,
0.0012804230209439993,
0.039065826684236526,
-0.09007179737091064,
-0.07074881345033646,
-0.03303010016679764,
0.0389215350151062,
0.0312768816947937,
0.005856774281710386,
-0.0416935496032238,
0.006868904922157526,
-0.07394825667142868,
-0.030313650146126747,
0.010493336245417595,
0.014034343883395195,
0.032187581062316895,
0.03370652720332146,
0.009029945358633995,
-0.04500722140073776,
0.03142756596207619,
0.06459487229585648,
0.06305469572544098,
0.009262584149837494,
-0.060397788882255554,
0.025995595380663872,
-0.001558121875859797,
0.03000963293015957,
-0.018858229741454124,
-0.02456701174378395,
-0.049684032797813416,
-0.07356063276529312,
-0.0032425951212644577,
-0.031292907893657684,
-0.025462906807661057,
-0.005180544685572386,
0.036804620176553726,
-0.0005321330390870571,
-0.00915420800447464,
0.0059718419797718525,
0.02340596169233322,
0.05371953547000885,
-0.028766140341758728,
0.07323353737592697,
-0.009510279633104801,
0.03528875857591629,
-0.029760614037513733,
0.015743987634778023,
-0.045200224965810776,
-0.018135851249098778,
-0.001720302039757371,
0.05903563275933266,
0.04831042140722275,
0.039299752563238144,
0.07152403891086578,
0.014262617565691471,
-0.05689379945397377,
0.003472606185823679,
0.04736390709877014,
-0.0388837605714798,
-0.042629726231098175,
-0.01046175230294466,
-0.03234954923391342,
0.004802135284990072,
-0.026710795238614082,
-0.0035516282077878714,
0.01880362443625927,
0.04221732169389725,
-0.0184439979493618,
-0.01936982572078705,
0.0030968671198934317,
-0.025616072118282318,
-0.024832336232066154,
-0.05345555767416954,
0.008140760473906994,
0.01550714299082756,
-0.03434281051158905,
0.01772572658956051,
0.022784369066357613,
0.019689500331878662,
0.07187914848327637,
0.03510694578289986,
-0.023443514481186867,
-0.04628362879157066,
0.017783867195248604,
0.015792641788721085,
-0.036833830177783966,
-0.0778038427233696,
-0.05385972186923027,
0.03751123324036598,
0.026667876169085503,
-0.014655845239758492,
-0.058297786861658096,
0.02198733761906624,
0.03542899712920189,
-0.050445374101400375,
0.059692028909921646,
-0.0016283076256513596,
0.042969416826963425,
0.06794475018978119,
0.007695946376770735,
0.023354386910796165,
-0.026178406551480293,
-0.03261299803853035,
0.015075425617396832,
0.041477855294942856,
-0.04202570766210556,
-0.041398804634809494,
-0.0493706539273262,
0.018004272133111954,
0.00955642107874155,
0.04731966182589531,
0.05132251977920532,
-0.018641307950019836,
-0.05894714966416359,
0.035867951810359955,
0.04275580495595932,
-0.045525092631578445,
0.00932292826473713,
0.023243999108672142,
0.04333055764436722,
-0.025493264198303223,
-0.03906386345624924,
-0.020115653052926064,
-0.017234722152352333,
0.021752379834651947,
0.009856337681412697,
-0.05564122274518013,
-0.04726492241024971,
0.03009839728474617,
-0.009556567296385765,
-0.014853511936962605,
-0.07120048999786377,
0.041162971407175064,
-0.03309733048081398,
-0.018050605431199074,
0.02173127979040146,
0.03550690412521362,
0.02691029943525791,
0.062241338193416595,
0.030798031017184258,
0.017536623403429985,
-0.045114096254110336,
0.011227628216147423,
-0.06343023478984833,
-0.03903234750032425,
-0.01195668987929821,
-0.02032787911593914,
-0.009425266645848751,
-0.01929318718612194,
-0.0614495612680912,
-0.05127600580453873,
-0.02027309313416481,
0.0031579993665218353,
-0.003985488787293434,
0.015093054622411728,
-0.012834847904741764,
0.04011276364326477,
-0.0027599490713328123,
-0.03213651478290558,
-0.03342008590698242,
-0.02883915603160858,
-0.06482046842575073,
-0.0423688068985939,
0.017877260223031044,
-0.006005741655826569,
0.008120095357298851,
0.024363473057746887,
0.025921562686562538,
0.012056121602654457,
0.013357486575841904,
-0.0312921404838562,
-0.0033566495403647423,
0.014141554944217205,
-0.02834024280309677,
-0.022587832063436508,
0.018497465178370476,
0.009654678404331207,
0.017588505521416664,
-0.039307329803705215,
0.016091108322143555,
0.02588517591357231,
0.030253462493419647,
-0.0033005529548972845,
0.04375537484884262,
0.006671239621937275,
-0.09629671275615692,
-0.026274647563695908,
-0.01699800416827202,
-0.028364157304167747,
0.0506146177649498,
-0.022953538224101067,
-0.03261387348175049,
0.05951116606593132,
0.03333321213722229,
0.04593494534492493,
-0.015648117288947105,
-0.025928452610969543,
0.03815023973584175,
-0.00738300709053874,
0.019752660766243935,
-0.04344779625535011,
0.014093294739723206,
-0.038564711809158325,
0.027292806655168533,
0.006764432415366173,
0.0012181139318272471,
-0.035628221929073334,
0.03997823968529701,
-0.02728666551411152,
-0.0029252253007143736,
-0.04000323638319969,
-0.0037075593136250973,
-0.037428710609674454,
0.041014496237039566,
-0.030893031507730484,
0.009361323900520802,
-0.03582839295268059,
0.07581880688667297,
-0.007350608706474304,
0.006989558693021536,
-0.002600543200969696,
0.010052735917270184,
-0.061928242444992065,
-0.03282982110977173,
-0.0004577950167004019,
-0.016728438436985016,
0.04947296902537346,
0.031752195209264755,
0.04018677398562431,
0.00016476208111271262,
-0.013350583612918854,
-0.00203327345661819,
0.04365375638008118,
-0.0634128749370575,
-0.04209740832448006,
0.008886957541108131,
0.01891310326755047,
-0.0036786054261028767,
0.05316953361034393,
0.06535619497299194,
-0.062048058956861496,
-0.05835633724927902,
0.05895189940929413,
0.011512973345816135,
0.00327857187949121,
-0.004721356090158224,
0.051432304084300995,
0.03841535001993179,
0.04788034036755562,
-0.013478267006576061,
-0.0007225320441648364,
-0.004724146332591772,
-0.021033482626080513,
0.052188389003276825,
0.006201399024575949,
0.01904757134616375,
0.015781940892338753,
-0.04727476090192795,
-0.04312816634774208,
0.07084273546934128,
0.03703007102012634,
0.048035167157649994,
-0.028459569439291954,
-0.04243524372577667,
0.02364175394177437,
0.005698490422219038,
-0.04141397401690483,
0.00432216702029109,
0.012455111369490623,
-0.037278056144714355,
0.06215483322739601,
-0.007299161050468683,
0.022664790973067284,
0.02352074906229973,
0.024036113172769547,
-0.007413380779325962,
0.047782085835933685,
-0.04694738984107971,
0.02659696154296398,
0.03373945876955986,
-0.02854182943701744,
-0.026918428018689156,
-0.023454874753952026,
0.06939352303743362,
-0.05359049141407013,
0.051904644817113876,
0.027234097942709923,
-0.013453634455800056,
-0.019159434363245964,
-0.0496591255068779,
-0.038920022547245026,
0.027343476191163063,
-0.05188789963722229,
0.0737871527671814,
-0.018172236159443855,
-0.0807214304804802,
0.022818703204393387,
0.028551457449793816,
-0.0730169415473938,
0.03954603150486946,
0.038932155817747116,
0.03554147854447365,
0.013790424913167953,
0.042895715683698654,
-0.04910025745630264,
0.02164693921804428,
-0.051890935748815536,
0.014921250753104687,
-0.05202784016728401,
-0.01838025264441967,
0.05404249206185341,
-0.027092166244983673,
-0.020791249349713326,
0.042712900787591934,
-0.007757420651614666,
0.00635397108271718,
0.023085888475179672,
-0.037089619785547256,
-0.05327000468969345,
-0.022133683785796165,
0.019880196079611778,
0.011096465401351452,
0.012727178633213043,
-0.021909119561314583,
0.011622429825365543,
-0.013771667145192623,
-0.021001022309064865,
-0.021336937323212624,
0.017055202275514603,
0.03335981070995331,
-0.05439761281013489,
-0.04262247681617737,
0.05646858736872673,
-0.0044249300844967365,
-0.027981532737612724,
0.027766278013586998,
-0.030055809766054153,
-0.01412109099328518,
0.029458599165081978,
0.022084537893533707,
0.02259000949561596,
-0.0175869669765234,
-0.013139813207089901,
0.011954046785831451,
0.013645987026393414,
0.01827259361743927,
-0.0051424093544483185,
0.04613201320171356,
0.03507723659276962,
0.03382722660899162,
0.004951743874698877,
-0.022497735917568207,
-0.017599347978830338,
0.027322757989168167,
-0.03563351929187775,
-0.0013491909485310316,
-0.01127454824745655,
-0.04985911771655083,
-0.04218577966094017,
-0.014637431129813194,
-0.028547629714012146,
0.04277629032731056,
-0.03856781870126724,
0.01389259472489357,
0.0510886088013649,
0.0031330327037721872,
-0.042439207434654236,
-0.10630743205547333,
-0.01813034527003765,
-0.04428352788090706,
0.02384333871304989,
0.027968119829893112,
-0.0376051664352417,
0.03960336744785309,
-0.03831618279218674,
-0.05014245957136154,
0.045492153614759445,
0.0027155636344105005,
-0.021936899051070213,
0.04246105998754501,
0.057219602167606354,
-0.03672169893980026,
0.010293977335095406,
0.01582454890012741,
-0.04528060182929039,
-0.0010984215186908841,
0.017682217061519623,
0.020939350128173828,
0.015755778178572655,
0.04061027616262436,
-0.013488857075572014,
-0.023263173177838326,
-0.06339407712221146,
-0.022164376452565193,
-0.05253356695175171,
0.0034747449681162834,
0.060286667197942734
] |
AkshatSurolia/DeiT-FaceMask-Finetuned | [
"pytorch",
"deit",
"image-classification",
"dataset:Face-Mask18K",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | image-classification | {
"architectures": [
"DeiTForImageClassification"
],
"model_type": "deit",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 46 | null | ---
license: apache-2.0
tags:
- image-classification
datasets:
- Face-Mask18K
---
# Distilled Data-efficient Image Transformer for Face Mask Detection
Distilled data-efficient Image Transformer (DeiT) model pre-trained and fine-tuned on Self Currated Custom Face-Mask18K Dataset (18k images, 2 classes) at resolution 224x224. It was first introduced in the paper Training data-efficient image transformers & distillation through attention by Touvron et al.
## Model description
This model is a distilled Vision Transformer (ViT). It uses a distillation token, besides the class token, to effectively learn from a teacher (CNN) during both pre-training and fine-tuning. The distillation token is learned through backpropagation, by interacting with the class ([CLS]) and patch tokens through the self-attention layers.
Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded.
## Training Metrics
epoch = 2.0
total_flos = 2078245655GF
train_loss = 0.0438
train_runtime = 1:37:16.87
train_samples_per_second = 9.887
train_steps_per_second = 0.309
---
## Evaluation Metrics
epoch = 2.0
eval_accuracy = 0.9922
eval_loss = 0.0271
eval_runtime = 0:03:17.36
eval_samples_per_second = 18.22
eval_steps_per_second = 2.28 | [
-0.027245115488767624,
-0.024786649271845818,
-0.0009485746268182993,
0.017941346392035484,
0.03432236611843109,
0.013580622151494026,
-0.011854017153382301,
-0.0020672131795436144,
0.0036551556549966335,
0.06592775136232376,
0.025036662817001343,
0.001007674029096961,
0.020014138892292976,
0.03713855519890785,
-0.02483241632580757,
-0.03374592587351799,
-0.016524920240044594,
-0.0031326052267104387,
-0.03430694714188576,
0.010074043646454811,
0.032561980187892914,
-0.008329098112881184,
0.0025335478130728006,
0.02426742948591709,
0.008287391625344753,
0.0045106117613613605,
0.038550857454538345,
0.006296137347817421,
0.04707587882876396,
-0.08992132544517517,
0.019937705248594284,
-0.07297441363334656,
-0.048935238271951675,
-0.0070694489404559135,
-0.029261553660035133,
0.0004658366378862411,
0.0008955519879236817,
0.001363601302728057,
0.028035206720232964,
0.06522499769926071,
-0.016300488263368607,
-0.012266132049262524,
-0.04001876339316368,
-0.022585755214095116,
0.03680776059627533,
0.0013853932032361627,
-0.04346313327550888,
-0.017837703227996826,
0.009959007613360882,
-0.002313724486157298,
-0.06724980473518372,
-0.0720498338341713,
-0.0593387670814991,
0.004517384804785252,
-0.02812068536877632,
-0.037627238780260086,
-0.03230736777186394,
-0.01752360910177231,
0.04927213490009308,
-0.05936445668339729,
-0.024855375289916992,
0.018504416570067406,
-0.04901113361120224,
0.042581286281347275,
0.02318289317190647,
-0.030173838138580322,
0.020781371742486954,
-0.020821349695324898,
0.014362083747982979,
-0.015871472656726837,
0.04242054000496864,
-0.045516420155763626,
-0.012086720205843449,
-0.09567365795373917,
-0.003575423266738653,
-0.019469263032078743,
0.03272077441215515,
0.06485173106193542,
-0.021788468584418297,
0.015228278934955597,
0.037135712802410126,
0.015969717875123024,
0.023147210478782654,
-0.03972269594669342,
-0.008563320152461529,
0.032304368913173676,
-0.044942375272512436,
0.03754439577460289,
0.003932496532797813,
0.0576578825712204,
-0.020015403628349304,
-0.0014615172985941172,
-0.04106137156486511,
-0.05424605309963226,
-0.0051361373625695705,
0.010061226785182953,
0.047569867223501205,
0.012347238138318062,
0.04652337729930878,
0.025262240320444107,
0.049509089440107346,
0.04831742122769356,
-0.023592697456479073,
0.05749591067433357,
-0.031980566680431366,
-0.02632772922515869,
-0.008863499388098717,
-0.04275825619697571,
-0.0628158301115036,
0.00461550010368228,
0.030224381014704704,
-0.016988089308142662,
-0.02835591696202755,
0.026789624243974686,
-0.010465207509696484,
-0.008321401663124561,
0.0889487937092781,
-0.023624062538146973,
-0.011067263782024384,
-0.050613198429346085,
0.012295535765588284,
0.005627827253192663,
0.004305490758270025,
-0.018341422080993652,
-0.04273019731044769,
0.020932674407958984,
-0.002056445926427841,
-0.026631828397512436,
0.011507204733788967,
0.03804062306880951,
0.008602552115917206,
0.03273556008934975,
0.043353840708732605,
-0.03957545384764671,
0.0026416610926389694,
0.022915860638022423,
-0.058044951409101486,
0.0314195491373539,
0.04428672045469284,
0.0874803364276886,
-0.06315401196479797,
-0.04494984820485115,
-0.005569038446992636,
0.014789135195314884,
-0.024178670719265938,
0.020854713395237923,
0.02763506956398487,
-0.0758415013551712,
-0.024098047986626625,
-0.0285117719322443,
0.06630094349384308,
-0.08317923545837402,
-0.004649796057492495,
0.06677994877099991,
0.01612173020839691,
0.042870551347732544,
-0.06730541586875916,
-0.022106153890490532,
-0.016497228294610977,
-0.003284790087491274,
-0.03213900700211525,
0.05449874326586723,
0.0009242524392902851,
0.012239255011081696,
-0.024480151012539864,
-0.04037841036915779,
-0.032272931188344955,
0.0663231834769249,
-0.00632322346791625,
-0.026510244235396385,
-0.018679194152355194,
0.017544493079185486,
0.04133978858590126,
0.055499117821455,
-0.01615496166050434,
0.03922482952475548,
0.061033494770526886,
0.007085674442350864,
-0.03956281766295433,
0.048194319009780884,
0.03261755779385567,
-0.03193822503089905,
-0.023308318108320236,
-0.008120765909552574,
0.009010435082018375,
-0.055691782385110855,
0.01975918747484684,
0.009702850133180618,
0.0020844126120209694,
-0.027120426297187805,
-0.03044775314629078,
0.040314048528671265,
-0.005940115544945002,
0.004376538563519716,
0.008914477191865444,
-0.03200250864028931,
-0.034412138164043427,
0.01055216509848833,
-0.02451886422932148,
0.023603517562150955,
-0.03098214976489544,
-0.008756824769079685,
-0.015200726687908173,
-0.020691001787781715,
0.03785394877195358,
0.03490836173295975,
-0.02782806009054184,
0.0625450387597084,
-0.019967498257756233,
0.002176312729716301,
-0.04293956607580185,
-0.064198799431324,
0.02653088979423046,
0.03874001279473305,
0.040928225964307785,
0.0390077643096447,
0.025978324934840202,
-0.012222195975482464,
0.02893512137234211,
0.07544328272342682,
0.0676804929971695,
0.03240307793021202,
-0.05240439996123314,
0.012211074121296406,
0.020713675767183304,
0.06559128314256668,
-0.07541685551404953,
-0.02480343170464039,
0.023163288831710815,
0.020553654059767723,
0.010376067832112312,
0.02679005078971386,
-0.03195290267467499,
0.05540221184492111,
-0.06236929073929787,
-0.08030609786510468,
0.03229744732379913,
0.011509154923260212,
-0.011116039007902145,
0.04533880576491356,
0.009927863255143166,
-0.020465388894081116,
0.027083199471235275,
0.0031771340873092413,
0.014484397135674953,
-0.014472303912043571,
-0.007588498294353485,
0.005223554093390703,
0.04743489623069763,
-0.04743361473083496,
0.04439730569720268,
0.010854662396013737,
-0.01909865252673626,
0.045934371650218964,
-0.009573707357048988,
0.025894837453961372,
0.05852359160780907,
-0.00979558750987053,
-0.01475582830607891,
0.0255916528403759,
-0.010150069370865822,
0.042685866355895996,
0.04116874188184738,
0.014909499324858189,
0.07645444571971893,
-0.008673151955008507,
0.05280349776148796,
0.07370567321777344,
0.008943755179643631,
0.02081604115664959,
0.043070994317531586,
0.06976519525051117,
0.01936468295753002,
-0.018211117014288902,
0.059419021010398865,
-0.047106120735406876,
0.012421653605997562,
-0.02835804410278797,
0.027887610718607903,
-0.01939946785569191,
-0.004606439732015133,
0.060563646256923676,
0.01564634032547474,
-0.0021162533666938543,
-0.02265775389969349,
-0.00868668407201767,
-0.007211263291537762,
0.056635260581970215,
0.003556452225893736,
-0.00910402275621891,
-0.015336510725319386,
-0.039567731320858,
-0.021102624014019966,
-0.06160464137792587,
-0.03852912411093712,
-0.026021743193268776,
-0.053100597113370895,
-0.0434601791203022,
-0.07411108911037445,
-0.015703080222010612,
-0.051822204142808914,
-0.026757583022117615,
0.037965718656778336,
0.04041382297873497,
0.005524960812181234,
-0.04367472603917122,
0.017037145793437958,
-0.03136935830116272,
-0.03008243814110756,
-0.04959288612008095,
-0.0453915037214756,
-0.032801203429698944,
-0.08296540379524231,
0.03803147375583649,
0.025165392085909843,
0.002639001002535224,
-0.008343012072145939,
-0.010482773184776306,
-0.024007603526115417,
-0.023030124604701996,
0.04266839474439621,
0.05928070843219757,
-0.009253907948732376,
-0.0353466235101223,
0.013275216333568096,
-0.037646569311618805,
-0.0017385049723088741,
-0.016403142362833023,
-0.01819607801735401,
0.10491567850112915,
0.07989116758108139,
0.050357211381196976,
-0.006102324463427067,
0.006392143201082945,
-0.03796225041151047,
-0.08113505691289902,
-0.02619485929608345,
-0.04661344736814499,
-0.029416561126708984,
-0.018454773351550102,
-0.043949734419584274,
-0.012332641519606113,
-0.02428278513252735,
0.003183714346960187,
-0.0008020690293051302,
0.0031615872867405415,
0.03945690765976906,
0.04190855473279953,
0.021691298112273216,
0.021872594952583313,
-0.034642841666936874,
-0.048326075077056885,
0.050658684223890305,
0.006277249660342932,
0.026546649634838104,
-0.05444992333650589,
-0.00718972971662879,
0.02150607667863369,
0.05421558767557144,
-0.039285074919462204,
0.013097698800265789,
0.08270015567541122,
-0.010015557520091534,
-0.04827815666794777,
0.01874178647994995,
-0.024878989905118942,
-0.0028397883288562298,
0.00825549103319645,
0.005674414802342653,
0.0003463237953837961,
-0.04568595066666603,
-0.04926547408103943,
-0.0020522396080195904,
0.04949547350406647,
-0.07816459983587265,
-0.06962175667285919,
-0.03542483597993851,
0.030621444806456566,
0.04259555786848068,
0.01400077622383833,
-0.046568695455789566,
0.019291900098323822,
-0.08263634890317917,
-0.01214425265789032,
0.046538449823856354,
0.028055697679519653,
0.04828859120607376,
0.05398306995630264,
-0.008818733505904675,
-0.055330950766801834,
0.02550683356821537,
0.05538785830140114,
0.07882869988679886,
0.0050620450638234615,
-0.0562874972820282,
-0.007938516326248646,
-0.010165859945118427,
0.0268112663179636,
-0.025035256519913673,
-0.022418536245822906,
-0.055808357894420624,
-0.0648873895406723,
-0.014478459022939205,
-0.0113542964681983,
-0.011987114325165749,
-0.008722717873752117,
0.04553898796439171,
0.015521594323217869,
-0.03186564892530441,
0.0357259176671505,
0.03009536862373352,
0.05975163355469704,
-0.03185847029089928,
0.05378285422921181,
-0.004911963362246752,
0.026317205280065536,
-0.027125824242830276,
-0.009685729630291462,
-0.024880453944206238,
-0.0161574874073267,
0.0023344128858298063,
0.05824292078614235,
0.038992706686258316,
0.03792046010494232,
0.054811812937259674,
0.015231908299028873,
-0.045407067984342575,
-0.005844917148351669,
0.05664846673607826,
-0.03626878187060356,
-0.055572230368852615,
0.013347641564905643,
-0.020426690578460693,
0.016488952562212944,
-0.019359171390533447,
0.0015529508236795664,
0.03229117766022682,
0.051791995763778687,
0.0020636338740587234,
-0.020221592858433723,
0.002798323519527912,
-0.02548571676015854,
-0.015812862664461136,
-0.08197497576475143,
0.015055123716592789,
0.03024369105696678,
-0.021477488800883293,
-0.0008604521863162518,
0.015577311627566814,
0.03004557266831398,
0.06575584411621094,
0.0315522700548172,
-0.03738356754183769,
-0.04145466536283493,
0.025551119819283485,
-0.000922933395486325,
-0.04748612642288208,
-0.06993336975574493,
-0.057287197560071945,
0.033060893416404724,
0.027955662459135056,
-0.020316503942012787,
-0.058607351034879684,
0.03465849161148071,
0.033159054815769196,
-0.04926639050245285,
0.07163157314062119,
0.004919190891087055,
0.03221379965543747,
0.05905308574438095,
0.013527708128094673,
0.04171139374375343,
-0.026372145861387253,
-0.008693128824234009,
0.016641607508063316,
0.06448579579591751,
-0.016429588198661804,
-0.041852351278066635,
-0.06355039775371552,
0.014119233936071396,
0.031774941831827164,
0.043362442404031754,
0.04552297294139862,
-0.029568025842308998,
-0.05239042267203331,
0.02419162727892399,
0.061488594859838486,
-0.04501783847808838,
0.01637086644768715,
0.0166954156011343,
0.04270337522029877,
-0.0326245091855526,
-0.03986721858382225,
-0.008677840232849121,
-0.019426820799708366,
0.019115230068564415,
-0.008698603138327599,
-0.04135323315858841,
-0.03651722893118858,
0.021795213222503662,
-0.009919324889779091,
-0.014497690834105015,
-0.08401696383953094,
0.04029499739408493,
-0.01779572106897831,
-0.02598145231604576,
0.05447257682681084,
0.038573481142520905,
0.0300398301333189,
0.04320402815937996,
0.037117309868335724,
0.022483384236693382,
-0.04130031168460846,
0.031201643869280815,
-0.0700245127081871,
-0.020177828148007393,
0.011052262037992477,
-0.03540753945708275,
-0.014350696466863155,
-0.017496680840849876,
-0.06278403103351593,
-0.048162829130887985,
-0.02297402359545231,
0.006363996304571629,
-0.010039005428552628,
0.013165488839149475,
-0.023667562752962112,
0.0325448177754879,
-0.0030441200360655785,
-0.02744375728070736,
-0.029850881546735764,
-0.03320073336362839,
-0.04878240451216698,
-0.05732307210564613,
0.020499637350440025,
-0.02257894165813923,
-0.00048778470954857767,
0.015983302146196365,
0.01952046900987625,
0.0040674963966012,
0.010494391433894634,
-0.034196797758340836,
0.006571963429450989,
0.01700984686613083,
-0.03758961334824562,
-0.02169925346970558,
0.0010865540243685246,
0.011410693638026714,
0.029209047555923462,
-0.03731956332921982,
0.018015433102846146,
0.030514460057020187,
0.025515824556350708,
-0.017485467717051506,
0.037963688373565674,
0.017511451616883278,
-0.08236145228147507,
-0.026949442923069,
-0.0017697433941066265,
-0.011077198199927807,
0.03840736299753189,
-0.01687435992062092,
-0.017821144312620163,
0.06800975650548935,
0.004490195773541927,
0.03740966320037842,
-0.032836977392435074,
-0.037196602672338486,
0.05500595271587372,
-0.0023104422725737095,
0.03154179826378822,
-0.04400891065597534,
0.013295434415340424,
-0.03896136209368706,
0.022776929661631584,
-0.013005087152123451,
0.0028548063710331917,
-0.026377297937870026,
0.03416990861296654,
-0.01780487224459648,
-0.014920998364686966,
-0.011454487219452858,
-0.018883323296904564,
-0.045098740607500076,
0.044905323535203934,
-0.023445196449756622,
0.00991048850119114,
-0.044547758996486664,
0.08105193078517914,
-0.01882513239979744,
0.014649108052253723,
-0.027541182935237885,
-0.0001668512704782188,
-0.04549990966916084,
-0.032481562346220016,
-0.018561745062470436,
0.004420340992510319,
0.03895002231001854,
0.041919831186532974,
0.03617476671934128,
0.00007309629290830344,
-0.02433919906616211,
0.0033369928132742643,
0.0491945743560791,
-0.06388098001480103,
-0.03426896780729294,
0.004570961929857731,
0.012581044808030128,
-0.006887868046760559,
0.055543866008520126,
0.06399746984243393,
-0.04446426033973694,
-0.04913639649748802,
0.06086527928709984,
0.017396075651049614,
-0.0009691413142718375,
-0.011794102378189564,
0.042852915823459625,
0.041366420686244965,
0.04000495746731758,
-0.025813044980168343,
-0.002311690477654338,
-0.009810303337872028,
-0.030926797538995743,
0.03865404799580574,
0.0008646458736620843,
0.0203237421810627,
-0.01473842840641737,
-0.04614927992224693,
-0.03129992634057999,
0.07209593802690506,
0.042300932109355927,
0.04725603386759758,
-0.03614794462919235,
-0.04157792776823044,
0.02747827023267746,
0.014471585862338543,
-0.06444495171308517,
0.007420234382152557,
0.010693826712667942,
-0.01632997766137123,
0.04756326228380203,
0.016588136553764343,
0.018271086737513542,
0.022728251293301582,
0.03316603973507881,
-0.030117671936750412,
0.0480792261660099,
-0.04364578798413277,
0.02564472332596779,
0.05202324315905571,
-0.030073707923293114,
-0.042702119797468185,
-0.029743682593107224,
0.047098834067583084,
-0.05147328972816467,
0.0322103425860405,
0.022910958155989647,
-0.020453540608286858,
-0.004883723799139261,
-0.05642317235469818,
-0.050435494631528854,
0.03488879278302193,
-0.040989868342876434,
0.06778155267238617,
0.0024634141009300947,
-0.06820443272590637,
0.03814128041267395,
0.02358740009367466,
-0.08152783662080765,
0.027427390217781067,
0.041443292051553726,
0.03542565554380417,
0.006873577367514372,
0.046275559812784195,
-0.04137121140956879,
0.014044876210391521,
-0.044498514384031296,
0.01078004203736782,
-0.056330546736717224,
-0.03270341455936432,
0.04481181129813194,
-0.04191024228930473,
-0.00713718868792057,
0.02370639704167843,
-0.01651633530855179,
-0.0001532091264380142,
0.03197561576962471,
-0.03226594254374504,
-0.030674679204821587,
-0.011927579529583454,
0.014374100603163242,
0.009441609494388103,
0.018932675942778587,
-0.016068553552031517,
0.015301783569157124,
0.004406760912388563,
-0.011948100291192532,
-0.017324550077319145,
0.001992572797462344,
0.029778238385915756,
-0.03959222882986069,
-0.04241511970758438,
0.043814439326524734,
0.01623912900686264,
-0.020738698542118073,
0.0402032770216465,
-0.005765045993030071,
0.005227492656558752,
0.03213705122470856,
0.0017869133735075593,
0.034201450645923615,
-0.04141123220324516,
-0.011657741852104664,
0.01921721361577511,
0.007443528156727552,
0.010797261260449886,
0.0005576852709054947,
0.045864902436733246,
0.04625411704182625,
0.02240782417356968,
0.005115934647619724,
-0.048469267785549164,
-0.012901277281343937,
0.02211363986134529,
-0.05163291096687317,
0.01257552020251751,
0.0027157608419656754,
-0.039022527635097504,
-0.04605764523148537,
-0.012331935577094555,
-0.028116721659898758,
0.03723001107573509,
-0.03460726514458656,
-0.008066819980740547,
0.057132989168167114,
-0.00020311868865974247,
-0.041940297931432724,
-0.09079532325267792,
-0.012333864346146584,
-0.015876568853855133,
0.025057204067707062,
0.03646036610007286,
-0.04745110869407654,
0.017795758321881294,
-0.03021797351539135,
-0.028128977864980698,
0.0331268273293972,
0.006844432093203068,
-0.009991806000471115,
0.048547446727752686,
0.02771924063563347,
-0.03827151283621788,
0.018084542825818062,
0.008564157411456108,
-0.03470497950911522,
0.008002063259482384,
0.011974831111729145,
0.020495804026722908,
0.01894424296915531,
0.011402345262467861,
-0.027848439291119576,
-0.010529567487537861,
-0.06125939264893532,
-0.04373360425233841,
-0.06154073774814606,
0.010687153786420822,
0.04992086440324783
] |
AkshatSurolia/ICD-10-Code-Prediction | [
"pytorch",
"bert",
"transformers",
"text-classification",
"license:apache-2.0",
"has_space"
] | text-classification | {
"architectures": null,
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 994 | null | ---
license: apache-2.0
tags:
- text-classification
---
# Clinical BERT for ICD-10 Prediction
The Publicly Available Clinical BERT Embeddings paper contains four unique clinicalBERT models: initialized with BERT-Base (cased_L-12_H-768_A-12) or BioBERT (BioBERT-Base v1.0 + PubMed 200K + PMC 270K) & trained on either all MIMIC notes or only discharge summaries.
---
## How to use the model
Load the model via the transformers library:
from transformers import AutoTokenizer, BertForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("AkshatSurolia/ICD-10-Code-Prediction")
model = BertForSequenceClassification.from_pretrained("AkshatSurolia/ICD-10-Code-Prediction")
config = model.config
Run the model with clinical diagonosis text:
text = "subarachnoid hemorrhage scalp laceration service: surgery major surgical or invasive"
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
Return the Top-5 predicted ICD-10 codes:
results = output.logits.detach().cpu().numpy()[0].argsort()[::-1][:5]
return [ config.id2label[ids] for ids in results] | [
-0.00464306166395545,
-0.02549247443675995,
-0.0061746928840875626,
0.028125977143645287,
0.01803267002105713,
0.018246950581669807,
-0.029822323471307755,
-0.020784549415111542,
-0.012944869697093964,
0.03910352662205696,
0.05487530678510666,
-0.010672912932932377,
-0.0035439468920230865,
0.061096351593732834,
0.0024394835345447063,
-0.01755722425878048,
0.0102944765239954,
-0.015516694635152817,
-0.0364333912730217,
-0.013303088955581188,
0.005737097933888435,
0.005903792101889849,
0.029831668362021446,
0.01245767343789339,
0.012468600645661354,
0.0030707770492881536,
-0.002550633857026696,
0.026558510959148407,
0.05646375194191933,
-0.03700002655386925,
-0.0033254940062761307,
-0.016922611743211746,
-0.04899030178785324,
-0.01587396115064621,
-0.03013703227043152,
0.009529213421046734,
0.010812392458319664,
-0.002116353716701269,
0.032726846635341644,
0.02597135677933693,
-0.0025867826770991087,
0.031396836042404175,
0.014244447462260723,
-0.039720792323350906,
0.02329912781715393,
-0.010005705058574677,
-0.02844056859612465,
-0.008947072550654411,
0.026171740144491196,
-0.040290866047143936,
-0.04435674473643303,
-0.08990289270877838,
-0.018860815092921257,
0.006472304929047823,
0.017051544040441513,
-0.023087799549102783,
-0.05427998676896095,
-0.03055611252784729,
0.0494440421462059,
-0.018768131732940674,
-0.03937939181923866,
0.018184451386332512,
-0.08069764822721481,
0.01715070754289627,
0.015362156555056572,
-0.02312558889389038,
0.00706780981272459,
-0.059055913239717484,
0.029485739767551422,
-0.05539621040225029,
0.057258281856775284,
-0.01976630464196205,
0.0059706284664571285,
-0.08079710602760315,
-0.0006244186079129577,
-0.016538619995117188,
0.029289115220308304,
0.046574708074331284,
-0.008585571311414242,
0.03597519174218178,
0.04730284586548805,
0.0059808422811329365,
0.025710422545671463,
-0.02303602546453476,
-0.019505856558680534,
0.05391742289066315,
-0.024462107568979263,
0.0067217350006103516,
-0.005023547913879156,
0.0345083512365818,
-0.03482625260949135,
-0.01221782248467207,
-0.037716206163167953,
-0.01269562728703022,
-0.008112115785479546,
0.004612138494849205,
0.023476755246520042,
-0.017778068780899048,
0.03319168835878372,
0.034677691757678986,
0.058671388775110245,
0.04677175357937813,
-0.03152230754494667,
0.07139001041650772,
0.004653365816920996,
-0.010898194275796413,
-0.023965418338775635,
-0.035174205899238586,
-0.036277297884225845,
0.02873585745692253,
0.01475557778030634,
-0.020032590255141258,
-0.013383390381932259,
0.05106397718191147,
0.01988600194454193,
-0.01878819800913334,
0.07321424782276154,
-0.015332138165831566,
-0.040208593010902405,
-0.05723048001527786,
0.0006720588426105678,
0.008262161165475845,
0.004147482104599476,
0.008278313092887402,
-0.05208944156765938,
0.005524333566427231,
-0.05282497778534889,
-0.015404527075588703,
-0.007934032939374447,
0.046408165246248245,
0.003319951705634594,
0.052931077778339386,
0.008286322467029095,
-0.06408016383647919,
0.020792705938220024,
0.04708999767899513,
-0.07484941184520721,
0.04864101484417915,
0.06340578943490982,
0.11487716436386108,
-0.04070951044559479,
-0.04673849791288376,
0.03069833666086197,
0.001119878375902772,
-0.031281743198633194,
0.012223683297634125,
0.014744969084858894,
-0.045203618705272675,
-0.014089384116232395,
-0.010716022923588753,
0.04570641368627548,
-0.06332755088806152,
-0.009863468818366528,
0.03491315618157387,
0.0065955412574112415,
0.04031958058476448,
-0.018837962299585342,
-0.015221129171550274,
-0.030834639444947243,
-0.0029866064433008432,
-0.05970137193799019,
0.05377911031246185,
-0.014595617540180683,
-0.02085576206445694,
-0.03487568348646164,
-0.03894916549324989,
-0.017205657437443733,
0.0954342633485794,
0.02967251092195511,
-0.016237381845712662,
-0.03211684897542,
0.03497755527496338,
0.04330246150493622,
0.037116438150405884,
-0.03683336451649666,
0.021359825506806374,
0.047996167093515396,
0.038588378578424454,
-0.0059625678695738316,
0.055677738040685654,
-0.010000902228057384,
-0.043459583073854446,
-0.025989782065153122,
-0.017943665385246277,
-0.016684601083397865,
-0.025043966248631477,
0.0010613383492454886,
0.050687145441770554,
-0.009755908511579037,
-0.02140972390770912,
-0.011001699604094028,
0.055521175265312195,
-0.020926231518387794,
-0.014725896529853344,
-0.0013728698249906301,
-0.004674124531447887,
-0.023411951959133148,
0.019025644287467003,
-0.008121944032609463,
-0.013392755761742592,
0.0035262582823634148,
-0.014795063994824886,
0.003758065402507782,
0.009439908899366856,
0.06109684333205223,
0.05675720050930977,
-0.003431453136727214,
0.09291617572307587,
-0.05725134536623955,
0.016627667471766472,
-0.035114143043756485,
-0.0374794527888298,
0.007647818420082331,
0.02767658606171608,
0.03644942119717598,
0.06640732288360596,
-0.03149395436048508,
-0.032008443027734756,
0.036150891333818436,
0.036807406693696976,
0.07293634861707687,
0.023653453215956688,
-0.03347116708755493,
-0.027337217703461647,
0.006225872784852982,
0.0532052218914032,
-0.03434170037508011,
-0.018309319391846657,
0.055309537798166275,
0.024133794009685516,
-0.029978957027196884,
0.013731356710195541,
-0.02140325866639614,
0.04616105183959007,
-0.047787122428417206,
-0.06234106421470642,
0.010074073448777199,
0.034607212990522385,
-0.004164861980825663,
0.024513691663742065,
-0.015283430926501751,
-0.0069622439332306385,
0.009708533994853497,
0.0335136242210865,
-0.018118668347597122,
-0.026333628222346306,
0.023953307420015335,
0.015846410766243935,
0.03273486718535423,
-0.05363369733095169,
0.04704214632511139,
-0.02456335909664631,
0.006442515179514885,
0.01166676264256239,
-0.030330725014209747,
0.026047086343169212,
0.02972579002380371,
0.03627879172563553,
-0.01825626939535141,
0.038297899067401886,
-0.02338690683245659,
0.014502446167171001,
0.06615465879440308,
0.009211280383169651,
0.046579957008361816,
-0.023104216903448105,
0.024609234184026718,
0.07482779026031494,
-0.013165395706892014,
0.03590924292802811,
0.032843392342329025,
0.05730253458023071,
-0.002371202688664198,
-0.010586940683424473,
0.049994032829999924,
-0.028416911140084267,
0.020232515409588814,
-0.03973397985100746,
0.006929565221071243,
-0.0023617385886609554,
-0.026591220870614052,
0.04529380798339844,
-0.0036151076201349497,
-0.04439222067594528,
0.02456558495759964,
0.005409174133092165,
0.0016876468434929848,
0.005476097576320171,
-0.008061053231358528,
0.0018608530517667532,
0.010116304270923138,
-0.01657530479133129,
-0.00731384614482522,
-0.06524091958999634,
-0.020324675366282463,
-0.032839152961969376,
-0.043845683336257935,
0.002837770851328969,
-0.10636620223522186,
-0.005098110996186733,
-0.0718400701880455,
-0.02669483795762062,
0.015448088757693768,
0.04043899103999138,
0.002000262029469013,
-0.027510162442922592,
0.02982618659734726,
-0.032499365508556366,
-0.030067527666687965,
-0.026565823704004288,
-0.059806451201438904,
-0.04578915238380432,
-0.09645529836416245,
0.04457423835992813,
0.01641947776079178,
0.006721554324030876,
0.014128833077847958,
0.009782926179468632,
0.0014276305446401238,
-0.03208369389176369,
0.06647689640522003,
0.05373701453208923,
-0.042297352105379105,
-0.052711669355630875,
0.02257487364113331,
-0.019244011491537094,
0.006208388600498438,
-0.028103290125727654,
-0.014362551271915436,
0.07970067858695984,
0.05336330085992813,
0.01672128029167652,
-0.022816216573119164,
-0.025824252516031265,
-0.03478427603840828,
-0.05651343986392021,
-0.021351931616663933,
-0.02818937599658966,
-0.02956101857125759,
-0.04538374021649361,
-0.04657527431845665,
-0.033175814896821976,
-0.04456593468785286,
0.015573264099657536,
-0.009844976477324963,
0.017746442928910255,
0.037887345999479294,
0.05249381437897682,
0.035738784819841385,
0.05428222939372063,
-0.005214681848883629,
-0.04392421245574951,
0.024621112272143364,
0.008339597843587399,
0.040033042430877686,
-0.0670514777302742,
-0.025906875729560852,
0.024420471861958504,
0.04245362430810928,
0.025234974920749664,
-0.021849993616342545,
0.09156300127506256,
0.02420094795525074,
-0.025835245847702026,
0.0017288652015849948,
0.0117038544267416,
-0.01663355901837349,
-0.028708795085549355,
-0.03227590024471283,
0.004042848479002714,
-0.055820073932409286,
-0.031596921384334564,
-0.01258251816034317,
0.026933960616588593,
-0.07217785716056824,
-0.030690040439367294,
0.007390537299215794,
0.03042753040790558,
0.03937932848930359,
-0.008779043331742287,
-0.04732976481318474,
-0.022109147161245346,
-0.07249491661787033,
-0.03594578430056572,
0.018827108666300774,
-0.015317548997700214,
0.004626412410289049,
0.062020011246204376,
0.02686256915330887,
-0.03247866779565811,
0.0643426775932312,
0.06038524582982063,
0.04940754547715187,
-0.0019474518485367298,
-0.06932619959115982,
0.005395387299358845,
-0.022805823013186455,
0.025094857439398766,
-0.014741272665560246,
-0.01285671629011631,
-0.05397858843207359,
-0.09134511649608612,
-0.03366361930966377,
0.004738431423902512,
0.0042886268347501755,
-0.0037450487725436687,
0.03264843299984932,
-0.008634274825453758,
-0.007519446779042482,
-0.008909878320991993,
0.008667878806591034,
0.008000679314136505,
-0.019101429730653763,
0.041473980993032455,
-0.0005081974668428302,
0.037154316902160645,
-0.04525718465447426,
-0.0031068562529981136,
-0.06558659672737122,
-0.013974413275718689,
-0.023230116814374924,
0.06810879707336426,
0.01300275418907404,
0.034966763108968735,
0.06950146704912186,
0.01863662526011467,
-0.023136701434850693,
0.04378790035843849,
0.03923932835459709,
-0.046482302248477936,
-0.028078531846404076,
-0.020856283605098724,
-0.026654336601495743,
-0.03947141766548157,
0.011460421606898308,
-0.030261792242527008,
0.03731285035610199,
0.014742257073521614,
0.003155889455229044,
-0.005943822208791971,
-0.0018775969510897994,
-0.05591382086277008,
-0.03483350947499275,
-0.04734788089990616,
-0.020778872072696686,
0.014838946051895618,
-0.03829323872923851,
0.031804442405700684,
0.011903752572834492,
0.008259830065071583,
0.08694406598806381,
0.021180760115385056,
-0.008768471889197826,
-0.04903170093894005,
0.03315166011452675,
0.004259374924004078,
-0.04651620239019394,
-0.06669577211141586,
-0.04639671370387077,
0.03494113311171532,
0.036547694355249405,
-0.030712103471159935,
-0.0622219555079937,
-0.015300055034458637,
0.06282809376716614,
-0.03640681505203247,
0.08262093365192413,
-0.009353884495794773,
0.03464507311582565,
0.05973037704825401,
0.001998237334191799,
0.039113398641347885,
-0.033990275114774704,
-0.016278574243187904,
-0.003374506486579776,
0.07973859459161758,
-0.06320228427648544,
-0.060109347105026245,
-0.02200726978480816,
0.06764668971300125,
0.027294857427477837,
0.06406403332948685,
0.0266433022916317,
-0.028334148228168488,
-0.021434294059872627,
0.01093626581132412,
0.02594008482992649,
-0.020095182582736015,
0.027495551854372025,
0.0325375497341156,
0.05647902190685272,
-0.053443919867277145,
-0.03174890577793121,
-0.033115264028310776,
-0.03594856336712837,
0.019842050969600677,
0.007127262651920319,
-0.06501739472150803,
-0.03731398284435272,
0.008402063511312008,
0.019032714888453484,
-0.013300840742886066,
-0.07227416336536407,
0.02195845916867256,
-0.032823722809553146,
-0.02979382500052452,
0.04563209414482117,
0.03908258303999901,
0.03821010887622833,
0.07251179963350296,
0.008486912585794926,
-0.004110927693545818,
-0.01783253625035286,
0.039151180535554886,
-0.01447755005210638,
-0.02843228168785572,
-0.049862660467624664,
-0.04092930629849434,
-0.030015747994184494,
-0.02937624230980873,
-0.00041995622450485826,
-0.059240031987428665,
-0.017570868134498596,
-0.003910173196345568,
-0.005334191489964724,
0.0031205699779093266,
0.0022456722799688578,
0.02443927340209484,
-0.0037577301263809204,
-0.04405253008008003,
-0.029596224427223206,
-0.0284871906042099,
-0.0923415794968605,
-0.05245271697640419,
0.007194315083324909,
0.017956234514713287,
0.0003306644211988896,
0.028221027925610542,
0.022367995232343674,
0.015395537950098515,
-0.031474918127059937,
-0.05090919882059097,
0.02877075783908367,
0.008256465196609497,
-0.032431215047836304,
-0.031057924032211304,
0.03800715506076813,
0.0240537878125906,
0.027367742732167244,
-0.03074612095952034,
0.03403501212596893,
0.0384598970413208,
-0.0017048487206920981,
-0.026975000277161598,
0.019045120105147362,
-0.0069956593215465546,
-0.08123593777418137,
-0.036841344088315964,
-0.005956759676337242,
-0.048282403498888016,
0.05207991227507591,
-0.00878099724650383,
-0.04120752587914467,
0.0025454529095441103,
0.05280740186572075,
0.028573933988809586,
-0.019556349143385887,
-0.03878885880112648,
0.0002915071090683341,
-0.014743550680577755,
0.040197815746068954,
-0.06703487783670425,
0.009592144750058651,
-0.06664685904979706,
0.0013818754814565182,
-0.026255730539560318,
0.019652292132377625,
-0.03731825575232506,
0.052688129246234894,
-0.04142221063375473,
-0.018865466117858887,
-0.0217609703540802,
0.024914218112826347,
-0.01562887243926525,
0.050494831055402756,
-0.014597933739423752,
0.009700850583612919,
-0.008496705442667007,
0.05952388793230057,
-0.017187578603625298,
-0.014487638138234615,
-0.018048029392957687,
-0.018830208107829094,
-0.03179996460676193,
-0.017591239884495735,
-0.009913030080497265,
-0.031863853335380554,
0.04614954814314842,
0.03814873471856117,
0.030706558376550674,
0.0471833236515522,
0.005240254104137421,
-0.00782332755625248,
0.005593609530478716,
-0.09912680834531784,
-0.05351456627249718,
-0.00658020144328475,
0.018336856737732887,
-0.008944720961153507,
0.04303312301635742,
0.049338921904563904,
-0.022494712844491005,
-0.009659270755946636,
0.032596707344055176,
0.017978033050894737,
-0.0019818695727735758,
-0.00600773748010397,
0.03588314726948738,
0.0025801858864724636,
0.04843911901116371,
-0.04084604233503342,
-0.02122163586318493,
0.027797220274806023,
-0.023555798456072807,
0.013418551534414291,
-0.02394276112318039,
0.025395451113581657,
0.024251101538538933,
-0.032452184706926346,
-0.03552079200744629,
0.03142111003398895,
0.022838851436972618,
0.03259360417723656,
-0.014660500921308994,
-0.0431903712451458,
0.03233165293931961,
0.004879735875874758,
-0.05807036906480789,
0.023235103115439415,
0.024555835872888565,
-0.035785336047410965,
0.06979059427976608,
-0.018430108204483986,
0.03078507073223591,
0.03142961487174034,
0.030329780653119087,
-0.005025588441640139,
0.06852105259895325,
-0.05148657038807869,
0.007732023485004902,
0.03469061851501465,
-0.05268999934196472,
0.0004248203767929226,
-0.023824213072657585,
0.05633441358804703,
-0.05460423603653908,
0.06479030847549438,
0.029078591614961624,
0.022247696295380592,
0.007240341976284981,
-0.055073052644729614,
-0.023390503600239754,
0.017216550186276436,
-0.0462026447057724,
0.08106384426355362,
-0.014047341421246529,
-0.07680460810661316,
0.06190861389040947,
0.025436848402023315,
-0.08776266127824783,
0.027158236131072044,
0.048839252442121506,
0.018625302240252495,
0.02687392197549343,
0.06997161358594894,
-0.033960796892642975,
0.03154091536998749,
-0.03848151117563248,
0.0008502441924065351,
-0.04257979243993759,
-0.0045035784132778645,
0.008411125279963017,
-0.012704993598163128,
-0.015858544036746025,
0.03952205181121826,
0.005184539128094912,
0.008787229657173157,
0.03322218358516693,
-0.03444673866033554,
-0.037934560328722,
-0.019361497834324837,
0.019660670310258865,
-0.006812684237957001,
-0.0037535722367465496,
-0.0390329547226429,
0.03235059976577759,
-0.016788123175501823,
-0.024815497919917107,
-0.040021415799856186,
0.006634612567722797,
0.03515077382326126,
-0.05693092197179794,
-0.0323222391307354,
0.024446096271276474,
0.029098939150571823,
-0.04687606915831566,
0.03836191073060036,
0.012203547172248363,
0.00948234461247921,
0.016407392919063568,
0.02991604618728161,
0.011281297542154789,
-0.033504657447338104,
-0.009326989762485027,
-0.006602742709219456,
0.003243829123675823,
0.05163364112377167,
-0.036278802901506424,
0.021382005885243416,
0.04990467056632042,
0.05177044868469238,
0.014680786058306694,
0.005347889848053455,
-0.010900292545557022,
0.018513375893235207,
-0.04942799359560013,
0.0008688861271366477,
-0.01121625304222107,
-0.027219757437705994,
-0.0223903339356184,
0.012824967503547668,
-0.04537443444132805,
0.055087167769670486,
-0.03842853754758835,
0.007128170225769281,
0.037123166024684906,
0.012230714783072472,
-0.05402772128582001,
-0.08833196014165878,
-0.028498096391558647,
-0.009742781519889832,
0.05194614827632904,
0.02972773090004921,
-0.027029115706682205,
0.031133120879530907,
-0.034819185733795166,
-0.06473609805107117,
0.017662152647972107,
0.0271115992218256,
-0.038772016763687134,
0.04283798858523369,
0.05621038004755974,
-0.05021555349230766,
0.026208316907286644,
0.014450189657509327,
-0.0243469700217247,
0.041390590369701385,
0.005460530519485474,
0.033338502049446106,
0.015027779154479504,
0.039270274341106415,
-0.021988950669765472,
-0.01774044707417488,
-0.05420848727226257,
-0.03278309479355812,
-0.038348909467458725,
-0.004585459362715483,
0.07284535467624664
] |
AkshatSurolia/ViT-FaceMask-Finetuned | [
"pytorch",
"safetensors",
"vit",
"image-classification",
"dataset:Face-Mask18K",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | image-classification | {
"architectures": [
"ViTForImageClassification"
],
"model_type": "vit",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 40 | null | ---
license: apache-2.0
tags:
- image-classification
datasets:
- Face-Mask18K
---
# Vision Transformer (ViT) for Face Mask Detection
Vision Transformer (ViT) model pre-trained and fine-tuned on Self Currated Custom Face-Mask18K Dataset (18k images, 2 classes) at resolution 224x224. It was first introduced in the paper Training data-efficient image transformers & distillation through attention by Touvron et al.
Vision Transformer (ViT) model pre-trained and fine-tuned on Self Currated Custom Face-Mask18K Dataset (18k images, 2 classes) at resolution 224x224. It was introduced in the paper An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale by Dosovitskiy et al.
## Model description
The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a supervised fashion, namely ImageNet-21k, at a resolution of 224x224 pixels.
Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder.
Note that this model does not provide any fine-tuned heads, as these were zero'd by Google researchers. However, the model does include the pre-trained pooler, which can be used for downstream tasks (such as image classification).
By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image.
## Training Metrics
epoch = 0.89
total_flos = 923776502GF
train_loss = 0.057
train_runtime = 0:40:10.40
train_samples_per_second = 23.943
train_steps_per_second = 1.497
---
## Evaluation Metrics
epoch = 0.89
eval_accuracy = 0.9894
eval_loss = 0.0395
eval_runtime = 0:00:36.81
eval_samples_per_second = 97.685
eval_steps_per_second = 12.224 | [
-0.028824718669056892,
-0.013043593615293503,
0.010582017712295055,
0.018788767978549004,
0.042260631918907166,
0.013768422417342663,
-0.009769818745553493,
-0.00941441860049963,
-0.006998524535447359,
0.05365334078669548,
0.021737249568104744,
-0.004361131228506565,
0.01004294864833355,
0.05270964279770851,
-0.024369990453124046,
-0.04842425510287285,
-0.0033610204700380564,
0.011724106967449188,
-0.04198256880044937,
-0.013165871612727642,
0.014861086383461952,
-0.009029123932123184,
0.0033882521092891693,
0.023864716291427612,
0.0002919059479609132,
0.0004780144081450999,
0.0357261598110199,
0.013001260347664356,
0.043897464871406555,
-0.089100681245327,
0.00470814760774374,
-0.07513493299484253,
-0.05219655856490135,
-0.008993689902126789,
-0.028300873935222626,
-0.0038422660436481237,
0.00175793981179595,
0.0038534707855433226,
0.028582913801074028,
0.06574010103940964,
-0.008662271313369274,
-0.0012839054688811302,
-0.017570845782756805,
-0.03318826109170914,
0.033477235585451126,
0.0008104494772851467,
-0.040807824581861496,
-0.016297245398163795,
0.014324353076517582,
-0.0017038715304806828,
-0.07088832557201385,
-0.06830864399671555,
-0.05289797857403755,
0.011169984936714172,
-0.020802825689315796,
-0.027839377522468567,
-0.02441697008907795,
-0.028514312580227852,
0.039936065673828125,
-0.06530445069074631,
-0.03394627943634987,
0.027629684656858444,
-0.03283895552158356,
0.05493530258536339,
0.023983914405107498,
-0.013212055899202824,
0.02988683059811592,
-0.021348541602492332,
0.027351438999176025,
-0.017940934747457504,
0.06588007509708405,
-0.03538167476654053,
0.0010166220599785447,
-0.1032586395740509,
-0.007235980127006769,
-0.025019442662596703,
0.029323717579245567,
0.0683261826634407,
-0.02138907089829445,
0.02331504411995411,
0.016733722761273384,
0.015717951580882072,
0.02215094119310379,
-0.040508873760700226,
-0.016630757600069046,
0.02585451491177082,
-0.04873383045196533,
0.029513338580727577,
0.007630889769643545,
0.05540036782622337,
-0.023135686293244362,
0.0057622822932899,
-0.047727473080158234,
-0.04968622699379921,
-0.023900503292679787,
0.01315140351653099,
0.03903581574559212,
0.00802274513989687,
0.027156297117471695,
0.020895671099424362,
0.03703860193490982,
0.043291203677654266,
-0.00929401908069849,
0.057416971772909164,
-0.022076278924942017,
-0.02682952582836151,
-0.01427958533167839,
-0.03224089741706848,
-0.04765525087714195,
0.002635983284562826,
0.03576654568314552,
-0.017432691529393196,
-0.023453358560800552,
0.03927631676197052,
-0.00935127679258585,
-0.01272390503436327,
0.07419063150882721,
-0.02713419310748577,
-0.03291475027799606,
-0.045269060879945755,
0.03891007602214813,
0.0033002907875925303,
0.02809016965329647,
0.00040504324715584517,
-0.03549140319228172,
0.0208964291960001,
-0.01586552895605564,
-0.030787521973252296,
0.013265734538435936,
0.03934403508901596,
0.014735652133822441,
0.02963651344180107,
0.03069104626774788,
-0.023859903216362,
0.007839443162083626,
0.03731783106923103,
-0.04768413305282593,
0.05344622954726219,
0.04240136966109276,
0.1050219014286995,
-0.07012855261564255,
-0.07008308172225952,
0.020022593438625336,
0.02467278018593788,
-0.013903427869081497,
0.016188474372029305,
0.02608191967010498,
-0.05950899422168732,
-0.03203685209155083,
-0.016540177166461945,
0.06965252757072449,
-0.07856567203998566,
-0.007643275894224644,
0.06005483493208885,
0.013673449866473675,
0.04339441657066345,
-0.05265941098332405,
-0.028172897174954414,
-0.02341281622648239,
-0.009370019659399986,
-0.02862243540585041,
0.05946396291255951,
-0.011858442798256874,
0.0007277754484675825,
-0.020433714613318443,
-0.03557804599404335,
-0.028116324916481972,
0.07209791988134384,
-0.0030640948098152876,
-0.01981360651552677,
-0.01515951007604599,
0.020129868760704994,
0.03149307146668434,
0.0684390515089035,
-0.03008914738893509,
0.03357125446200371,
0.06881579011678696,
0.01046795304864645,
-0.042266592383384705,
0.0589502714574337,
0.03510250523686409,
-0.04487742483615875,
-0.019823893904685974,
0.007479576859623194,
-0.0016069209668785334,
-0.06703876703977585,
0.0190717875957489,
0.026132790371775627,
0.008300716988742352,
-0.022487271577119827,
-0.015731602907180786,
0.04876778647303581,
0.0015887054614722729,
0.008281371556222439,
0.016685081645846367,
-0.036529291421175,
-0.029746312648057938,
0.031432587653398514,
-0.02549913339316845,
0.019067317247390747,
-0.027783794328570366,
-0.011620563454926014,
-0.00019216173677705228,
-0.020206645131111145,
0.030935075134038925,
0.03906421363353729,
-0.028145745396614075,
0.05375170335173607,
-0.008281311951577663,
0.01820957288146019,
-0.05580167472362518,
-0.05750591680407524,
0.013529801741242409,
0.026826633140444756,
0.0274805948138237,
0.014681803993880749,
0.016639908775687218,
-0.01733369007706642,
0.010401217266917229,
0.06869793683290482,
0.0638696700334549,
0.033388830721378326,
-0.04062145575881004,
-0.001046565594151616,
0.006068747490644455,
0.05830548703670502,
-0.06415732949972153,
-0.03158916160464287,
0.05006876587867737,
0.020824071019887924,
0.006355444435030222,
0.027602797374129295,
-0.03814798966050148,
0.04030626267194748,
-0.05513161048293114,
-0.06708282977342606,
0.02805135026574135,
0.02268279902637005,
-0.011488419957458973,
0.04708307981491089,
0.002401868812739849,
-0.017501182854175568,
0.019906973466277122,
0.011110135354101658,
0.004917546175420284,
-0.04077713191509247,
0.020129051059484482,
0.025110529735684395,
0.047208502888679504,
-0.03207974135875702,
0.03552084416151047,
0.015357408672571182,
0.001416861778125167,
0.03763415664434433,
0.00017638569988775998,
0.027221716940402985,
0.05541620030999184,
-0.0030469726771116257,
-0.007370375096797943,
0.020484432578086853,
0.0082466509193182,
0.030153874307870865,
0.06069104000926018,
0.011905857361853123,
0.0551898218691349,
-0.003250542562454939,
0.04980260878801346,
0.07945913821458817,
0.02374793402850628,
0.029017385095357895,
0.05326223745942116,
0.08602609485387802,
0.01573457382619381,
-0.017598075792193413,
0.05775200203061104,
-0.03786546736955643,
0.013571414165198803,
-0.026146795600652695,
0.007966776378452778,
-0.012484889477491379,
-0.00656171003356576,
0.06087815761566162,
0.010326331481337547,
-0.0021909624338150024,
-0.017389170825481415,
0.0012253123568370938,
-0.013076145201921463,
0.06351155042648315,
0.013140395283699036,
-0.007837639190256596,
-0.0027198740281164646,
-0.033620093017816544,
-0.013852696865797043,
-0.0670480877161026,
-0.032776545733213425,
-0.03497955575585365,
-0.04864846169948578,
-0.03146284818649292,
-0.07063860446214676,
-0.017173411324620247,
-0.06861139088869095,
-0.023204617202281952,
0.053869858384132385,
0.04013384133577347,
-0.0010168993612751365,
-0.056864313781261444,
0.011921854689717293,
-0.02918688766658306,
-0.03656667470932007,
-0.04977937787771225,
-0.04692242294549942,
-0.034990094602108,
-0.07538849115371704,
0.05161047726869583,
0.014952528290450573,
0.018512168899178505,
-0.016395866870880127,
-0.001428100629709661,
-0.030534466728568077,
-0.014921987429261208,
0.05038333684206009,
0.04953855276107788,
-0.010922669433057308,
-0.023591656237840652,
0.01594635471701622,
-0.03720264881849289,
-0.0010806364007294178,
-0.01688261143863201,
-0.022184433415532112,
0.10696856677532196,
0.08946530520915985,
0.054567303508520126,
-0.0019061639904975891,
0.0009277149219997227,
-0.034219708293676376,
-0.07652368396520615,
-0.023929763585329056,
-0.044972267001867294,
-0.016804765909910202,
-0.021552415564656258,
-0.03671622648835182,
-0.009610239416360855,
-0.018982602283358574,
-0.00704749533906579,
-0.004861561581492424,
-0.004188426770269871,
0.03301500901579857,
0.04290520399808884,
0.020656853914260864,
0.0230100080370903,
-0.03937937319278717,
-0.04060253128409386,
0.05031976103782654,
0.01690318062901497,
0.009330579079687595,
-0.059657514095306396,
-0.005482172593474388,
0.026516923680901527,
0.05193028971552849,
-0.018842788413167,
0.010499925352633,
0.0734802857041359,
-0.008849804289638996,
-0.03505495563149452,
0.02180146984755993,
-0.017061635851860046,
-0.001865740050561726,
-0.008560690097510815,
0.01500587910413742,
-0.0064729140140116215,
-0.04258527606725693,
-0.044979821890592575,
0.0028530717827379704,
0.05188219994306564,
-0.07669561356306076,
-0.0854700356721878,
-0.03147650510072708,
0.045696306973695755,
0.03422882407903671,
0.008694424293935299,
-0.04239923506975174,
0.007768521085381508,
-0.06701230257749557,
-0.009650202468037605,
0.04379963502287865,
0.01536155492067337,
0.04620019346475601,
0.033680666238069534,
0.011392702348530293,
-0.0346921905875206,
0.02042669802904129,
0.06280747056007385,
0.06539731472730637,
0.010438740253448486,
-0.048994846642017365,
0.01703680492937565,
-0.014431423507630825,
0.0370989665389061,
-0.005715885665267706,
-0.019026368856430054,
-0.045552533119916916,
-0.08162415772676468,
-0.0017326080705970526,
-0.01492841076105833,
-0.02659687213599682,
-0.0009414482628926635,
0.04940993711352348,
-0.004022716078907251,
-0.027689773589372635,
0.015949493274092674,
0.02448951080441475,
0.05387641489505768,
-0.03776809945702553,
0.07269514352083206,
-0.00698369275778532,
0.04547838494181633,
-0.024877294898033142,
0.005189189221709967,
-0.03745356574654579,
-0.02196570113301277,
0.004398047924041748,
0.06148222088813782,
0.04503163695335388,
0.04449783265590668,
0.062381595373153687,
-0.003289254615083337,
-0.04686944931745529,
-0.01053010392934084,
0.05052981525659561,
-0.018837299197912216,
-0.05856090039014816,
0.010375398211181164,
-0.034524522721767426,
-0.001662457245402038,
-0.036758534610271454,
0.00953445304185152,
0.02775450237095356,
0.04815730080008507,
0.0012163396459072828,
-0.018730591982603073,
0.0038213564548641443,
-0.038174573332071304,
-0.02653002366423607,
-0.07955154776573181,
0.012882806360721588,
0.011749036610126495,
-0.02910703234374523,
0.0019640654791146517,
0.02628079429268837,
0.028949959203600883,
0.06550642102956772,
0.03831610083580017,
-0.02119007706642151,
-0.05003492161631584,
0.03659411519765854,
0.019297409802675247,
-0.0375727154314518,
-0.0648878738284111,
-0.059803999960422516,
0.03604664281010628,
0.03291622921824455,
-0.026825254783034325,
-0.06408785283565521,
0.010170766152441502,
0.047165535390377045,
-0.05289442837238312,
0.06053542718291283,
-0.002496704924851656,
0.04602767527103424,
0.061149243265390396,
-0.0036891435738652945,
0.03388408571481705,
-0.03701925277709961,
-0.020234625786542892,
0.016497021540999413,
0.0540848933160305,
-0.018316442146897316,
-0.04186253249645233,
-0.06409630179405212,
0.02083158865571022,
0.01717311516404152,
0.04730328544974327,
0.05323639139533043,
-0.011220757849514484,
-0.051102250814437866,
0.015729302540421486,
0.051541317254304886,
-0.04665696248412132,
0.01852535642683506,
0.02374517172574997,
0.03891316056251526,
-0.040331270545721054,
-0.03222624957561493,
-0.0070627531968057156,
-0.010112638585269451,
0.013572940602898598,
0.00843083392828703,
-0.04363793879747391,
-0.04132041335105896,
0.027729298919439316,
-0.02120637148618698,
-0.017152845859527588,
-0.08609965443611145,
0.04104648157954216,
-0.027991170063614845,
-0.02054762840270996,
0.03657974675297737,
0.028156479820609093,
0.03364115580916405,
0.05792964994907379,
0.02354852482676506,
0.013925543986260891,
-0.04697778448462486,
0.019796812906861305,
-0.05695377662777901,
-0.024376800283789635,
-0.008973874151706696,
-0.03301148861646652,
-0.0024639503099024296,
-0.01694737747311592,
-0.06764740496873856,
-0.045834980905056,
-0.031189940869808197,
-0.0015157959423959255,
-0.011190603487193584,
0.00911939237266779,
-0.007974466308951378,
0.031072191894054413,
-0.008036445826292038,
-0.021791955456137657,
-0.03913652151823044,
-0.03837667033076286,
-0.06144960969686508,
-0.037717048078775406,
0.013237915001809597,
-0.003437593812122941,
0.01016311813145876,
0.019943388178944588,
0.015141326002776623,
0.013785745948553085,
0.01628594659268856,
-0.0269895289093256,
0.00999512430280447,
0.013961821794509888,
-0.029907500371336937,
-0.02394062466919422,
0.014792132191359997,
0.013668944127857685,
0.018950141966342926,
-0.02902676723897457,
0.009737168438732624,
0.03745287284255028,
0.027027323842048645,
-0.013192014768719673,
0.057066045701503754,
0.010114162229001522,
-0.08396462351083755,
-0.02070465311408043,
-0.005693159997463226,
-0.023169610649347305,
0.05055682361125946,
-0.014376509934663773,
-0.03449360281229019,
0.057065609842538834,
0.043242622166872025,
0.04283986613154411,
-0.014617315493524075,
-0.01983962580561638,
0.035151537507772446,
-0.011502940207719803,
0.025558291003108025,
-0.05491645261645317,
0.01574558950960636,
-0.033403895795345306,
0.02068071812391281,
-0.0036098891869187355,
0.0054074437357485294,
-0.03829048201441765,
0.03498399630188942,
-0.028767302632331848,
-0.0007768824580125511,
-0.027565933763980865,
0.0004069571732543409,
-0.03287327289581299,
0.047359172254800797,
-0.014529308304190636,
0.011140993796288967,
-0.039775971323251724,
0.08174335956573486,
-0.018218548968434334,
0.011222501285374165,
-0.00758042186498642,
0.004890980664640665,
-0.04658225178718567,
-0.033945247530937195,
-0.004172693006694317,
-0.007859044708311558,
0.054414503276348114,
0.04314807057380676,
0.03813832253217697,
-0.007449144497513771,
-0.020021555945277214,
0.007896587252616882,
0.048272084444761276,
-0.06520422548055649,
-0.04175248742103577,
0.008933096192777157,
0.01686159521341324,
0.004315367434173822,
0.04884888231754303,
0.06104994937777519,
-0.052199602127075195,
-0.04425704851746559,
0.05981007218360901,
0.011590340174734592,
0.012773733586072922,
-0.005616759415715933,
0.03963170200586319,
0.0586482435464859,
0.034412529319524765,
-0.027272608131170273,
-0.004953447263687849,
-0.014025058597326279,
-0.02169414795935154,
0.04127536341547966,
0.0016754496609792113,
0.019474312663078308,
0.0019650189206004143,
-0.04908611997961998,
-0.026328686624765396,
0.07656806707382202,
0.045073967427015305,
0.047362133860588074,
-0.015478745102882385,
-0.04245155677199364,
0.033977948129177094,
0.010910358279943466,
-0.04276888445019722,
-0.013778680935502052,
0.013464756309986115,
-0.02264784276485443,
0.06120983883738518,
0.004978418815881014,
0.019873235374689102,
0.025353342294692993,
0.028056630864739418,
-0.016359513625502586,
0.05225933715701103,
-0.04308744892477989,
0.018109550699591637,
0.05159454792737961,
-0.028881113976240158,
-0.03552120923995972,
-0.03168432414531708,
0.06677135825157166,
-0.06364570558071136,
0.04483921080827713,
0.029497085139155388,
-0.016122890636324883,
-0.008036455139517784,
-0.049528781324625015,
-0.05028485134243965,
0.0313577763736248,
-0.04953312501311302,
0.07931049913167953,
-0.01075039803981781,
-0.07475168257951736,
0.032769158482551575,
0.022016331553459167,
-0.08012475818395615,
0.03623021021485329,
0.04013359546661377,
0.046183403581380844,
0.01858574151992798,
0.04622892662882805,
-0.05343351140618324,
0.030420895665884018,
-0.04654398933053017,
0.02032286673784256,
-0.04470786452293396,
-0.025430167093873024,
0.03786596655845642,
-0.027711857110261917,
-0.018288839608430862,
0.030674749985337257,
-0.021440645679831505,
0.000557399820536375,
0.021239275112748146,
-0.03479486331343651,
-0.041333604604005814,
-0.014364749193191528,
0.017671285197138786,
0.006302999332547188,
0.016209851950407028,
-0.0225871279835701,
0.013045649975538254,
-0.007834823802113533,
-0.01727878302335739,
-0.03439699858427048,
0.02121792547404766,
0.01735256053507328,
-0.04795115068554878,
-0.04650893062353134,
0.04804166406393051,
-0.014165782369673252,
-0.028532816097140312,
0.03784078359603882,
-0.008452961221337318,
0.001160876709036529,
0.03289037197828293,
0.02494870126247406,
0.023862717673182487,
-0.013060028664767742,
-0.005255596712231636,
0.020716287195682526,
0.012978985905647278,
0.02109183929860592,
-0.0030004854779690504,
0.03890722617506981,
0.04430169239640236,
0.013477948494255543,
0.0018362338887527585,
-0.03638900816440582,
-0.006216693669557571,
0.03131013363599777,
-0.03684538975358009,
0.0021370924077928066,
0.008998299948871136,
-0.04361949861049652,
-0.04234956577420235,
-0.01639280654489994,
-0.025674663484096527,
0.03744462504982948,
-0.0230118241161108,
0.004451588727533817,
0.0456591472029686,
0.0032825779635459185,
-0.05065643787384033,
-0.09672924131155014,
-0.017806708812713623,
-0.032302334904670715,
0.017216643318533897,
0.03898915275931358,
-0.04561484232544899,
0.02323773130774498,
-0.04446609318256378,
-0.05092558264732361,
0.046217914670705795,
-0.00001085731310013216,
-0.019951382651925087,
0.0458281934261322,
0.0341372936964035,
-0.02870621345937252,
0.012630913406610489,
0.017161864787340164,
-0.03777318447828293,
0.0008201729506254196,
0.029662877321243286,
0.019258420914411545,
0.01905413344502449,
0.03071029670536518,
-0.023152610287070274,
-0.016786126419901848,
-0.057901233434677124,
-0.041182227432727814,
-0.05351732671260834,
0.007857589982450008,
0.0545463003218174
] |
AlekseyKulnevich/Pegasus-HeaderGeneration | [
"pytorch",
"pegasus",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"PegasusForConditionalGeneration"
],
"model_type": "pegasus",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | 2022-01-01T16:15:27Z | **Usage HuggingFace Transformers for header generation task**
```
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained("AlekseyKulnevich/Pegasus-HeaderGeneration")
tokenizer = PegasusTokenizer.from_pretrained('google/pegasus-large')
input_text # your text
input_ = tokenizer.batch_encode_plus([input_text], max_length=1024, pad_to_max_length=True,
truncation=True, padding='longest', return_tensors='pt')
input_ids = input_['input_ids']
input_mask = input_['attention_mask']
headers = model.generate(input_ids=input_ids,
attention_mask=input_mask,
num_beams=32,
no_repeat_ngram_size=2,
early_stopping=True,
num_return_sequences=10)
headers = tokenizer.batch_decode(headers, skip_special_tokens=True)
```
**Decoder configuration examples:**
[**Input text you can see here**](https://www.bbc.com/news/science-environment-59775105)
```
headers = model.generate(input_ids=input_ids,
attention_mask=input_mask,
num_beams=32,
no_repeat_ngram_size=2,
early_stopping=True,
num_return_sequences=20)
tokenizer.batch_decode(headers, skip_special_tokens=True)
```
output:
1. *the impact of climate change on tropical cyclones*
2. *the impact of human induced climate change on tropical cyclones*
3. *the impact of climate change on tropical cyclone formation in the midlatitudes*
4. *how climate change will expand the range of tropical cyclones?*
5. *the impact of climate change on tropical cyclones in the midlatitudes*
6. *global warming will expand the range of tropical cyclones*
7. *climate change will expand the range of tropical cyclones*
8. *the impact of climate change on tropical cyclone formation*
9. *the impact of human induced climate change on tropical cyclone formation*
10. *tropical cyclones in the mid-latitudes*
11. *climate change will expand the range of tropical cyclones in the middle latitudes*
12. *global warming will expand the range of tropical cyclones, a new study says*
13. *the impacts of climate change on tropical cyclones*
14. *the impact of global warming on tropical cyclones*
15. *climate change will expand the range of tropical cyclones, a new study says*
16. *global warming will expand the range of tropical cyclones in the middle latitudes*
17. *the effects of climate change on tropical cyclones*
18. *how climate change will expand the range of tropical cyclones*
19. *climate change will expand the range of tropical cyclones over the equator*
20. *the impact of human induced climate change on tropical cyclones.*
Also you can play with the following parameters in generate method:
-top_k
-top_p
[**Meaning of parameters to generate text you can see here**](https://huggingface.co/blog/how-to-generate) | [
-0.01804734766483307,
-0.03409673646092415,
-0.0026001296937465668,
0.040262266993522644,
0.04582793265581131,
0.017161739990115166,
-0.025579148903489113,
-0.04025344178080559,
-0.03198616951704025,
0.06228310242295265,
0.0015479626599699259,
0.008950861170887947,
0.01828843355178833,
0.050450682640075684,
0.002166028833016753,
-0.011708746664226055,
-0.029365146532654762,
0.003091685473918915,
-0.05227718502283096,
-0.016359494999051094,
0.006250152364373207,
0.006957994773983955,
-0.021065162494778633,
0.025664163753390312,
-0.0019168711733072996,
0.0279704537242651,
-0.00478567136451602,
0.00912964716553688,
0.015415643341839314,
-0.07798793166875839,
-0.00572825875133276,
-0.016613997519016266,
-0.022721048444509506,
-0.0029869789723306894,
-0.01978408731520176,
0.015757424756884575,
0.012386331334710121,
0.007703014183789492,
0.020124996080994606,
0.0447576642036438,
0.0067066531628370285,
-0.0013043521903455257,
-0.01755816861987114,
-0.018432406708598137,
0.03901761397719383,
-0.014409968629479408,
-0.06351704895496368,
-0.025158986449241638,
0.04797327145934105,
-0.02131839469075203,
-0.05462716519832611,
-0.08558755367994308,
-0.03892488032579422,
0.011629591695964336,
-0.017590252682566643,
-0.020744748413562775,
-0.06617823243141174,
-0.026144342496991158,
0.04823065549135208,
-0.04658854380249977,
-0.017200717702507973,
0.02219746634364128,
-0.062210168689489365,
0.029662711545825005,
0.022044135257601738,
-0.030427787452936172,
-0.0043295277282595634,
-0.0378710962831974,
-0.00595727888867259,
-0.05290922150015831,
0.05144196376204491,
-0.05351175367832184,
0.036386583000421524,
-0.11076992005109787,
0.01792662777006626,
-0.030227752402424812,
0.034190498292446136,
0.052747953683137894,
-0.01232109684497118,
0.04852684587240219,
0.01737218163907528,
-0.011541870422661304,
0.024646148085594177,
-0.002435710048303008,
0.0019183398690074682,
0.04587225615978241,
-0.06271374225616455,
0.018968570977449417,
0.011121186427772045,
0.06584442406892776,
-0.0386749729514122,
-0.03673975169658661,
-0.016535867005586624,
-0.02776498533785343,
-0.015975628048181534,
0.028874600306153297,
0.03731892630457878,
0.006932245567440987,
0.019670022651553154,
0.019719529896974564,
0.0161200650036335,
0.04372142627835274,
-0.02098444476723671,
0.07261092960834503,
0.0022530939895659685,
-0.013498751446604729,
-0.05462094396352768,
-0.06098589673638344,
-0.06881055980920792,
0.041662026196718216,
0.04666537791490555,
-0.0056899613700807095,
-0.05319558456540108,
0.010997114703059196,
0.008407557383179665,
-0.028819650411605835,
0.04141636937856674,
-0.02739732712507248,
-0.03231699392199516,
-0.03748530149459839,
0.03603855147957802,
0.025612803176045418,
-0.0077520436607301235,
-0.009238642640411854,
-0.04000359773635864,
0.040698159486055374,
-0.042922019958496094,
-0.018151801079511642,
-0.009480701759457588,
0.015573766082525253,
-0.002999626100063324,
0.033342573791742325,
0.02622012421488762,
-0.02872338518500328,
0.01871926710009575,
0.023863229900598526,
-0.04679100960493088,
0.05826734006404877,
0.04017576575279236,
0.11034012585878372,
-0.07927555590867996,
-0.0438072606921196,
0.015288513153791428,
0.01637629047036171,
-0.046931907534599304,
-0.008976336568593979,
0.014188569970428944,
-0.036089539527893066,
-0.012769200839102268,
-0.014375705271959305,
0.06779705733060837,
-0.04439233988523483,
0.004436822142452002,
0.03758642077445984,
-0.004240889567881823,
0.043446995317935944,
-0.033142536878585815,
-0.029819391667842865,
0.0027909253258258104,
0.01595018245279789,
-0.040142856538295746,
0.043091438710689545,
0.006623036228120327,
-0.015343569219112396,
-0.02953481860458851,
-0.0346888042986393,
0.012415492907166481,
0.06031335890293121,
0.00954901147633791,
-0.005318571347743273,
-0.015244630165398121,
0.029088811948895454,
0.038260579109191895,
0.023148758336901665,
-0.0144662382081151,
0.018876411020755768,
0.07167716324329376,
0.04821733012795448,
-0.020387746393680573,
0.03463418781757355,
0.012901216745376587,
-0.04058743640780449,
-0.013282516971230507,
-0.012779482640326023,
-0.014859653078019619,
-0.025841714814305305,
0.011504735797643661,
0.0233281422406435,
0.002697745570912957,
-0.006139703560620546,
0.000028518848921521567,
0.04716889187693596,
0.005109085701406002,
-0.020819809287786484,
0.002686534309759736,
-0.015952162444591522,
-0.0034681844990700483,
0.05518077313899994,
-0.012609310448169708,
0.008583717979490757,
-0.013912978582084179,
-0.029107410460710526,
0.02509988099336624,
0.026861386373639107,
0.023628441616892815,
0.03408193588256836,
-0.017645327374339104,
0.06978641450405121,
-0.03901936486363411,
0.021108780056238174,
-0.061498042196035385,
-0.050695545971393585,
-0.0019407073268666863,
0.005719193257391453,
0.04083617776632309,
0.05783909559249878,
0.0040368675254285336,
-0.02131563611328602,
0.022171758115291595,
0.04170563444495201,
0.038474489003419876,
0.017109733074903488,
-0.01024971716105938,
-0.003507547779008746,
0.02579747512936592,
0.08080099523067474,
-0.04260585084557533,
-0.01927376538515091,
0.021429400891065598,
0.0185626819729805,
-0.006739788688719273,
0.01507671270519495,
-0.014471392147243023,
0.032646581530570984,
-0.04711982607841492,
-0.06249930337071419,
0.04392117261886597,
0.07433439046144485,
0.014164312742650509,
0.006692956667393446,
-0.03315933793783188,
0.032062482088804245,
0.03070160746574402,
0.00659435847774148,
0.02387072518467903,
-0.04419920966029167,
0.020297253504395485,
0.00767659954726696,
0.06506045162677765,
-0.04300593212246895,
0.025764688849449158,
0.018588045611977577,
0.02898464724421501,
0.04542390629649162,
-0.017569072544574738,
0.032430749386548996,
0.03289717435836792,
0.01842866837978363,
-0.026697462424635887,
0.046546515077352524,
-0.0010542584350332618,
0.05267727002501488,
0.05590056627988815,
-0.00038933055475354195,
0.05941704288125038,
-0.00001117033480113605,
0.05352120101451874,
0.1065673753619194,
0.022426102310419083,
0.005922225769609213,
0.040825046598911285,
0.06660174578428268,
0.014208246022462845,
-0.018263375386595726,
0.045121271163225174,
-0.05732698366045952,
0.03879944607615471,
-0.032217975705862045,
0.01952950470149517,
-0.014824672602117062,
-0.021153761073946953,
0.030825592577457428,
0.027069075033068657,
-0.020371174439787865,
-0.004597719293087721,
-0.01438603550195694,
-0.005138016305863857,
0.057305771857500076,
-0.01281953789293766,
-0.011360672302544117,
-0.0019370507216081023,
-0.022039437666535378,
-0.006511756218969822,
-0.07720565050840378,
-0.03550355136394501,
0.0050392416305840015,
-0.04760589823126793,
-0.023116707801818848,
-0.09782209247350693,
-0.032046977430582047,
-0.06979167461395264,
-0.02362428791821003,
0.04436852037906647,
0.02917167730629444,
0.015703903511166573,
-0.05317266657948494,
0.010843485593795776,
-0.05055015906691551,
-0.05638541653752327,
-0.04744251072406769,
-0.05168117955327034,
-0.019890110939741135,
-0.05524992570281029,
0.02726493403315544,
0.032203271985054016,
0.031148599460721016,
-0.018108008429408073,
-0.01675312966108322,
-0.04954252019524574,
-0.011383159086108208,
0.06549005210399628,
0.019322562962770462,
-0.016868263483047485,
-0.0756179466843605,
0.021011965349316597,
-0.01768450438976288,
0.0013645519502460957,
-0.030782252550125122,
-0.015803532674908638,
0.09016302227973938,
0.08606076240539551,
0.0268259234726429,
0.012387200258672237,
-0.025172481313347816,
-0.03482170030474663,
-0.04206268861889839,
-0.017577724531292915,
-0.024037914350628853,
-0.012717558071017265,
-0.043905723839998245,
-0.042674798518419266,
-0.00037305604200810194,
-0.013623358681797981,
-0.021877747029066086,
-0.002019531326368451,
0.0223923921585083,
0.037584055215120316,
0.03851967677474022,
0.0472642183303833,
0.031330328434705734,
-0.02760336920619011,
-0.05305785685777664,
0.05690653622150421,
0.009250224567949772,
0.009386750869452953,
-0.07849495857954025,
-0.03581157326698303,
0.052959684282541275,
0.012001316994428635,
0.005660782102495432,
-0.014820089563727379,
0.06831894814968109,
0.020387055352330208,
-0.01709015481173992,
-0.01662786304950714,
-0.00311780977062881,
0.011820275336503983,
-0.002642978448420763,
0.004371480084955692,
-0.008903317153453827,
-0.04225112870335579,
-0.03216932713985443,
-0.012998836115002632,
0.043280117213726044,
-0.041761722415685654,
-0.057534970343112946,
-0.030669519677758217,
0.03239494189620018,
0.012452713213860989,
0.01795646920800209,
-0.047508254647254944,
-0.004649701528251171,
-0.05201644077897072,
-0.019644739106297493,
0.024587247520685196,
0.008059856481850147,
0.03469277173280716,
0.03314966335892677,
0.029965799301862717,
0.007204660214483738,
0.028696322813630104,
0.04107222706079483,
0.0908040925860405,
-0.011631219647824764,
-0.04602363333106041,
0.003325269790366292,
-0.005748310126364231,
0.010543402284383774,
-0.002461747732013464,
-0.009606938809156418,
-0.04325523227453232,
-0.09213394671678543,
-0.002542985137552023,
0.029442571103572845,
-0.002620829502120614,
-0.014932111836969852,
0.03388982638716698,
-0.01930312067270279,
-0.024132728576660156,
0.016543230041861534,
0.021727103739976883,
0.04444919154047966,
-0.061261869966983795,
0.046875424683094025,
0.017941417172551155,
0.02398323267698288,
-0.03997526317834854,
0.021725615486502647,
-0.004089755937457085,
0.022455712780356407,
-0.007057564798742533,
0.05899932235479355,
0.026113560423254967,
0.05975116416811943,
0.019703952595591545,
0.02850433997809887,
-0.026892784982919693,
0.052735134959220886,
0.01140415295958519,
-0.013106749393045902,
-0.06228219345211983,
0.005253191106021404,
0.006763071287423372,
-0.02898590825498104,
0.008804838173091412,
-0.0093041080981493,
-0.006100568454712629,
0.03312472626566887,
0.014548557810485363,
-0.013754074461758137,
0.02210734784603119,
-0.03892247751355171,
-0.024100162088871002,
-0.04886863753199577,
-0.015840327367186546,
-0.00039974990068003535,
-0.027033913880586624,
0.01747903786599636,
0.03512588143348694,
0.011159681715071201,
0.06672286987304688,
0.05164444074034691,
-0.0018087486969307065,
-0.08078130334615707,
0.04432724416255951,
0.03365625813603401,
-0.03765711933374405,
-0.06453868001699448,
-0.054424673318862915,
0.026674747467041016,
0.03446611016988754,
-0.0042071095667779446,
-0.08749235421419144,
0.017417151480913162,
0.038121990859508514,
-0.08129927515983582,
0.062107235193252563,
-0.021385354921221733,
0.03514191880822182,
0.0755840539932251,
-0.0122254379093647,
0.03655635938048363,
-0.05157315358519554,
0.0067922514863312244,
0.0257728211581707,
0.05401121452450752,
-0.03341125696897507,
-0.04073484241962433,
-0.06431984901428223,
0.029479533433914185,
0.03832297772169113,
0.06696879863739014,
0.05410206317901611,
-0.01334761269390583,
-0.06030582636594772,
0.013296471908688545,
0.04444142058491707,
-0.04493546858429909,
0.02345353551208973,
0.027757976204156876,
0.023214191198349,
-0.04955962672829628,
-0.04782821238040924,
-0.006587257143110037,
0.009258984588086605,
0.03713405504822731,
-0.00874494481831789,
-0.019664006307721138,
-0.013832380063831806,
-0.003962853457778692,
-0.022306665778160095,
-0.014814247377216816,
-0.07253721356391907,
0.04163306578993797,
0.01581766828894615,
-0.009199841879308224,
0.03409247100353241,
0.05834322050213814,
0.05795937776565552,
0.05377553403377533,
-0.020677456632256508,
0.016751421615481377,
-0.05800386890769005,
0.015839148312807083,
-0.052125729620456696,
-0.0062005226500332355,
-0.012447811663150787,
-0.037617817521095276,
-0.002285758964717388,
-0.039339903742074966,
-0.07016981393098831,
-0.0350225567817688,
-0.01541289035230875,
0.03703415393829346,
-0.010154945775866508,
0.02073022909462452,
-0.002086047315970063,
0.01275904942303896,
-0.03397568315267563,
-0.02008921653032303,
-0.04936319962143898,
-0.02156171388924122,
-0.06959497183561325,
-0.059983666986227036,
0.02213227190077305,
0.0010511805303394794,
0.019365303218364716,
-0.017593298107385635,
0.008126115426421165,
0.009290249086916447,
0.006754758767783642,
-0.026960153132677078,
0.01916090026497841,
-0.012808436527848244,
-0.05380672961473465,
-0.006339051760733128,
0.026893900707364082,
-0.0020759645849466324,
0.04552542418241501,
-0.002690546214580536,
0.020747235044836998,
0.010954724624752998,
-0.01634022779762745,
-0.04070522263646126,
0.028367500752210617,
0.010314342565834522,
-0.07717983424663544,
-0.020480981096625328,
-0.0047436184249818325,
-0.01404592115432024,
0.024201201274991035,
-0.012098734267055988,
-0.02021661214530468,
-0.0016979883657768369,
0.019201258197426796,
0.04522639140486717,
-0.035188592970371246,
-0.03329237550497055,
0.007571400608867407,
-0.04247358813881874,
0.02064417116343975,
-0.06608805060386658,
0.04665294662117958,
-0.01914425566792488,
0.005152316763997078,
-0.01720527559518814,
0.010146277956664562,
-0.03253777325153351,
0.043721091002225876,
-0.020318275317549706,
-0.0278084184974432,
0.007999918423593044,
0.021784663200378418,
-0.03991319611668587,
0.03475285694003105,
-0.014634416438639164,
0.030887970700860023,
-0.06718330830335617,
0.03386523202061653,
-0.027900515124201775,
-0.0035603996366262436,
-0.011527941562235355,
0.013284050859510899,
-0.048856742680072784,
-0.05678446963429451,
-0.03160737827420235,
-0.048097286373376846,
0.03614174947142601,
0.0451962985098362,
0.008049286901950836,
0.011762737296521664,
-0.026784418150782585,
-0.0005051257903687656,
0.011463475413620472,
-0.06698212772607803,
-0.01744084805250168,
-0.005026080645620823,
-0.001655041123740375,
-0.005584834609180689,
0.02004319801926613,
0.06385713815689087,
-0.02401893585920334,
-0.03582633286714554,
0.05508868768811226,
0.028863802552223206,
0.01844414882361889,
0.0029771008994430304,
0.021758146584033966,
0.023662542924284935,
-0.005202602595090866,
-0.07521405816078186,
-0.0006228373968042433,
0.0016921134665608406,
-0.03633809834718704,
0.027716564014554024,
-0.021365201100707054,
0.02351524867117405,
0.0010682739084586501,
-0.0440140999853611,
-0.013204499147832394,
0.08288998901844025,
0.03141561523079872,
0.029988018795847893,
0.014176608994603157,
-0.020470013841986656,
0.017652973532676697,
0.0032829351257532835,
-0.061026401817798615,
0.008564435876905918,
0.008181148208677769,
-0.023102501407265663,
0.08535706996917725,
-0.016505355015397072,
0.015306748449802399,
0.006977125070989132,
0.01599850133061409,
-0.06013822555541992,
0.04579036682844162,
-0.03862924128770828,
0.017320243641734123,
0.03788295015692711,
-0.02577744610607624,
-0.032811764627695084,
-0.049707040190696716,
0.05867127329111099,
-0.07306359708309174,
0.05287853255867958,
0.048208482563495636,
0.0008296325686387718,
0.013233121484518051,
-0.015639621764421463,
-0.04962151125073433,
0.02187219075858593,
-0.06203155964612961,
0.08311666548252106,
-0.01309547945857048,
-0.06603490561246872,
0.09794710576534271,
0.010412955656647682,
-0.06831874698400497,
0.03000457026064396,
0.04673318192362785,
0.017402037978172302,
0.029442083090543747,
0.06833571195602417,
-0.012381384149193764,
0.014379763044416904,
-0.05792840197682381,
0.03137611970305443,
-0.04362594708800316,
-0.011821135878562927,
0.02644004113972187,
-0.03765539079904556,
-0.03328192979097366,
0.0486479289829731,
-0.0006565930671058595,
-0.016654815524816513,
-0.0031924941577017307,
-0.09084218740463257,
-0.01935655064880848,
-0.027002451941370964,
0.020190317183732986,
-0.02988448366522789,
0.01839989423751831,
-0.020349102094769478,
0.02094236947596073,
0.0009836336830630898,
-0.027076713740825653,
-0.025096559897065163,
0.006301197689026594,
0.04218176379799843,
-0.05882556363940239,
-0.012659303843975067,
0.03714725002646446,
0.011332017369568348,
-0.0285102017223835,
0.026675432920455933,
-0.012644818983972073,
0.04099341109395027,
-0.0020386818796396255,
0.009071343578398228,
0.0354909785091877,
-0.022348135709762573,
-0.023527758195996284,
0.02090049907565117,
0.017875725403428078,
0.030093947425484657,
-0.015362368896603584,
0.04695865511894226,
0.03522295132279396,
0.015216431580483913,
0.0025521917268633842,
-0.017662880942225456,
-0.0233315322548151,
0.007743379101157188,
-0.04570819437503815,
0.025321248918771744,
0.012637930922210217,
-0.05543109402060509,
-0.03712543100118637,
-0.021024782210588455,
-0.04195703566074371,
0.03164929524064064,
-0.0185325238853693,
0.01090920902788639,
0.059141043573617935,
-0.007201124913990498,
-0.03010154515504837,
-0.06292475759983063,
-0.021350761875510216,
-0.023293299600481987,
0.011007554829120636,
0.05699094012379646,
-0.04974028095602989,
0.0056688436307013035,
-0.06162869557738304,
-0.0479949414730072,
0.04571656510233879,
0.0379352830350399,
-0.0325557179749012,
0.019708139821887016,
0.03744758293032646,
-0.025332076475024223,
-0.0027203841600567102,
-0.010787859559059143,
-0.03725467994809151,
0.009997749701142311,
0.003953519277274609,
0.018584735691547394,
0.05137684568762779,
0.03865004703402519,
-0.02437658980488777,
-0.030026854947209358,
-0.036670438945293427,
-0.02708939090371132,
-0.057285480201244354,
-0.013609780929982662,
0.06687629222869873
] |
AlekseyKulnevich/Pegasus-QuestionGeneration | [
"pytorch",
"pegasus",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"PegasusForConditionalGeneration"
],
"model_type": "pegasus",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 17 | null | **Usage HuggingFace Transformers for question generation task**
```
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained("AlekseyKulnevich/Pegasus-QuestionGeneration")
tokenizer = PegasusTokenizer.from_pretrained('google/pegasus-large')
input_text # your text
input_ = tokenizer.batch_encode_plus([input_text], max_length=1024, pad_to_max_length=True,
truncation=True, padding='longest', return_tensors='pt')
input_ids = input_['input_ids']
input_mask = input_['attention_mask']
questions = model.generate(input_ids=input_ids,
attention_mask=input_mask,
num_beams=32,
no_repeat_ngram_size=2,
early_stopping=True,
num_return_sequences=10)
questions = tokenizer.batch_decode(questions, skip_special_tokens=True)
```
**Decoder configuration examples:**
[**Input text you can see here**](https://www.bbc.com/news/science-environment-59775105)
```
questions = model.generate(input_ids=input_ids,
attention_mask=input_mask,
num_beams=32,
no_repeat_ngram_size=2,
early_stopping=True,
num_return_sequences=10)
tokenizer.batch_decode(questions, skip_special_tokens=True)
```
output:
1. *What is the impact of human induced climate change on tropical cyclones?*
2. *What is the impact of climate change on tropical cyclones?*
3. *What is the impact of human induced climate change on tropical cyclone formation?*
4. *How many tropical cyclones will occur in the mid-latitudes?*
5. *What is the impact of climate change on the formation of tropical cyclones?*
6. *Is it possible for a tropical cyclone to form in the middle latitudes?*
7. *How many tropical cyclones will be formed in the mid-latitudes?*
8. *How many tropical cyclones will there be in the mid-latitudes?*
9. *How many tropical cyclones will form in the mid-latitudes?*
10. *What is the impact of global warming on tropical cyclones?*
11. *How long does it take for a tropical cyclone to form?*
12. 'What are the impacts of climate change on tropical cyclones?*
13. *What are the effects of climate change on tropical cyclones?*
14. *How many tropical cyclones will be able to form in the middle latitudes?*
15. *What is the impact of climate change on tropical cyclone formation?*
16. *What is the effect of climate change on tropical cyclones?*
17. *How long does it take for a tropical cyclone to form in the middle latitude?*
18. *How many tropical cyclones will occur in the middle latitudes?*
19. *How many tropical cyclones are likely to form in the midlatitudes?*
20. *How many tropical cyclones are likely to form in the middle latitudes?*
21. *How many tropical cyclones are expected to form in the midlatitudes?*
22. *How many tropical cyclones will be formed in the middle latitudes?*
23. *How many tropical cyclones will there be in the middle latitudes?*
24. *How long will it take for a tropical cyclone to form in the middle latitude?*
25. *What is the impact of global warming on tropical cyclone formation?*
26. *How many tropical cyclones will form in the middle latitudes?*
27. *How many tropical cyclones can we expect to form in the middle latitudes?*
28. *Is it possible for a tropical cyclone to form in the middle latitude?*
29. *What is the effect of climate change on tropical cyclone formation?*
30. *What are the effects of climate change on tropical cyclone formation?*
Also you can play with the following parameters in generate method:
-top_k
-top_p
[**Meaning of parameters to generate text you can see here**](https://huggingface.co/blog/how-to-generate) | [
0.007300873752683401,
-0.02193848229944706,
-0.010622253641486168,
0.04952740669250488,
0.03560711815953255,
0.013048920780420303,
-0.009913694113492966,
-0.01903858222067356,
-0.027504954487085342,
0.038956232368946075,
0.014056339859962463,
0.017486203461885452,
0.005636075511574745,
0.04467109963297844,
-0.011638198979198933,
-0.032098691910505295,
-0.02850222960114479,
0.005146574229001999,
-0.05615118891000748,
-0.03668264299631119,
-0.015866845846176147,
0.027656327933073044,
-0.010022592730820179,
0.0049680545926094055,
-0.0031017137225717306,
0.024602090939879417,
-0.007506779860705137,
-0.003832613816484809,
0.0003475574485491961,
-0.08447152376174927,
0.003885573009029031,
-0.025308137759566307,
-0.01595992036163807,
-0.007305996958166361,
-0.00383460009470582,
0.0010376577265560627,
0.025408007204532623,
0.0007197439554147422,
0.014771660789847374,
0.03912706300616264,
-0.001416753395460546,
-0.0010878288885578513,
-0.00826948881149292,
-0.003667208831757307,
0.04388406127691269,
-0.007780277635902166,
-0.05397266522049904,
-0.012283043004572392,
0.043326690793037415,
-0.024228939786553383,
-0.0559886172413826,
-0.08024682104587555,
-0.04442568123340607,
0.014579764567315578,
-0.009714948013424873,
-0.0222857017070055,
-0.05643343925476074,
-0.028852814808487892,
0.05512284114956856,
-0.04074951633810997,
-0.025664960965514183,
0.010452327318489552,
-0.05938751623034477,
0.024626264348626137,
0.034850385040044785,
-0.04613766819238663,
-0.009931608103215694,
-0.03180275857448578,
-0.020734133198857307,
-0.055008385330438614,
0.06955765187740326,
-0.058850228786468506,
0.048821449279785156,
-0.10797296464443207,
0.025618892163038254,
0.004430874716490507,
0.034585580229759216,
0.044992659240961075,
-0.007516855839639902,
0.06449395418167114,
0.02511490136384964,
-0.006252706982195377,
0.0024413680657744408,
-0.015444351360201836,
0.0074696894735097885,
0.014414398930966854,
-0.048318661749362946,
0.011120077222585678,
-0.0013184064300730824,
0.05290090665221214,
-0.016863912343978882,
-0.04916108399629593,
-0.03406317159533501,
-0.011979885399341583,
0.005841606296598911,
0.018924931064248085,
0.025246217846870422,
0.011108633130788803,
0.017725277692079544,
0.002324470551684499,
0.0239778533577919,
0.05178840830922127,
-0.02885431796312332,
0.059411078691482544,
-0.009223838336765766,
0.00896763801574707,
-0.01619735360145569,
-0.04878450930118561,
-0.056749727576971054,
0.04591894894838333,
0.03590434417128563,
-0.015637904405593872,
-0.032034654170274734,
-0.009482165798544884,
0.024709515273571014,
-0.02903326414525509,
0.05995013192296028,
-0.019638247787952423,
-0.044695403426885605,
-0.037387337535619736,
0.03616265952587128,
0.009535417892038822,
-0.008310435339808464,
0.01441740058362484,
-0.0482194758951664,
0.02541552111506462,
-0.036893781274557114,
-0.02949247509241104,
-0.0011004313128069043,
0.0003376067616045475,
-0.00521728815510869,
0.03420315682888031,
0.023034291341900826,
-0.03173219785094261,
0.019018935039639473,
0.02387992851436138,
-0.0638638436794281,
0.03378989174962044,
0.023045482113957405,
0.11113594472408295,
-0.09125322103500366,
-0.046009428799152374,
0.014493832364678383,
0.03217238932847977,
-0.04454900324344635,
-0.02085144817829132,
0.007537017576396465,
-0.026451008394360542,
-0.008166647516191006,
-0.00014486347208730876,
0.07879085838794708,
-0.03335287794470787,
0.015504542738199234,
0.011442001909017563,
0.011420669965445995,
0.027948802337050438,
-0.0365942157804966,
-0.023674923926591873,
0.0022640153765678406,
0.0071855890564620495,
-0.037973612546920776,
0.03630456328392029,
-0.005334408022463322,
0.006952898111194372,
-0.036956772208213806,
-0.03589225187897682,
0.016760878264904022,
0.07493208348751068,
0.009433561004698277,
-0.018983548507094383,
-0.017125817015767097,
0.03171182796359062,
0.042159657925367355,
0.020995330065488815,
-0.03519774228334427,
0.02319745533168316,
0.07003462314605713,
0.02948867343366146,
-0.029338419437408447,
0.029966631904244423,
0.012799732387065887,
-0.040535010397434235,
-0.020273443311452866,
-0.0023731174878776073,
-0.020771123468875885,
-0.03244476020336151,
0.04413783922791481,
0.023207316175103188,
-0.023266710340976715,
-0.007972494699060917,
-0.001981666311621666,
0.06331110745668411,
0.009168785065412521,
-0.018360359594225883,
-0.006541062146425247,
-0.004925958812236786,
0.000269903102889657,
0.0499163493514061,
-0.020138120278716087,
0.02728067710995674,
-0.02121647633612156,
-0.02630196511745453,
0.03861544653773308,
0.014534282498061657,
0.009168143384158611,
0.05064370855689049,
-0.028872713446617126,
0.08157258480787277,
-0.05014093592762947,
0.010800814256072044,
-0.05936407670378685,
-0.027655158191919327,
-0.004731772001832724,
0.021099574863910675,
0.03733716160058975,
0.04916869476437569,
0.010000934824347496,
-0.009919235482811928,
0.04543650895357132,
0.07322573661804199,
0.06467368453741074,
0.015988273546099663,
-0.014480063691735268,
0.009512478485703468,
0.027464283630251884,
0.08991137892007828,
-0.04799862578511238,
0.00623406982049346,
0.0035982008557766676,
0.023550262674689293,
-0.005521266721189022,
0.020262621343135834,
-0.0021261395886540413,
0.022404281422495842,
-0.030430804938077927,
-0.06440262496471405,
0.058393850922584534,
0.04720889776945114,
0.02704775147140026,
0.02592971734702587,
-0.012896020896732807,
0.03343276306986809,
0.03774619475007057,
-0.0015064526814967394,
0.009421482682228088,
-0.04023149237036705,
0.012053376995027065,
0.013082651421427727,
0.06998372822999954,
-0.05830395966768265,
0.006811581552028656,
0.01308703888207674,
0.03853655979037285,
0.04896058142185211,
-0.03806594759225845,
0.029668547213077545,
0.03512793034315109,
0.00832220260053873,
-0.023904304951429367,
0.027079788967967033,
0.011200876906514168,
0.04693206772208214,
0.07027407735586166,
0.005072332452982664,
0.055395323783159256,
0.018249044194817543,
0.034492187201976776,
0.10643038153648376,
0.02311265654861927,
-0.0024080914445221424,
0.01641247235238552,
0.07366959005594254,
0.014256197027862072,
0.002160077216103673,
0.013021758757531643,
-0.07661999017000198,
0.026949115097522736,
-0.015673428773880005,
0.025735873728990555,
0.0012881866423413157,
-0.01985730417072773,
0.04075782373547554,
0.028281964361667633,
-0.022850003093481064,
0.019153496250510216,
-0.004415314644575119,
-0.008300942368805408,
0.03750643879175186,
-0.018394259735941887,
-0.010170985944569111,
-0.010451031848788261,
-0.029960965737700462,
-0.008645981550216675,
-0.07322085648775101,
-0.04189792647957802,
-0.005381621886044741,
-0.036186475306749344,
-0.028065038844943047,
-0.08675645291805267,
-0.03302180394530296,
-0.08823300153017044,
-0.034317873418331146,
0.04974530637264252,
0.03284295275807381,
0.018352385610342026,
-0.02872435189783573,
0.015011439099907875,
-0.05078990384936333,
-0.06667952984571457,
-0.03983435779809952,
-0.050408024340867996,
-0.030105577781796455,
-0.044169846922159195,
0.026834828779101372,
0.02301781065762043,
0.03676634281873703,
-0.018941272050142288,
-0.01639031432569027,
-0.05681970342993736,
0.0076040285639464855,
0.047363732010126114,
0.025998765602707863,
-0.028233719989657402,
-0.08471699059009552,
0.02605762705206871,
-0.010245176032185555,
0.025742115452885628,
-0.030910903587937355,
-0.016539260745048523,
0.10575699806213379,
0.07125125825405121,
0.02777196280658245,
0.0032484056428074837,
-0.030248206108808517,
-0.03740423172712326,
-0.013662828132510185,
-0.020944440737366676,
-0.012686248868703842,
-0.012904876843094826,
-0.03629881888628006,
-0.05121763423085213,
0.009289540350437164,
-0.011575295589864254,
-0.017762023955583572,
0.00941863376647234,
0.02065085805952549,
0.05344151705503464,
0.04168960452079773,
0.03944460675120354,
0.030832715332508087,
-0.037311531603336334,
-0.03471096232533455,
0.04548065364360809,
0.0037908332888036966,
0.03432261943817139,
-0.0640387013554573,
-0.03676870837807655,
0.0557815283536911,
0.009372703731060028,
0.009807247668504715,
-0.014638036489486694,
0.06887727230787277,
0.010751673951745033,
-0.03046574257314205,
-0.013240471482276917,
-0.002641890663653612,
-0.0007225057343021035,
0.0016953879967331886,
0.017406878992915154,
-0.018801510334014893,
-0.04605112969875336,
-0.04768627509474754,
-0.017140032723546028,
0.03148450702428818,
-0.05104686692357063,
-0.06530875712633133,
-0.04574118182063103,
0.01622837409377098,
0.0008042340632528067,
0.009519999846816063,
-0.03524420037865639,
-0.008027673698961735,
-0.05405260622501373,
-0.009657181799411774,
-0.00006100039172451943,
0.009967398829758167,
0.01719828136265278,
0.03251044824719429,
0.018621178343892097,
0.014220925979316235,
0.03071669675409794,
0.037702035158872604,
0.07184024155139923,
-0.00702050793915987,
-0.04328367859125137,
0.007923307828605175,
-0.0016091775614768267,
0.012925668619573116,
-0.00626587588340044,
-0.011878548189997673,
-0.0341053307056427,
-0.08110694587230682,
-0.00040994706796482205,
0.033632297068834305,
-0.02328283153474331,
-0.018394960090517998,
0.02676100842654705,
-0.006695955991744995,
-0.026839114725589752,
0.010146897286176682,
0.025299012660980225,
0.050293125212192535,
-0.04739338532090187,
0.05976971238851547,
0.024336349219083786,
0.030233167111873627,
-0.034993987530469894,
0.03642376512289047,
-0.01679813303053379,
0.010513905435800552,
0.010927186347544193,
0.046863146126270294,
0.041800159960985184,
0.06929536163806915,
0.022410983219742775,
0.04091272130608559,
-0.04748734086751938,
0.05055150017142296,
0.03541373088955879,
-0.022718926891684532,
-0.05241067335009575,
0.00854030717164278,
0.007949658669531345,
-0.025980038568377495,
0.00685929786413908,
-0.015360232442617416,
0.0016922256909310818,
0.03711719810962677,
0.007578906137496233,
-0.025705570355057716,
0.0036384169943630695,
-0.03851339593529701,
-0.036789581179618835,
-0.03792877495288849,
0.012958124279975891,
-0.029806185513734818,
-0.008873609825968742,
0.02694534696638584,
0.041390255093574524,
0.007986003533005714,
0.04535960406064987,
0.04957642778754234,
0.008515864610671997,
-0.08038151264190674,
0.03775442764163017,
0.02708573266863823,
-0.05432968959212303,
-0.06646554917097092,
-0.039582978934049606,
0.035653408616781235,
0.030309012159705162,
0.0022967481054365635,
-0.09927893429994583,
0.040335580706596375,
0.029138347133994102,
-0.08843839168548584,
0.06299139559268951,
-0.024761002510786057,
0.019664602354168892,
0.06830790638923645,
-0.007073915563523769,
0.054751526564359665,
-0.0633198693394661,
0.02005869522690773,
0.017786646261811256,
0.06445930898189545,
-0.0320841409265995,
-0.03404924273490906,
-0.08398265391588211,
0.039886537939310074,
0.04438804090023041,
0.05424316227436066,
0.053993381559848785,
-0.012750416994094849,
-0.05790874361991882,
0.010981055907905102,
0.05697925388813019,
-0.03458539769053459,
0.03931668400764465,
0.030480001121759415,
0.0254575926810503,
-0.06624017655849457,
-0.02998143620789051,
-0.014564847573637962,
0.012480060569941998,
0.043227724730968475,
-0.014270097948610783,
-0.01039410475641489,
-0.015415273606777191,
0.02015269733965397,
-0.015193202532827854,
-0.029876768589019775,
-0.06727588921785355,
0.044776204973459244,
0.004489031154662371,
-0.025820542126893997,
0.04581369832158089,
0.048466745764017105,
0.03690610080957413,
0.0640818402171135,
-0.027834603562951088,
0.008464175276458263,
-0.043157853186130524,
0.019592728465795517,
-0.05380867421627045,
-0.013848339207470417,
-0.014960352331399918,
-0.04063088819384575,
0.0011311856796965003,
-0.03871092572808266,
-0.05428062006831169,
-0.031216397881507874,
-0.026850342750549316,
0.02432849630713463,
-0.0056966193951666355,
0.0055358316749334335,
-0.013740992173552513,
0.013728984631597996,
-0.05982833728194237,
-0.00957456324249506,
-0.03051326610147953,
-0.020220505073666573,
-0.05107274651527405,
-0.06201789155602455,
0.03696943446993828,
-0.0018681699875742197,
0.023138344287872314,
0.005993011873215437,
0.022604571655392647,
0.02362564206123352,
0.012992795556783676,
-0.012881542555987835,
0.00802812073379755,
-0.01125605870038271,
-0.04516320303082466,
-0.013034213334321976,
0.01793820783495903,
-0.013660137541592121,
0.04943098872900009,
-0.008977281861007214,
0.024146229028701782,
0.0068346536718308926,
-0.0061216652393341064,
-0.03204856812953949,
-0.004579801578074694,
0.0003555690054781735,
-0.08072911947965622,
-0.0307313259691,
-0.020779859274625778,
-0.03310044854879379,
0.023174943402409554,
-0.012038074433803558,
-0.03201298788189888,
-0.02238748036324978,
0.01168277021497488,
0.0492955781519413,
-0.00740425568073988,
-0.023080861195921898,
0.019837724044919014,
-0.028321903198957443,
0.016539832577109337,
-0.07272394001483917,
0.036902327090501785,
-0.007858789525926113,
0.005575103685259819,
-0.016307197511196136,
0.005365687422454357,
-0.037695322185754776,
0.05430951341986656,
-0.03401359170675278,
-0.021808158606290817,
-0.00452514598146081,
-0.0045293946750462055,
-0.04773763194680214,
0.030744321644306183,
-0.011428151279687881,
0.03546246886253357,
-0.0778636783361435,
0.036722537130117416,
-0.04866427555680275,
-0.0022755132522433996,
-0.0061463965103030205,
0.02318059280514717,
-0.059847310185432434,
-0.01933976821601391,
-0.04026838392019272,
-0.017535807564854622,
0.027635445818305016,
0.018234625458717346,
0.010423485189676285,
-0.0002266646479256451,
-0.006120970007032156,
-0.0006849725032225251,
0.012646542862057686,
-0.06432640552520752,
-0.001917960704304278,
-0.028937648981809616,
-0.015590171329677105,
-0.01280941441655159,
0.029476666823029518,
0.06091843545436859,
-0.0231638140976429,
-0.036317307502031326,
0.06350401043891907,
0.01656428724527359,
0.020705528557300568,
0.023904111236333847,
0.0025003126356750727,
0.02467944286763668,
0.00013370371016208082,
-0.048102349042892456,
0.012350172735750675,
-0.007240840699523687,
-0.038884639739990234,
0.017408670857548714,
-0.03710509091615677,
0.01600527949631214,
-0.010394579730927944,
-0.04069395735859871,
-0.025498831644654274,
0.08277963101863861,
0.018274037167429924,
0.03905549645423889,
0.031028494238853455,
-0.02237606793642044,
0.018181543797254562,
0.014273769222199917,
-0.04263182356953621,
0.011270911432802677,
-0.023296304047107697,
-0.022074906155467033,
0.07341960817575455,
-0.010339264757931232,
-0.0013628993183374405,
0.02525750920176506,
0.0026564467698335648,
-0.05466778203845024,
0.045626893639564514,
-0.041130490601062775,
0.020570332184433937,
0.04328269511461258,
-0.03224534913897514,
-0.02790907211601734,
-0.05008425563573837,
0.05453803017735481,
-0.06401052325963974,
0.05705668777227402,
0.037511393427848816,
0.016004115343093872,
0.0005717185558751225,
-0.025746433064341545,
-0.059634942561388016,
0.019817166030406952,
-0.046179890632629395,
0.07595854252576828,
-0.017987390980124474,
-0.04644225537776947,
0.08628153800964355,
0.03450870141386986,
-0.07036850601434708,
0.023591797798871994,
0.055269964039325714,
0.03840190917253494,
0.04285389930009842,
0.05958189815282822,
-0.03892919048666954,
0.006629910320043564,
-0.036491140723228455,
0.04062105342745781,
-0.027722841128706932,
-0.03650832548737526,
0.011575412005186081,
-0.04253518953919411,
-0.029426585882902145,
0.016290534287691116,
-0.006293783895671368,
-0.009588385000824928,
0.00019207759760320187,
-0.09868397563695908,
-0.04232997074723244,
-0.01400397252291441,
0.015255775302648544,
-0.03755073621869087,
0.010239622555673122,
-0.039985258132219315,
0.029768312349915504,
0.016377098858356476,
-0.012633454985916615,
-0.024399029091000557,
-0.011113729327917099,
0.02092178538441658,
-0.061431966722011566,
-0.028536947444081306,
0.033042777329683304,
0.0005580703727900982,
-0.01930386573076248,
0.021808380261063576,
-0.007830667309463024,
0.0359826497733593,
0.003926713019609451,
0.0005095340311527252,
0.04249795898795128,
-0.04573103412985802,
-0.0014019431546330452,
0.015866514295339584,
0.013884415850043297,
0.031171221286058426,
-0.030197612941265106,
0.04941900447010994,
0.02525436133146286,
0.020955625921487808,
0.007414556574076414,
-0.03425432741641998,
-0.009838644415140152,
0.024942055344581604,
-0.028963882476091385,
0.041760340332984924,
0.0018855094676837325,
-0.06799719482660294,
-0.018754178658127785,
-0.025303177535533905,
-0.02519940212368965,
0.02519039995968342,
-0.021908100694417953,
-0.008269697427749634,
0.057240791618824005,
-0.017995601519942284,
-0.015757497400045395,
-0.07226497679948807,
-0.014014532789587975,
-0.018170274794101715,
0.01768920011818409,
0.052513107657432556,
-0.0659860372543335,
0.004286413546651602,
-0.08163599669933319,
-0.03340773656964302,
0.05038042366504669,
0.043176814913749695,
-0.03830058500170708,
0.03742026910185814,
0.04344842582941055,
-0.01656293123960495,
0.02324751950800419,
-0.0050868378020823,
-0.021170707419514656,
0.014806411229074001,
-0.011064068414270878,
0.013694197870790958,
0.0574621707201004,
0.03881945088505745,
-0.020993832498788834,
-0.03093397431075573,
-0.038446441292762756,
-0.023138638585805893,
-0.03430457040667534,
-0.01800956204533577,
0.08909119665622711
] |
AlexN/xls-r-300m-fr-0 | [
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"fr",
"dataset:mozilla-foundation/common_voice_8_0",
"transformers",
"mozilla-foundation/common_voice_8_0",
"generated_from_trainer",
"robust-speech-event",
"hf-asr-leaderboard",
"license:apache-2.0",
"model-index"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | null | ---
language:
- fr
license: apache-2.0
tags:
- automatic-speech-recognition
- mozilla-foundation/common_voice_8_0
- generated_from_trainer
- robust-speech-event
- hf-asr-leaderboard
datasets:
- mozilla-foundation/common_voice_8_0
model-index:
- name: xls-r-300m-fr
results:
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice 8.0 fr
type: mozilla-foundation/common_voice_8_0
args: fr
metrics:
- name: Test WER
type: wer
value: 36.81
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Dev Data
type: speech-recognition-community-v2/dev_data
args: fr
metrics:
- name: Test WER
type: wer
value: 35.55
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Test Data
type: speech-recognition-community-v2/eval_data
args: fr
metrics:
- name: Test WER
type: wer
value: 39.94
---
<!-- 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. -->
#
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the MOZILLA-FOUNDATION/COMMON_VOICE_8_0 - FR dataset.
It achieves the following results on the evaluation set:
- Loss: 0.2388
- Wer: 0.3681
## 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: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 1500
- num_epochs: 2.0
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Wer |
|:-------------:|:-----:|:-----:|:---------------:|:------:|
| 4.3748 | 0.07 | 500 | 3.8784 | 1.0 |
| 2.8068 | 0.14 | 1000 | 2.8289 | 0.9826 |
| 1.6698 | 0.22 | 1500 | 0.8811 | 0.7127 |
| 1.3488 | 0.29 | 2000 | 0.5166 | 0.5369 |
| 1.2239 | 0.36 | 2500 | 0.4105 | 0.4741 |
| 1.1537 | 0.43 | 3000 | 0.3585 | 0.4448 |
| 1.1184 | 0.51 | 3500 | 0.3336 | 0.4292 |
| 1.0968 | 0.58 | 4000 | 0.3195 | 0.4180 |
| 1.0737 | 0.65 | 4500 | 0.3075 | 0.4141 |
| 1.0677 | 0.72 | 5000 | 0.3015 | 0.4089 |
| 1.0462 | 0.8 | 5500 | 0.2971 | 0.4077 |
| 1.0392 | 0.87 | 6000 | 0.2870 | 0.3997 |
| 1.0178 | 0.94 | 6500 | 0.2805 | 0.3963 |
| 0.992 | 1.01 | 7000 | 0.2748 | 0.3935 |
| 1.0197 | 1.09 | 7500 | 0.2691 | 0.3884 |
| 1.0056 | 1.16 | 8000 | 0.2682 | 0.3889 |
| 0.9826 | 1.23 | 8500 | 0.2647 | 0.3868 |
| 0.9815 | 1.3 | 9000 | 0.2603 | 0.3832 |
| 0.9717 | 1.37 | 9500 | 0.2561 | 0.3807 |
| 0.9605 | 1.45 | 10000 | 0.2523 | 0.3783 |
| 0.96 | 1.52 | 10500 | 0.2494 | 0.3788 |
| 0.9442 | 1.59 | 11000 | 0.2478 | 0.3760 |
| 0.9564 | 1.66 | 11500 | 0.2454 | 0.3733 |
| 0.9436 | 1.74 | 12000 | 0.2439 | 0.3747 |
| 0.938 | 1.81 | 12500 | 0.2411 | 0.3716 |
| 0.9353 | 1.88 | 13000 | 0.2397 | 0.3698 |
| 0.9271 | 1.95 | 13500 | 0.2388 | 0.3681 |
### Framework versions
- Transformers 4.17.0.dev0
- Pytorch 1.10.2+cu102
- Datasets 1.18.2.dev0
- Tokenizers 0.11.0
| [
-0.02094249799847603,
-0.009222322143614292,
-0.02397555112838745,
0.030666448175907135,
0.044284574687480927,
0.03192916139960289,
-0.02757592685520649,
-0.019710270687937737,
-0.03430653735995293,
0.060805462300777435,
0.034385405480861664,
-0.027825545519590378,
0.00875111110508442,
0.004904855974018574,
-0.03747910261154175,
-0.060584913939237595,
-0.028971659019589424,
-0.003917199093848467,
-0.04076993092894554,
-0.013755437918007374,
0.016670944169163704,
0.03818754851818085,
-0.022813772782683372,
0.02459416352212429,
-0.010256091132760048,
0.006747544277459383,
-0.02183154970407486,
0.02548319101333618,
-0.002774406224489212,
-0.05620087683200836,
-0.01218718197196722,
-0.047629568725824356,
-0.048904694616794586,
-0.03113413229584694,
-0.0008384514949284494,
0.016549836844205856,
-0.009080952033400536,
0.024353841319680214,
0.04267524927854538,
0.043311964720487595,
-0.00435746181756258,
0.014018082991242409,
-0.021387221291661263,
-0.007603129372000694,
0.03914030268788338,
-0.0025451926048845053,
-0.0363328643143177,
-0.035160843282938004,
0.03689398616552353,
-0.04135649651288986,
-0.04891574755311012,
-0.053866609930992126,
0.01842627301812172,
0.021028593182563782,
-0.01472968328744173,
-0.033258769661188126,
-0.05155481770634651,
-0.006515200715512037,
0.0827118381857872,
-0.04104868695139885,
-0.03156576678156853,
0.02532280795276165,
-0.050232358276844025,
0.005115422885864973,
0.04042258486151695,
-0.05893443524837494,
0.019378328695893288,
-0.03331419825553894,
0.03791641816496849,
-0.03106570802628994,
0.05131583288311958,
-0.03140178695321083,
0.007752374745905399,
-0.09194167703390121,
-0.013883642852306366,
-0.00021320271480362862,
0.045661862939596176,
0.05763234570622444,
-0.02898237481713295,
0.0537763275206089,
0.02359607256948948,
0.009686808101832867,
0.04331909120082855,
-0.021064920350909233,
0.01365052629262209,
0.03761253133416176,
-0.04340837523341179,
0.021416954696178436,
0.023493170738220215,
0.0069349282421171665,
-0.02365732565522194,
-0.04428042843937874,
-0.023025983944535255,
-0.05143206939101219,
0.0025623845867812634,
0.047967880964279175,
0.05781123787164688,
-0.028817523270845413,
0.04205279424786568,
0.024117298424243927,
0.027484208345413208,
0.013222039677202702,
-0.027505433186888695,
0.07316126674413681,
-0.026954198256134987,
-0.013962126336991787,
-0.014955366030335426,
-0.0022365953773260117,
-0.030993932858109474,
0.025185545906424522,
0.019907619804143906,
-0.026844577863812447,
-0.04962857440114021,
0.032785944640636444,
-0.00037679585511796176,
-0.03865285590291023,
0.06035042181611061,
-0.0489715039730072,
-0.0289017166942358,
-0.05875489488244057,
0.034176185727119446,
0.025810567662119865,
0.022332878783345222,
0.015697579830884933,
-0.04531651362776756,
0.013575797900557518,
-0.02806253917515278,
-0.03439711779356003,
0.006244458258152008,
-0.008830724284052849,
0.0025977464392781258,
0.05192684754729271,
0.017041340470314026,
-0.059988297522068024,
-0.013763551600277424,
-0.006547880358994007,
-0.04913584515452385,
0.017204314470291138,
-0.006580440327525139,
0.08945540338754654,
-0.05956565588712692,
-0.06500430405139923,
0.014502540230751038,
0.022699033841490746,
-0.024812063202261925,
0.027566183358430862,
0.025332827121019363,
-0.012700279243290424,
-0.03935069218277931,
0.005493406672030687,
0.038117825984954834,
-0.07260624319314957,
-0.006135100033134222,
0.06249662861227989,
-0.02345883846282959,
0.04937167838215828,
-0.03054436482489109,
-0.014447738416492939,
0.012714603915810585,
-0.019148103892803192,
0.001191270537674427,
0.03564733639359474,
-0.006312839221209288,
-0.020999165251851082,
-0.03840752691030502,
-0.05185900628566742,
0.0006836637621745467,
0.0599069707095623,
-0.006137733813375235,
-0.015544704161584377,
-0.04984453693032265,
0.03202754259109497,
0.05299932137131691,
0.014471123926341534,
-0.049957506358623505,
0.041050828993320465,
0.060061078518629074,
0.049787212163209915,
-0.029083337634801865,
0.06860058754682541,
0.014738927595317364,
-0.0261298269033432,
-0.058369964361190796,
0.012627452611923218,
0.00009831243369262666,
-0.0581357404589653,
0.000863351917359978,
0.047894492745399475,
0.014207402244210243,
-0.040410857647657394,
-0.05492992326617241,
0.06000791862607002,
-0.008437947370111942,
-0.01747037284076214,
0.003205877961590886,
-0.01811089739203453,
-0.04102971404790878,
0.03493916243314743,
-0.024518882855772972,
0.010752375237643719,
-0.03317474201321602,
-0.04583073407411575,
0.015853209421038628,
0.01857539266347885,
0.028391817584633827,
0.0545993410050869,
-0.0012692306190729141,
0.08993405848741531,
-0.025288855656981468,
0.01772863045334816,
-0.025916190817952156,
-0.057878151535987854,
-0.02114955335855484,
0.0675525888800621,
0.034636303782463074,
0.07782874256372452,
-0.00420517148450017,
-0.05501381307840347,
0.03490618243813515,
0.07485198974609375,
0.07328099012374878,
0.0017137426184490323,
-0.036534443497657776,
-0.014937633648514748,
0.047688357532024384,
0.04370018467307091,
-0.06268912553787231,
-0.029936060309410095,
0.0008585500763729215,
0.020968977361917496,
-0.017870519310235977,
-0.0017217193963006139,
-0.02160957269370556,
0.05470095947384834,
-0.06076545640826225,
-0.07975441217422485,
0.06764912605285645,
0.03019787184894085,
0.008501814678311348,
0.0330658033490181,
-0.014225645922124386,
-0.0059168157167732716,
0.024502433836460114,
0.016423018649220467,
-0.006295467261224985,
-0.037312254309654236,
0.019916284829378128,
0.015902578830718994,
0.039412446320056915,
-0.06837975233793259,
0.04049525409936905,
-0.03813054785132408,
0.0022138562053442,
0.03866201639175415,
-0.041897423565387726,
0.037114616483449936,
0.024251490831375122,
0.022824060171842575,
-0.047744181007146835,
-0.0018882331205531955,
0.021762100979685783,
0.036477163434028625,
0.0355120524764061,
0.014920031651854515,
0.0625457689166069,
0.026960790157318115,
0.051551152020692825,
0.07027094066143036,
0.04626762494444847,
0.005940091796219349,
0.00646196398884058,
0.06791210174560547,
-0.004493034444749355,
-0.027920890599489212,
0.07483957707881927,
-0.04052378982305527,
0.027636099606752396,
-0.04709847271442413,
-0.0018922134768217802,
-0.007869518361985683,
0.0006796377128921449,
0.017509734258055687,
0.0075826323591172695,
-0.00965816155076027,
-0.0016801555175334215,
-0.024643393233418465,
-0.03931667283177376,
0.046505559235811234,
-0.015327817760407925,
-0.024067483842372894,
-0.008418213576078415,
0.0026776622980833054,
-0.006505856290459633,
-0.07007303833961487,
-0.019166870042681694,
-0.0043848720379173756,
-0.038119472563266754,
0.0008787196129560471,
-0.07302258163690567,
-0.015881352126598358,
-0.062432434409856796,
-0.00583577761426568,
0.023907091468572617,
0.017976967617869377,
0.01517169363796711,
-0.04484010115265846,
0.0077327522449195385,
-0.05235281586647034,
-0.04149039834737778,
-0.05628887563943863,
-0.027136223390698433,
-0.03445739299058914,
-0.06235760450363159,
0.0348043292760849,
0.0380464568734169,
0.04232868552207947,
0.008057840168476105,
-0.009019666351377964,
-0.02780633419752121,
-0.01612112857401371,
0.05146466940641403,
0.043397367000579834,
-0.03515509143471718,
-0.04790512099862099,
0.018044348806142807,
-0.040761981159448624,
0.014073170721530914,
-0.0154657494276762,
-0.03447643667459488,
0.07870916277170181,
0.06412667781114578,
0.019794350489974022,
0.024443600326776505,
-0.035530731081962585,
-0.04258713871240616,
-0.054271403700113297,
-0.017539851367473602,
-0.027843572199344635,
-0.01594991609454155,
-0.04314598813652992,
-0.0311473086476326,
-0.012735980562865734,
-0.02073640003800392,
-0.0022118166089057922,
-0.01590709760785103,
-0.001719531137496233,
0.042935386300086975,
0.02656356431543827,
0.017104720696806908,
0.030787847936153412,
-0.03595754876732826,
-0.057470668107271194,
0.08417164534330368,
0.02265165187418461,
0.013797760009765625,
-0.07249612361192703,
-0.033565863966941833,
0.016928134486079216,
0.016821805387735367,
-0.011828958988189697,
-0.01591339334845543,
0.08165811002254486,
0.002627943642437458,
-0.008221983909606934,
0.0038407882675528526,
-0.029633622616529465,
-0.014212979935109615,
-0.025555722415447235,
-0.012610032223165035,
-0.004372799303382635,
-0.059856582432985306,
-0.003893304616212845,
0.015598480589687824,
0.04271446168422699,
-0.07694453746080399,
-0.0355711430311203,
-0.02563082054257393,
0.039909716695547104,
0.03395910561084747,
-0.0024931831285357475,
-0.03676442801952362,
0.00820649042725563,
-0.059589285403490067,
-0.021083982661366463,
0.020099323242902756,
0.027590783312916756,
0.016719885170459747,
0.052483756095170975,
0.018605912104249,
-0.03137793019413948,
0.04313536360859871,
0.03871683403849602,
0.06818381696939468,
0.022193772718310356,
-0.05631681904196739,
0.009470377117395401,
0.00007011316483840346,
0.01680273562669754,
-0.005900898482650518,
-0.003224200801923871,
-0.038119491189718246,
-0.08866754919290543,
-0.028115633875131607,
0.008194299414753914,
0.002718497533351183,
-0.021257255226373672,
0.03056732565164566,
-0.015725066885352135,
-0.0007950401632115245,
-0.0007728770142421126,
0.03132212907075882,
0.03290524333715439,
-0.05243733525276184,
0.037958405911922455,
-0.025167450308799744,
0.04991605877876282,
-0.07499773055315018,
0.02765541523694992,
-0.007960094138979912,
-0.022021116688847542,
0.01146641280502081,
0.07440328598022461,
0.0029334616847336292,
0.055028606206178665,
0.07613460719585419,
0.026826903223991394,
-0.043411385267972946,
0.024409249424934387,
0.052362844347953796,
-0.048271916806697845,
-0.040760256350040436,
0.005951238796114922,
-0.009824036620557308,
-0.036444686353206635,
-0.017508935183286667,
-0.032261572778224945,
0.04115073010325432,
0.022624928504228592,
-0.01832793466746807,
-0.0010769413784146309,
0.022152019664645195,
-0.027931762859225273,
-0.0218705665320158,
-0.04945144057273865,
-0.04590745270252228,
0.011733337305486202,
-0.021803421899676323,
0.03174121305346489,
0.029346302151679993,
-0.0031947449315339327,
0.05039462819695473,
0.033704377710819244,
-0.05198743939399719,
-0.021836774423718452,
0.03386051952838898,
0.016714219003915787,
-0.03189272806048393,
-0.05564522370696068,
-0.0014040507376194,
0.04917735978960991,
0.025767236948013306,
-0.015989307314157486,
-0.06557328999042511,
-0.01136564090847969,
0.050556812435388565,
-0.02886270172894001,
0.043041497468948364,
-0.020658405497670174,
0.03573433682322502,
0.05026962608098984,
-0.024333486333489418,
0.04656132683157921,
-0.02957100048661232,
0.0310860276222229,
0.005820543505251408,
-0.010138550773262978,
-0.017634782940149307,
-0.024199528619647026,
-0.06637859344482422,
0.018586009740829468,
0.03828338533639908,
0.028685247525572777,
0.05462943762540817,
-0.013848116621375084,
-0.02512396313250065,
-0.002173912012949586,
0.027096262201666832,
-0.03537677600979805,
0.006530591752380133,
0.02215638943016529,
0.05139496922492981,
-0.02960316464304924,
-0.02877506986260414,
-0.020084869116544724,
0.0013426793739199638,
0.02074548974633217,
-0.00298976618796587,
-0.038558587431907654,
-0.019605988636612892,
0.0403507724404335,
-0.013764187693595886,
-0.026780514046549797,
-0.0837986171245575,
0.03140964359045029,
-0.0030423859134316444,
-0.008814511820673943,
0.0404895581305027,
0.021414214745163918,
0.031038226559758186,
0.05221088230609894,
0.02482997253537178,
0.020691663026809692,
-0.019318779930472374,
0.03150470182299614,
-0.03090015798807144,
-0.02467019110918045,
-0.011945875361561775,
-0.028089502826333046,
-0.0037560893688350916,
-0.026730231940746307,
-0.025572968646883965,
-0.03896188363432884,
-0.008887846022844315,
0.03905497118830681,
-0.025134043768048286,
-0.012251799926161766,
-0.03598548471927643,
0.03709086403250694,
-0.02154483273625374,
-0.027902277186512947,
-0.03192714601755142,
-0.03350432217121124,
-0.05489131063222885,
-0.06385914981365204,
0.035950709134340286,
-0.013539024628698826,
0.019767707213759422,
0.03632406145334244,
0.023477140814065933,
0.03288973495364189,
-0.0014126261230558157,
-0.02645712159574032,
0.026869066059589386,
-0.02325684390962124,
-0.043221715837717056,
-0.03363810479640961,
0.023301538079977036,
0.010660635307431221,
0.07217614352703094,
-0.01935744844377041,
0.013245243579149246,
0.02854301780462265,
-0.046060796827077866,
-0.018144430592656136,
0.022572269663214684,
0.027097633108496666,
-0.04953058063983917,
-0.04152976721525192,
-0.014284797012805939,
-0.04157232865691185,
0.028364190831780434,
-0.021142786368727684,
-0.0026200732681900263,
-0.003626472083851695,
0.011995319277048111,
0.04335358738899231,
-0.0105236591771245,
-0.019340630620718002,
0.03455131873488426,
-0.02340368553996086,
0.010025344789028168,
-0.04501256346702576,
0.06971385329961777,
-0.038089994341135025,
0.012863384559750557,
-0.008200325071811676,
0.010691561736166477,
-0.056885477155447006,
0.028072429820895195,
-0.01420105155557394,
-0.029191548004746437,
0.012276168912649155,
0.03497274965047836,
-0.008903351612389088,
0.01301370095461607,
-0.02207927033305168,
0.014125319197773933,
-0.04776507616043091,
0.08088985830545425,
-0.013871570117771626,
-0.0033578630536794662,
-0.022325552999973297,
0.014846126548945904,
-0.026049979031085968,
0.01565338857471943,
-0.013361110351979733,
-0.050272826105356216,
0.03829796612262726,
0.06849208474159241,
0.030387727543711662,
0.03331833332777023,
-0.023014282807707787,
0.003046236699447036,
0.013899203389883041,
-0.024357395246624947,
-0.0038431156426668167,
0.01584998518228531,
0.03049416095018387,
0.006941467989236116,
0.050244078040122986,
0.030159730464220047,
-0.05407676100730896,
-0.06821166723966599,
0.031306784600019455,
0.008466619066894054,
-0.005578352604061365,
0.017811283469200134,
0.02540350891649723,
0.03606245666742325,
0.05584565922617912,
-0.028550129383802414,
-0.005120024550706148,
-0.03354278951883316,
-0.035578977316617966,
0.02573736011981964,
-0.006681532133370638,
0.004161387216299772,
0.0048453835770487785,
-0.03250395879149437,
-0.03329869359731674,
0.06145479902625084,
0.007390521001070738,
0.01792711764574051,
-0.03360024839639664,
-0.04066047817468643,
0.0075792777352035046,
-0.014964458532631397,
-0.05432412773370743,
0.012779069133102894,
0.007382337469607592,
-0.01860552467405796,
0.07539238035678864,
-0.008340193890035152,
0.017918605357408524,
0.05187874659895897,
0.030434027314186096,
-0.010097695514559746,
0.052031274884939194,
-0.0007375237182714045,
0.007219366263598204,
0.053652361035346985,
-0.06663823127746582,
-0.019081834703683853,
-0.03284826874732971,
0.07055734097957611,
-0.077339306473732,
0.027228668332099915,
0.04428271949291229,
0.009743877686560154,
0.032957952469587326,
-0.040827881544828415,
-0.05801985412836075,
0.032924551516771317,
-0.04298698157072067,
0.09242506325244904,
0.023790854960680008,
-0.04160283878445625,
0.04088301584124565,
0.018924791365861893,
-0.08761345595121384,
0.032905664294958115,
0.03827708959579468,
0.03206867724657059,
-0.0024234235752373934,
0.04629488289356232,
-0.061655063182115555,
0.013261104002594948,
-0.036082472652196884,
0.025508655235171318,
-0.04274866729974747,
0.0033437181264162064,
0.02802044339478016,
-0.041463494300842285,
-0.01798277720808983,
0.018994200974702835,
-0.022542651742696762,
-0.03371944651007652,
0.03478436917066574,
-0.03941437229514122,
-0.03736290708184242,
0.010914160870015621,
0.012176567688584328,
-0.04802364110946655,
0.0018872835207730532,
-0.04049711301922798,
0.003109590383246541,
0.023803826421499252,
0.005208829417824745,
-0.014745856635272503,
-0.027477003633975983,
0.00732977781444788,
-0.049720894545316696,
-0.05114511027932167,
0.045391760766506195,
-0.005580579861998558,
-0.019113978371024132,
0.034082941710948944,
0.016566477715969086,
0.010044662281870842,
0.033745475113391876,
-0.008157603442668915,
0.020009459927678108,
-0.06537958979606628,
-0.0239575132727623,
0.005238891113549471,
0.01624484732747078,
0.016803069040179253,
-0.0009234555182047188,
0.05044899508357048,
0.04678623750805855,
0.009844954125583172,
0.004282324109226465,
-0.023622287437319756,
-0.028633475303649902,
0.036702711135149,
-0.03451203554868698,
0.024988919496536255,
0.011832298710942268,
-0.05675217881798744,
-0.045222360640764236,
-0.013541280291974545,
-0.022767342627048492,
0.014815068803727627,
-0.06478581577539444,
-0.0055403513833880424,
0.03325347602367401,
-0.0366622693836689,
-0.05150340124964714,
-0.08640627562999725,
-0.02158733829855919,
-0.03983479365706444,
0.031187808141112328,
0.03447750210762024,
-0.05011255294084549,
0.008070351555943489,
-0.05063237249851227,
-0.05531252920627594,
0.01873413845896721,
0.003168227383866906,
-0.030547840520739555,
0.04703720286488533,
0.041364602744579315,
-0.06585928797721863,
0.024120960384607315,
0.06514259427785873,
-0.023697732016444206,
0.027163363993167877,
0.029055219143629074,
0.013107075355947018,
0.04809302091598511,
0.021904900670051575,
-0.04794303700327873,
-0.039195466786623,
-0.08893883228302002,
-0.056380484253168106,
-0.02664005570113659,
0.0014248546212911606,
0.05542880669236183
] |
AlexN/xls-r-300m-fr | [
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"fr",
"dataset:mozilla-foundation/common_voice_8_0",
"transformers",
"generated_from_trainer",
"hf-asr-leaderboard",
"mozilla-foundation/common_voice_8_0",
"robust-speech-event",
"model-index"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 17 | null | ---
language:
- fr
tags:
- automatic-speech-recognition
- generated_from_trainer
- hf-asr-leaderboard
- mozilla-foundation/common_voice_8_0
- robust-speech-event
datasets:
- mozilla-foundation/common_voice_8_0
model-index:
- name: xls-r-300m-fr
results:
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: Common Voice 8.0 fr
type: mozilla-foundation/common_voice_8_0
args: fr
metrics:
- name: Test WER
type: wer
value: 21.58
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Dev Data
type: speech-recognition-community-v2/dev_data
args: fr
metrics:
- name: Test WER
type: wer
value: 36.03
- task:
name: Automatic Speech Recognition
type: automatic-speech-recognition
dataset:
name: Robust Speech Event - Test Data
type: speech-recognition-community-v2/eval_data
args: fr
metrics:
- name: Test WER
type: wer
value: 38.86
---
<!-- 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. -->
#
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the MOZILLA-FOUNDATION/COMMON_VOICE_8_0 - FR 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: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 2700
- num_epochs: 1.0
- mixed_precision_training: Native AMP
### Framework versions
- Transformers 4.17.0.dev0
- Pytorch 1.10.2+cu102
- Datasets 1.18.2.dev0
- Tokenizers 0.11.0
| [
-0.01637325994670391,
-0.011713245883584023,
-0.025164050981402397,
0.030176594853401184,
0.040496423840522766,
0.03378641977906227,
-0.028547901660203934,
-0.019923964515328407,
-0.03421279042959213,
0.05733998864889145,
0.040066979825496674,
-0.021452704444527626,
0.010397096164524555,
0.006460075732320547,
-0.03733346611261368,
-0.05882221460342407,
-0.039979372173547745,
-0.003607163205742836,
-0.04855220392346382,
-0.013154175132513046,
0.015702910721302032,
0.03786792606115341,
-0.025405164808034897,
0.025072313845157623,
-0.005876309238374233,
0.00831802561879158,
-0.021242231130599976,
0.02537386305630207,
-0.01010870561003685,
-0.06036091223359108,
-0.016324210911989212,
-0.04639517143368721,
-0.04623211920261383,
-0.03193213790655136,
0.004248649347573519,
0.007631889544427395,
-0.007771158125251532,
0.0238150954246521,
0.040746357291936874,
0.04012907296419144,
-0.0017800664063543081,
0.010343782603740692,
-0.023137148469686508,
-0.014361172914505005,
0.03799585998058319,
0.0036504429299384356,
-0.044422417879104614,
-0.028523970395326614,
0.04105471819639206,
-0.036944933235645294,
-0.046926986426115036,
-0.056900348514318466,
0.0073767597787082195,
0.015996919944882393,
-0.014363495633006096,
-0.02975515089929104,
-0.05602268874645233,
-0.0002403889229753986,
0.08104316890239716,
-0.039614513516426086,
-0.02308841049671173,
0.017639363184571266,
-0.05047791451215744,
0.002269150922074914,
0.03825768455862999,
-0.052956532686948776,
0.013470759615302086,
-0.032333675771951675,
0.03680660203099251,
-0.02992650680243969,
0.05740134418010712,
-0.03777344152331352,
0.010601846501231194,
-0.09147439897060394,
-0.008978230878710747,
0.0004156208597123623,
0.04427791014313698,
0.05900969356298447,
-0.031101705506443977,
0.05719030648469925,
0.021406369283795357,
0.010184835642576218,
0.04193994030356407,
-0.021570760756731033,
0.003270541550591588,
0.040457893162965775,
-0.048303358256816864,
0.028208166360855103,
0.020398836582899094,
0.009145346470177174,
-0.024509072303771973,
-0.047001853585243225,
-0.023823197931051254,
-0.057236332446336746,
0.0025012295227497816,
0.04430762305855751,
0.05291740596294403,
-0.025325730443000793,
0.0353180393576622,
0.02493847720324993,
0.023427968844771385,
0.01875699870288372,
-0.02930617146193981,
0.07951532304286957,
-0.023148274049162865,
-0.01594308577477932,
-0.01905515044927597,
0.0002888088929466903,
-0.028861364349722862,
0.02362927794456482,
0.021184301003813744,
-0.029973840340971947,
-0.04876953735947609,
0.03178144618868828,
-0.004143287893384695,
-0.03733205795288086,
0.05206522345542908,
-0.045927342027425766,
-0.02908219024538994,
-0.05393609032034874,
0.035664550960063934,
0.029385434463620186,
0.017570821568369865,
0.014031687751412392,
-0.04757915064692497,
0.019974784925580025,
-0.026592442765831947,
-0.02950269542634487,
0.006130218505859375,
-0.011839324608445168,
0.004234873689711094,
0.04453166946768761,
0.0130615858361125,
-0.056594118475914,
-0.016872474923729897,
-0.002426998456940055,
-0.05147973820567131,
0.016447311267256737,
-0.002485355595126748,
0.08707785606384277,
-0.05569129437208176,
-0.06295808404684067,
0.015682049095630646,
0.022496603429317474,
-0.029754338786005974,
0.028707511723041534,
0.021734563633799553,
-0.015613908879458904,
-0.036887459456920624,
0.003246261039748788,
0.03821786865592003,
-0.07403799891471863,
-0.008386691100895405,
0.059765323996543884,
-0.03001786209642887,
0.04967894405126572,
-0.03615053743124008,
-0.009836508892476559,
0.011291228234767914,
-0.019727900624275208,
-0.0015172680141404271,
0.03516054153442383,
0.0005947396857663989,
-0.021272718906402588,
-0.04124218970537186,
-0.04807814210653305,
0.0031137275509536266,
0.058092329651117325,
-0.007995338179171085,
-0.010135363787412643,
-0.05572598800063133,
0.033707719296216965,
0.06071880832314491,
0.021275512874126434,
-0.040995776653289795,
0.04279501736164093,
0.05926305428147316,
0.05740314722061157,
-0.0342959500849247,
0.069169782102108,
0.015044503845274448,
-0.02413918823003769,
-0.06351006031036377,
0.009271293878555298,
0.005463767796754837,
-0.05798724293708801,
0.0019427887164056301,
0.04416607320308685,
0.016427161172032356,
-0.03561963140964508,
-0.04487115889787674,
0.058772530406713486,
-0.007777234073728323,
-0.028634941205382347,
0.0044611855410039425,
-0.0173703134059906,
-0.0348910391330719,
0.029516078531742096,
-0.02741752564907074,
0.005528039764612913,
-0.027897909283638,
-0.046377941966056824,
0.017241159453988075,
0.019334247335791588,
0.03018898144364357,
0.051398541778326035,
-0.0044362908229231834,
0.09320084005594254,
-0.025008372962474823,
0.02021011896431446,
-0.027045851573348045,
-0.06385207921266556,
-0.029009439051151276,
0.06538545340299606,
0.03645193949341774,
0.07773499935865402,
-0.0027488158084452152,
-0.05755633860826492,
0.034206125885248184,
0.07320652902126312,
0.0676572248339653,
-0.0012339366367086768,
-0.029627731069922447,
-0.023416228592395782,
0.04844216629862785,
0.0478733666241169,
-0.06480538100004196,
-0.03207911550998688,
0.00044790550600737333,
0.020757397636771202,
-0.01763351447880268,
-0.0057122730650007725,
-0.012989257462322712,
0.04948386177420616,
-0.06894277781248093,
-0.06978169083595276,
0.06553971767425537,
0.03370368108153343,
0.00529683381319046,
0.03903735429048538,
-0.007706583011895418,
-0.003102443413808942,
0.02958851121366024,
0.018536102026700974,
-0.007319881115108728,
-0.032101429998874664,
0.019246133044362068,
0.007658133748918772,
0.04573473334312439,
-0.0684598758816719,
0.03917284309864044,
-0.03666333109140396,
0.0019051209092140198,
0.0502140074968338,
-0.038277626037597656,
0.04220258444547653,
0.019872911274433136,
0.029507026076316833,
-0.04554154351353645,
0.007175229489803314,
0.02360072173178196,
0.03422487527132034,
0.032200898975133896,
0.017252827063202858,
0.05521741509437561,
0.024678386747837067,
0.05917409434914589,
0.07526812702417374,
0.038276489824056625,
0.0003515455755405128,
0.012789910659193993,
0.06497866660356522,
-0.006521678529679775,
-0.033252254128456116,
0.06710807979106903,
-0.04344914108514786,
0.034173235297203064,
-0.044603362679481506,
-0.004137460608035326,
-0.0034803433809429407,
-0.001628731843084097,
0.02066618576645851,
0.011947648599743843,
-0.012318800203502178,
-0.0016412100521847606,
-0.027748046442866325,
-0.041899021714925766,
0.05152549967169762,
-0.01573510840535164,
-0.02181411348283291,
-0.010122494772076607,
0.000005032722128817113,
-0.010637246072292328,
-0.0637172982096672,
-0.02589067816734314,
-0.0047330912202596664,
-0.036332376301288605,
0.00472958292812109,
-0.07198162376880646,
-0.01630743220448494,
-0.06456692516803741,
-0.009565960615873337,
0.020711146295070648,
0.02015085704624653,
0.022494787350296974,
-0.04718724638223648,
0.014819510281085968,
-0.043595511466264725,
-0.03791280463337898,
-0.05039399117231369,
-0.027607092633843422,
-0.03901287540793419,
-0.06334804743528366,
0.035291001200675964,
0.03145531564950943,
0.0440019890666008,
0.015586146153509617,
-0.004487141501158476,
-0.02355761080980301,
-0.010664918459951878,
0.042640019208192825,
0.05048099160194397,
-0.03927043080329895,
-0.046282052993774414,
0.019655950367450714,
-0.03846905007958412,
0.018911344930529594,
-0.0284845270216465,
-0.0357624813914299,
0.07318775355815887,
0.06651733070611954,
0.023604201152920723,
0.027399109676480293,
-0.03291929513216019,
-0.041217077523469925,
-0.054858025163412094,
-0.020100701600313187,
-0.029134979471564293,
-0.012628044001758099,
-0.04787370562553406,
-0.03475174307823181,
-0.011247342452406883,
-0.019148031249642372,
-0.0005815393524244428,
-0.019106406718492508,
-0.0010467034298926592,
0.03497873619198799,
0.03163581341505051,
0.024361727759242058,
0.027625396847724915,
-0.02720598317682743,
-0.06565698981285095,
0.08385249972343445,
0.020299803465604782,
0.009170588105916977,
-0.06434806436300278,
-0.03389459103345871,
0.015336638316512108,
0.012543562799692154,
-0.015473580919206142,
-0.020772483199834824,
0.08120354264974594,
0.00743161840364337,
-0.004985096864402294,
-0.013785011135041714,
-0.03322198614478111,
-0.006446468643844128,
-0.028220342472195625,
-0.011328653432428837,
-0.0035578031092882156,
-0.06129593029618263,
-0.0016220568213611841,
0.007279772311449051,
0.0388140045106411,
-0.08109240233898163,
-0.03928821533918381,
-0.02323288843035698,
0.04701912775635719,
0.032547879964113235,
0.009059995412826538,
-0.04363584518432617,
0.006310491822659969,
-0.05464758723974228,
-0.02295982651412487,
0.020077919587492943,
0.02774721011519432,
0.016101334244012833,
0.04995974153280258,
0.028221972286701202,
-0.02951686456799507,
0.04755759239196777,
0.04278303682804108,
0.06719812750816345,
0.028869589790701866,
-0.05251721665263176,
0.018443673849105835,
0.006003015208989382,
0.0203864648938179,
-0.00036637901212088764,
-0.0072610205970704556,
-0.03783721849322319,
-0.09100179374217987,
-0.024365045130252838,
0.01400854904204607,
0.009371400810778141,
-0.024483561515808105,
0.038866013288497925,
-0.018636975437402725,
0.0013219681568443775,
-0.002111296635121107,
0.03539051115512848,
0.029942475259304047,
-0.059687454253435135,
0.0394621416926384,
-0.018669530749320984,
0.050016164779663086,
-0.0717414990067482,
0.024469509720802307,
-0.0067476979456841946,
-0.026274943724274635,
0.01602691411972046,
0.07099826633930206,
-0.0037382948212325573,
0.055570460855960846,
0.08355828374624252,
0.020519336685538292,
-0.03776146098971367,
0.02783585526049137,
0.04678373783826828,
-0.03377911448478699,
-0.044825997203588486,
-0.0006303185946308076,
-0.0041974508203566074,
-0.03233270347118378,
-0.023821629583835602,
-0.018148178234696388,
0.039672236889600754,
0.02235076017677784,
-0.011952126398682594,
0.00003246303822379559,
0.029676232486963272,
-0.027031827718019485,
-0.01418858952820301,
-0.04486890882253647,
-0.04005569964647293,
0.023277558386325836,
-0.027864431962370872,
0.032638292759656906,
0.02726748213171959,
0.0038526845164597034,
0.047775786370038986,
0.03109746426343918,
-0.05152115970849991,
-0.024789923802018166,
0.031659796833992004,
0.018839847296476364,
-0.039842743426561356,
-0.049133095890283585,
-0.007842491380870342,
0.05649708956480026,
0.01854763925075531,
-0.010980023071169853,
-0.06260409951210022,
-0.008458861149847507,
0.046806540340185165,
-0.025294573977589607,
0.042464662343263626,
-0.00810240674763918,
0.037171196192502975,
0.05299822613596916,
-0.01910477504134178,
0.040587592869997025,
-0.031318992376327515,
0.03150714188814163,
0.007978302426636219,
-0.011820989660918713,
-0.015567978844046593,
-0.026245905086398125,
-0.06482304632663727,
0.017291812226176262,
0.034912995994091034,
0.03497294709086418,
0.0584343783557415,
-0.014126808382570744,
-0.030656196177005768,
-0.002783705946058035,
0.02433711104094982,
-0.03468715772032738,
0.004919113125652075,
0.02523108385503292,
0.04479272663593292,
-0.038450490683317184,
-0.033056359738111496,
-0.022615479305386543,
0.005814953241497278,
0.020467882975935936,
-0.0013882378116250038,
-0.03714849799871445,
-0.015151402913033962,
0.03322073817253113,
-0.011217303574085236,
-0.03005360998213291,
-0.08779764175415039,
0.0285799540579319,
-0.006856911350041628,
-0.00763795617967844,
0.035319820046424866,
0.021765761077404022,
0.03949817270040512,
0.05054055526852608,
0.026335202157497406,
0.02285299263894558,
-0.021166516467928886,
0.03132030367851257,
-0.03665517270565033,
-0.024194562807679176,
-0.011663329787552357,
-0.03730347752571106,
-0.012092174030840397,
-0.03211773931980133,
-0.031046058982610703,
-0.035022836178541183,
-0.0037220194935798645,
0.03435551002621651,
-0.024794844910502434,
-0.015763435512781143,
-0.03932676091790199,
0.03541478514671326,
-0.017715826630592346,
-0.025624053552746773,
-0.032337527722120285,
-0.023038243874907494,
-0.05210089311003685,
-0.06281428039073944,
0.03545808792114258,
-0.016169672831892967,
0.022509729489684105,
0.03493392840027809,
0.02004384994506836,
0.03729938343167305,
0.0006935232086107135,
-0.026289988309144974,
0.027469057589769363,
-0.016664491966366768,
-0.044317688792943954,
-0.028233619406819344,
0.023112375289201736,
0.01062715332955122,
0.06990013271570206,
-0.01698196865618229,
0.013923104852437973,
0.02919195219874382,
-0.04813224822282791,
-0.01406856905668974,
0.035651762038469315,
0.019323695451021194,
-0.043594155460596085,
-0.04320841282606125,
-0.0020099678076803684,
-0.0417340025305748,
0.02951704151928425,
-0.01708994433283806,
-0.00537357572466135,
-0.0036193595733493567,
0.016270143911242485,
0.052070654928684235,
-0.007887027226388454,
-0.017711106687784195,
0.04755150526762009,
-0.025798043236136436,
0.019742075353860855,
-0.05153445899486542,
0.06803365051746368,
-0.03573988378047943,
0.009288088418543339,
-0.0005831258604303002,
0.007321883924305439,
-0.053520943969488144,
0.02111215516924858,
-0.016186989843845367,
-0.025629514828324318,
0.01170007698237896,
0.03689302131533623,
-0.010289077647030354,
0.015104535035789013,
-0.018295105546712875,
0.006296859588474035,
-0.047937847673892975,
0.07333654165267944,
-0.02360503189265728,
-0.001668597455136478,
-0.026403743773698807,
0.006073773372918367,
-0.03147297352552414,
0.017959173768758774,
-0.014281176030635834,
-0.05264885723590851,
0.047408245503902435,
0.06310929358005524,
0.03637045621871948,
0.03607063740491867,
-0.030863914638757706,
0.008525091223418713,
0.013451367616653442,
-0.02097509056329727,
-0.00903521291911602,
0.014420842751860619,
0.02954043820500374,
0.009491784498095512,
0.05045464262366295,
0.029947515577077866,
-0.050539128482341766,
-0.07158496230840683,
0.03787153214216232,
0.009245268069207668,
-0.0015423712320625782,
0.01638038456439972,
0.022956136614084244,
0.04373651370406151,
0.05372154340147972,
-0.03196780011057854,
-0.012976906262338161,
-0.033662017434835434,
-0.03820974752306938,
0.022420687600970268,
-0.0005936668021604419,
0.002154609188437462,
0.003537435084581375,
-0.039868250489234924,
-0.022990521043539047,
0.0622173547744751,
0.015576732344925404,
0.019706331193447113,
-0.029210936278104782,
-0.036920107901096344,
0.007238586433231831,
-0.011407678946852684,
-0.05693506449460983,
0.013044089078903198,
0.008711214177310467,
-0.022602969780564308,
0.07244725525379181,
-0.010605611838400364,
0.02270856872200966,
0.046792734414339066,
0.03230281174182892,
-0.010354675352573395,
0.05099348723888397,
-0.006358482409268618,
0.006062164902687073,
0.04917868971824646,
-0.0681498795747757,
-0.0139858303591609,
-0.03965083137154579,
0.06692909449338913,
-0.07987716048955917,
0.0280485637485981,
0.04929874837398529,
0.007032368332147598,
0.03283049166202545,
-0.03177686035633087,
-0.05975937098264694,
0.03249095380306244,
-0.047368865460157394,
0.10053691267967224,
0.02112358994781971,
-0.04244384914636612,
0.049820128828287125,
0.019300969317555428,
-0.07968346774578094,
0.029127420857548714,
0.03269606828689575,
0.024978069588541985,
0.00016641264664940536,
0.03948281332850456,
-0.05565943196415901,
0.018169192597270012,
-0.040819358080625534,
0.028248045593500137,
-0.03819914534687996,
0.0016251642955467105,
0.023762116208672523,
-0.047726765275001526,
-0.017612002789974213,
0.023933812975883484,
-0.017567643895745277,
-0.02791382558643818,
0.03137682378292084,
-0.035157427191734314,
-0.03403046354651451,
0.012084179557859898,
0.015103678219020367,
-0.041819386184215546,
0.00013108945859130472,
-0.037094175815582275,
0.0018629455007612705,
0.028063710778951645,
0.0025329571217298508,
-0.0207337886095047,
-0.024993395432829857,
0.006533600389957428,
-0.054967790842056274,
-0.05510326474905014,
0.039716362953186035,
-0.004547346383333206,
-0.015473098494112492,
0.02871662937104702,
0.015429354272782803,
0.01158322673290968,
0.04163322225213051,
-0.006024532485753298,
0.023630285635590553,
-0.07203347235918045,
-0.02087516151368618,
0.0010854857973754406,
0.02049521543085575,
0.011138741858303547,
-0.0057686385698616505,
0.05783103033900261,
0.05207272246479988,
0.01375453732907772,
0.009149675257503986,
-0.02580021508038044,
-0.025403209030628204,
0.03717338666319847,
-0.03818313404917717,
0.022865165024995804,
0.008296714164316654,
-0.056506190448999405,
-0.045502979308366776,
-0.01518156100064516,
-0.017125768586993217,
0.01755972020328045,
-0.061048056930303574,
-0.004454890266060829,
0.031881991773843765,
-0.031243687495589256,
-0.05322106555104256,
-0.09193246811628342,
-0.02625534124672413,
-0.044186487793922424,
0.020409945398569107,
0.03874456137418747,
-0.055082179605960846,
-0.000473210820928216,
-0.04544767737388611,
-0.055148959159851074,
0.013982928358018398,
-0.0031621125526726246,
-0.02956874668598175,
0.04544147476553917,
0.039081718772649765,
-0.06970179826021194,
0.021892603486776352,
0.06812302768230438,
-0.0232932660728693,
0.021517807617783546,
0.027711987495422363,
0.011045186780393124,
0.04918989539146423,
0.022170552983880043,
-0.045960042625665665,
-0.04266802966594696,
-0.07927817106246948,
-0.057281456887722015,
-0.026540182530879974,
-0.00005358886483008973,
0.05288957059383392
] |
Andrija/SRoBERTa-L | [
"pytorch",
"roberta",
"fill-mask",
"hr",
"sr",
"multilingual",
"dataset:oscar",
"dataset:srwac",
"dataset:leipzig",
"transformers",
"masked-lm",
"license:apache-2.0",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"RobertaForMaskedLM"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 58 | null | ---
datasets:
- oscar
- srwac
- leipzig
language:
- hr
- sr
- multilingual
tags:
- masked-lm
widget:
- text: "Ovo je početak <mask>."
license: apache-2.0
---
# Transformer language model for Croatian and Serbian
Trained on 6GB datasets that contain Croatian and Serbian language for two epochs (500k steps).
Leipzig, OSCAR and srWac datasets
| Model | #params | Arch. | Training data |
|--------------------------------|--------------------------------|-------|-----------------------------------|
| `Andrija/SRoBERTa-L` | 80M | Third | Leipzig Corpus, OSCAR and srWac (6 GB of text) | | [
0.009129156358540058,
-0.028247032314538956,
0.0010668413015082479,
0.05003666505217552,
0.05036885291337967,
0.008799825794994831,
-0.014335207641124725,
-0.0058690994046628475,
-0.05726508051156998,
0.08277229219675064,
0.02404298260807991,
-0.033987753093242645,
-0.011930692940950394,
0.06390294432640076,
-0.025449711829423904,
-0.021203387528657913,
-0.03852241486310959,
-0.02817070670425892,
-0.04596974700689316,
-0.01291785016655922,
-0.014933505095541477,
0.022463461384177208,
-0.013235026970505714,
0.03502831608057022,
-0.002100152662023902,
0.004852138459682465,
-0.003450091229751706,
0.017533766105771065,
0.02413788065314293,
-0.06251701712608337,
0.012499747797846794,
-0.010779201053082943,
-0.030629536136984825,
-0.021880658343434334,
-0.03486547991633415,
0.0007973068859428167,
0.026052584871649742,
0.024322666227817535,
0.05796967074275017,
0.05502597615122795,
0.005508566740900278,
0.010189599357545376,
-0.015643978491425514,
-0.02594197727739811,
0.032938312739133835,
0.006037849932909012,
-0.060017384588718414,
-0.04100222885608673,
0.01570148952305317,
-0.03315411135554314,
-0.042982738465070724,
-0.07378438115119934,
-0.027885405346751213,
0.020443515852093697,
-0.005291637033224106,
-0.02257075533270836,
-0.06188514828681946,
0.018072720617055893,
0.06633750349283218,
-0.060654573142528534,
-0.047802411019802094,
0.02250790409743786,
-0.0406004935503006,
0.037465278059244156,
0.04788239300251007,
-0.03231959417462349,
0.003801165148615837,
-0.037960153073072433,
0.05550913140177727,
-0.018308397382497787,
0.04327211529016495,
-0.043655261397361755,
0.01197714265435934,
-0.072120800614357,
-0.006984918378293514,
-0.007520329672843218,
0.020220311358571053,
0.04588311165571213,
-0.03303154557943344,
0.05328827351331711,
0.02877138927578926,
0.013388643972575665,
0.008490174077451229,
-0.041747573763132095,
0.0006762134144082665,
0.07601387053728104,
-0.042776502668857574,
0.009396864101290703,
0.00013387214858084917,
0.06308577954769135,
-0.03415079042315483,
-0.006276336032897234,
-0.02836119942367077,
-0.03191056102514267,
-0.012399811297655106,
0.0168781578540802,
0.042715832591056824,
-0.02437637560069561,
0.05588024482131004,
0.04260583594441414,
0.02378983609378338,
0.02964477427303791,
-0.00552070839330554,
0.031753286719322205,
-0.011775118298828602,
-0.010774696245789528,
-0.012192564085125923,
-0.022700034081935883,
-0.05770337954163551,
0.007368216756731272,
0.01899072341620922,
-0.05101116746664047,
-0.03749748319387436,
0.05196729302406311,
0.01477544754743576,
-0.025469649583101273,
0.06785508990287781,
-0.0290220957249403,
-0.04241549223661423,
-0.06689494848251343,
0.053962305188179016,
0.01647423580288887,
-0.003547444473952055,
0.012871765531599522,
-0.05286312475800514,
0.04451243579387665,
-0.055866438895463943,
-0.024773139506578445,
0.0074611688032746315,
0.005856183357536793,
0.016197921708226204,
0.048427969217300415,
0.021556735038757324,
-0.06932677328586578,
0.014762595295906067,
0.019143126904964447,
-0.07305742800235748,
0.061073798686265945,
0.035899676382541656,
0.10642600804567337,
-0.05194656550884247,
-0.035275399684906006,
0.021990995854139328,
0.008594335988163948,
-0.013759218156337738,
0.01187839638441801,
-0.010471161454916,
-0.04275906831026077,
-0.016948604956269264,
-0.023050101473927498,
0.04938651993870735,
-0.05601413547992706,
0.003901347517967224,
0.06383872777223587,
-0.006888621486723423,
0.028172334656119347,
-0.009573105722665787,
-0.025272531434893608,
-0.012836383655667305,
-0.02387824095785618,
-0.03530598059296608,
0.0005156598053872585,
0.006574548780918121,
-0.00884747039526701,
-0.03156366944313049,
-0.020308436825871468,
0.0003779098915401846,
0.07672563940286636,
0.01800522580742836,
-0.02517106756567955,
-0.016550686210393906,
0.008895550854504108,
0.03856541961431503,
-0.005754271522164345,
-0.030029820278286934,
0.013326204381883144,
0.049890462309122086,
0.04003783315420151,
-0.024113168939948082,
0.0554170161485672,
0.010899720713496208,
-0.04408262297511101,
-0.019166478887200356,
0.009594876319169998,
0.0040612840093672276,
-0.025590576231479645,
-0.013916855677962303,
0.04452378675341606,
-0.010877781547605991,
0.0010432710405439138,
-0.01655399054288864,
0.05510186031460762,
-0.016886163502931595,
-0.009423693642020226,
0.026554111391305923,
-0.003378775669261813,
-0.03561229631304741,
0.05511212348937988,
-0.00531065184623003,
-0.014822090044617653,
-0.028508314862847328,
-0.031008999794721603,
0.02262035198509693,
0.044671475887298584,
0.016213545575737953,
0.033221617341041565,
-0.02329472079873085,
0.071255624294281,
-0.03286901116371155,
-0.00313653820194304,
-0.032920531928539276,
-0.061433095484972,
-0.02318514510989189,
0.02789485454559326,
0.026818852871656418,
0.053534697741270065,
-0.014850170351564884,
-0.04116774722933769,
0.010022163391113281,
0.05472781881690025,
0.05508225038647652,
0.013966569676995277,
-0.025497525930404663,
-0.012627063319087029,
-0.02212556265294552,
0.05801568552851677,
-0.040343139320611954,
-0.04212494194507599,
0.03356575220823288,
0.06259401142597198,
-0.033193036913871765,
0.04030110314488411,
-0.005404382944107056,
0.007196413818746805,
-0.029622817412018776,
-0.051142290234565735,
0.061817556619644165,
0.05285345017910004,
0.0000181420509761665,
0.03193790465593338,
-0.012421448715031147,
-0.001740883570164442,
-0.008456641808152199,
0.005392605904489756,
-0.00012265898112673312,
-0.020518355071544647,
-0.007249160204082727,
0.023983953520655632,
0.06184709444642067,
-0.04201507568359375,
0.029899170622229576,
-0.019679635763168335,
0.008555227890610695,
0.045754529535770416,
-0.05060500651597977,
0.03426932170987129,
0.048295579850673676,
0.01577308401465416,
-0.0373593270778656,
0.007791890297085047,
-0.005960563663393259,
0.03267847001552582,
0.05855206400156021,
-0.01288121659308672,
0.060423027724027634,
-0.013013208284974098,
0.057812415063381195,
0.08973033726215363,
0.01150647271424532,
0.013493606820702553,
0.0390678271651268,
0.07661284506320953,
-0.01146888080984354,
-0.024051029235124588,
0.06784186512231827,
-0.030374610796570778,
-0.01995640993118286,
-0.027779020369052887,
-0.008375775068998337,
0.008576584048569202,
-0.02104056440293789,
0.014324947260320187,
-0.012073653750121593,
-0.02423560619354248,
0.00023672172392252833,
-0.0205933079123497,
-0.019912851974368095,
0.05811363831162453,
-0.042370252311229706,
-0.0006113732815720141,
-0.03109682910144329,
-0.040473803877830505,
0.018196994438767433,
-0.05503028631210327,
-0.06319092959165573,
0.010376976802945137,
-0.02780643105506897,
-0.02129235677421093,
-0.06923296302556992,
-0.0222235769033432,
-0.056421346962451935,
-0.002348816255107522,
0.05793866887688637,
0.021591419354081154,
-0.0004513098392635584,
-0.027305273339152336,
0.03367212042212486,
-0.03299928084015846,
-0.0210943091660738,
-0.047938961535692215,
-0.03183902055025101,
-0.02573457360267639,
-0.058696456253528595,
0.03979502618312836,
0.029307402670383453,
0.051103074103593826,
-0.0005487738526426256,
0.019986528903245926,
-0.027970977127552032,
-0.05614154785871506,
0.05866088718175888,
0.043558623641729355,
-0.02375432848930359,
-0.050601664930582047,
0.029686860740184784,
-0.01256386935710907,
0.023074310272932053,
-0.00788554921746254,
-0.05278666689991951,
0.10367913544178009,
0.049810584634542465,
0.03192728012800217,
0.0016666107112541795,
-0.0002150560903828591,
-0.07082398980855942,
-0.07062584161758423,
-0.02868686057627201,
-0.04752501845359802,
-0.006653687451034784,
-0.018099287524819374,
-0.06050673499703407,
-0.028937023133039474,
-0.029758503660559654,
0.015866614878177643,
-0.030882271006703377,
0.0069210282526910305,
0.03522706776857376,
0.029200593009591103,
0.046974461525678635,
0.019516119733452797,
-0.04486849904060364,
-0.025743400678038597,
0.06974273175001144,
0.03220965340733528,
0.0015792144695296884,
-0.04816635325551033,
-0.03734229505062103,
0.0290046539157629,
0.04576048254966736,
-0.014994580298662186,
-0.00007260420534294099,
0.08513229340314865,
0.03451015055179596,
-0.0029068910516798496,
0.01648791879415512,
0.0012948504881933331,
-0.03833837807178497,
-0.004932645242661238,
-0.023981573060154915,
-0.022590408101677895,
-0.07138782739639282,
-0.004869628697633743,
-0.0012538223527371883,
0.052275676280260086,
-0.07335299998521805,
-0.07221843302249908,
-0.019382307305932045,
0.011054092086851597,
-0.00566577073186636,
0.016139734536409378,
-0.043409883975982666,
0.018164943903684616,
-0.02329302206635475,
-0.049195121973752975,
0.017087208107113838,
0.008837190456688404,
0.0078049409203231335,
0.03840956464409828,
0.01700391061604023,
-0.032731641083955765,
0.02435007505118847,
0.0332358218729496,
0.0459238663315773,
0.042833346873521805,
-0.04745018482208252,
0.022424224764108658,
-0.0389324314892292,
0.030779726803302765,
0.00519805820658803,
-0.02894694358110428,
-0.053045015782117844,
-0.0807345062494278,
-0.022408638149499893,
0.02937588281929493,
-0.028260327875614166,
0.010948935523629189,
0.03983568400144577,
-0.026663649827241898,
0.0004563996917568147,
-0.017339764162898064,
0.043220534920692444,
0.042674701660871506,
-0.07951603829860687,
0.047589849680662155,
0.020888108760118484,
0.03126537799835205,
-0.07921655476093292,
0.02649403177201748,
-0.021248700097203255,
-0.02879444882273674,
0.0004097456985618919,
0.053973931819200516,
0.02813917212188244,
0.010511694476008415,
0.07430464774370193,
0.007671733386814594,
-0.032832227647304535,
0.0505434051156044,
0.0221520084887743,
-0.004141424782574177,
-0.03980724886059761,
-0.00320182996802032,
-0.010422547347843647,
-0.012671535834670067,
-0.016445720568299294,
-0.03472011536359787,
0.01523447036743164,
0.01524150650948286,
0.032148879021406174,
-0.0299741979688406,
0.00798814743757248,
-0.032285213470458984,
-0.042126916348934174,
-0.07749024778604507,
-0.021476346999406815,
-0.005616850219666958,
-0.04002530500292778,
0.038951944559812546,
0.05220389738678932,
0.015634184703230858,
0.06264827400445938,
0.042361848056316376,
-0.04282594844698906,
-0.05742203816771507,
0.028612708672881126,
0.02820383757352829,
-0.044227804988622665,
-0.08107888698577881,
-0.024058742448687553,
0.0408138781785965,
0.025951771065592766,
0.003681926289573312,
-0.06755639612674713,
-0.0009508117218501866,
0.04316842555999756,
-0.02136433869600296,
0.06260323524475098,
0.012338874861598015,
0.06615953147411346,
0.05753325670957565,
-0.013676907867193222,
0.011244837194681168,
-0.05084962770342827,
0.013135123997926712,
-0.00485206488519907,
0.04818136245012283,
-0.02820371650159359,
-0.022511210292577744,
-0.05196896940469742,
0.03027995489537716,
0.03247247263789177,
0.039519138634204865,
0.0365222804248333,
-0.05644010007381439,
-0.06630627810955048,
-0.02499549463391304,
0.03492956981062889,
-0.06617122143507004,
0.025835596024990082,
0.0197199247777462,
0.04584652930498123,
-0.03460805490612984,
-0.027909262105822563,
-0.013555764220654964,
0.005926849320530891,
0.029681766405701637,
0.019921598955988884,
-0.055574364960193634,
-0.052501142024993896,
0.035044364631175995,
-0.007239422295242548,
-0.04496048390865326,
-0.09408122301101685,
0.0009920361917465925,
-0.02997790463268757,
-0.007745117414742708,
0.046905238181352615,
0.052790671586990356,
0.045416295528411865,
0.05661039054393768,
0.004507106728851795,
0.011299450881779194,
-0.03757571056485176,
0.03914303705096245,
-0.03012310527265072,
0.013189011253416538,
-0.010853750631213188,
-0.031047455966472626,
0.011310511268675327,
-0.026417240500450134,
-0.045608822256326675,
-0.0520637147128582,
0.010196970775723457,
0.0250706747174263,
-0.020623065531253815,
-0.014739034697413445,
-0.016357921063899994,
0.035198330879211426,
-0.03155616670846939,
-0.028430497273802757,
-0.02032831870019436,
-0.007930692285299301,
-0.07123805582523346,
-0.03586618974804878,
0.005345780868083239,
0.02141244150698185,
0.02654300630092621,
0.004031995311379433,
-0.0062299431301653385,
0.012395597994327545,
-0.020095854997634888,
-0.011899811215698719,
0.016850758343935013,
0.026463810354471207,
-0.04548173397779465,
-0.008465101942420006,
0.0014408072456717491,
0.0016373461112380028,
0.044887278228998184,
-0.025829512625932693,
0.02313392609357834,
0.0008052493212744594,
-0.051160819828510284,
0.000178868169314228,
0.004423311911523342,
0.010099667124450207,
-0.07535328716039658,
-0.07691197842359543,
-0.02029344253242016,
-0.05046641826629639,
0.023379767313599586,
-0.03215453773736954,
-0.031115856021642685,
0.03422033414244652,
0.04083307087421417,
0.03830742835998535,
-0.00880710780620575,
-0.022702310234308243,
0.020879331976175308,
-0.029448874294757843,
0.0068436251021921635,
-0.052591968327760696,
0.010879109613597393,
-0.021678807213902473,
0.01768878474831581,
-0.012794723734259605,
-0.02195587381720543,
-0.048303816467523575,
0.041647233068943024,
-0.024521593004465103,
-0.011665268801152706,
-0.0024963088799268007,
0.011862075887620449,
-0.026542365550994873,
0.04880187287926674,
-0.005290719214826822,
0.002269217511638999,
-0.028479639440774918,
0.05306355282664299,
-0.030554747208952904,
0.019768288359045982,
-0.010596954263746738,
-0.008062198758125305,
-0.041738785803318024,
-0.014278768561780453,
-0.023922894150018692,
-0.032759375870227814,
0.023806393146514893,
0.041766490787267685,
0.014263390563428402,
0.03951796144247055,
-0.019226066768169403,
0.00527492631226778,
0.014987774193286896,
-0.07149997353553772,
-0.008216389454901218,
-0.02880260907113552,
0.0010424033971503377,
0.016746509820222855,
0.06393804401159286,
0.02485629916191101,
-0.05587240681052208,
-0.062299784272909164,
0.025712452828884125,
0.008462720550596714,
-0.01713964156806469,
-0.007922345772385597,
-0.0016669912729412317,
0.021729223430156708,
0.055640045553445816,
-0.04787421226501465,
0.0005107536562718451,
-0.010808094404637814,
-0.02173158898949623,
0.02465244010090828,
-0.0030363721307367086,
0.02618313580751419,
0.0075726378709077835,
-0.02567928656935692,
-0.024459805339574814,
0.08002276718616486,
0.018102344125509262,
0.033101264387369156,
-0.005407737102359533,
-0.031712211668491364,
-0.004914531484246254,
-0.0004244079755153507,
-0.05265031009912491,
-0.007298007607460022,
-0.010550559498369694,
-0.06024785339832306,
0.07829705625772476,
-0.03276440501213074,
0.015383819118142128,
0.0456685945391655,
0.015366127714514732,
-0.024856263771653175,
0.05190228670835495,
-0.008382936008274555,
-0.0029521998949348927,
0.040697574615478516,
-0.04315190762281418,
-0.023738157004117966,
-0.05120798200368881,
0.060184165835380554,
-0.059191878885030746,
0.050090912729501724,
0.07152942568063736,
0.022851137444376945,
0.041428450495004654,
-0.03520038723945618,
-0.015605369582772255,
0.024997469037771225,
-0.045497164130210876,
0.0663955956697464,
0.010004580020904541,
-0.07450949400663376,
0.05864306911826134,
0.044515710324048996,
-0.08249198645353317,
0.03907056152820587,
0.043474383652210236,
0.018274955451488495,
0.031079281121492386,
0.02330237813293934,
-0.04321516677737236,
0.008403564803302288,
-0.02281169220805168,
0.016348788514733315,
-0.04437378793954849,
-0.0009605989325791597,
0.008442114107310772,
-0.01659432053565979,
-0.004433855414390564,
0.016962692141532898,
-0.020828166976571083,
0.010745366103947163,
0.0015005080495029688,
-0.05749685689806938,
-0.0398491695523262,
0.012017494067549706,
0.04231192171573639,
-0.02211449109017849,
0.002075126627460122,
-0.029833121225237846,
0.03555553779006004,
0.03447685018181801,
0.009469697251915932,
-0.0581430122256279,
0.00006136865704320371,
-0.00023660952865611762,
-0.07334761321544647,
-0.03416208550333977,
0.03914535045623779,
0.02227110229432583,
-0.02311323769390583,
0.05753761902451515,
-0.0163097120821476,
0.0020715673454105854,
0.03157593682408333,
-0.007850050926208496,
-0.0014866078272461891,
-0.03343546390533447,
-0.005456116050481796,
0.0037021900061517954,
0.01473150122910738,
0.010326814837753773,
-0.005042197182774544,
0.025767792016267776,
0.046452928334474564,
0.03302924707531929,
-0.007094454951584339,
-0.044820480048656464,
-0.028339175507426262,
0.02789757028222084,
-0.06607677787542343,
0.01265063975006342,
0.028051773086190224,
-0.03591873496770859,
-0.01771262101829052,
-0.044260185211896896,
0.02274358831346035,
0.021771753206849098,
-0.032286617904901505,
0.0011084390571340919,
0.017393838614225388,
-0.013181143440306187,
-0.049306076020002365,
-0.04002637788653374,
-0.034937784075737,
-0.016090629622340202,
0.045688413083553314,
0.012437359429895878,
-0.044519126415252686,
0.011273594573140144,
-0.030987415462732315,
-0.04913075640797615,
0.026385247707366943,
0.00303404638543725,
-0.03116709180176258,
0.06186135858297348,
0.05220635607838631,
-0.0662858635187149,
0.019417552277445793,
0.03173133730888367,
-0.041521187871694565,
0.031525224447250366,
0.010217221453785896,
0.0083227027207613,
0.03157534450292587,
0.02735941857099533,
0.016398601233959198,
-0.033537209033966064,
-0.054924286901950836,
-0.02483494020998478,
-0.029273206368088722,
0.010676645673811436,
0.0475098192691803
] |
Andrija/SRoBERTa-NER | [
"pytorch",
"roberta",
"token-classification",
"hr",
"sr",
"multilingual",
"dataset:hr500k",
"transformers",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"RobertaForTokenClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | ---
datasets:
- hr500k
language:
- hr
- sr
- multilingual
widget:
- text: "Moje ime je Aleksandar i zivim u Beogradu pored Vlade Republike Srbije"
license: apache-2.0
---
Named Entity Recognition (Token Classification Head) for Serbian / Croatian languges.
Abbreviation|Description
-|-
O|Outside of a named entity
B-MIS |Beginning of a miscellaneous entity right after another miscellaneous entity
I-MIS | Miscellaneous entity
B-PER |Beginning of a person’s name right after another person’s name
B-DERIV-PER| Begginning derivative that describes relation to a person
I-PER |Person’s name
B-ORG |Beginning of an organization right after another organization
I-ORG |organization
B-LOC |Beginning of a location right after another location
I-LOC |Location | [
-0.000006347585440380499,
-0.0056273601949214935,
-0.004387859255075455,
0.024481110274791718,
0.06991644203662872,
0.023339910432696342,
-0.009151143953204155,
0.01524671446532011,
-0.04564926028251648,
0.059377413243055344,
0.024966053664684296,
-0.007056138012558222,
0.018305756151676178,
0.06518810242414474,
-0.011395862326025963,
0.0030205564107745886,
-0.02468283474445343,
-0.02143985778093338,
-0.061394721269607544,
-0.0031184980180114508,
0.007729675620794296,
0.017496732994914055,
-0.008347480557858944,
0.020229648798704147,
-0.0212404765188694,
0.005285054910928011,
-0.003814005060121417,
0.04322807118296623,
0.04506431147456169,
-0.04496634006500244,
0.010519741103053093,
-0.002473055850714445,
-0.03176295757293701,
-0.03533061593770981,
-0.05596684291958809,
-0.01197589561343193,
0.01002839207649231,
0.0190742127597332,
0.026092031970620155,
0.08344271034002304,
-0.018760478124022484,
0.016675110906362534,
0.006295167375355959,
-0.05840016528964043,
0.013506774790585041,
0.0011883990373462439,
-0.04583019018173218,
-0.0355171337723732,
0.015995891764760017,
-0.03031398355960846,
-0.050177428871393204,
-0.070022352039814,
-0.013719229958951473,
0.013651073910295963,
-0.026410577818751335,
-0.02612970396876335,
-0.044883206486701965,
-0.013314720243215561,
0.06029633432626724,
-0.04407766833901405,
-0.020291805267333984,
-0.011982391588389874,
-0.07110156118869781,
0.0469888374209404,
0.029018590226769447,
-0.028388001024723053,
0.022644061595201492,
-0.044128552079200745,
0.05203207582235336,
-0.019316958263516426,
0.04784151539206505,
-0.04141644760966301,
-0.010751494206488132,
-0.054949209094047546,
-0.018214836716651917,
-0.02299296297132969,
0.046817999333143234,
0.04572338983416557,
-0.01706935092806816,
0.041986580938100815,
0.019246233627200127,
0.024117181077599525,
0.030734440311789513,
-0.03589154779911041,
0.0023494467604905367,
0.06296075880527496,
-0.037569157779216766,
-0.0030277709010988474,
0.014953634701669216,
0.04114587604999542,
-0.021642878651618958,
-0.006406075786799192,
-0.003256425727158785,
-0.035801470279693604,
0.0012455667601898313,
0.03374985605478287,
0.0318501740694046,
0.009223904460668564,
0.0466422364115715,
0.031121928244829178,
0.020834360271692276,
0.0516723096370697,
-0.023495333269238472,
0.02704658731818199,
-0.013755211606621742,
-0.02441788837313652,
-0.01325217355042696,
-0.031449031084775925,
-0.038568947464227676,
0.018427308648824692,
0.021013865247368813,
-0.05803276225924492,
-0.05258536338806152,
0.008610328659415245,
0.0026556281372904778,
-0.051054324954748154,
0.06117899343371391,
-0.04616574943065643,
-0.04177622124552727,
-0.058663345873355865,
0.054305240511894226,
0.01015640702098608,
0.0009514695848338306,
-0.011696882545948029,
-0.02504669316112995,
0.016906680539250374,
-0.04204823449254036,
-0.02276739291846752,
-0.011098580434918404,
0.0028488165698945522,
0.017679080367088318,
0.07056219130754471,
0.030401790514588356,
-0.0782543420791626,
0.0024435201194137335,
0.02390529215335846,
-0.0529160313308239,
0.07534922659397125,
0.027332672849297523,
0.08138452470302582,
-0.03468186780810356,
-0.06746909022331238,
0.002867684466764331,
0.02486172877252102,
-0.022936709225177765,
0.010205877013504505,
0.005465784575790167,
-0.05330672115087509,
-0.012811560183763504,
-0.021384872496128082,
0.048805441707372665,
-0.060972001403570175,
0.015288177877664566,
0.06815019994974136,
-0.03272625058889389,
0.026073740795254707,
-0.019223535433411598,
-0.0271137822419405,
-0.011160696856677532,
0.016352733597159386,
-0.011525904759764671,
0.04450155794620514,
-0.008440193720161915,
0.010577164590358734,
-0.044306669384241104,
-0.011856426484882832,
-0.002901033964008093,
0.09144213795661926,
0.03825345262885094,
-0.011899253353476524,
-0.054851166903972626,
-0.0031349891796708107,
0.043160829693078995,
0.005007775966078043,
-0.02282773144543171,
0.011600625701248646,
0.039347320795059204,
0.048511601984500885,
-0.03831487149000168,
0.03982870280742645,
0.010347473435103893,
-0.047618258744478226,
-0.022852130234241486,
0.017101507633924484,
0.030412716791033745,
-0.024695448577404022,
0.003516481490805745,
0.05445561930537224,
0.009053189307451248,
-0.02647957019507885,
-0.0193623173981905,
0.04690347611904144,
-0.014044012874364853,
0.001189347356557846,
0.023203887045383453,
0.006963807623833418,
-0.044540151953697205,
0.05007757246494293,
-0.027212774381041527,
0.009807423688471317,
-0.019626252353191376,
-0.030993955209851265,
0.0301373228430748,
0.055320676416158676,
0.02389274165034294,
0.02358141914010048,
-0.016094328835606575,
0.06271593272686005,
-0.026910869404673576,
0.0035412057768553495,
-0.046780288219451904,
-0.043341364711523056,
0.00600432651117444,
0.02949620969593525,
0.010288532823324203,
0.06404589861631393,
-0.026734888553619385,
-0.0312031339854002,
0.031223049387335777,
0.014591763727366924,
0.0589313842356205,
0.026836389675736427,
-0.02428719401359558,
0.017300643026828766,
0.0004292327503208071,
0.05134375020861626,
-0.044205423444509506,
-0.026906756684184074,
0.03648778423666954,
0.03942069411277771,
-0.018723055720329285,
0.006549386773258448,
0.00741990003734827,
0.017568690702319145,
-0.043992914259433746,
-0.08894599974155426,
0.035836584866046906,
0.02646508999168873,
0.009470533579587936,
0.02590748853981495,
-0.044999171048402786,
0.012542914599180222,
0.010202504694461823,
0.016127867624163628,
0.029333051294088364,
-0.037360429763793945,
0.009538508020341396,
-0.011724652722477913,
0.04845309257507324,
-0.04904542118310928,
0.03218403831124306,
-0.010873004794120789,
0.002476917812600732,
0.06769617646932602,
-0.03651733696460724,
0.02186076156795025,
0.03883407264947891,
0.012017041444778442,
-0.039039675146341324,
0.009431136772036552,
0.018520569428801537,
0.011236343532800674,
0.073867566883564,
0.002731873420998454,
0.08474061638116837,
-0.036744412034749985,
0.05377771332859993,
0.08048791438341141,
0.017606712877750397,
0.007865793071687222,
0.04187117516994476,
0.06412199884653091,
-0.002489184495061636,
-0.02339649759232998,
0.08197375386953354,
-0.033006638288497925,
0.010653241537511349,
-0.0551263727247715,
0.015219888649880886,
-0.006437127012759447,
0.003600016701966524,
0.050883352756500244,
0.0044427430257201195,
-0.005363702308386564,
0.006513871718198061,
-0.029790975153446198,
-0.005025458987802267,
0.02815963514149189,
-0.01894269697368145,
0.014019018970429897,
-0.023784974589943886,
-0.03214232996106148,
0.004603095352649689,
-0.06259061396121979,
-0.0376061387360096,
-0.001152929151430726,
-0.04344068467617035,
-0.0029726820066571236,
-0.07587666809558868,
-0.018018454313278198,
-0.028722001239657402,
-0.013480521738529205,
0.05691852048039436,
0.02861495316028595,
0.003953798208385706,
-0.04024813696742058,
0.018066855147480965,
-0.029028944671154022,
-0.05018704757094383,
-0.054528865963220596,
-0.04212544858455658,
-0.04998166114091873,
-0.07429122179746628,
0.052944548428058624,
0.03326452150940895,
0.046889178454875946,
0.019444473087787628,
0.0009107414516620338,
-0.035784512758255005,
-0.030733363702893257,
0.03989455848932266,
0.04334235191345215,
-0.03692886233329773,
-0.025427622720599174,
0.048498231917619705,
-0.0010830056853592396,
0.026128999888896942,
-0.028262369334697723,
-0.044341642409563065,
0.07557748258113861,
0.048519644886255264,
0.039119936525821686,
0.0076678041368722916,
0.04151780158281326,
-0.06624298542737961,
-0.029560161754488945,
-0.03103761188685894,
-0.03681851923465729,
-0.035359084606170654,
-0.05113581195473671,
-0.041476376354694366,
-0.012991739436984062,
-0.04267754405736923,
-0.0019928072579205036,
-0.019229238852858543,
0.03360188752412796,
0.025728559121489525,
0.042656198143959045,
0.030726930126547813,
0.010488209314644337,
-0.0056103989481925964,
-0.03316788002848625,
0.05432337149977684,
0.025086071342229843,
0.0032827320974320173,
-0.06845951825380325,
-0.05162946879863739,
0.02045639045536518,
0.020513901486992836,
0.01332099735736847,
-0.021963126957416534,
0.0567595399916172,
0.009867185726761818,
-0.01599348708987236,
0.0010356992715969682,
-0.001885733800008893,
-0.05769694223999977,
-0.0017704230267554522,
-0.004150344058871269,
-0.014963950030505657,
-0.0726098045706749,
-0.008544635027647018,
-0.00729374447837472,
0.05156552791595459,
-0.05946860834956169,
-0.05139894038438797,
0.008108681067824364,
0.01394976582378149,
0.026130612939596176,
0.03359925374388695,
-0.04068015143275261,
0.020422186702489853,
-0.021019231528043747,
-0.06053481996059418,
0.007100613322108984,
0.01658380776643753,
0.014204206876456738,
0.03824907913804054,
0.01958910934627056,
-0.03040947951376438,
0.030267253518104553,
0.061454299837350845,
0.046627383679151535,
0.029902774840593338,
-0.03599077835679054,
0.007426504045724869,
-0.013571885414421558,
0.023181967437267303,
-0.016517799347639084,
-0.04554733261466026,
-0.06310970336198807,
-0.09221231937408447,
-0.009742270223796368,
0.011970335617661476,
-0.012368103489279747,
-0.00670141726732254,
0.016969699412584305,
0.002687264932319522,
-0.0013087306870147586,
-0.01727783866226673,
0.026660636067390442,
0.03358274698257446,
-0.08238054811954498,
0.032284386456012726,
-0.0022426052019000053,
0.044746652245521545,
-0.07271705567836761,
0.019140925258398056,
-0.01534099318087101,
-0.02950860932469368,
-0.014685415662825108,
0.06708924472332001,
0.027154643088579178,
-0.002128075109794736,
0.055305104702711105,
-0.013602348044514656,
-0.022375604137778282,
0.054913412779569626,
0.03853042051196098,
-0.014864826574921608,
-0.07738423347473145,
-0.02100861631333828,
-0.006105647888034582,
-0.03694101795554161,
0.006310982163995504,
-0.0558619387447834,
0.007905611768364906,
0.026187816634774208,
0.03421938046813011,
-0.023775121197104454,
0.01261484157294035,
-0.028167258948087692,
-0.037436727434396744,
-0.08963637053966522,
-0.036296550184488297,
0.020685585215687752,
-0.044161733239889145,
0.009255195036530495,
0.06063559651374817,
0.006025165785104036,
0.08587945252656937,
0.05730828270316124,
-0.021557334810495377,
-0.08435365557670593,
0.019703352823853493,
0.030359098687767982,
-0.05851409584283829,
-0.08158337324857712,
-0.039829909801483154,
0.0597916841506958,
0.01789911650121212,
0.01191351655870676,
-0.0824100598692894,
0.012771666049957275,
0.05244433507323265,
-0.02440917305648327,
0.07316965609788895,
-0.0045746988616883755,
0.06610643863677979,
0.035380709916353226,
-0.03249702230095863,
0.019781189039349556,
-0.04489389806985855,
0.006911222357302904,
-0.001186688314191997,
0.05742388218641281,
-0.01483131106942892,
-0.05067886412143707,
-0.007800979074090719,
0.04436195269227028,
0.03372844681143761,
0.06246807798743248,
0.03819785639643669,
-0.022426439449191093,
-0.06463458389043808,
-0.04354611039161682,
0.02643606998026371,
-0.056140366941690445,
0.03131501004099846,
0.014461906626820564,
0.04011526331305504,
-0.032083142548799515,
-0.04163036867976189,
-0.001943077309988439,
-0.00987149402499199,
0.04396948218345642,
-0.00597649859264493,
-0.05381894111633301,
-0.04515804722905159,
0.004856870975345373,
-0.0068734921514987946,
-0.040160804986953735,
-0.08170779794454575,
0.007012594025582075,
-0.013546752743422985,
-0.011393503285944462,
0.059048842638731,
0.04578714817762375,
0.05342978611588478,
0.05270609259605408,
-0.019336145371198654,
0.0027234177105128765,
-0.03719990700483322,
0.04943646118044853,
-0.024286260828375816,
-0.0009775446960702538,
-0.027281969785690308,
-0.045729514211416245,
0.00278644310310483,
-0.017959309741854668,
-0.04236815869808197,
-0.03827991709113121,
0.005963179282844067,
0.015580042265355587,
-0.0038263110909610987,
-0.013906336389482021,
-0.0285162515938282,
0.021145537495613098,
-0.03673233091831207,
-0.042569611221551895,
-0.03204552084207535,
-0.015367469750344753,
-0.0644279420375824,
-0.020824315026402473,
0.013378775678575039,
0.01772296242415905,
0.023804809898138046,
-0.0006301071844063699,
0.011555947363376617,
0.03331001475453377,
-0.016061993315815926,
-0.04385257139801979,
0.024478081613779068,
0.008084729313850403,
-0.024811692535877228,
-0.020578991621732712,
-0.017295988276600838,
0.005168636795133352,
0.03904784470796585,
0.0007570134475827217,
0.002524175215512514,
0.01967562735080719,
-0.03679443523287773,
-0.021538875997066498,
0.039681609719991684,
0.0026117274537682533,
-0.06878139078617096,
-0.049364667385816574,
0.007956457324326038,
-0.004705237224698067,
0.0345621220767498,
-0.02483844943344593,
-0.035126250237226486,
0.018656479194760323,
0.0043730721808969975,
0.018500611186027527,
-0.011214977130293846,
-0.02462960220873356,
0.025519153103232384,
-0.00031344371382147074,
0.0071411337703466415,
-0.03663951903581619,
0.04032633453607559,
-0.011626968160271645,
0.0063843983225524426,
-0.027946820482611656,
-0.015914862975478172,
-0.060684382915496826,
0.03371948003768921,
-0.01404988020658493,
-0.027982663363218307,
-0.015804676339030266,
0.012412280775606632,
-0.031031912192702293,
0.02487192302942276,
0.0016610760940238833,
0.008699492551386356,
-0.018163947388529778,
0.04023711010813713,
-0.03468634560704231,
-0.00466366671025753,
-0.028286609798669815,
0.013055731542408466,
-0.053018830716609955,
-0.03396351635456085,
-0.00042549317004159093,
-0.03529438003897667,
0.026857584714889526,
0.04360927268862724,
0.0016655734507367015,
0.04266856610774994,
-0.02282511629164219,
0.004064258653670549,
0.02412089705467224,
-0.0771726742386818,
0.0009694337495602667,
-0.02272864244878292,
0.030625876039266586,
0.0005714627332054079,
0.042075593024492264,
0.03348489850759506,
-0.03323832154273987,
-0.05268396437168121,
0.04445137828588486,
0.020167488604784012,
-0.017578771337866783,
-0.028417007997632027,
-0.006385082844644785,
0.026914793998003006,
0.02678709663450718,
-0.04043029621243477,
-0.026888197287917137,
0.0025503209326416254,
-0.029380343854427338,
0.008661191910505295,
0.007446205709129572,
0.026449356228113174,
0.01333707943558693,
-0.05168244242668152,
-0.03809799626469612,
0.0821433961391449,
0.020720193162560463,
0.029311375692486763,
-0.016323469579219818,
-0.031605035066604614,
0.015045050531625748,
-0.0034562640357762575,
-0.07261019200086594,
-0.010132242925465107,
0.0008618974825367332,
-0.050755854696035385,
0.08342540264129639,
-0.04358748719096184,
0.004657667130231857,
0.016731655225157738,
0.021859515458345413,
-0.020982492715120316,
0.03650575131177902,
-0.007294925861060619,
-0.009329097345471382,
0.031739283353090286,
-0.07531040161848068,
-0.0077853575348854065,
-0.061307039111852646,
0.06301429122686386,
-0.06088420748710632,
0.021915821358561516,
0.047925759106874466,
-0.0006794903893023729,
0.02922855131328106,
-0.00910760834813118,
-0.027240917086601257,
0.04113341122865677,
-0.03947249799966812,
0.05744972825050354,
-0.00687129981815815,
-0.08569901436567307,
0.053490325808525085,
0.03605842590332031,
-0.058953456580638885,
0.023256955668330193,
0.03299160301685333,
0.03238537535071373,
0.018737798556685448,
0.053641222417354584,
-0.0457107275724411,
-0.004367430228739977,
-0.03354862332344055,
0.03560074046254158,
-0.06327518075704575,
-0.008376525714993477,
0.011119438335299492,
-0.015407098457217216,
-0.0024178484454751015,
0.033414553850889206,
-0.042910028249025345,
0.006011342629790306,
-0.017447171732783318,
-0.033843450248241425,
-0.05827941372990608,
-0.001260767225176096,
0.04589803144335747,
-0.024185115471482277,
-0.00253496365621686,
-0.06362705677747726,
0.010335183702409267,
0.025569556280970573,
-0.015919476747512817,
-0.016316693276166916,
0.010721048340201378,
0.028744952753186226,
-0.07171953469514847,
-0.02927425689995289,
0.05657356604933739,
0.030491316691040993,
-0.02374693937599659,
0.04428085684776306,
-0.01147295068949461,
0.012464918196201324,
0.04320995509624481,
0.016749726608395576,
0.00002395235605945345,
-0.06084103882312775,
0.0006916106212884188,
0.02956634759902954,
0.02460774965584278,
0.030677547678351402,
-0.011526036076247692,
0.027431337162852287,
0.05784717947244644,
0.0363646000623703,
0.00725768506526947,
-0.0449816919863224,
-0.03023313172161579,
0.043152958154678345,
-0.0582859180867672,
0.00005291214620228857,
-0.00022523078951053321,
-0.05550916865468025,
-0.022196799516677856,
-0.03887680917978287,
0.005766094662249088,
0.04465095326304436,
-0.047553304582834244,
0.017429836094379425,
0.02913404069840908,
-0.015069602988660336,
-0.04463919624686241,
-0.0530521534383297,
-0.021642029285430908,
-0.022392239421606064,
0.01640944741666317,
0.022620048373937607,
-0.03129160776734352,
0.00949136447161436,
-0.04719214141368866,
-0.06671500205993652,
0.020552080124616623,
0.012774498201906681,
-0.011436312459409237,
0.046675439924001694,
0.06089991331100464,
-0.05019775405526161,
0.011128600686788559,
0.0370892658829689,
-0.016377311199903488,
0.04240085184574127,
-0.011491330340504646,
0.014980874955654144,
0.0432734452188015,
0.03954674303531647,
-0.003099020104855299,
-0.04359741508960724,
-0.05805903673171997,
-0.0031906291842460632,
-0.03628747910261154,
0.02409238927066326,
0.036350615322589874
] |
Anonymous/ReasonBERT-BERT | [
"pytorch",
"bert",
"feature-extraction",
"transformers"
] | feature-extraction | {
"architectures": [
"BertModel"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | Pre-trained to have better reasoning ability, try this if you are working with task like QA. For more details please see https://openreview.net/forum?id=cGB7CMFtrSx
This is based on bert-base-uncased model and pre-trained for text input | [
-0.006859705783426762,
0.00883505679666996,
-0.021434515714645386,
0.04664171114563942,
0.019348595291376114,
0.01925700344145298,
-0.020740875974297523,
0.005885523743927479,
-0.03420328348875046,
0.010323778726160526,
0.0032002802472561598,
-0.016938989982008934,
0.00047281032311730087,
0.03112037666141987,
-0.04645466059446335,
-0.055434029549360275,
-0.004401382990181446,
0.006807273253798485,
-0.034615468233823776,
-0.03561342880129814,
0.01451806165277958,
0.005530145484954119,
0.013136704452335835,
0.002821868285536766,
-0.009874491021037102,
0.027235981076955795,
-0.012178539298474789,
0.04432987794280052,
0.013190720230340958,
-0.07470736652612686,
-0.013534635305404663,
-0.025833239778876305,
-0.05694200098514557,
-0.002512899460271001,
0.0007551733870059252,
0.008063644170761108,
0.015948234125971794,
-0.0009870356880128384,
0.016053834930062294,
0.05341896042227745,
0.03164401277899742,
0.012337444350123405,
0.041551027446985245,
-0.04706369340419769,
0.0020112989004701376,
-0.010671298950910568,
-0.027204349637031555,
-0.02191147580742836,
0.018093815073370934,
0.0034755736123770475,
-0.053872689604759216,
-0.0830778256058693,
-0.03122600167989731,
-0.008444581180810928,
-0.013082599267363548,
-0.030049405992031097,
-0.0383574403822422,
0.014006178826093674,
0.08392659574747086,
-0.022143376991152763,
-0.02289353311061859,
0.014424152672290802,
-0.058590974658727646,
0.020296610891819,
0.035546984523534775,
-0.05177157372236252,
-0.00470640417188406,
-0.042344119399785995,
0.022887874394655228,
-0.021900327876210213,
0.08340103924274445,
-0.023692229762673378,
0.019730133935809135,
-0.06816862523555756,
0.007494102697819471,
-0.025206923484802246,
0.049299247562885284,
0.07510112971067429,
-0.025842931121587753,
0.042078472673892975,
0.037033434957265854,
0.02527909353375435,
0.050292886793613434,
-0.016674691811203957,
0.007790194358676672,
0.027365177869796753,
-0.04948575794696808,
-0.029325228184461594,
0.01776042766869068,
0.011651454493403435,
-0.025466086342930794,
-0.05062828212976456,
-0.023347163572907448,
-0.006097220815718174,
-0.029955819249153137,
0.0174067635089159,
0.040371958166360855,
-0.016182901337742805,
0.043531037867069244,
-0.0006544086500070989,
0.06544212996959686,
0.04978128895163536,
-0.015534954145550728,
0.0658402368426323,
-0.026224032044410706,
0.010711493901908398,
-0.006397760007530451,
-0.010805192403495312,
-0.015145748853683472,
0.03884965553879738,
0.0047172787599265575,
-0.04755113273859024,
-0.03534389287233353,
0.05542195588350296,
0.04079888015985489,
-0.024682052433490753,
0.0619552806019783,
-0.01788182742893696,
-0.06330141425132751,
-0.03258352354168892,
0.040211331099271774,
0.01622525416314602,
0.014148751273751259,
0.02080499567091465,
-0.04413895681500435,
0.014063013717532158,
-0.03666214272379875,
0.004476921632885933,
-0.012950362637639046,
0.009722605347633362,
0.022558320313692093,
0.0601540133357048,
0.030395761132240295,
-0.07632223516702652,
0.03279801458120346,
0.000748885446228087,
-0.07157798856496811,
0.01962011493742466,
-0.013384451158344746,
0.11686871945858002,
-0.06296802312135696,
-0.05949098989367485,
0.017828138545155525,
0.016907544806599617,
-0.010721861384809017,
0.001226564054377377,
-0.00010404751083115116,
-0.03686469420790672,
-0.023063044995069504,
-0.00443620840087533,
0.07215200364589691,
-0.047496624290943146,
-0.029844505712389946,
0.0771174356341362,
-0.01737269200384617,
0.020514102652668953,
-0.03238861262798309,
0.012945856899023056,
0.010820303112268448,
-0.022520683705806732,
-0.014313881285488605,
0.03426862135529518,
-0.007929055020213127,
-0.024562940001487732,
-0.03484433889389038,
-0.0594160370528698,
0.028963875025510788,
0.10202543437480927,
0.019421061500906944,
-0.01753264106810093,
-0.01895659789443016,
-0.0048930831253528595,
0.040494438260793686,
0.024052351713180542,
-0.021624978631734848,
0.04108817130327225,
0.04275829344987869,
0.022045545279979706,
-0.020189402624964714,
0.05040079355239868,
0.030248673632740974,
-0.027862977236509323,
-0.03592624515295029,
0.012811096385121346,
-0.0006596505409106612,
-0.01975969970226288,
0.05269220471382141,
0.012356126680970192,
-0.0007559559307992458,
-0.006487593986093998,
-0.025998089462518692,
0.05391852185130119,
-0.023232106119394302,
-0.014854855835437775,
-0.01589825376868248,
0.02404729835689068,
-0.015009310096502304,
0.036401838064193726,
-0.04253404960036278,
0.0027599732857197523,
-0.033177535980939865,
-0.019380338490009308,
0.02516583912074566,
-0.01812117174267769,
0.012552262283861637,
0.036771420389413834,
-0.031450655311346054,
0.11329911649227142,
-0.02715175598859787,
0.018423371016979218,
-0.06274320185184479,
-0.023310832679271698,
-0.00896448828279972,
0.058286212384700775,
0.02643127366900444,
0.041863471269607544,
0.020738298073410988,
-0.031220117583870888,
0.037215009331703186,
0.04845890402793884,
0.04235365614295006,
0.001177302678115666,
-0.033659230917692184,
0.004773460328578949,
0.024265140295028687,
0.056236930191516876,
-0.0444868728518486,
-0.038172852247953415,
0.0053786844946444035,
0.03287544846534729,
0.006407594308257103,
-0.001329523860476911,
-0.04010821133852005,
0.01989811472594738,
-0.04756976291537285,
-0.03987031802535057,
0.041890617460012436,
0.012003898620605469,
0.01984729804098606,
0.04516540840268135,
0.011448973789811134,
0.010925223119556904,
0.02228924259543419,
0.02551637403666973,
0.011672521941363811,
-0.044455088675022125,
0.006796116475015879,
-0.0006362448330037296,
0.0657261461019516,
-0.07792242616415024,
0.055202916264534,
0.005795555654913187,
0.012083854526281357,
0.0452788770198822,
0.0028389201033860445,
0.03355693072080612,
0.05575940012931824,
-0.006382272113114595,
-0.013939253985881805,
0.028249960392713547,
0.022973446175456047,
0.0461672842502594,
0.07804429531097412,
0.008097028359770775,
0.08813827484846115,
-0.013476496562361717,
0.02036447450518608,
0.07239282876253128,
0.006880793254822493,
0.03613194078207016,
0.025989694520831108,
0.06104385107755661,
0.01826624572277069,
0.02180733159184456,
0.015457377769052982,
-0.06722889095544815,
-0.00972932018339634,
-0.02117449790239334,
-0.000564593356102705,
-0.006245995871722698,
-0.03192290663719177,
0.0787954181432724,
0.020636705681681633,
-0.020243585109710693,
0.008534812368452549,
-0.010374542325735092,
-0.0072317831218242645,
0.015073984861373901,
0.0029698058497160673,
0.01035572774708271,
-0.010911980643868446,
-0.019769035279750824,
0.0027831499464809895,
-0.07280600070953369,
-0.02794533222913742,
-0.05445581302046776,
-0.04638342559337616,
0.02477196231484413,
-0.07420415431261063,
-0.010563245974481106,
-0.06369052827358246,
-0.020801132544875145,
0.03528457134962082,
0.027612561360001564,
-0.028578612953424454,
-0.033452440053224564,
0.022317830473184586,
-0.045476462692022324,
-0.03362182155251503,
-0.024462446570396423,
-0.039179570972919464,
-0.04197380319237709,
-0.07533122599124908,
0.05862463265657425,
0.019656497985124588,
0.005546258762478828,
0.0024710646830499172,
0.020661424845457077,
-0.03948911279439926,
-0.009729040786623955,
0.04097504913806915,
0.03563196584582329,
-0.045340437442064285,
-0.06545130163431168,
0.013545422814786434,
-0.0026917948853224516,
0.014180975966155529,
-0.0009915599366649985,
-0.03871159628033638,
0.08083226531744003,
0.06933336704969406,
0.030902300029993057,
-0.012701869942247868,
-0.014248579740524292,
-0.05074092373251915,
-0.04337064549326897,
-0.002980524441227317,
-0.03296126797795296,
-0.03579123318195343,
-0.033236321061849594,
-0.04552252218127251,
-0.03217003494501114,
-0.033802613615989685,
0.0019797105342149734,
-0.004529098980128765,
0.024375159293413162,
0.034909687936306,
0.031495969742536545,
0.0160316564142704,
0.045667942613363266,
-0.023248903453350067,
-0.024059753865003586,
0.021056178957223892,
-0.021905940026044846,
0.018759043887257576,
-0.08025868982076645,
-0.01945388689637184,
0.0353601910173893,
0.020712578669190407,
0.024716194719076157,
0.002758204936981201,
0.06135166063904762,
-0.01264864206314087,
-0.019467761740088463,
0.010082795284688473,
0.007664608769118786,
0.003765664529055357,
-0.021792499348521233,
0.002157530514523387,
-0.03243299573659897,
-0.05266488343477249,
-0.03333422914147377,
-0.00693619716912508,
0.02643476612865925,
-0.05404023826122284,
-0.05441543832421303,
-0.00457081850618124,
0.03925706073641777,
0.02666391432285309,
0.013158971443772316,
-0.016522007063031197,
0.00121467059943825,
-0.043209124356508255,
-0.030741523951292038,
0.019059740006923676,
-0.0022048603277653456,
0.032978497445583344,
0.01526513323187828,
0.032924264669418335,
-0.029778022319078445,
0.026753073558211327,
0.03941148519515991,
0.02774588204920292,
0.002981687430292368,
-0.07084101438522339,
0.018993517383933067,
-0.012400804087519646,
0.03172660246491432,
-0.006085309665650129,
-0.012867043726146221,
-0.031119635328650475,
-0.09836333245038986,
-0.031909774988889694,
0.005533661227673292,
-0.03833034262061119,
-0.021001840010285378,
0.026587650179862976,
0.00046280075912363827,
0.0005490460316650569,
-0.04485739395022392,
0.024030080065131187,
0.03088608756661415,
-0.014864929020404816,
0.06046271324157715,
-0.03436475619673729,
0.03941967338323593,
-0.02323790453374386,
0.019646944478154182,
-0.04585576057434082,
-0.0118262292817235,
0.0033690035343170166,
0.05419773980975151,
0.004499194212257862,
0.091120645403862,
0.05314226076006889,
0.03205656632781029,
-0.04498622193932533,
0.019023602828383446,
0.05307416990399361,
-0.00726023456081748,
-0.019489575177431107,
0.0006830641068518162,
-0.010716870427131653,
-0.03696506842970848,
-0.011308898217976093,
-0.02674774080514908,
0.04131243750452995,
0.04238782078027725,
-0.021425846964120865,
-0.005513567943125963,
-0.014205596409738064,
-0.012573732063174248,
-0.03721572086215019,
-0.04357751086354256,
-0.014073620550334454,
0.010996093973517418,
0.0017911571776494384,
0.05067824572324753,
0.038091711699962616,
0.02188117988407612,
0.025763215497136116,
0.060171324759721756,
-0.042444996535778046,
-0.003816884243860841,
0.013413360342383385,
0.0393635593354702,
-0.02223016507923603,
-0.07803568243980408,
-0.054935239255428314,
0.0313616544008255,
0.04637276753783226,
-0.04037301987409592,
-0.09017714858055115,
0.046937644481658936,
0.06481867283582687,
-0.06197188049554825,
0.05970035120844841,
-0.012183591723442078,
0.051925159990787506,
0.06489404290914536,
-0.008481636643409729,
0.04345163702964783,
-0.0027439489495009184,
0.006424230057746172,
0.033435411751270294,
0.038545940071344376,
-0.029665431007742882,
-0.02657557837665081,
-0.040960755199193954,
0.017727503553032875,
0.037788793444633484,
0.03786689043045044,
0.05433712899684906,
-0.021373337134718895,
-0.030917657539248466,
-0.010949657298624516,
0.033416423946619034,
-0.01341787725687027,
0.0016730165807530284,
0.058079224079847336,
0.011058257892727852,
-0.06178285926580429,
-0.030753789469599724,
0.015870964154601097,
-0.0014459829544648528,
0.025241564959287643,
-0.031833797693252563,
-0.03853625804185867,
-0.07674252986907959,
0.015684939920902252,
-0.034700196236371994,
-0.034445859491825104,
-0.07649968564510345,
0.011330447159707546,
-0.009949873201549053,
-0.02678663469851017,
0.05850404500961304,
0.030620718374848366,
0.04276671260595322,
0.07494739443063736,
-0.00939797330647707,
-0.004911136347800493,
-0.03830902650952339,
0.03685249388217926,
-0.01887606643140316,
-0.031041771173477173,
0.019302310422062874,
-0.0366985909640789,
0.003766075475141406,
-0.03996030241250992,
-0.031388938426971436,
-0.03890752047300339,
-0.01845054142177105,
0.008284608833491802,
0.005124856252223253,
0.02184826321899891,
-0.015538918785750866,
0.03370407968759537,
-0.03950183466076851,
-0.037785544991493225,
-0.024647949263453484,
-0.013535803183913231,
-0.08585498481988907,
-0.018672848120331764,
0.02303210273385048,
0.041318830102682114,
-0.0000403911508328747,
0.014242236502468586,
0.03636040538549423,
-0.004310544114559889,
0.013005814515054226,
-0.02483769692480564,
0.01874580606818199,
0.014685816131532192,
-0.036467667669057846,
-0.016734395176172256,
-0.011373881250619888,
0.025256730616092682,
0.04263675585389137,
-0.00889621302485466,
0.027225935831665993,
0.012082373723387718,
-0.01288779266178608,
-0.02902529202401638,
0.018925510346889496,
0.0372927188873291,
-0.06899280101060867,
-0.027694957330822945,
-0.010679931379854679,
-0.042099855840206146,
0.03053479827940464,
-0.02938137575984001,
-0.05618277192115784,
0.02953551523387432,
0.014218779280781746,
0.022457219660282135,
0.0023036967031657696,
-0.017897509038448334,
-0.005184389650821686,
-0.0023798164911568165,
0.034539688378572464,
-0.018134741112589836,
0.05699332430958748,
-0.05199670419096947,
0.011834288947284222,
-0.01889313943684101,
-0.013492968864738941,
-0.02255355753004551,
0.034095894545316696,
-0.027944769710302353,
0.010442287661135197,
-0.033812426030635834,
0.044267259538173676,
-0.03774108737707138,
0.03577468544244766,
-0.025438163429498672,
0.02811540476977825,
-0.03683292493224144,
-0.0003909287916030735,
-0.055788010358810425,
-0.006843541748821735,
-0.01348805706948042,
-0.005194569006562233,
-0.0355532169342041,
-0.006619783118367195,
-0.00513888755813241,
-0.03751938417553902,
0.022648416459560394,
0.02634456381201744,
0.032428257167339325,
0.04335402697324753,
-0.015094585716724396,
-0.008057450875639915,
0.022576285526156425,
-0.05007562413811684,
-0.01879415474832058,
-0.021766701713204384,
-0.0008271063561551273,
-0.045993149280548096,
0.06171694025397301,
0.05486716330051422,
-0.08312354236841202,
-0.05847763270139694,
0.02540375478565693,
0.027699530124664307,
0.01221521757543087,
-0.0027002671267837286,
0.016297662630677223,
0.020907722413539886,
0.012962429784238338,
-0.006523163057863712,
-0.005174118094146252,
-0.01800488866865635,
-0.028118140995502472,
0.03182019293308258,
-0.032021258026361465,
0.029567891731858253,
0.01952679641544819,
-0.06759931147098541,
-0.02399361878633499,
0.07529847323894501,
0.02092611975967884,
0.03714047744870186,
0.013971337117254734,
-0.03621964156627655,
0.03589131683111191,
0.016100460663437843,
-0.042062100023031235,
-0.007887632586061954,
-0.02390659973025322,
-0.06052791327238083,
0.07729338109493256,
-0.002845804439857602,
-0.003937002271413803,
0.0491277351975441,
0.014092721045017242,
-0.03263004869222641,
0.06952603906393051,
-0.048695046454668045,
0.011838979087769985,
0.041733428835868835,
-0.04618031159043312,
0.0146156195551157,
-0.025363795459270477,
0.06785984337329865,
-0.06339417397975922,
0.035531457513570786,
0.01586805284023285,
0.00429796427488327,
0.012846780940890312,
-0.023711785674095154,
-0.05438819155097008,
0.039910607039928436,
-0.014692374505102634,
0.0731327012181282,
-0.014562825672328472,
-0.04744806885719299,
0.06617403775453568,
0.022605134174227715,
-0.07772556692361832,
0.017070142552256584,
0.034613896161317825,
0.050801217555999756,
0.036258455365896225,
0.04023696854710579,
-0.047492071986198425,
0.016552148386836052,
-0.036266960203647614,
0.001718344516120851,
-0.028415009379386902,
-0.015432258136570454,
0.029087737202644348,
-0.059693217277526855,
-0.011634236201643944,
0.02849825657904148,
0.011472432874143124,
0.012973331846296787,
0.05240418761968613,
-0.052723050117492676,
-0.06005226448178291,
-0.015359521843492985,
0.023789357393980026,
-0.06868460029363632,
0.022189859300851822,
-0.028801843523979187,
0.024082491174340248,
0.03516234830021858,
-0.0077591100707650185,
-0.010671851225197315,
-0.006415998563170433,
0.03514580428600311,
-0.05267513915896416,
-0.012250330299139023,
0.0341559499502182,
-0.00862594973295927,
-0.05578736588358879,
0.043535396456718445,
-0.007192967925220728,
0.024770185351371765,
0.011690943501889706,
0.007397203706204891,
0.030186476185917854,
-0.046938057988882065,
-0.01797119528055191,
0.01658165641129017,
0.013853763230144978,
0.036743514239788055,
-0.04607102647423744,
0.03890977054834366,
0.03780544921755791,
-0.0001288335770368576,
-0.003810585243627429,
-0.009786754846572876,
-0.01633152924478054,
0.021260526031255722,
-0.030304765328764915,
0.02577490359544754,
-0.04213752970099449,
-0.040044549852609634,
-0.036263760179281235,
-0.026146644726395607,
-0.05471096560359001,
-0.00034787465119734406,
-0.04015325754880905,
0.0076800258830189705,
0.05871650576591492,
-0.018292032182216644,
-0.028383485972881317,
-0.08773864805698395,
-0.017835384234786034,
-0.03863486275076866,
0.01459486410021782,
0.04392401501536369,
-0.015483261086046696,
0.021102121099829674,
-0.08178847283124924,
-0.03237104415893555,
0.047676194459199905,
0.027267323806881905,
-0.059742432087659836,
0.05849393829703331,
0.03660125657916069,
-0.006180471740663052,
0.014451257884502411,
0.051091745495796204,
-0.012367765419185162,
0.007172594778239727,
0.026833580806851387,
0.012847487814724445,
0.037216007709503174,
0.02667147107422352,
-0.040746644139289856,
-0.02503344975411892,
-0.06795524805784225,
-0.04008890688419342,
-0.0550600104033947,
0.01046654675155878,
0.08909755945205688
] |
Aron/distilbert-base-uncased-finetuned-emotion | [
"pytorch",
"tensorboard",
"distilbert",
"text-classification",
"dataset:emotion",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"model-index"
] | text-classification | {
"architectures": [
"DistilBertForSequenceClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 36 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
datasets:
- emotion
metrics:
- accuracy
- f1
model-index:
- name: distilbert-base-uncased-finetuned-emotion
results:
- task:
name: Text Classification
type: text-classification
dataset:
name: emotion
type: emotion
args: default
metrics:
- name: Accuracy
type: accuracy
value: 0.92
- name: F1
type: f1
value: 0.9201604193183255
---
<!-- 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-emotion
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.
It achieves the following results on the evaluation set:
- Loss: 0.2295
- Accuracy: 0.92
- F1: 0.9202
## 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: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 2
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
| 0.8187 | 1.0 | 250 | 0.3137 | 0.902 | 0.8983 |
| 0.2514 | 2.0 | 500 | 0.2295 | 0.92 | 0.9202 |
### Framework versions
- Transformers 4.11.3
- Pytorch 1.10.0+cu111
- Datasets 1.16.1
- Tokenizers 0.10.3
| [
-0.009498849511146545,
0.009653325192630291,
-0.028936166316270828,
0.03763705864548683,
0.06053311377763748,
0.03326282650232315,
-0.024181917309761047,
-0.03544573858380318,
-0.03370451554656029,
0.055523116141557693,
0.018917378038167953,
-0.04675398766994476,
0.035176169127225876,
0.04319198802113533,
-0.013376181945204735,
-0.03351747989654541,
-0.03171141818165779,
-0.01203707791864872,
-0.023580079898238182,
-0.0015641566133126616,
0.001971230609342456,
0.027397118508815765,
-0.004245083313435316,
-0.010875105857849121,
-0.008600365370512009,
0.013075785711407661,
-0.013257690705358982,
0.012972843833267689,
0.030634893104434013,
-0.05897317826747894,
0.013296246528625488,
-0.039406392723321915,
-0.05042200908064842,
-0.0048745363019406796,
-0.022613223642110825,
0.015328317880630493,
0.006636085920035839,
0.02026558481156826,
0.013409164734184742,
0.02855341136455536,
0.010870862752199173,
0.011342945508658886,
-0.0009005279862321913,
-0.012884540483355522,
0.04716284200549126,
0.012644505128264427,
-0.040858738124370575,
0.00037456813151948154,
0.026991073042154312,
-0.023128163069486618,
-0.07329562306404114,
-0.054748356342315674,
-0.00212650652974844,
0.036216508597135544,
0.00035015252069570124,
-0.003879193216562271,
-0.05070723593235016,
0.011254213750362396,
0.06375520676374435,
-0.043418753892183304,
-0.026792768388986588,
0.011925697326660156,
-0.050857312977313995,
0.005152516067028046,
0.023916592821478844,
-0.029309341683983803,
0.004576371517032385,
-0.03759190812706947,
0.03153993561863899,
-0.029586641117930412,
0.04587477818131447,
-0.026620961725711823,
0.028981175273656845,
-0.07762729376554489,
-0.01720021478831768,
-0.010669255629181862,
0.06910303980112076,
0.06208385154604912,
-0.01944388449192047,
0.06100304797291756,
0.031533803790807724,
0.010614710859954357,
0.03623330965638161,
-0.011937802657485008,
0.010744931176304817,
0.023476840928196907,
-0.046097852289676666,
0.017611486837267876,
0.015479371882975101,
0.02784471958875656,
-0.0314156599342823,
-0.042704612016677856,
-0.029703108593821526,
-0.02467126026749611,
-0.006982877850532532,
0.03476725518703461,
0.028238868340849876,
0.025226794183254242,
0.037182293832302094,
0.03042573109269142,
0.018717845901846886,
0.03975149989128113,
-0.03861892223358154,
0.06779135018587112,
-0.01708783023059368,
-0.009993504732847214,
-0.0066871438175439835,
-0.023882022127509117,
-0.05242723599076271,
0.02633768878877163,
0.011934763751924038,
-0.02306126244366169,
-0.033126771450042725,
0.01006243471056223,
-0.016054609790444374,
-0.030792172998189926,
0.060113631188869476,
-0.031643178313970566,
-0.049379292875528336,
-0.04309539124369621,
0.026904702186584473,
0.021264420822262764,
-0.0030383269768208265,
0.003928267862647772,
-0.06159159541130066,
-0.007945407181978226,
-0.03593821823596954,
-0.0051282732747495174,
-0.03461345657706261,
0.01156181562691927,
0.02046622708439827,
0.061987102031707764,
0.02224976010620594,
-0.09485045075416565,
-0.0010895401937887073,
0.015657177194952965,
-0.055413518100976944,
0.032667577266693115,
0.03176334500312805,
0.12740865349769592,
-0.05383094400167465,
-0.05597522482275963,
0.006689547561109066,
0.005797558464109898,
-0.05082406476140022,
0.01743476092815399,
0.023643042892217636,
-0.038472652435302734,
-0.017153823748230934,
0.00534531706944108,
0.050154346972703934,
-0.0455813929438591,
-0.006661341525614262,
0.07160001993179321,
0.018910890445113182,
0.03833160921931267,
-0.04686253145337105,
-0.034020569175481796,
0.009587989188730717,
-0.03155927360057831,
-0.033061422407627106,
0.0535389669239521,
-0.021049462258815765,
-0.03087872639298439,
-0.0162992924451828,
-0.037967290729284286,
0.016412479802966118,
0.07088083773851395,
-0.011779219843447208,
-0.037170279771089554,
-0.0251823328435421,
0.02366543561220169,
0.037634123116731644,
0.03288768231868744,
-0.015912877395749092,
0.016560014337301254,
0.06716302782297134,
0.04435015842318535,
-0.02719533070921898,
0.027711812406778336,
-0.000519842142239213,
-0.031795259565114975,
-0.02513422630727291,
0.007356444373726845,
-0.0036279093474149704,
-0.05169643834233284,
0.05331013724207878,
0.00597684271633625,
-0.005069980397820473,
-0.04813975840806961,
-0.04126468300819397,
0.05252302065491676,
-0.01390111818909645,
-0.001563610858283937,
0.007725645788013935,
-0.006219183560460806,
-0.019081734120845795,
0.05034441873431206,
-0.016385894268751144,
0.019993579015135765,
-0.04123649001121521,
-0.024868587031960487,
0.031671829521656036,
-0.03422015905380249,
0.03962165117263794,
0.03718715161085129,
-0.021898197010159492,
0.08402439206838608,
-0.05275937542319298,
0.02399260923266411,
-0.059187717735767365,
-0.046157270669937134,
0.027819592505693436,
0.060315027832984924,
0.039027564227581024,
0.06095162406563759,
0.006256896071135998,
-0.05556020513176918,
0.018951719626784325,
0.06789447367191315,
0.05294957384467125,
0.0018190640257671475,
-0.01891120709478855,
-0.008620222099125385,
0.05785864591598511,
0.05987446382641792,
-0.0600922554731369,
-0.013143328949809074,
0.0035090376622974873,
0.021848266944289207,
-0.007139318156987429,
0.008517403155565262,
-0.02949032373726368,
0.03214779123663902,
-0.042491547763347626,
-0.07433073222637177,
0.0676058977842331,
0.021582692861557007,
-0.008037274703383446,
0.020677907392382622,
0.021899206563830376,
-0.0039993091486394405,
0.009352125227451324,
0.013495352119207382,
0.00714803347364068,
-0.04308211803436279,
0.018457897007465363,
-0.000016650537872919813,
0.07388242334127426,
-0.0462101548910141,
0.036828767508268356,
-0.005929525010287762,
0.03251451998949051,
0.04538603872060776,
-0.05258801579475403,
0.03671764209866524,
0.03973162919282913,
0.031096605584025383,
-0.04089140146970749,
0.009312907233834267,
0.022801652550697327,
0.04928004741668701,
0.021911924704909325,
-0.014523502439260483,
0.07524437457323074,
0.017491523176431656,
0.03210560604929924,
0.07079605758190155,
0.019920554012060165,
0.03337995335459709,
0.008751642890274525,
0.05235454440116882,
0.026392541825771332,
-0.028099650517106056,
0.058386415243148804,
-0.05567082390189171,
0.017021624371409416,
-0.04273002967238426,
0.015029885806143284,
-0.007424706127494574,
-0.00033716167672537267,
0.04587167501449585,
0.02463340200483799,
-0.041302140802145004,
-0.023612679913640022,
0.014647877775132656,
-0.0060765487141907215,
0.030836589634418488,
0.005482757464051247,
0.0022569673601537943,
-0.011359755881130695,
-0.04159969836473465,
-0.007227313704788685,
-0.06912633031606674,
-0.052405353635549545,
-0.010577999986708164,
-0.03495779260993004,
-0.033623915165662766,
-0.08923029154539108,
-0.038348324596881866,
-0.06866452842950821,
-0.004464547615498304,
0.03895983844995499,
0.023659439757466316,
-0.01416646596044302,
-0.04413103312253952,
0.016871253028512,
-0.04988369718194008,
-0.053892865777015686,
-0.038490552455186844,
-0.0346950925886631,
-0.03819665685296059,
-0.0706927701830864,
0.027087587863206863,
0.025784417986869812,
0.022556111216545105,
0.003664563875645399,
0.011018658056855202,
-0.009147479198873043,
-0.02680245228111744,
0.05443992465734482,
0.061681538820266724,
-0.03611849248409271,
-0.06234809011220932,
0.013143015094101429,
0.006500914227217436,
0.01744215376675129,
0.027153875678777695,
-0.020226364955306053,
0.09394235163927078,
0.07164443284273148,
0.010516819544136524,
0.03545500338077545,
-0.019421041011810303,
-0.06386331468820572,
-0.056550610810518265,
-0.01855548284947872,
-0.04655912145972252,
-0.0247830580919981,
-0.04008774086833,
-0.04093349725008011,
-0.038973767310380936,
-0.025173626840114594,
0.0032023971434682608,
-0.014986083842813969,
0.02430136129260063,
0.000873100885655731,
0.030815400183200836,
0.024550270289182663,
0.03920229151844978,
-0.03517637029290199,
-0.03532439470291138,
0.046727798879146576,
0.010098595172166824,
0.0036503346636891365,
-0.09217799454927444,
-0.00805335771292448,
0.018218614161014557,
0.022332031279802322,
-0.016246536746621132,
-0.005152964498847723,
0.08356212824583054,
0.006132164504379034,
-0.0035585896112024784,
0.013585231266915798,
0.00008478195377392694,
-0.01108709815889597,
-0.017683880403637886,
-0.009328261017799377,
0.013943587429821491,
-0.02598087675869465,
-0.03881140053272247,
-0.004261662717908621,
0.04738685116171837,
-0.04775914549827576,
-0.04262007027864456,
-0.01703159138560295,
0.02738066017627716,
0.05551108345389366,
-0.0036351557355374098,
-0.04567093029618263,
-0.017536120489239693,
-0.08460788428783417,
-0.011264362372457981,
0.03590578958392143,
0.00022054201690480113,
0.01711827889084816,
0.031156614422798157,
0.014170386828482151,
-0.01719464547932148,
0.02822692319750786,
0.03762208670377731,
0.06515658646821976,
-0.0002113891241606325,
-0.06535346060991287,
0.0006981489714235067,
-0.0356331393122673,
0.020909396931529045,
-0.009704391472041607,
-0.02691357024013996,
-0.03257474675774574,
-0.08495530486106873,
-0.03137526288628578,
0.003109053708612919,
0.0040283119305968285,
-0.003672904334962368,
0.027123913168907166,
-0.009426080621778965,
-0.03322480246424675,
0.013100951910018921,
0.01570901833474636,
0.05627985671162605,
-0.03207795321941376,
0.057756830006837845,
-0.02645682357251644,
0.010426241904497147,
-0.05972227826714516,
0.013306522741913795,
-0.028419367969036102,
-0.030584974214434624,
0.004845889750868082,
0.04448538273572922,
-0.004269010853022337,
0.044494979083538055,
0.0674995705485344,
0.044602446258068085,
-0.060613758862018585,
0.030859513208270073,
0.06799820810556412,
-0.03744051977992058,
-0.046708837151527405,
-0.004766225349158049,
-0.001580566167831421,
-0.005521787796169519,
-0.011282672174274921,
-0.014908382669091225,
0.04091406241059303,
0.015279412269592285,
-0.0012950509553775191,
-0.001341321156360209,
0.004574201535433531,
-0.0445345938205719,
-0.02874736487865448,
-0.061595115810632706,
-0.039870843291282654,
-0.0026390673592686653,
-0.02666315622627735,
0.015521904453635216,
0.02975369431078434,
0.019192427396774292,
0.06559384614229202,
0.029024843126535416,
-0.0281855259090662,
-0.015295199118554592,
0.022107336670160294,
0.0182481799274683,
-0.037542056292295456,
-0.07430935651063919,
-0.050399795174598694,
0.033260904252529144,
0.06528105586767197,
-0.018942221999168396,
-0.057510193437337875,
0.01825530268251896,
0.04752245172858238,
-0.06493348628282547,
0.046694718301296234,
-0.020117683336138725,
0.05494023114442825,
0.051887232810258865,
0.01710429973900318,
0.05032706633210182,
-0.026160305365920067,
-0.017425838857889175,
0.017032098025083542,
0.038926925510168076,
-0.03484024107456207,
-0.02858310379087925,
-0.05691422522068024,
0.029811521992087364,
0.039930570870637894,
0.02807486802339554,
0.03681248053908348,
-0.026879139244556427,
-0.030884258449077606,
0.007681916002184153,
0.02792959287762642,
-0.04295238479971886,
-0.004900072701275349,
0.039091821759939194,
0.04786726087331772,
-0.039484333246946335,
-0.015610414557158947,
-0.03716786205768585,
-0.0014385549584403634,
0.0438116118311882,
-0.006756321061402559,
-0.024533038958907127,
-0.029138164594769478,
0.038043636828660965,
-0.012627686373889446,
-0.028629545122385025,
-0.0564231276512146,
0.04435890167951584,
-0.008091445080935955,
-0.010087423026561737,
0.0454951673746109,
0.029130013659596443,
0.03261495381593704,
0.07578149437904358,
0.023773374035954475,
0.00745466398075223,
-0.024669811129570007,
0.03489338606595993,
-0.03208950161933899,
-0.01559481117874384,
0.010487544350326061,
-0.037885941565036774,
-0.03519054874777794,
-0.013390823267400265,
-0.047225892543792725,
-0.046214889734983444,
-0.027658039703965187,
0.029537832364439964,
-0.0017273251432925463,
-0.012124275788664818,
0.005553908180445433,
0.03617818281054497,
-0.010125148110091686,
-0.018013009801506996,
-0.053422510623931885,
-0.034498244524002075,
-0.04846169054508209,
-0.06235216185450554,
-0.015315891243517399,
0.006220206618309021,
0.024389630183577538,
0.037352390587329865,
0.03486815094947815,
0.01909823529422283,
0.022239211946725845,
-0.052231065928936005,
0.0024939565919339657,
0.024348294362425804,
-0.04409489035606384,
-0.035100605338811874,
0.018165187910199165,
0.0200425423681736,
0.028601406142115593,
-0.027973338961601257,
0.04901103302836418,
0.009245948866009712,
-0.015021568164229393,
-0.03775101527571678,
0.027974938973784447,
0.036898985505104065,
-0.06600896269083023,
-0.03943602368235588,
-0.014425207860767841,
-0.013653039000928402,
0.027496470138430595,
-0.030723722651600838,
-0.007160217966884375,
0.033291082829236984,
0.00812295638024807,
0.040013816207647324,
-0.03416449949145317,
-0.010057582519948483,
0.027582548558712006,
-0.012356429360806942,
0.01616782881319523,
-0.054569073021411896,
0.056296613067388535,
-0.05761949345469475,
0.008677881211042404,
-0.01250382885336876,
-0.0018226711545139551,
-0.03156452625989914,
0.03921699896454811,
-0.0032821749337017536,
-0.010267053730785847,
0.004346294328570366,
0.045607443898916245,
-0.01021566241979599,
0.018785715103149414,
-0.03260878473520279,
0.031030338257551193,
-0.019807707518339157,
0.06870906800031662,
-0.029160423204302788,
0.0124289495870471,
-0.02998359501361847,
0.017716264352202415,
-0.04695217311382294,
0.007890038192272186,
-0.007231365889310837,
-0.02539169229567051,
0.02256755530834198,
0.042913760989904404,
0.027388479560613632,
0.038428761065006256,
-0.007567589171230793,
-0.00937823299318552,
0.01205528900027275,
-0.05557261407375336,
-0.019311917945742607,
-0.010246938094496727,
0.007945270277559757,
-0.02117122896015644,
0.06201798841357231,
0.02933606505393982,
-0.057184040546417236,
-0.0695122703909874,
0.039969682693481445,
0.01862601935863495,
0.020261453464627266,
-0.0007397190784104168,
0.04307935759425163,
0.023011459037661552,
0.02863319218158722,
-0.014524118974804878,
-0.012256012298166752,
0.022241229191422462,
-0.04370371624827385,
0.00951248500496149,
-0.0037766036111861467,
0.005583036225289106,
0.029333390295505524,
-0.04931066185235977,
-0.009653434157371521,
0.045622993260622025,
0.024663593620061874,
0.02595490962266922,
0.019991902634501457,
-0.054741270840168,
0.025530042126774788,
0.01013832725584507,
-0.05039478838443756,
0.0008145471219904721,
0.02234712801873684,
-0.030053043738007545,
0.056138135492801666,
-0.008112198673188686,
0.0018058997811749578,
0.04370306804776192,
0.01345750316977501,
-0.023715363815426826,
0.04729155823588371,
-0.019338076934218407,
0.028190918266773224,
0.04559096693992615,
-0.07434815168380737,
-0.01330227218568325,
-0.06436078250408173,
0.0704779401421547,
-0.059959232807159424,
0.03679749369621277,
0.0413670688867569,
-0.014813813380897045,
0.016141090542078018,
-0.04675648361444473,
-0.058762773871421814,
0.02999051846563816,
-0.040240783244371414,
0.05941632762551308,
0.019444560632109642,
-0.07846128940582275,
0.043150369077920914,
0.00874149240553379,
-0.05447086691856384,
0.03368993476033211,
0.033727120608091354,
0.05920453742146492,
0.007388464640825987,
0.047530703246593475,
-0.02221064828336239,
-0.004168650135397911,
-0.044097818434238434,
0.03518706187605858,
-0.05492585897445679,
-0.02930639497935772,
0.02862505614757538,
-0.041029490530490875,
-0.010104774497449398,
0.047970227897167206,
-0.026162851601839066,
-0.018191853538155556,
0.04479192569851875,
-0.03747650608420372,
-0.026332734152674675,
0.008443823084235191,
-0.017768237739801407,
-0.040686145424842834,
-0.003116120118647814,
-0.034147959202528,
0.019608428701758385,
0.005229399539530277,
-0.010105285793542862,
-0.019427111372351646,
-0.013696770183742046,
0.03236711770296097,
-0.03841715306043625,
-0.03738902509212494,
0.02884419821202755,
-0.023026863113045692,
-0.0182644072920084,
0.03864751383662224,
0.044976718723773956,
-0.0007212177733890712,
0.035687047988176346,
-0.01781938411295414,
0.016179772093892097,
-0.05042596906423569,
-0.026183590292930603,
0.01542943250387907,
-0.002304488094523549,
0.03019832633435726,
-0.016049737110733986,
0.031378887593746185,
0.052612144500017166,
0.017936790362000465,
-0.0012683751992881298,
-0.036138299852609634,
-0.03535837680101395,
0.03125644102692604,
-0.0391639843583107,
0.015452277846634388,
-0.009041598998010159,
-0.0442967489361763,
-0.03496623411774635,
0.011520232073962688,
-0.026566505432128906,
0.03175561875104904,
-0.047325145453214645,
-0.0029170645866543055,
0.07742433995008469,
-0.022660311311483383,
-0.05208556354045868,
-0.10098767280578613,
0.003383348695933819,
-0.02724613808095455,
0.0008614069665782154,
0.046037591993808746,
-0.044423606246709824,
0.04146676883101463,
-0.07352510094642639,
-0.020261604338884354,
0.04810419678688049,
0.03525897115468979,
-0.05423399433493614,
0.06997130066156387,
0.04973753169178963,
-0.052752185612916946,
0.015312813222408295,
0.00896426010876894,
-0.04047977179288864,
0.010377817787230015,
0.018332529813051224,
0.01911899633705616,
0.018606875091791153,
0.009647088125348091,
-0.05491677299141884,
-0.027626246213912964,
-0.06604667007923126,
-0.03862105309963226,
-0.04507264867424965,
0.009550975635647774,
0.06542036682367325
] |
Aruden/DialoGPT-medium-harrypotterall | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | null | ---
tags:
- conversational
---
# Harry Potter DialoGPT Model | [
-0.029324334114789963,
0.006045046728104353,
0.013366674073040485,
0.034415628761053085,
0.0064101917669177055,
0.0184163898229599,
0.0027549832593649626,
0.015343309380114079,
-0.019336814060807228,
0.01679833233356476,
0.02836332842707634,
-0.0335305817425251,
0.010642284527420998,
0.03561847656965256,
-0.026645774021744728,
-0.022012796252965927,
-0.0374370738863945,
-0.007161307148635387,
-0.011235304176807404,
-0.024762284010648727,
0.01878328248858452,
0.019173908978700638,
-0.023326190188527107,
0.04056162014603615,
-0.00013032220886088908,
0.01604306325316429,
-0.017776837572455406,
0.007180109620094299,
0.02825922891497612,
-0.05232449620962143,
0.0054761734791100025,
-0.04873955622315407,
-0.04309379681944847,
-0.02253297157585621,
-0.03122914582490921,
-0.03367152065038681,
0.01157275028526783,
-0.0038235762622207403,
-0.0015630485722795129,
0.035578105598688126,
-0.023000074550509453,
0.006916804704815149,
0.0018112226389348507,
-0.056640177965164185,
0.07643008232116699,
-0.0021587542723864317,
-0.04019196704030037,
-0.013396967202425003,
0.019284876063466072,
-0.03964890167117119,
-0.02973981760442257,
-0.06467559188604355,
-0.057371340692043304,
-0.02214694954454899,
0.021305561065673828,
-0.047492701560258865,
-0.07273899763822556,
-0.009300298057496548,
0.09301820397377014,
-0.008789985440671444,
-0.003479601349681616,
-0.0015972885303199291,
-0.06657750904560089,
0.0034638172946870327,
0.022680899128317833,
-0.08078191429376602,
0.021663960069417953,
-0.03377952054142952,
0.006651107221841812,
-0.03950415179133415,
0.05879628285765648,
-0.0505913682281971,
0.014896580018103123,
-0.08635079860687256,
-0.006956600118428469,
0.006866901181638241,
0.062096644192934036,
0.056914135813713074,
-0.05117888003587723,
0.04631425812840462,
0.03922424092888832,
0.019339002668857574,
0.038175541907548904,
-0.02033150941133499,
-0.03604703024029732,
0.04485022649168968,
-0.049899447709321976,
-0.015213698148727417,
0.002321400912478566,
0.041603583842515945,
-0.028948627412319183,
-0.04592858999967575,
-0.03450830280780792,
-0.011223982088267803,
-0.006015983410179615,
0.06087745726108551,
0.027222031727433205,
-0.03689863532781601,
0.009819765575230122,
0.05178665369749069,
0.022423744201660156,
0.05077588930726051,
-0.02648092247545719,
0.02764766477048397,
-0.015271658077836037,
0.0276294257491827,
0.025957558304071426,
-0.021426763385534286,
-0.028382839635014534,
0.02598307467997074,
0.00972988735884428,
-0.03767849877476692,
-0.03283713757991791,
0.04257403314113617,
0.018710672855377197,
0.014837652444839478,
0.03926532343029976,
-0.038093142211437225,
-0.034723252058029175,
-0.06044483184814453,
0.04765630513429642,
-0.008917461149394512,
0.00722747715190053,
-0.0038273672107607126,
-0.0535883754491806,
-0.003075293730944395,
-0.04485759884119034,
-0.02825883962213993,
-0.016061797738075256,
0.0031830216757953167,
0.02533522993326187,
0.03805280104279518,
-0.028510073199868202,
-0.0657055675983429,
0.015092626214027405,
0.04771393537521362,
-0.06248725205659866,
0.0037312330678105354,
0.046378303319215775,
0.10275783389806747,
-0.07461053133010864,
-0.022824198007583618,
0.016644421964883804,
0.01629127562046051,
-0.0266636423766613,
0.00005521136336028576,
-0.008702308870851994,
-0.017780471593141556,
-0.05689717456698418,
-0.01681748777627945,
0.006729383487254381,
-0.05807029828429222,
-0.007673975080251694,
0.04841874912381172,
-0.014388065785169601,
0.009547034278512001,
-0.03169182687997818,
0.006040643434971571,
-0.020283591002225876,
-0.03357336297631264,
-0.04814692586660385,
0.03068779781460762,
-0.01935543119907379,
-0.021936746314167976,
-0.05094262957572937,
-0.03968610242009163,
0.012327304109930992,
0.0705903172492981,
0.021678997203707695,
-0.014923504553735256,
-0.027380215004086494,
0.04607361555099487,
0.0663459524512291,
0.039896946400403976,
-0.025043867528438568,
0.014710103161633015,
0.037086427211761475,
0.014699638821184635,
-0.028026485815644264,
0.06597111374139786,
0.007464506197720766,
-0.034463342279195786,
-0.04504704102873802,
-0.02622162736952305,
0.023382164537906647,
-0.016682155430316925,
0.014659442007541656,
0.040892571210861206,
-0.037681784480810165,
-0.043271467089653015,
0.025090549141168594,
0.05521121248602867,
-0.02454865723848343,
0.00022230457398109138,
-0.015020915307104588,
-0.017583895474672318,
-0.03008204512298107,
0.03579287603497505,
-0.04497387632727623,
0.0007514043245464563,
-0.024583086371421814,
-0.004709289409220219,
0.027974503114819527,
-0.004079547710716724,
-0.009944266639649868,
0.035158999264240265,
0.0007475509191863239,
0.07896332442760468,
-0.029629364609718323,
0.02389870211482048,
-0.02972949482500553,
-0.0038248610217124224,
-0.027765914797782898,
0.02494957484304905,
0.02031428925693035,
0.04876300320029259,
-0.04660053178668022,
-0.060219962149858475,
0.03221181407570839,
0.06487572193145752,
0.027613649144768715,
0.031065847724676132,
-0.02008022554218769,
-0.016284359619021416,
0.030312977731227875,
0.039717547595500946,
-0.038305364549160004,
0.0014758353354409337,
0.0009163497015833855,
0.028793707489967346,
-0.0077044544741511345,
-0.029279274865984917,
-0.038149476051330566,
0.003091629594564438,
-0.03434260934591293,
-0.07473298907279968,
0.047628700733184814,
0.031131526455283165,
-0.00892054382711649,
0.02309340424835682,
-0.013147242367267609,
0.013761166483163834,
0.03681659325957298,
0.012213367037475109,
0.0028349999338388443,
-0.07353322952985764,
-0.0017687792424112558,
0.011865610256791115,
0.08528615534305573,
-0.050786443054676056,
0.009875438176095486,
0.01450960524380207,
0.028331726789474487,
0.03657151013612747,
-0.011829410679638386,
0.03377189487218857,
0.05878402665257454,
0.043790269643068314,
-0.02899227663874626,
0.046585459262132645,
-0.002162110060453415,
0.0480341799557209,
0.055273812264204025,
0.003149155294522643,
0.053119514137506485,
-0.006468884646892548,
0.02760019153356552,
0.039632849395275116,
0.01438270416110754,
-0.0320330485701561,
0.03415761888027191,
0.07532195001840591,
0.0007230250630527735,
0.03211534395813942,
0.0394044853746891,
-0.0006387882749550045,
0.0007480086642317474,
-0.03934842348098755,
-0.008443034254014492,
0.010566980578005314,
-0.011486753821372986,
0.05970734357833862,
0.007821928709745407,
-0.01563885062932968,
-0.010194342583417892,
-0.014454849995672703,
-0.013643015176057816,
0.04400497302412987,
-0.017525989562273026,
-0.015870314091444016,
-0.014409157447516918,
0.00028267272864468396,
0.011324447579681873,
-0.05840837582945824,
-0.07261456549167633,
-0.00892136711627245,
-0.04502694308757782,
0.0015251465374603868,
-0.10529199242591858,
-0.033938802778720856,
-0.051022861152887344,
-0.01648094691336155,
0.040511712431907654,
0.01596754603087902,
0.02945655584335327,
-0.004817067179828882,
0.006404382176697254,
-0.02895386889576912,
-0.05527380853891373,
-0.05277848243713379,
-0.013484315946698189,
-0.011922584846615791,
-0.05986711382865906,
0.03639623522758484,
0.03594469651579857,
0.059636440128088,
0.004005639813840389,
-0.031525757163763046,
-0.04907754063606262,
-0.011161072179675102,
0.049111414700746536,
0.029080145061016083,
-0.04609939455986023,
-0.026032710447907448,
0.002191880950704217,
0.01638808660209179,
0.005718542728573084,
-0.03371670842170715,
-0.05463572219014168,
0.07348424196243286,
0.037300724536180496,
0.018640462309122086,
0.006455768831074238,
-0.003478005528450012,
-0.03578047826886177,
-0.021421674638986588,
-0.0400761216878891,
-0.04631587490439415,
-0.006308929529041052,
-0.03676237165927887,
-0.05955388769507408,
-0.030016839504241943,
-0.0606619156897068,
0.004153134301304817,
-0.0064947050996124744,
0.0026194551028311253,
0.01437730249017477,
0.017646076157689095,
0.030950473621487617,
0.01628406159579754,
-0.020657874643802643,
-0.01649150438606739,
0.028876960277557373,
-0.005001821089535952,
-0.01918436773121357,
-0.07858137786388397,
-0.04967968165874481,
0.010130629874765873,
0.018305519595742226,
-0.011504319496452808,
-0.002546550240367651,
0.03047904744744301,
0.027014032006263733,
-0.0036192380357533693,
0.027359556406736374,
-0.060156289488077164,
0.009445133619010448,
-0.044433508068323135,
-0.044254038482904434,
-0.025507858023047447,
-0.024130068719387054,
-0.025223398581147194,
-0.009120017290115356,
0.04303348809480667,
-0.08471989631652832,
-0.027839569374918938,
-0.009472784586250782,
0.010087325237691402,
0.027230044826865196,
0.0053651416674256325,
-0.06074148043990135,
-0.0025745003949850798,
-0.03820035234093666,
-0.024975325912237167,
-0.014738112688064575,
-0.018760642036795616,
0.003309398889541626,
0.027584483847022057,
0.03569645434617996,
-0.04446111246943474,
0.055457744747400284,
0.012019732035696507,
0.05459335073828697,
0.06237439438700676,
-0.02545018680393696,
0.02867874689400196,
-0.042907826602458954,
0.042373865842819214,
0.004029440227895975,
-0.03830255940556526,
-0.054072923958301544,
-0.09945599734783173,
-0.04973861947655678,
0.0275014266371727,
-0.007318167015910149,
0.013769112527370453,
0.038077931851148605,
-0.044596243649721146,
-0.039812974631786346,
0.01465238630771637,
0.035569336265325546,
0.04650743678212166,
-0.030582720413804054,
0.048671092838048935,
0.014076371677219868,
0.006929371505975723,
-0.05133192613720894,
0.004024306312203407,
-0.05675031989812851,
-0.028189698234200478,
-0.008334139361977577,
0.04396547004580498,
0.014822574332356453,
0.0701635554432869,
0.07078737765550613,
0.046007510274648666,
-0.05500912666320801,
0.06339516490697861,
0.08126981556415558,
-0.007854863069951534,
-0.037003785371780396,
-0.00683246785774827,
-0.00846167840063572,
0.00026697901193983853,
-0.0014921199763193727,
-0.015141051262617111,
0.026136642321944237,
0.04228907451033592,
0.00297183683142066,
0.000511582416947931,
0.029101410880684853,
-0.015128291212022305,
-0.012436055578291416,
-0.0765959694981575,
0.0032401259522885084,
-0.025109941139817238,
-0.032988619059324265,
0.05356369912624359,
0.03872525319457054,
0.005621433723717928,
0.05566524714231491,
0.022301461547613144,
-0.010847410187125206,
-0.04954244941473007,
0.03685742989182472,
0.020767906680703163,
-0.05409272760152817,
-0.047952596098184586,
-0.06094774603843689,
0.036577943712472916,
0.05609051138162613,
-0.011115551926195621,
-0.08585789054632187,
0.02011454850435257,
0.0463884174823761,
-0.0551876574754715,
0.04372739419341087,
0.005179118365049362,
0.0625462457537651,
0.01610248163342476,
0.009406471624970436,
0.03418578580021858,
-0.06436669081449509,
0.015213262289762497,
-0.010873571038246155,
0.04413327947258949,
-0.05113816261291504,
-0.051073893904685974,
-0.06846770644187927,
0.04051796719431877,
0.02092994749546051,
0.026323679834604263,
0.01026386208832264,
-0.05436021462082863,
-0.03328754007816315,
-0.009042703546583652,
0.014465195126831532,
-0.007088589947670698,
0.022031152620911598,
0.018190819770097733,
0.053670693188905716,
-0.0702144205570221,
0.0025187924038618803,
0.01905016228556633,
0.02234090305864811,
0.015032424591481686,
-0.020317483693361282,
-0.04864870756864548,
-0.009062418714165688,
0.02697126194834709,
-0.03206963092088699,
0.006005092989653349,
-0.09589269012212753,
0.014080235734581947,
-0.024870790541172028,
-0.024516701698303223,
0.0635879710316658,
0.05623811110854149,
0.05504676327109337,
0.07299675047397614,
-0.007165116257965565,
0.044777099043130875,
-0.01823703944683075,
0.04584970325231552,
-0.03918127343058586,
-0.021183477714657784,
-0.0004742054152302444,
-0.09294062852859497,
-0.024923225864768028,
-0.02198467217385769,
-0.030108192935585976,
-0.04360305517911911,
0.018514160066843033,
-0.004303574096411467,
-0.02432386763393879,
0.005927645601332188,
0.001532129943370819,
0.027096247300505638,
-0.0260924082249403,
-0.04185408726334572,
-0.00774267828091979,
-0.011413153260946274,
-0.09150898456573486,
-0.051739972084760666,
0.030621178448200226,
-0.03692938759922981,
0.012287834659218788,
-0.00610322505235672,
0.0063345045782625675,
0.061451513320207596,
0.006252190563827753,
-0.013939211145043373,
0.005934006534516811,
0.040698371827602386,
-0.042205821722745895,
-0.013071139343082905,
0.008154467679560184,
0.0029791579581797123,
0.004696345422416925,
-0.039839740842580795,
0.0385361947119236,
0.008949578739702702,
-0.05626218765974045,
-0.032879456877708435,
0.038065411150455475,
0.006613257806748152,
-0.07458451390266418,
-0.005305635742843151,
-0.025044642388820648,
-0.04123532772064209,
0.005882963538169861,
-0.04165685921907425,
-0.022826137021183968,
-0.008985799737274647,
0.029600806534290314,
0.022460687905550003,
-0.007589888293296099,
-0.021002883091568947,
0.000597560778260231,
-0.023328177630901337,
0.03661675751209259,
-0.059721387922763824,
0.01907220669090748,
-0.021868718788027763,
0.029988015070557594,
-0.031072424724698067,
0.011503472924232483,
-0.03803470358252525,
0.04737085849046707,
-0.033153094351291656,
-0.008493160828948021,
-0.005506565328687429,
-0.01269377302378416,
0.0029418987687677145,
0.03680837154388428,
0.009493755176663399,
0.006852645426988602,
-0.03660179302096367,
0.07498744875192642,
-0.06040522828698158,
0.02503969706594944,
-0.018646009266376495,
-0.025875579565763474,
-0.0221214909106493,
0.010518569499254227,
-0.00243677687831223,
-0.04895931854844093,
0.02525801956653595,
0.026589417830109596,
0.01125175878405571,
0.056251946836709976,
0.004884405992925167,
0.002131040906533599,
0.04290904104709625,
-0.047080472111701965,
-0.04695260152220726,
0.01371457427740097,
-0.0036854492500424385,
0.010200509801506996,
0.06730148941278458,
0.019656850025057793,
-0.051269304007291794,
-0.03298187628388405,
0.036224622279405594,
0.03920775651931763,
0.01547351386398077,
0.013992264866828918,
0.038688454777002335,
0.05340225622057915,
0.06545703113079071,
-0.014284899458289146,
-0.008399687707424164,
0.02632058784365654,
-0.015389695763587952,
-0.010931363329291344,
-0.0011463254923000932,
0.007501407992094755,
0.02187659963965416,
-0.02314271405339241,
-0.017980478703975677,
0.07055877894163132,
-0.002504604170098901,
0.003662115428596735,
-0.003091471502557397,
-0.033761415630578995,
0.06009666994214058,
0.009287005290389061,
-0.051856182515621185,
-0.006517966277897358,
0.033703580498695374,
-0.03184324502944946,
0.029390254989266396,
-0.02171221934258938,
0.008781238459050655,
0.040882062166929245,
0.018404237926006317,
0.017135364934802055,
0.022892175242304802,
-0.02161395363509655,
-0.0020907986909151077,
0.020904554054141045,
-0.042144861072301865,
-0.029485343024134636,
-0.04201829433441162,
0.042180344462394714,
-0.052373386919498444,
0.05242586508393288,
0.01947634108364582,
0.039626237004995346,
0.00204284256324172,
-0.04078803211450577,
-0.024650808423757553,
-0.022751539945602417,
-0.0470784492790699,
0.06416257470846176,
-0.022259114310145378,
-0.04111771285533905,
0.07285141199827194,
0.032809942960739136,
-0.07665783166885376,
0.03320395573973656,
0.02954564429819584,
0.04169195145368576,
0.01691335253417492,
0.06123942509293556,
-0.0454246960580349,
0.012235907837748528,
-0.0315406359732151,
0.001444325316697359,
-0.032137177884578705,
-0.029147351160645485,
-0.01114110741764307,
-0.039019957184791565,
0.00825886894017458,
0.03404037654399872,
-0.02594446763396263,
0.020991912111639977,
0.008665453642606735,
-0.037056297063827515,
-0.04209477826952934,
-0.010286766104400158,
0.027574384585022926,
-0.0018829028122127056,
-0.002804409246891737,
-0.002874651923775673,
0.01882787235081196,
0.029967091977596283,
-0.020682567730545998,
-0.06116577610373497,
0.019078020006418228,
-0.01757967472076416,
-0.054765768349170685,
-0.06269072741270065,
0.05467918515205383,
0.024424761533737183,
-0.021622810512781143,
-0.00860762782394886,
0.03603753075003624,
0.013047618791460991,
0.03396212309598923,
-0.00953170470893383,
0.01731584593653679,
-0.08252567797899246,
0.000751139537896961,
0.026040880009531975,
0.02617098204791546,
-0.011058756150305271,
-0.012689783237874508,
0.015810219570994377,
0.0690523311495781,
0.05578429624438286,
-0.00024373790074605495,
-0.045822955667972565,
-0.02362227439880371,
-0.012840475887060165,
-0.038220446556806564,
0.05083516985177994,
0.016029030084609985,
-0.061181697994470596,
-0.03173583373427391,
-0.009317218326032162,
0.002656501019373536,
0.022773977369070053,
-0.04440457001328468,
0.023512249812483788,
0.010786732658743858,
-0.005174492485821247,
-0.038444988429546356,
-0.09174039959907532,
-0.03351268172264099,
-0.019307183101773262,
0.02875979244709015,
0.03961571305990219,
-0.07238275557756424,
0.014237849041819572,
-0.027363313362002373,
-0.022072048857808113,
0.049900829792022705,
0.00413566455245018,
-0.014953586272895336,
0.07735265046358109,
0.04406217485666275,
-0.045390162616968155,
0.05342625826597214,
0.020868640393018723,
-0.05321521311998367,
0.052108488976955414,
0.009516383521258831,
0.033601313829422,
0.0004953616880811751,
0.014341053552925587,
-0.01190819963812828,
0.006626333110034466,
-0.022978195920586586,
-0.04506203159689903,
-0.0010064292000606656,
0.003309110179543495,
0.03568396344780922
] |
AryanLala/autonlp-Scientific_Title_Generator-34558227 | [
"pytorch",
"pegasus",
"text2text-generation",
"en",
"dataset:AryanLala/autonlp-data-Scientific_Title_Generator",
"transformers",
"autonlp",
"co2_eq_emissions",
"autotrain_compatible",
"has_space"
] | text2text-generation | {
"architectures": [
"PegasusForConditionalGeneration"
],
"model_type": "pegasus",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 103 | null | ---
tags: autonlp
language: en
widget:
- text: "The scale, variety, and quantity of publicly-available NLP datasets has grown rapidly as researchers propose new tasks, larger models, and novel benchmarks. Datasets is a community library for contemporary NLP designed to support this ecosystem. Datasets aims to standardize end-user interfaces, versioning, and documentation, while providing a lightweight front-end that behaves similarly for small datasets as for internet-scale corpora. The design of the library incorporates a distributed, community-driven approach to adding datasets and documenting usage. After a year of development, the library now includes more than 650 unique datasets, has more than 250 contributors, and has helped support a variety of novel cross-dataset research projects and shared tasks. The library is available at https://github.com/huggingface/datasets."
datasets:
- AryanLala/autonlp-data-Scientific_Title_Generator
co2_eq_emissions: 137.60574081887984
---
# Model Trained Using AutoNLP
- Model: Google's Pegasus (https://huggingface.co/google/pegasus-xsum)
- Problem type: Summarization
- Model ID: 34558227
- CO2 Emissions (in grams): 137.60574081887984
- Spaces: https://huggingface.co/spaces/TitleGenerators/ArxivTitleGenerator
- Dataset: arXiv Dataset (https://www.kaggle.com/Cornell-University/arxiv)
- Data subset used: https://huggingface.co/datasets/AryanLala/autonlp-data-Scientific_Title_Generator
## Validation Metrics
- Loss: 2.578599214553833
- Rouge1: 44.8482
- Rouge2: 24.4052
- RougeL: 40.1716
- RougeLsum: 40.1396
- Gen Len: 11.4675
## Social
- LinkedIn: https://www.linkedin.com/in/aryanlala/
- Twitter: https://twitter.com/AryanLala20
## 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/AryanLala/autonlp-Scientific_Title_Generator-34558227
``` | [
-0.015695618465542793,
-0.012349703349173069,
0.004788646940141916,
0.04972020909190178,
0.04614366590976715,
-0.003312081331387162,
-0.02014695294201374,
-0.03835402801632881,
-0.02132038213312626,
0.06137670949101448,
0.02366006001830101,
0.031071458011865616,
0.035528842359781265,
0.04567490890622139,
-0.025964384898543358,
-0.025559071451425552,
-0.022287972271442413,
-0.0183547455817461,
-0.06123965606093407,
-0.00794891081750393,
-0.005003162194043398,
-0.005363009870052338,
-0.031673748046159744,
0.0037641767412424088,
-0.011307806707918644,
0.016441015526652336,
-0.00788944773375988,
0.025348898023366928,
0.021407656371593475,
-0.06116687133908272,
-0.0010972939198836684,
-0.019093751907348633,
-0.03743825480341911,
-0.015930134803056717,
-0.030554644763469696,
0.006774770095944405,
0.006457705982029438,
-0.004564180970191956,
0.0178512092679739,
0.02357013337314129,
-0.0014171631773933768,
-0.012148563750088215,
0.0015018755802884698,
-0.013851786963641644,
0.06049808859825134,
0.009673445485532284,
-0.04529181495308876,
-0.03483834117650986,
0.034858014434576035,
-0.038189757615327835,
-0.05938779562711716,
-0.0509658120572567,
-0.014295807108283043,
0.030202217400074005,
-0.024835696443915367,
-0.027868038043379784,
-0.035629093647003174,
0.02009572647511959,
0.08015302568674088,
-0.05450323596596718,
-0.05035063996911049,
0.01574401743710041,
-0.09108661115169525,
0.008749458007514477,
0.04458954557776451,
-0.012965320609509945,
0.012570810504257679,
-0.03933456167578697,
0.02193586155772209,
-0.028937073424458504,
0.05585479363799095,
-0.039516936987638474,
0.023315822705626488,
-0.09365172684192657,
-0.0003741892578545958,
-0.002263885224238038,
0.030343566089868546,
0.0324101448059082,
-0.03244965523481369,
0.06817290186882019,
0.01733454316854477,
-0.012082120403647423,
0.036947041749954224,
0.008930452167987823,
-0.01225876435637474,
0.024163922294974327,
-0.04893435537815094,
0.013560484163463116,
0.0018291119486093521,
0.04732639342546463,
-0.04421345517039299,
-0.047837596386671066,
-0.03191942349076271,
-0.04048766568303108,
-0.027735983952879906,
0.03035818412899971,
0.0540931411087513,
-0.03902996703982353,
0.006406360771507025,
0.021806973963975906,
0.03342701494693756,
0.061486341059207916,
-0.01804850995540619,
0.06962230801582336,
0.01344727911055088,
-0.006381823681294918,
-0.024548862129449844,
-0.03416157513856888,
-0.055310074239969254,
0.049774933606386185,
0.026316087692975998,
-0.027915263548493385,
-0.06880278885364532,
0.024096248671412468,
0.006352679803967476,
-0.03566872701048851,
0.043296292424201965,
-0.026836909353733063,
-0.044358160346746445,
-0.03779307380318642,
0.03447115421295166,
0.012919002212584019,
-0.011049042455852032,
-0.0031407547648996115,
-0.051154974848032,
0.012808379717171192,
-0.04113069176673889,
-0.028509963303804398,
-0.005244049709290266,
0.035824086517095566,
0.0038525345735251904,
0.04114259406924248,
0.02486261911690235,
-0.07151100784540176,
-0.007620507385581732,
0.011262490414083004,
-0.04594074562191963,
0.056686412543058395,
0.03544636443257332,
0.12816229462623596,
-0.06815121322870255,
-0.046611130237579346,
0.031312063336372375,
0.0032886117696762085,
-0.017309805378317833,
0.006097397301346064,
0.0022084396332502365,
-0.023859264329075813,
-0.019909817725419998,
-0.005569491535425186,
0.035193607211112976,
-0.05458730459213257,
-0.0040237572975456715,
0.04328417405486107,
0.002109321067109704,
0.0711825042963028,
-0.04235222935676575,
-0.004866150673478842,
0.013263273984193802,
-0.016230998560786247,
-0.021694691851735115,
0.054608482867479324,
-0.005791300442069769,
0.007490980438888073,
-0.029449382796883583,
-0.024340428411960602,
-0.0002653288538567722,
0.0795261561870575,
0.007035887334495783,
-0.008623939007520676,
-0.04383302479982376,
0.016041869297623634,
0.03768877312541008,
0.03587743639945984,
-0.02920355647802353,
0.005120806396007538,
0.052177902311086655,
0.05377736687660217,
-0.0022169111762195826,
0.05747121572494507,
0.012457162141799927,
-0.03455768898129463,
-0.01228468306362629,
0.033283013850450516,
0.004119612276554108,
-0.006842590868473053,
-0.0037216448690742254,
0.04655368626117706,
0.027785297483205795,
-0.04227831959724426,
-0.025687318295240402,
0.035158921033144,
0.011359895579516888,
-0.008206174708902836,
0.0052769966423511505,
-0.001985766226425767,
-0.020163659006357193,
0.06120598688721657,
-0.025640685111284256,
0.020250121131539345,
-0.022667791694402695,
-0.01896209456026554,
0.027033314108848572,
0.03782997652888298,
0.0348484180867672,
0.04753005504608154,
0.0155756501480937,
0.09052421152591705,
-0.04607878252863884,
-0.000659607641864568,
-0.045582808554172516,
-0.022814638912677765,
-0.004470124840736389,
0.04880855605006218,
0.043817438185214996,
0.049812283366918564,
-0.032927077263593674,
-0.05472235009074211,
0.05640028417110443,
0.06602077186107635,
0.02638302370905876,
0.026949360966682434,
-0.009169335477054119,
-0.005013295449316502,
0.04589459300041199,
0.0676538273692131,
-0.03817363828420639,
-0.044627513736486435,
0.01003856211900711,
0.049939870834350586,
-0.008161010220646858,
0.0031343097798526287,
-0.023530470207333565,
0.011091588996350765,
-0.040357477962970734,
-0.08147763460874557,
0.030614420771598816,
0.03130386397242546,
-0.004674193914979696,
0.03481857851147652,
-0.03088303655385971,
0.003067145822569728,
0.05895315855741501,
0.008519966155290604,
0.024633610621094704,
-0.037707872688770294,
0.015029268339276314,
0.01933409832417965,
0.0447838269174099,
-0.04386768862605095,
0.03951146826148033,
0.007724881637841463,
0.02604183927178383,
0.028577804565429688,
-0.020462866872549057,
0.04486236348748207,
0.042054977267980576,
0.025191165506839752,
-0.02942369133234024,
0.02911258302628994,
0.01087874360382557,
0.033951401710510254,
0.08573589473962784,
0.01598212495446205,
0.0697173997759819,
-0.003545487765222788,
0.038219936192035675,
0.08242002129554749,
0.0241655632853508,
0.01834823004901409,
0.025881469249725342,
0.08179734647274017,
-0.006736185867339373,
-0.01106271706521511,
0.06825044006109238,
-0.06056530401110649,
0.043067991733551025,
-0.03328700363636017,
0.005829543806612492,
-0.02641703374683857,
0.004563812166452408,
0.05400434508919716,
0.012676798738539219,
-0.029571883380413055,
0.020117435604333878,
0.0052693793550133705,
-0.0019881781190633774,
0.037785742431879044,
-0.007126817014068365,
0.007399552967399359,
0.0022588863503187895,
-0.028384661301970482,
0.02168259210884571,
-0.061782971024513245,
-0.028904417529702187,
0.016296807676553726,
-0.044476043432950974,
-0.013043900020420551,
-0.08217479288578033,
-0.022574467584490776,
-0.06809957325458527,
-0.01489146426320076,
0.04351579397916794,
0.029239773750305176,
0.010676811449229717,
-0.03555632755160332,
-0.00013955432223156095,
-0.056484516710042953,
-0.04024052247405052,
-0.06187858060002327,
-0.06133827567100525,
-0.03918949514627457,
-0.04422909393906593,
0.026244856417179108,
0.018749916926026344,
0.010362767614424229,
-0.00437120720744133,
-0.01626754179596901,
-0.038103412836790085,
-0.018790405243635178,
0.05101049691438675,
0.040863048285245895,
-0.02236471325159073,
-0.01529347337782383,
0.011209235526621342,
-0.018637141212821007,
0.01810281164944172,
-0.020159196108579636,
-0.04729949310421944,
0.07964589446783066,
0.0701335072517395,
0.03728310763835907,
0.004093355964869261,
-0.03228173404932022,
-0.04612809792160988,
-0.04700023680925369,
-0.03937434032559395,
-0.02747623436152935,
-0.02547839656472206,
-0.05171931907534599,
-0.03371255099773407,
-0.005944646894931793,
-0.014919036999344826,
-0.00437258230522275,
-0.021813124418258667,
0.0090187918394804,
0.04650677368044853,
0.02715671807527542,
0.03619450330734253,
0.025574520230293274,
-0.040011368691921234,
-0.024952813982963562,
0.08375833928585052,
0.022652683779597282,
0.021727433428168297,
-0.05504462867975235,
-0.04667506366968155,
0.04165409877896309,
0.0091422563418746,
0.023561127483844757,
-0.013837859965860844,
0.06683672219514847,
0.007262376602739096,
0.0009004735038615763,
-0.005089018493890762,
-0.012476223520934582,
-0.02406185120344162,
-0.005835794843733311,
-0.027737844735383987,
-0.02951519750058651,
-0.043243445456027985,
-0.01794283464550972,
-0.0318237729370594,
0.0330054946243763,
-0.04705597087740898,
-0.04536612704396248,
-0.025977695360779762,
0.019790131598711014,
0.02397437021136284,
0.0005450788303278387,
-0.02300216443836689,
-0.004866517148911953,
-0.0403549000620842,
-0.021245820447802544,
0.012158256955444813,
0.024400781840085983,
-0.001624041236937046,
0.04891742765903473,
0.03648218885064125,
-0.022389976307749748,
0.04895541071891785,
0.026827309280633926,
0.08548425883054733,
0.03148314729332924,
-0.06522854417562485,
0.029347889125347137,
-0.0189097560942173,
0.011178595945239067,
-0.005747741088271141,
-0.004038557410240173,
-0.04126740247011185,
-0.0670948326587677,
0.0011519113322719932,
0.005977516062557697,
-0.014728334732353687,
-0.026940349489450455,
0.07618459314107895,
-0.01747884415090084,
-0.02053334005177021,
0.012048210017383099,
-0.00019776367116719484,
0.011345499195158482,
-0.03904813900589943,
0.04085555300116539,
-0.009003635495901108,
0.016100244596600533,
-0.048771344125270844,
0.0035786933731287718,
-0.03624463081359863,
-0.006786307319998741,
0.008027778007090092,
0.05301307514309883,
0.02763761766254902,
0.06290224939584732,
0.049957942217588425,
0.014021677896380424,
-0.028628801926970482,
0.0423130989074707,
0.04413745179772377,
-0.013041026890277863,
-0.05294623598456383,
0.01336238905787468,
0.0026998277753591537,
-0.022738754749298096,
-0.030827289447188377,
-0.018772779032588005,
0.04049234092235565,
0.04196127504110336,
-0.005177056882530451,
-0.010571371763944626,
0.037617698311805725,
-0.01784096471965313,
-0.023640133440494537,
-0.0365455336868763,
-0.01698310300707817,
-0.02171109989285469,
-0.05116313323378563,
0.020642701536417007,
0.04821596294641495,
0.01902838423848152,
0.05758459493517876,
0.04526275768876076,
-0.025598760694265366,
-0.041534677147865295,
0.053880058228969574,
0.04756046086549759,
-0.04713115468621254,
-0.04634537175297737,
-0.036124952137470245,
0.05455861985683441,
0.044123608618974686,
0.0066626183688640594,
-0.0872645229101181,
-0.02808442711830139,
0.05851807817816734,
-0.05373867228627205,
0.05180728808045387,
-0.019722601398825645,
0.0435093492269516,
0.04022862762212753,
0.0014002728275954723,
0.003950157202780247,
-0.03194804489612579,
-0.0014057266525924206,
0.007729274686425924,
0.034002549946308136,
-0.025495067238807678,
-0.038441576063632965,
-0.03624686971306801,
0.05134516581892967,
0.017719974741339684,
0.037227146327495575,
0.03619243949651718,
-0.035287853330373764,
-0.05919625610113144,
0.020802520215511322,
0.05683126300573349,
-0.029433364048600197,
0.03409392759203911,
0.031992699950933456,
0.03420603275299072,
-0.05240555480122566,
-0.03027205541729927,
-0.037659499794244766,
0.002781736897304654,
0.039449721574783325,
-0.012463178485631943,
-0.0006986414082348347,
-0.04307747259736061,
0.024695366621017456,
-0.02928796596825123,
-0.017970148473978043,
-0.07851959764957428,
0.006362697575241327,
0.007229969836771488,
-0.034003447741270065,
0.04023975878953934,
0.03831402584910393,
0.06641573458909988,
0.05205332487821579,
0.00306860008276999,
0.02446964755654335,
-0.033107977360486984,
0.057814598083496094,
-0.0191260427236557,
-0.018074309453368187,
0.01698898710310459,
-0.040245793759822845,
-0.031788211315870285,
-0.0393601730465889,
-0.0518215075135231,
-0.03374135494232178,
-0.021649271249771118,
0.018968459218740463,
-0.0042054601944983006,
-0.004661628510802984,
-0.006107785739004612,
0.05210728198289871,
-0.013939816504716873,
-0.0018650188576430082,
-0.027975304052233696,
-0.04073476791381836,
-0.06695764511823654,
-0.04713251069188118,
0.0197934340685606,
-0.00009084728662855923,
0.04013754054903984,
0.004794715438038111,
0.01942897029221058,
-0.0009506783098913729,
0.01476383302360773,
-0.027484193444252014,
0.02586904540657997,
0.00844310037791729,
-0.04830479621887207,
-0.03549039363861084,
-0.0013871592236682773,
0.012758814729750156,
0.046004388481378555,
-0.013703607954084873,
0.03213164210319519,
0.013919289223849773,
-0.04671706631779671,
0.007688299287110567,
0.023318462073802948,
0.010810783132910728,
-0.07832250744104385,
-0.03540699928998947,
-0.009268024004995823,
-0.04239370673894882,
0.027778616175055504,
-0.01666007749736309,
-0.019512148573994637,
-0.011803632602095604,
0.02796320430934429,
0.03628972917795181,
-0.010147148743271828,
-0.04979153349995613,
-0.020809397101402283,
-0.05754246935248375,
0.01636076718568802,
-0.06275128573179245,
0.045974668115377426,
-0.0199274905025959,
0.0005767084076069295,
-0.010699051432311535,
-0.005776563193649054,
-0.05619040131568909,
0.058719925582408905,
0.010106002911925316,
-0.007827403955161572,
-0.014104953967034817,
0.008759607560932636,
-0.04407549276947975,
0.04145200923085213,
-0.021872960031032562,
0.03226568177342415,
-0.03806770592927933,
0.06421124935150146,
-0.04063749685883522,
0.00035593073698692024,
-0.018598811700940132,
-0.011129206046462059,
-0.0393868051469326,
-0.010540328919887543,
-0.0019980277866125107,
-0.048093412071466446,
0.01972946710884571,
0.07915275543928146,
0.0339324027299881,
0.012871154583990574,
-0.017671389505267143,
-0.003600598080083728,
0.033145759254693985,
-0.04700909182429314,
-0.010595300234854221,
-0.003106537740677595,
0.01268138736486435,
-0.018784666433930397,
0.05627940967679024,
0.01757786236703396,
-0.06284204125404358,
-0.053084954619407654,
0.02289769798517227,
-0.0008050293545238674,
-0.0012239975621923804,
-0.0103495754301548,
0.022942693904042244,
0.04749331250786781,
0.03157972916960716,
-0.037765324115753174,
-0.014305120334029198,
-0.0012587837409228086,
-0.043061915785074234,
-0.0011945228325203061,
-0.006754985544830561,
0.01314779743552208,
-0.012214208953082561,
-0.02078813686966896,
0.00027146778302267194,
0.06669114530086517,
0.018333710730075836,
-0.008913397789001465,
-0.0033684743102639914,
-0.034099679440259933,
0.030163541436195374,
0.003807981498539448,
-0.04691609740257263,
-0.0018739388324320316,
0.01844024658203125,
-0.029702045023441315,
0.062000926584005356,
-0.013899303041398525,
0.011628641746938229,
0.04895056411623955,
0.028352104127407074,
-0.02975357137620449,
0.04682382196187973,
-0.018482225015759468,
-0.019818583503365517,
0.053920648992061615,
-0.053284816443920135,
-0.029592135921120644,
-0.024846985936164856,
0.0687079131603241,
-0.0654606968164444,
0.06575951725244522,
0.026635902002453804,
0.013477600179612637,
0.02890140749514103,
-0.024693429470062256,
-0.03214285150170326,
0.0049697961658239365,
-0.0446045957505703,
0.08722700923681259,
0.018776077777147293,
-0.050698328763246536,
0.07071910798549652,
0.0022118871565908194,
-0.0835101455450058,
0.03732527047395706,
0.033937253057956696,
0.028393875807523727,
0.011607800610363483,
0.032704006880521774,
-0.04558717831969261,
0.006217125337570906,
-0.03828864172101021,
0.03830590844154358,
-0.054855894297361374,
-0.01835237443447113,
0.015311041846871376,
-0.05011790245771408,
-0.03857596963644028,
0.041001174598932266,
-0.03361489623785019,
-0.0023208686616271734,
0.014231555163860321,
-0.06533575057983398,
-0.0538598895072937,
0.02669610269367695,
0.03006063774228096,
-0.030000776052474976,
0.00603776890784502,
-0.04251829907298088,
0.003851422341540456,
0.018999991938471794,
0.009965908713638783,
-0.02892385981976986,
0.00851950328797102,
0.04039054363965988,
-0.07102680951356888,
-0.022887803614139557,
0.04363230615854263,
0.016675632447004318,
-0.02417290024459362,
0.008621348068118095,
0.008965307846665382,
0.02141549624502659,
0.029445964843034744,
-0.03309245780110359,
0.015737848356366158,
-0.048444684594869614,
-0.014985485933721066,
0.027622798457741737,
-0.014314070343971252,
0.02521737664937973,
-0.0015129306120797992,
0.0465848483145237,
0.034423913806676865,
0.06162389740347862,
-0.0077805607579648495,
-0.0035869237035512924,
-0.016678839921951294,
0.050204455852508545,
-0.034362584352493286,
0.029283493757247925,
0.012162897735834122,
-0.05993826687335968,
-0.03691815212368965,
-0.007598774507641792,
-0.021711032837629318,
0.043412331491708755,
-0.05338235944509506,
0.0069199372082948685,
0.010202853940427303,
-0.008227186277508736,
-0.06499697268009186,
-0.08842553943395615,
-0.018584806472063065,
-0.023249706253409386,
0.01749947853386402,
0.02492492087185383,
-0.021475574001669884,
0.013756758533418179,
-0.04467419907450676,
-0.0673917755484581,
0.02905993163585663,
0.03170564025640488,
-0.044600918889045715,
0.049706701189279556,
0.039982397109270096,
-0.02722984366118908,
-0.0016519407508894801,
0.0498337522149086,
-0.053186606615781784,
0.02809576690196991,
0.010295369662344456,
0.006694376934319735,
0.03328457474708557,
0.025919033214449883,
-0.04542282596230507,
-0.044286683201789856,
-0.04977263882756233,
-0.05009919032454491,
-0.03472910076379776,
0.024437539279460907,
0.05825858935713768
] |
Ashkanmh/bert-base-parsbert-uncased-finetuned | [
"pytorch",
"tensorboard",
"bert",
"fill-mask",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"BertForMaskedLM"
],
"model_type": "bert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 3 | null | ---
tags:
- generated_from_trainer
model-index:
- name: bert-base-parsbert-uncased-finetuned
results:
- task:
name: Masked Language Modeling
type: fill-mask
---
<!-- 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. -->
# bert-base-parsbert-uncased-finetuned
This model is a fine-tuned version of [HooshvareLab/bert-base-parsbert-uncased](https://huggingface.co/HooshvareLab/bert-base-parsbert-uncased) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 3.2045
## 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: 64
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 3.5596 | 1.0 | 515 | 3.2097 |
### Framework versions
- Transformers 4.10.0
- Pytorch 1.9.0+cu102
- Datasets 1.11.0
- Tokenizers 0.10.3
| [
-0.01987166330218315,
-0.013812064193189144,
-0.02104773372411728,
0.052686627954244614,
0.04412341117858887,
0.024253234267234802,
-0.009775509126484394,
-0.014571042731404305,
-0.030795209109783173,
0.06819160282611847,
0.015369975008070469,
-0.01877770945429802,
0.011338389478623867,
0.05456244572997093,
-0.01788419485092163,
-0.028944579884409904,
-0.0014721129555255175,
-0.006280987989157438,
-0.045974522829055786,
-0.0033571964595466852,
-0.006275244988501072,
0.0013683950528502464,
0.007952052168548107,
0.01654643751680851,
0.00577988987788558,
0.02397996000945568,
-0.010304118506610394,
0.013609271496534348,
0.025816654786467552,
-0.06635962426662445,
-0.012160258367657661,
-0.030646054074168205,
-0.03332334756851196,
-0.012120096012949944,
-0.011156033724546432,
-0.01966271363198757,
0.008573179133236408,
0.01851893961429596,
0.03056422248482704,
0.05011799558997154,
-0.011314877308905125,
-0.0017658151919022202,
-0.0011465048883110285,
-0.031079109758138657,
0.0493089035153389,
0.016650523990392685,
-0.04223117604851723,
0.006163119804114103,
0.05081341043114662,
-0.01228894479572773,
-0.04865521565079689,
-0.053046148270368576,
-0.0346321277320385,
0.03540317341685295,
-0.014569452963769436,
-0.0047646258026361465,
-0.06028278172016144,
-0.005181003361940384,
0.07025962322950363,
-0.03430294990539551,
-0.045631371438503265,
0.009802318178117275,
-0.04814667999744415,
0.022544384002685547,
0.027966005727648735,
-0.02318749763071537,
0.005836357828229666,
-0.044643156230449677,
0.034129757434129715,
-0.023990722373127937,
0.06578145921230316,
-0.027061618864536285,
0.01096592377871275,
-0.09953577816486359,
-0.002070281421765685,
0.0004966667620465159,
0.04988183453679085,
0.051707565784454346,
-0.01725575514137745,
0.06137276440858841,
0.016847528517246246,
-0.013577716425061226,
0.02891458384692669,
-0.03236934542655945,
0.009768004529178143,
0.03394608944654465,
-0.02283104881644249,
0.010657869279384613,
0.019265994429588318,
0.02675582468509674,
-0.02927323430776596,
-0.018322480842471123,
-0.05362871661782265,
-0.033385444432497025,
-0.011316739022731781,
0.011097965762019157,
0.03019193559885025,
0.017674392089247704,
0.049445703625679016,
0.017766203731298447,
0.006154492497444153,
0.0457494892179966,
-0.0012454950483515859,
0.07450234889984131,
-0.0023445861879736185,
-0.012992875650525093,
-0.004992085043340921,
-0.023671524599194527,
-0.026734497398138046,
0.03227197006344795,
0.06002529338002205,
-0.027672672644257545,
-0.03964352235198021,
0.05150238424539566,
0.010191656649112701,
-0.005272626411169767,
0.05419482663273811,
-0.018301257863640785,
-0.04498213157057762,
-0.031315796077251434,
0.03515341877937317,
-0.011403310112655163,
0.0010069886920973659,
0.017599303275346756,
-0.049325279891490936,
-0.009235892444849014,
-0.03481915593147278,
-0.02434791997075081,
0.0043586245737969875,
0.02378498576581478,
-0.003080872120335698,
0.053662072867155075,
0.01577015593647957,
-0.04848644509911537,
-0.002130872802808881,
0.015295903198421001,
-0.04993196576833725,
0.03231161832809448,
0.013087046332657337,
0.13880160450935364,
-0.05328787490725517,
-0.047829460352659225,
0.018973229452967644,
-0.007057635113596916,
-0.03795500099658966,
-0.00010725335596362129,
0.022761546075344086,
-0.028811076655983925,
0.0016684967558830976,
0.003021778305992484,
0.05880172550678253,
-0.0532672181725502,
-0.002432037377730012,
0.06594322621822357,
-0.0003507793298922479,
0.03570934757590294,
-0.06416893005371094,
-0.01568550057709217,
0.0025667937006801367,
-0.02809154987335205,
-0.03712833672761917,
0.040981225669384,
-0.0156689565628767,
-0.025700844824314117,
-0.02889980748295784,
-0.04826514422893524,
0.007956510409712791,
0.07390455901622772,
-0.0013540611835196614,
-0.00970410741865635,
-0.012853676453232765,
0.025583790615200996,
0.048723455518484116,
0.043637584894895554,
-0.04619205743074417,
0.04427078366279602,
0.060103852301836014,
0.015730498358607292,
-0.02829795330762863,
0.03932177647948265,
-0.0012180691119283438,
-0.0467635914683342,
-0.03215138986706734,
0.029107989743351936,
-0.000704960897564888,
-0.04611936956644058,
0.05030198022723198,
0.016567744314670563,
-0.000780812872108072,
-0.04246849939227104,
-0.019789617508649826,
0.055757179856300354,
-0.0016430179821327329,
0.0017513561761006713,
0.023109812289476395,
0.007803590036928654,
-0.01625680737197399,
0.039768416434526443,
-0.02338043600320816,
0.0070204781368374825,
-0.028275765478610992,
-0.022631937637925148,
0.013415616005659103,
-0.009563405998051167,
0.031029323115944862,
0.05209522694349289,
-0.014306462369859219,
0.0843617245554924,
-0.02843194641172886,
0.030877379700541496,
-0.05493655800819397,
-0.03906427323818207,
0.019134750589728355,
0.0668310597538948,
0.05780119448900223,
0.03333558887243271,
-0.00862033385783434,
-0.05016837641596794,
0.02189728245139122,
0.06517144292593002,
0.054294388741254807,
0.010180818848311901,
-0.042347896844148636,
-0.00512072304263711,
0.03328348323702812,
0.065960593521595,
-0.06340944021940231,
-0.01174396276473999,
-0.001979460706934333,
0.045904383063316345,
-0.011673576198518276,
0.027017297223210335,
-0.014459550380706787,
0.04808003827929497,
-0.042203426361083984,
-0.06982460618019104,
0.058409132063388824,
0.03768766298890114,
-0.00834500603377819,
0.04578274488449097,
0.0008027069270610809,
0.00888479221612215,
0.010980997234582901,
0.023173687979578972,
-0.001324728480540216,
-0.048524145036935806,
0.00004553153121378273,
0.010732777416706085,
0.05052696168422699,
-0.054277293384075165,
0.028362447395920753,
-0.014127422124147415,
0.004246048629283905,
0.04008431360125542,
-0.029592284932732582,
0.015034609474241734,
0.03064107522368431,
0.014499630779027939,
-0.02931857481598854,
0.02766025997698307,
0.014698243699967861,
0.05428808927536011,
0.044990163296461105,
0.013223056681454182,
0.08036641776561737,
0.0002702447527553886,
0.054020509123802185,
0.07720187306404114,
0.034800682216882706,
0.038186561316251755,
0.0037874234840273857,
0.06135519966483116,
0.0175557229667902,
-0.02320958487689495,
0.058161523193120956,
-0.04070897400379181,
0.015321695245802402,
-0.04341695457696915,
0.004325271118432283,
-0.022264841943979263,
-0.019757570698857307,
0.0320570170879364,
0.006513338070362806,
-0.003237729426473379,
-0.02381286211311817,
-0.002169050509110093,
-0.008090216666460037,
0.05741719901561737,
-0.005499621853232384,
0.007082966156303883,
0.0029775500297546387,
-0.00801041629165411,
-0.013481208123266697,
-0.0708000510931015,
-0.048979826271533966,
-0.004874962382018566,
-0.026400389149785042,
-0.00040154485031962395,
-0.10626044869422913,
-0.03896256536245346,
-0.07411011308431625,
-0.007757850922644138,
0.023771855980157852,
0.013169337995350361,
-0.0009862909791991115,
-0.028029436245560646,
0.02615627646446228,
-0.04392240196466446,
-0.02640029415488243,
-0.038392744958400726,
-0.0424962118268013,
-0.05756937712430954,
-0.07645788043737411,
0.030769430100917816,
0.020692914724349976,
0.00485186418518424,
-0.011938415467739105,
0.014118514955043793,
-0.004686168394982815,
-0.022346721962094307,
0.03661198168992996,
0.052878670394420624,
-0.03225216642022133,
-0.0663696676492691,
0.025606200098991394,
-0.01138275396078825,
0.008217858150601387,
0.019471194595098495,
-0.02930402010679245,
0.10865780711174011,
0.06975620985031128,
0.03050585836172104,
0.019362682476639748,
-0.01338675431907177,
-0.04727748781442642,
-0.06321395188570023,
-0.024666786193847656,
-0.05961088091135025,
-0.003994228783994913,
-0.03567890450358391,
-0.04315651208162308,
-0.023454876616597176,
-0.027352018281817436,
0.0004653258074540645,
-0.007639564108103514,
0.02383856102824211,
0.0353684276342392,
0.03583331033587456,
0.02646631747484207,
0.053285516798496246,
-0.038290686905384064,
-0.031165288761258125,
0.06511681526899338,
0.01296258345246315,
0.0027208742685616016,
-0.09027042984962463,
-0.0202857106924057,
0.036164332181215286,
0.019353289157152176,
0.006946557201445103,
0.0019400881137698889,
0.07648635655641556,
0.012449320405721664,
-0.006364070810377598,
0.015637878328561783,
-0.00989990308880806,
-0.029745223000645638,
-0.005296207964420319,
-0.0024514244869351387,
-0.010915798135101795,
-0.04594286158680916,
-0.05182730779051781,
0.006328705698251724,
0.031238829717040062,
-0.05843466892838478,
-0.056488003581762314,
-0.02456345409154892,
0.029718097299337387,
0.04388006776571274,
-0.00788821093738079,
-0.050765376538038254,
-0.006247370503842831,
-0.0679868757724762,
-0.023634376004338264,
0.016027072444558144,
0.0064634475857019424,
0.01872539520263672,
0.03415912389755249,
0.026867030188441277,
-0.03604363650083542,
0.011259336024522781,
0.0402410514652729,
0.0782763808965683,
0.013293812051415443,
-0.05928795412182808,
0.01698090322315693,
-0.006470128428190947,
0.016651365906000137,
-0.008414031937718391,
-0.022893844172358513,
-0.03667023032903671,
-0.09569939225912094,
-0.014918257482349873,
0.0013185833813622594,
-0.005305674392729998,
-0.025663599371910095,
0.04195931926369667,
-0.023922568187117577,
-0.012601534835994244,
-0.0029509691521525383,
0.011510266922414303,
0.042821671813726425,
-0.04161033406853676,
0.05778190866112709,
-0.034982748329639435,
0.02068684995174408,
-0.026330970227718353,
0.015910528600215912,
-0.02211262285709381,
-0.014184072613716125,
-0.00627107173204422,
0.05640052258968353,
0.0018725823611021042,
0.06953544914722443,
0.08650735020637512,
0.03714695945382118,
-0.05630938336253166,
0.035886481404304504,
0.06136242672801018,
-0.01656293123960495,
-0.04997245594859123,
-0.0017523629358038306,
-0.015187077224254608,
-0.04194558411836624,
-0.013909912668168545,
-0.014888517558574677,
0.033919937908649445,
0.03539763391017914,
-0.0011333610164001584,
0.010521258227527142,
0.006099844351410866,
-0.012567325495183468,
-0.04001506417989731,
-0.060404013842344284,
-0.03551946207880974,
0.007347614038735628,
-0.024255873635411263,
0.03637545183300972,
0.030037378892302513,
0.012348220683634281,
0.07136709243059158,
0.034908443689346313,
-0.0176803357899189,
-0.03322615474462509,
0.02620040439069271,
0.006899628322571516,
-0.01710381731390953,
-0.07335423678159714,
-0.04685017466545105,
0.04514162242412567,
0.05398891121149063,
0.0026245866902172565,
-0.054274290800094604,
0.0059185815043747425,
0.039856359362602234,
-0.022610725834965706,
0.057969607412815094,
-0.027979252859950066,
0.06639127433300018,
0.061739128082990646,
-0.016860518604516983,
0.03390049561858177,
-0.02335182949900627,
-0.009372415021061897,
0.007085514720529318,
0.02216837741434574,
-0.02230881154537201,
-0.039217013865709305,
-0.05516713857650757,
0.011679677292704582,
0.04440353810787201,
0.03295991197228432,
0.04790974408388138,
-0.019742952659726143,
-0.04268892481923103,
0.028579844161868095,
0.029588796198368073,
-0.05417059361934662,
-0.005206102505326271,
0.027277294546365738,
0.03703850880265236,
-0.050327666103839874,
-0.035417526960372925,
-0.048412010073661804,
-0.01946958340704441,
0.020246336236596107,
0.019246945157647133,
-0.0401749350130558,
-0.04465687274932861,
0.02827676385641098,
-0.00981862097978592,
-0.03468173369765282,
-0.061807818710803986,
0.036387842148542404,
-0.019678933545947075,
-0.014496762305498123,
0.052933238446712494,
0.035387516021728516,
0.019276004284620285,
0.044560275971889496,
0.028940143063664436,
0.016068672761321068,
-0.04879163205623627,
0.03397071361541748,
-0.021196583285927773,
-0.0357913114130497,
0.0004759057192131877,
-0.04572422429919243,
-0.014750903472304344,
-0.028498783707618713,
-0.0357956737279892,
-0.05317600443959236,
-0.029827306047081947,
0.015751056373119354,
-0.0021490606013685465,
-0.01191770937293768,
-0.01127441506832838,
0.04556548595428467,
-0.021563755348324776,
-0.03732151910662651,
-0.030251111835241318,
-0.027601730078458786,
-0.060610514134168625,
-0.06792152673006058,
0.00948291178792715,
0.0009984592907130718,
0.037818748503923416,
0.027157975360751152,
0.011141450144350529,
0.006469221785664558,
0.0058618453331291676,
-0.041119035333395004,
0.026632558554410934,
-0.011941475793719292,
-0.035695452243089676,
-0.016437577083706856,
0.04653339087963104,
0.016517270356416702,
0.031116530299186707,
-0.030109502375125885,
0.046542197465896606,
0.012995747849345207,
-0.013059102930128574,
-0.01362628024071455,
0.023874156177043915,
0.0056769209913909435,
-0.05941685661673546,
-0.03294174000620842,
-0.014077113941311836,
-0.04213300719857216,
0.04243677109479904,
-0.03865630552172661,
-0.027248084545135498,
0.02539035864174366,
0.0246395543217659,
0.05910290405154228,
-0.009495374746620655,
-0.010762237012386322,
0.041273582726716995,
-0.017188936471939087,
0.014080238528549671,
-0.04795320704579353,
0.041840311139822006,
-0.04779711365699768,
0.02140994556248188,
-0.019796844571828842,
-0.004962345119565725,
-0.04745224490761757,
0.025425972416996956,
-0.016875190660357475,
-0.032459862530231476,
-0.011018343269824982,
0.04277282953262329,
-0.023663323372602463,
0.038717079907655716,
-0.010733291506767273,
0.029491420835256577,
-0.03471150994300842,
0.06306164711713791,
-0.04686114564538002,
0.018222937360405922,
-0.03161395713686943,
0.021483715623617172,
-0.03804323449730873,
0.007338415831327438,
0.013481141068041325,
-0.039430778473615646,
0.03609807416796684,
0.03313465416431427,
0.027085356414318085,
0.01883953996002674,
-0.010222523473203182,
-0.004977049306035042,
0.01948467083275318,
-0.04548892006278038,
-0.03195834904909134,
-0.0052437256090343,
0.008538973517715931,
-0.007128095254302025,
0.06902087479829788,
0.057017114013433456,
-0.0492812879383564,
-0.07574690133333206,
0.05586116388440132,
0.009700857102870941,
-0.006125580985099077,
0.01757529005408287,
0.0469493493437767,
0.03107307478785515,
0.051207371056079865,
-0.024789689108729362,
-0.007966150529682636,
0.002581325825303793,
-0.053480613976716995,
0.02802874892950058,
-0.0010352986864745617,
0.032395124435424805,
0.008368762210011482,
-0.03763226792216301,
-0.038828782737255096,
0.07530345767736435,
0.033167652785778046,
0.023734739050269127,
-0.0015180499758571386,
-0.04324791580438614,
0.016167107969522476,
0.0022650856990367174,
-0.033919770270586014,
0.00425724359229207,
0.013349548913538456,
-0.023513635620474815,
0.050753992050886154,
-0.009242848493158817,
0.015663309022784233,
0.04105640575289726,
0.022425994277000427,
-0.01643090695142746,
0.06132031977176666,
-0.04348158836364746,
0.026503577828407288,
0.04462651163339615,
-0.05956221744418144,
-0.0055807665921747684,
-0.025031492114067078,
0.06810671091079712,
-0.06104665622115135,
0.02640896663069725,
0.05752073600888252,
-0.0023726869840174913,
0.009341654367744923,
-0.035259321331977844,
-0.061080317944288254,
0.014453528448939323,
-0.034197669476270676,
0.07626311480998993,
0.008628059178590775,
-0.06624560058116913,
0.05813496932387352,
0.006676460616290569,
-0.07486940175294876,
0.0465378537774086,
0.04261942580342293,
0.047495484352111816,
0.011832998134195805,
0.04287471994757652,
-0.06566938757896423,
0.02251528576016426,
-0.04607317969202995,
0.0399051159620285,
-0.05845339596271515,
-0.01859879307448864,
0.04070238396525383,
-0.02483518235385418,
-0.014633981510996819,
0.041522640734910965,
-0.025102589279413223,
-0.010514766909182072,
0.04291972890496254,
-0.049346473067998886,
-0.0392770916223526,
0.0015200725756585598,
0.0072752744890749454,
-0.034289613366127014,
0.002865870948880911,
-0.04824212193489075,
0.009859192185103893,
-0.0013877545716241002,
-0.005108556244522333,
-0.03347320482134819,
-0.007897176779806614,
0.03212108835577965,
-0.04207410290837288,
-0.03884860873222351,
0.028485283255577087,
0.00036137993447482586,
-0.026763781905174255,
0.03326524421572685,
0.005486434791237116,
0.007580762729048729,
0.02283427305519581,
0.005544212181121111,
0.01820526085793972,
-0.037245191633701324,
-0.011527009308338165,
0.02449108473956585,
-0.010041925124824047,
0.02808249182999134,
0.0029232779052108526,
0.03547193482518196,
0.04255511611700058,
0.045076943933963776,
-0.018240125849843025,
-0.0442936085164547,
-0.03584546595811844,
0.020734624937176704,
-0.028983037918806076,
0.0055433218367397785,
-0.0021350225433707237,
-0.035289496183395386,
-0.039183806627988815,
0.010818404145538807,
-0.029591452330350876,
0.03585681691765785,
-0.05822592228651047,
0.005538638681173325,
0.036112405359745026,
-0.029524065554142,
-0.044123973697423935,
-0.09353037178516388,
-0.019261745736002922,
-0.04820570349693298,
0.000438481307355687,
0.03306685760617256,
-0.032366227358579636,
0.017865125089883804,
-0.039569444954395294,
-0.040229640901088715,
0.05521431937813759,
0.017166392877697945,
-0.047555916011333466,
0.06819111108779907,
0.05166187137365341,
-0.0472964383661747,
-0.005556029733270407,
0.01897990144789219,
-0.032938867807388306,
0.01764458231627941,
0.016923435032367706,
0.01699219085276127,
0.0035228882916271687,
0.02384234592318535,
-0.046491656452417374,
-0.03565828129649162,
-0.08049044013023376,
-0.03279533609747887,
-0.044732581824064255,
0.009235666133463383,
0.06360206753015518
] |
Atampy26/GPT-Glacier | [
"pytorch",
"gpt_neo",
"text-generation",
"transformers"
] | text-generation | {
"architectures": [
"GPTNeoForCausalLM"
],
"model_type": "gpt_neo",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | GPT-Glacier, a GPT-Neo 125M model finetuned on the Glacier2 Modding Discord server. | [
-0.018713049590587616,
-0.0032266827765852213,
-0.006518980022519827,
0.015918362885713577,
0.07091409713029861,
0.01734098605811596,
0.04068811982870102,
0.01002254243940115,
-0.025752825662493706,
-0.0008721005287952721,
0.04079768434166908,
-0.012509702704846859,
0.04385343939065933,
0.06629300862550735,
-0.030632266774773598,
-0.028772911056876183,
-0.029328715056180954,
-0.021676186472177505,
-0.04296937584877014,
-0.008162341080605984,
-0.0004328749200794846,
0.011135618202388287,
0.0004741633019875735,
0.018621578812599182,
0.002185541670769453,
0.026754911988973618,
0.007059961557388306,
-0.00007259725680341944,
0.04839716851711273,
-0.04505410045385361,
-0.0077322665601968765,
-0.04462221637368202,
-0.0247793011367321,
-0.03954949229955673,
-0.04047734662890434,
-0.026386721059679985,
0.005876388866454363,
-0.03820818290114403,
0.008604126051068306,
0.03141936659812927,
-0.03365107625722885,
0.022863013669848442,
-0.007320411503314972,
-0.027311187237501144,
0.017806166782975197,
-0.027440804988145828,
-0.020225821062922478,
-0.03462596610188484,
0.02095687761902809,
-0.01603173278272152,
-0.033305369317531586,
-0.06484518200159073,
-0.025420384481549263,
-0.006023564375936985,
0.021404121071100235,
-0.022103622555732727,
-0.09785550087690353,
-0.0035736882127821445,
0.09063344448804855,
-0.043147552758455276,
-0.029859183356165886,
0.0032637303229421377,
-0.03614918142557144,
-0.018768245354294777,
0.016068585216999054,
-0.026517046615481377,
0.0064290305599570274,
-0.029590487480163574,
0.02945411205291748,
-0.025009267032146454,
0.046543773263692856,
-0.045281119644641876,
0.0328582227230072,
-0.07247208058834076,
-0.03611236810684204,
0.00004245504169375636,
0.021467795595526695,
0.051926691085100174,
-0.04326082766056061,
0.03647692874073982,
0.021472886204719543,
0.00800857413560152,
0.008962343446910381,
-0.007266751956194639,
-0.027988474816083908,
0.011996381916105747,
-0.057928044348955154,
0.024255335330963135,
-0.014594296924769878,
0.046024445444345474,
-0.06200764700770378,
-0.06004803627729416,
-0.03713686764240265,
-0.032510366290807724,
0.018061408773064613,
0.040564049035310745,
0.047384340316057205,
-0.019379258155822754,
0.023830009624361992,
0.025668950751423836,
0.03284134715795517,
0.02751576527953148,
-0.017027612775564194,
0.02472637966275215,
0.04365801438689232,
0.010660733096301556,
-0.0327116921544075,
-0.040127526968717575,
-0.06140066310763359,
0.018302178010344505,
0.026689307764172554,
-0.03627974912524223,
-0.03067980520427227,
0.014533092267811298,
0.02219218574464321,
-0.003386429511010647,
0.07045313715934753,
-0.0215955451130867,
-0.0453137569129467,
-0.06890201568603516,
0.02517303265631199,
0.06478137522935867,
0.007813770323991776,
0.003044595941901207,
-0.048453643918037415,
0.030089758336544037,
-0.024647952988743782,
0.00422234321013093,
-0.05102832242846489,
0.030172672122716904,
-0.00012181708734715357,
0.023393241688609123,
0.028427962213754654,
-0.06952448189258575,
0.04217438027262688,
0.04891639202833176,
-0.08125798404216766,
0.021177949383854866,
-0.020093312487006187,
0.09959390014410019,
-0.058062341064214706,
-0.06908485293388367,
-0.005380597431212664,
0.012056629173457623,
-0.038733940571546555,
-0.009135217405855656,
-0.016520176082849503,
-0.05679549649357796,
-0.03429027646780014,
-0.008846424520015717,
0.04080665111541748,
-0.04773775115609169,
0.0006552199483849108,
0.06721417605876923,
-0.0022533205337822437,
0.014842099510133266,
-0.03136533871293068,
-0.0026088126469403505,
0.004907304886728525,
0.00025752800866030157,
-0.025389758870005608,
0.020733198150992393,
-0.031275324523448944,
-0.022198185324668884,
-0.06338131427764893,
-0.04457748681306839,
0.015252684243023396,
0.06491365283727646,
-0.000532396777998656,
-0.0035883337259292603,
-0.018172232434153557,
0.01324150338768959,
0.03372786194086075,
0.06098140403628349,
-0.028836676850914955,
0.06212427839636803,
0.037834856659173965,
0.0283394455909729,
-0.01494364719837904,
0.049055811017751694,
0.022872213274240494,
-0.02697433903813362,
-0.04761146754026413,
0.00022001958859618753,
0.023363841697573662,
-0.03254055231809616,
0.0010381217580288649,
0.0392419770359993,
0.017449332401156425,
-0.061283860355615616,
-0.028118334710597992,
0.03768143057823181,
-0.02487020753324032,
-0.020680397748947144,
0.033160336315631866,
-0.02141181379556656,
-0.014656384475529194,
0.026491543278098106,
-0.041172366589307785,
-0.013200732879340649,
-0.040838971734046936,
-0.044478997588157654,
0.027501877397298813,
-0.010588647797703743,
0.030117599293589592,
0.04581383243203163,
-0.02414798177778721,
0.06823670119047165,
-0.031875792890787125,
0.015500294044613838,
-0.0573933981359005,
-0.0219179205596447,
-0.002570260316133499,
0.04077515751123428,
0.010500348173081875,
0.03465564548969269,
-0.015863893553614616,
-0.06637382507324219,
0.03068840317428112,
0.07508713752031326,
0.04189726710319519,
0.015931492671370506,
-0.03598799929022789,
-0.008363937959074974,
0.04774749279022217,
0.04644126817584038,
-0.04851124435663223,
-0.02315109223127365,
0.051359836012125015,
0.017340566962957382,
-0.011632156558334827,
0.01946323737502098,
-0.04423645883798599,
0.03775428980588913,
-0.051274314522743225,
-0.06299671530723572,
0.020790379494428635,
0.029421841725707054,
-0.0035888587590306997,
0.021278176456689835,
-0.014128178358078003,
0.01555613987147808,
-0.0011289508547633886,
-0.00859855953603983,
-0.006352483294904232,
-0.05421067029237747,
0.03944128006696701,
0.02326343022286892,
0.03518344834446907,
-0.027918627485632896,
0.040194276720285416,
0.010859900154173374,
-0.0047280131839215755,
0.035751450806856155,
-0.013324948027729988,
0.014720112085342407,
0.0739249736070633,
0.025294741615653038,
-0.023380907252430916,
0.0003506663488224149,
0.03853461146354675,
0.04942973330616951,
0.07412371039390564,
-0.01317218504846096,
0.06998296082019806,
-0.005479016806930304,
0.036360446363687515,
0.09073434770107269,
0.031179849058389664,
0.00303424010053277,
0.028545023873448372,
0.03036445565521717,
0.003654175903648138,
0.003884083591401577,
0.036856070160865784,
-0.04243365675210953,
-0.004281156696379185,
-0.020114853978157043,
-0.026418164372444153,
-0.027102293446660042,
-0.010385306552052498,
0.09154883027076721,
0.027689896523952484,
0.0014426051639020443,
0.013380312360823154,
-0.00964756403118372,
-0.016512062400579453,
0.015721872448921204,
-0.0075998627580702305,
-0.0036791127640753984,
0.003960094414651394,
-0.017855485901236534,
-0.015227164141833782,
-0.04957585781812668,
-0.03485286980867386,
-0.04376867786049843,
-0.02574639767408371,
0.03172706812620163,
-0.10571008175611496,
-0.01701226830482483,
-0.05984896793961525,
0.008890796452760696,
0.04728544130921364,
0.018375372514128685,
0.026867711916565895,
-0.022183354943990707,
0.024827025830745697,
-0.025440076366066933,
-0.06581340730190277,
-0.06494121998548508,
-0.0713128075003624,
-0.0024563840124756098,
-0.04274701699614525,
0.006075279787182808,
0.03755112737417221,
0.023386603221297264,
0.008682222105562687,
0.004889017902314663,
-0.014774966053664684,
-0.013839409686625004,
0.06414567679166794,
0.014169750735163689,
-0.034332845360040665,
-0.03646737337112427,
0.06200803071260452,
0.00037779787089675665,
-0.0018809958128258586,
-0.05189384147524834,
-0.02861282043159008,
0.07275412231683731,
0.08231165260076523,
-0.005138450767844915,
0.007325475104153156,
0.009820131585001945,
-0.06262433528900146,
-0.03318419307470322,
-0.055657751858234406,
-0.044007785618305206,
0.000897795136552304,
-0.02211730182170868,
-0.019413145259022713,
-0.01643981598317623,
-0.07095345109701157,
-0.005069628357887268,
-0.0022032454144209623,
-0.03056970424950123,
0.052953530102968216,
0.04619010537862778,
0.03391781076788902,
0.039386823773384094,
-0.029084904119372368,
-0.05898989737033844,
0.06320181488990784,
-0.008226221427321434,
-0.06280408799648285,
-0.06308502703905106,
-0.02293882891535759,
0.025370707735419273,
0.01367451623082161,
-0.010437347926199436,
-0.03573046624660492,
0.054722752422094345,
0.02358202449977398,
0.004961793310940266,
0.019816696643829346,
-0.06376374512910843,
-0.016004059463739395,
-0.02088942751288414,
-0.00714966282248497,
-0.016559183597564697,
-0.02415323629975319,
0.010939373634755611,
-0.011971886269748211,
0.018062934279441833,
-0.06471698731184006,
-0.06376229226589203,
-0.00963002722710371,
0.03097703866660595,
0.0352344810962677,
-0.01588398776948452,
-0.05154271423816681,
-0.00016157714708242565,
-0.046644940972328186,
0.022001637145876884,
0.027376115322113037,
-0.008174743503332138,
0.040017224848270416,
0.061954062432050705,
0.04688650369644165,
-0.0024943742901086807,
0.034734953194856644,
0.03747674077749252,
0.04732382670044899,
-0.0027770798187702894,
-0.014829711988568306,
0.012030902318656445,
-0.031691644340753555,
0.039804864674806595,
-0.00010589310841169208,
-0.03180974721908569,
-0.024417733773589134,
-0.09040501713752747,
-0.02315446175634861,
0.005392412655055523,
-0.021959953010082245,
0.005679897498339415,
0.025929482653737068,
0.018006185069680214,
-0.009078579023480415,
-0.01324449572712183,
0.012321212328970432,
0.05558796226978302,
-0.04797622188925743,
0.04205888509750366,
-0.014626636169850826,
0.03124588541686535,
-0.05656365305185318,
-0.028966959565877914,
-0.03745182231068611,
-0.020845284685492516,
0.02960866317152977,
0.040296770632267,
0.02994200773537159,
0.051512692123651505,
0.05815653130412102,
-0.015478061512112617,
-0.016432465985417366,
0.0399390272796154,
0.04541569575667381,
-0.030594490468502045,
-0.048665959388017654,
-0.022001029923558235,
-0.011871272698044777,
-0.006126572843641043,
-0.029416268691420555,
0.006734427064657211,
0.042589832097291946,
0.026482639834284782,
-0.0015614127041772008,
0.015907196328043938,
-0.03406842425465584,
-0.030455471947789192,
-0.03950909525156021,
-0.03937207907438278,
0.022502122446894646,
0.034800682216882706,
-0.04045663774013519,
-0.004331426229327917,
0.061429463326931,
0.015820341184735298,
0.09288356453180313,
0.013857778161764145,
-0.021392472088336945,
-0.09758962690830231,
0.044870518147945404,
0.008688359521329403,
-0.02472563460469246,
-0.08081649988889694,
-0.011270508170127869,
0.00028596018091775477,
0.02125730738043785,
-0.014719560742378235,
-0.03322315216064453,
-0.01767290011048317,
0.055471863597631454,
-0.040438439697027206,
0.04372255504131317,
-0.019684864208102226,
0.061200324445962906,
0.05355145037174225,
-0.0016483941581100225,
0.01041023526340723,
-0.03927052766084671,
0.010325764305889606,
-0.009924149140715599,
0.011125435121357441,
-0.024600408971309662,
-0.021054845303297043,
-0.006200484000146389,
0.017391948029398918,
0.025923950597643852,
0.03616117686033249,
0.014419414103031158,
-0.03356032446026802,
-0.043287549167871475,
-0.03161020576953888,
0.056718405336141586,
-0.0286289993673563,
0.045576103031635284,
0.025890188291668892,
0.05524422600865364,
-0.037389278411865234,
-0.02199741080403328,
-0.03861769661307335,
0.017034802585840225,
0.043820928782224655,
-0.032153695821762085,
-0.029736800119280815,
-0.025265607982873917,
-0.0024757636711001396,
0.016351787373423576,
-0.01663719117641449,
-0.08438418060541153,
0.021917350590229034,
-0.020954133942723274,
-0.03243286535143852,
0.06232304498553276,
0.03112894669175148,
0.04884210601449013,
0.08717789500951767,
0.023568354547023773,
0.03261364623904228,
-0.06873390078544617,
0.01985109969973564,
-0.029600495472550392,
-0.022657249122858047,
0.008525670506060123,
-0.02781863510608673,
-0.028040479868650436,
-0.03403078764677048,
-0.013102469965815544,
-0.03894410654902458,
-0.02652335911989212,
0.03207972273230553,
0.010039041750133038,
-0.012471238151192665,
0.02437378652393818,
0.03309883549809456,
0.01760423369705677,
-0.03602265939116478,
-0.01663140580058098,
-0.006394386291503906,
-0.031049609184265137,
-0.034970708191394806,
0.030437378212809563,
-0.01906196027994156,
-0.0018960920860990882,
-0.014624991454184055,
0.02165120840072632,
-0.009684721007943153,
0.011344312690198421,
-0.0268027912825346,
0.036953236907720566,
0.026464592665433884,
-0.008561289869248867,
-0.03967434912919998,
-0.020249877125024796,
0.03510522469878197,
0.026207933202385902,
-0.030678648501634598,
0.020566551014780998,
0.002587708877399564,
-0.020417053252458572,
0.0074460371397435665,
0.06865508109331131,
0.01731579378247261,
-0.07195979356765747,
-0.008499983698129654,
-0.027651866897940636,
-0.02252557873725891,
0.0036483886651694775,
-0.04233930632472038,
-0.035166237503290176,
0.0075129857286810875,
0.03540641814470291,
0.06422964483499527,
0.01771390624344349,
-0.01497721765190363,
0.01247918326407671,
-0.03637544438242912,
0.015521558001637459,
-0.030132023617625237,
0.04329122602939606,
-0.04639926552772522,
0.04345429316163063,
-0.031965386122465134,
0.015547911636531353,
-0.05763644725084305,
0.05349794030189514,
-0.02009323053061962,
-0.0009851586073637009,
-0.02035154029726982,
-0.012149534188210964,
-0.023959826678037643,
0.03341446444392204,
0.009337877854704857,
-0.0010829634265974164,
-0.042971882969141006,
0.057530827820301056,
-0.048687227070331573,
0.021338442340493202,
-0.03888048231601715,
0.03666986897587776,
-0.03820449113845825,
-0.01960674487054348,
0.01131474319845438,
-0.059659745544195175,
0.047639407217502594,
0.0643787533044815,
0.005333569832146168,
-0.013876141980290413,
-0.010065685026347637,
-0.02478298731148243,
0.0020170758944004774,
-0.04960447549819946,
-0.03482411056756973,
-0.013403804041445255,
-0.0049965702928602695,
0.00808052346110344,
0.024885006248950958,
0.016232255846261978,
-0.05623840168118477,
-0.06032632663846016,
0.029036737978458405,
0.04802340269088745,
0.01647496223449707,
-0.04248727858066559,
0.010564198717474937,
0.033118464052677155,
0.03317009285092354,
-0.025516269728541374,
0.010701456107199192,
0.00808996707201004,
-0.023637153208255768,
0.011963940225541592,
0.00572547223418951,
0.038416676223278046,
0.03409712016582489,
-0.0280181635171175,
-0.021115588024258614,
0.05186682567000389,
0.03399280458688736,
0.014633560553193092,
-0.0042024897411465645,
-0.06520450860261917,
0.034283462911844254,
0.0364861786365509,
0.002758344169706106,
0.012125213630497456,
0.025344880297780037,
-0.02135864831507206,
0.050072554498910904,
-0.02159913443028927,
0.01497206836938858,
0.05304354056715965,
0.0184922032058239,
-0.011017408221960068,
0.07455465197563171,
-0.018873529508709908,
-0.025025274604558945,
0.02769048884510994,
-0.04991687461733818,
0.012811565771698952,
-0.023085273802280426,
0.04846886545419693,
-0.07422516494989395,
0.061420537531375885,
0.019846243783831596,
-0.017184484750032425,
-0.019628817215561867,
-0.061362169682979584,
-0.03385920822620392,
-0.011342167854309082,
-0.024751704186201096,
0.05373472720384598,
-0.012533259578049183,
-0.02899823896586895,
0.058512523770332336,
-0.0011473287595435977,
-0.10191765427589417,
0.035496968775987625,
0.05310386046767235,
0.04035395383834839,
0.03611453250050545,
0.052495818585157394,
-0.06268368661403656,
-0.026678873226046562,
-0.039018664509058,
0.04478996619582176,
-0.07014983147382736,
-0.030002549290657043,
0.002749457024037838,
-0.03535549342632294,
0.00044057000195607543,
0.05628036707639694,
-0.026264777407050133,
-0.00813562422990799,
0.06413795053958893,
-0.03543725982308388,
-0.05261782929301262,
0.0026301743928343058,
0.0315801165997982,
-0.0023200165014714003,
-0.046090301126241684,
-0.03899814561009407,
-0.010369250550866127,
-0.0037997961044311523,
0.005775861442089081,
-0.013255435042083263,
0.02056976407766342,
-0.0006044689798727632,
-0.06860733777284622,
-0.018891431391239166,
0.04010242968797684,
0.031147954985499382,
-0.040587663650512695,
0.041885361075401306,
-0.0009481013985350728,
0.02103140763938427,
-0.0017335268203169107,
-0.005169392563402653,
0.013855314813554287,
-0.009275930002331734,
-0.03478391095995903,
0.01970175839960575,
-0.014659957960247993,
-0.0027567448560148478,
-0.02239782176911831,
-0.0027127042412757874,
0.020174210891127586,
0.058366209268569946,
0.03477315977215767,
-0.054669205099344254,
-0.03442753106355667,
-0.020184731110930443,
-0.032773736864328384,
-0.003006876679137349,
-0.02200346253812313,
-0.07314898818731308,
-0.044972289353609085,
-0.0156094403937459,
-0.0047641536220908165,
0.0531618706882,
-0.012074442580342293,
0.010601150803267956,
0.02489730902016163,
0.04177222400903702,
-0.04434072971343994,
-0.09188239276409149,
-0.041729528456926346,
-0.011212823912501335,
0.02573537826538086,
0.037866782397031784,
-0.019278032705187798,
0.056554656475782394,
-0.060378942638635635,
-0.040414128452539444,
0.04003322869539261,
-0.006890841759741306,
-0.018681706860661507,
0.05158519372344017,
0.05956556648015976,
-0.013560228049755096,
0.006400196347385645,
0.04607962816953659,
-0.0472392812371254,
0.04715214669704437,
0.002075840486213565,
0.015964975580573082,
0.016005193814635277,
-0.006985296029597521,
-0.0425022654235363,
-0.018032697960734367,
-0.005966266617178917,
-0.041627977043390274,
-0.04557284340262413,
-0.014911532402038574,
0.054747603833675385
] |
Atchuth/DialoGPT-small-MichaelBot | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | 2022-02-12T08:07:29Z | ---
tags:
- conversational
---
# Michael Scott DialoGPT Model | [
-0.03385935351252556,
0.026552503928542137,
0.00015034624084364623,
0.01872318424284458,
0.010290856473147869,
0.03149537369608879,
-0.005848324857652187,
0.039833396673202515,
-0.005112145096063614,
0.02234308421611786,
0.042588744312524796,
-0.033236000686883926,
0.023352084681391716,
0.02769605629146099,
-0.037491533905267715,
-0.014112934470176697,
-0.03786084055900574,
-0.008238379843533039,
-0.018007470294833183,
-0.02698175236582756,
0.04493233934044838,
0.012558738701045513,
-0.02005067467689514,
0.038119446486234665,
-0.007917125709354877,
0.03586050495505333,
-0.006334694102406502,
0.021159466356039047,
0.022847995162010193,
-0.033113520592451096,
0.017112242057919502,
-0.03456265851855278,
-0.023615079000592232,
-0.021080439910292625,
-0.022966114804148674,
-0.04179668053984642,
0.02271936647593975,
-0.013689127750694752,
0.0005401973030529916,
0.03916517645120621,
-0.025237582623958588,
-0.0015237347688525915,
0.01004720013588667,
-0.031095562502741814,
0.08029916882514954,
-0.02004106715321541,
-0.04260094836354256,
-0.013321680948138237,
0.026211028918623924,
-0.038098230957984924,
-0.0361395962536335,
-0.06279043108224869,
-0.05817270278930664,
-0.0195924062281847,
0.009778409264981747,
-0.07242712378501892,
-0.07344000041484833,
-0.01299581490457058,
0.09984162449836731,
-0.012928193435072899,
-0.012880132533609867,
0.008026136085391045,
-0.07250179350376129,
0.01710313744843006,
0.02190890908241272,
-0.07279326021671295,
0.015846125781536102,
-0.0352664552628994,
0.01908019743859768,
-0.027031907811760902,
0.0532308854162693,
-0.046507578343153,
0.021634990349411964,
-0.08203091472387314,
-0.0223428625613451,
-0.0023037453647702932,
0.04672384262084961,
0.05906360596418381,
-0.0419723317027092,
0.06288006901741028,
0.05419614538550377,
0.002363374689593911,
0.0720934122800827,
-0.010329106822609901,
-0.04042039066553116,
0.03784407675266266,
-0.0579630546271801,
0.0007136996719054878,
0.0038214668165892363,
0.010537574999034405,
-0.025944720953702927,
-0.045415837317705154,
-0.02755565196275711,
-0.01586616039276123,
0.012991675175726414,
0.039731912314891815,
0.030243435874581337,
-0.03251632675528526,
0.025208229199051857,
0.044203657656908035,
0.028134118765592575,
0.04245318844914436,
-0.026945995166897774,
0.02614554576575756,
-0.001997525105252862,
0.03131697699427605,
0.024172496050596237,
-0.019986893981695175,
-0.06296338886022568,
0.024392277002334595,
0.00198905891738832,
-0.03640245646238327,
-0.016795234754681587,
0.03776268661022186,
0.004450293257832527,
0.0012985550565645099,
0.058114904910326004,
-0.04480016976594925,
-0.032498665153980255,
-0.06361830979585648,
0.04690069705247879,
-0.014272822067141533,
-0.009682290256023407,
0.010202323086559772,
-0.055316753685474396,
0.00022589968284592032,
-0.03807798773050308,
-0.017398351803421974,
-0.007843194529414177,
0.005709444638341665,
0.03355706110596657,
0.031032368540763855,
-0.018805349245667458,
-0.0615166537463665,
0.00898041296750307,
0.043763138353824615,
-0.06547566503286362,
0.005413176491856575,
0.02981867827475071,
0.08077235519886017,
-0.06985409557819366,
-0.03497489169239998,
-0.002430999418720603,
0.02738570049405098,
-0.028452789410948753,
-0.020979680120944977,
0.0010911794379353523,
-0.0007413155399262905,
-0.05166499689221382,
0.006297729443758726,
0.02783038467168808,
-0.04301481321454048,
0.007577232085168362,
0.05410689488053322,
0.01630803383886814,
0.0300394706428051,
-0.02912263758480549,
-0.015286989510059357,
-0.009579495526850224,
-0.02475069649517536,
-0.06931222230195999,
0.048011403530836105,
-0.03133019059896469,
-0.03303308039903641,
-0.03661543130874634,
-0.0258334893733263,
0.01570875383913517,
0.0531579926609993,
-0.009074825793504715,
-0.02666761353611946,
-0.025495212525129318,
0.03502184525132179,
0.06399206817150116,
0.04922036826610565,
-0.02474956214427948,
0.02235513925552368,
0.05067126080393791,
0.026528092101216316,
-0.04087880998849869,
0.06798537075519562,
0.006510739680379629,
-0.031233740970492363,
-0.05219214782118797,
-0.00927841104567051,
0.03728218004107475,
-0.032711874693632126,
0.0220485869795084,
0.04593714326620102,
-0.0336863175034523,
-0.03138205409049988,
-0.0027923344168812037,
0.037964094430208206,
-0.026853187009692192,
-0.004135934170335531,
-0.029747899621725082,
-0.030291631817817688,
-0.026858629658818245,
0.022794272750616074,
-0.044402141124010086,
-0.00006741019751643762,
-0.036203376948833466,
-0.015025696717202663,
0.03834477812051773,
0.0071197375655174255,
0.01635943166911602,
0.0449628010392189,
-0.012439117766916752,
0.06452307850122452,
-0.04126641899347305,
0.004299735650420189,
-0.03972422704100609,
-0.042135074734687805,
-0.024763500317931175,
0.03988780081272125,
0.02203492447733879,
0.04299017786979675,
-0.052835311740636826,
-0.06683378666639328,
0.042081236839294434,
0.04728126525878906,
0.03764190152287483,
0.026725294068455696,
-0.00935597624629736,
0.0022299799602478743,
0.04476923495531082,
0.02721519023180008,
-0.03691032528877258,
0.00591896940022707,
0.0012556664878502488,
0.008926229551434517,
-0.015981066972017288,
-0.015391864813864231,
-0.04219561442732811,
0.011015971191227436,
-0.038107190281152725,
-0.06708284467458725,
0.046521347016096115,
0.03542462736368179,
-0.00399759691208601,
0.052582379430532455,
-0.004435814917087555,
-0.003100896254181862,
0.03371775895357132,
0.00040211918530985713,
-0.0025353662203997374,
-0.08059849590063095,
0.008207096718251705,
0.03084610588848591,
0.09625217318534851,
-0.04902607202529907,
0.022190023213624954,
0.025052567943930626,
0.026428572833538055,
0.01983346790075302,
-0.01814323477447033,
0.048983074724674225,
0.042869795113801956,
0.04331090673804283,
-0.024311425164341927,
0.03702479600906372,
0.0004056153120473027,
0.027436021715402603,
0.04925577715039253,
-0.019796334207057953,
0.0567435584962368,
-0.01949024572968483,
0.01940038427710533,
0.06423857063055038,
0.017675550654530525,
-0.013368147425353527,
0.022216463461518288,
0.0742417424917221,
0.0013324996689334512,
0.02317035384476185,
0.04231484234333038,
-0.001567833125591278,
-0.0072582862339913845,
-0.043121106922626495,
-0.00207621231675148,
-0.004498021211475134,
-0.02603139542043209,
0.06421639770269394,
0.010909453965723515,
-0.013801292516291142,
0.008816737681627274,
-0.012765411287546158,
-0.0019867464434355497,
0.05468223616480827,
-0.0010456382296979427,
-0.024910856038331985,
-0.004690556786954403,
-0.020577935501933098,
0.004048716276884079,
-0.046827852725982666,
-0.03754802420735359,
-0.024097735062241554,
-0.05922982841730118,
-0.0009733446640893817,
-0.08539070188999176,
-0.03190641850233078,
-0.06963782757520676,
-0.03598608821630478,
0.04955429211258888,
0.017262494191527367,
0.030188042670488358,
0.01885185018181801,
0.0068838815204799175,
-0.025456836447119713,
-0.058433059602975845,
-0.052513763308525085,
-0.024496478959918022,
-0.013961173593997955,
-0.04072544723749161,
0.02617872692644596,
0.04174404591321945,
0.03292010352015495,
0.006251734681427479,
-0.02773134410381317,
-0.03251373767852783,
-0.01414495985955,
0.030583858489990234,
0.014910669066011906,
-0.047411225736141205,
-0.04593030735850334,
0.015376202762126923,
-0.004037451930344105,
-0.006767122074961662,
-0.024073924869298935,
-0.0465712696313858,
0.0637056827545166,
0.04957672208547592,
-0.010228290222585201,
0.027929527685046196,
-0.009599622339010239,
-0.039936382323503494,
-0.021041536703705788,
-0.061022136360406876,
-0.03063763864338398,
-0.0093992343172431,
-0.012623588554561138,
-0.049048349261283875,
-0.022618331015110016,
-0.03089234232902527,
-0.007988707162439823,
0.003229917725548148,
-0.0012446274049580097,
0.029412895441055298,
0.011319145560264587,
0.025257524102926254,
0.01193691324442625,
-0.011626232415437698,
-0.022783324122428894,
0.037855569273233414,
-0.013594867661595345,
-0.017231961712241173,
-0.06718086451292038,
-0.042828693985939026,
0.03456772118806839,
0.0006908682989887893,
-0.0022078261245042086,
-0.028438402339816093,
0.03629748150706291,
0.03803137317299843,
0.006588257383555174,
0.023422177881002426,
-0.0626506432890892,
0.0014185039326548576,
-0.04560917988419533,
-0.031258367002010345,
-0.03661657124757767,
-0.032428693026304245,
-0.014464755542576313,
-0.011766085401177406,
0.044639840722084045,
-0.08997587859630585,
-0.022814568132162094,
-0.03219757601618767,
0.01791953854262829,
0.048567239195108414,
0.009791417047381401,
-0.04304640367627144,
-0.00957703497260809,
-0.04799811542034149,
-0.006089409347623587,
-0.00207023904658854,
-0.011369075626134872,
-0.001374674029648304,
0.025853540748357773,
0.011361150071024895,
-0.026064204052090645,
0.05062975734472275,
0.018844233825802803,
0.06450565904378891,
0.05361601710319519,
-0.04230497032403946,
0.032140523195266724,
-0.03477803245186806,
0.03391216695308685,
-0.02085990086197853,
-0.03724100813269615,
-0.05241101235151291,
-0.11850456148386002,
-0.038701120764017105,
0.03659970313310623,
-0.026763569563627243,
0.008918685838580132,
0.029209738597273827,
-0.06307075172662735,
-0.009307248517870903,
-0.007067458238452673,
0.04352496564388275,
0.04244253411889076,
-0.030805975198745728,
0.07163415104150772,
0.01674693636596203,
0.026273952797055244,
-0.059505753219127655,
0.0016135593177750707,
-0.049348052591085434,
-0.012283805757761002,
0.005618550349026918,
0.04456987604498863,
0.0003292130131740123,
0.05566195026040077,
0.07547223567962646,
0.0531298890709877,
-0.040850017219781876,
0.03850485756993294,
0.06756335496902466,
-0.04479067772626877,
-0.021415947005152702,
-0.003653974737972021,
-0.011573475785553455,
-0.02056456170976162,
-0.0046733589842915535,
-0.0438556931912899,
0.037730105221271515,
0.025216029956936836,
-0.004997318610548973,
0.005194240715354681,
0.007411781698465347,
-0.02136801928281784,
-0.03282387554645538,
-0.07388811558485031,
-0.028520116582512856,
-0.011625947430729866,
-0.01829441264271736,
0.056220151484012604,
0.0336376391351223,
0.007302033714950085,
0.06672615557909012,
0.011576342396438122,
-0.022010890766978264,
-0.05528610944747925,
0.03912784531712532,
0.01731284335255623,
-0.04719613119959831,
-0.04149734973907471,
-0.04189465194940567,
0.028292745351791382,
0.05281154066324234,
-0.023015189915895462,
-0.07971563935279846,
0.015624434687197208,
0.04206792265176773,
-0.034527964890003204,
0.059741340577602386,
-0.005191241856664419,
0.060176100581884384,
0.015014519914984703,
0.0025879184249788523,
0.038581281900405884,
-0.06956741213798523,
0.017610667273402214,
-0.014875178225338459,
0.011425885371863842,
-0.06657107919454575,
-0.05334089696407318,
-0.04715389385819435,
0.041199058294296265,
0.02751552127301693,
0.020559586584568024,
0.020401012152433395,
-0.04253431037068367,
-0.0476093515753746,
-0.006658836267888546,
0.0340280719101429,
-0.022058885544538498,
0.027577340602874756,
0.022951869294047356,
0.050817690789699554,
-0.0563683807849884,
0.011988925747573376,
0.00401428434997797,
0.015280041843652725,
0.020928867161273956,
-0.00280582532286644,
-0.04171544685959816,
-0.007634404115378857,
0.02532094158232212,
-0.03061067685484886,
-0.028015434741973877,
-0.06983882188796997,
0.014563329517841339,
-0.03579101338982582,
-0.03260299190878868,
0.07021849602460861,
0.057754553854465485,
0.0689004585146904,
0.07235514372587204,
-0.005019558127969503,
0.05009410157799721,
-0.03659674897789955,
0.016680467873811722,
-0.02656124159693718,
-0.038100291043519974,
0.000777242355979979,
-0.07766495645046234,
-0.030601829290390015,
-0.036813315004110336,
-0.0400366336107254,
-0.03839336708188057,
0.003105172188952565,
0.020601993426680565,
-0.010656681843101978,
-0.017651749774813652,
0.015731291845440865,
0.01009504497051239,
-0.020360585302114487,
-0.029085807502269745,
-0.017197439447045326,
-0.009523266926407814,
-0.06341074407100677,
-0.05378450080752373,
0.014481078833341599,
-0.04406467080116272,
0.00014776749594602734,
0.0075352187268435955,
0.017975879833102226,
0.04639541357755661,
-0.004802328068763018,
-0.028414638713002205,
0.02798900380730629,
0.03617854788899422,
-0.030883094295859337,
-0.02500069886445999,
-0.0025199707597494125,
0.011384927667677402,
0.012773142196238041,
-0.02600129134953022,
0.035189129412174225,
0.008064095862209797,
-0.0570795051753521,
-0.030468910932540894,
0.029636472463607788,
0.02187247760593891,
-0.07796673476696014,
-0.017628122121095657,
-0.03468337282538414,
-0.02712797187268734,
0.005725948605686426,
-0.049641311168670654,
-0.032391685992479324,
-0.00670926459133625,
0.051941871643066406,
0.023763563483953476,
-0.010004561394453049,
-0.016505585983395576,
0.01222189050167799,
-0.007442633621394634,
0.002010730793699622,
-0.06810493767261505,
0.022453291341662407,
-0.03985702246427536,
0.029180550947785378,
-0.0151212802156806,
0.019740456715226173,
-0.03652040287852287,
0.05733797326683998,
-0.0270918570458889,
-0.012202608399093151,
0.01141470018774271,
-0.018764633685350418,
0.00586883258074522,
0.04751268029212952,
0.019252894446253777,
0.013502737507224083,
-0.04223182424902916,
0.06831493228673935,
-0.04123006388545036,
0.005505462642759085,
-0.005999380256980658,
-0.03585043177008629,
-0.028363430872559547,
0.0028713850770145655,
0.0035417003091424704,
-0.059093836694955826,
0.022049082443118095,
0.04126127436757088,
0.018951352685689926,
0.028283029794692993,
-0.009115939028561115,
-0.0005800065118819475,
0.026689395308494568,
-0.07190166413784027,
-0.03614525869488716,
-0.002617740072309971,
0.0014943863498046994,
0.028793849050998688,
0.053115952759981155,
0.0291795264929533,
-0.04797529801726341,
-0.021218152716755867,
0.020973974838852882,
0.027061186730861664,
0.017625825479626656,
0.019756104797124863,
0.040059883147478104,
0.05148481950163841,
0.06157207861542702,
-0.001586991478689015,
-0.0031986332032829523,
0.02224932424724102,
-0.01360031496733427,
-0.02515246346592903,
-0.003108335891738534,
0.0044116126373410225,
0.010667151771485806,
-0.023219933733344078,
-0.03666228428483009,
0.0777098536491394,
-0.02578118070960045,
-0.005694746971130371,
-0.015746282413601875,
-0.04838132858276367,
0.07120892405509949,
0.0029149819165468216,
-0.037951577454805374,
-0.013175145722925663,
0.02585623785853386,
-0.019459737464785576,
0.03702745586633682,
-0.020677054300904274,
0.013567399233579636,
0.06448640674352646,
0.032158177345991135,
0.00182280782610178,
-0.009864063933491707,
-0.020463263615965843,
0.0006127559463493526,
0.015454537235200405,
-0.04574175924062729,
-0.014016024768352509,
-0.030630216002464294,
0.06861267238855362,
-0.042488157749176025,
0.05923075973987579,
0.03513080254197121,
0.055719032883644104,
0.020512400195002556,
-0.05394858494400978,
-0.05334068834781647,
-0.03387193754315376,
-0.026577770709991455,
0.07582923024892807,
-0.0009252125746570528,
-0.048311468213796616,
0.06385782361030579,
0.027876457199454308,
-0.07686569541692734,
0.041773658245801926,
0.03179896995425224,
0.047891873866319656,
0.03362535312771797,
0.05309148132801056,
-0.04835885763168335,
0.009643788449466228,
-0.022484349086880684,
0.0028285046573728323,
-0.02871507778763771,
-0.011356962844729424,
-0.030812373384833336,
-0.05559058114886284,
0.00996317621320486,
0.021518241614103317,
-0.025811808183789253,
0.0034198977518826723,
0.012183875776827335,
-0.02266695164144039,
-0.0532156378030777,
-0.0006743882549926639,
0.010273441672325134,
-0.02323981374502182,
-0.016266293823719025,
-0.026880500838160515,
0.01633271761238575,
0.04558839276432991,
-0.008337385952472687,
-0.04604669287800789,
0.011573228053748608,
-0.013126567006111145,
-0.07953418046236038,
-0.04873223975300789,
0.0662156492471695,
0.01520526222884655,
0.005747356452047825,
-0.002922152867540717,
0.0385444350540638,
0.01678122952580452,
0.029805107042193413,
-0.024107800796628,
-0.005074657965451479,
-0.07135576754808426,
-0.0021962998434901237,
0.0351552776992321,
0.01932804100215435,
0.0031415109988301992,
-0.017389455810189247,
0.04030650109052658,
0.08068407326936722,
0.032353878021240234,
0.0027365200221538544,
-0.046670686453580856,
-0.033224575221538544,
-0.0033487973269075155,
-0.029471876099705696,
0.044042181223630905,
0.000037862424505874515,
-0.07716912776231766,
-0.02141205221414566,
-0.01972438581287861,
-0.0021573223639279604,
0.03269976004958153,
-0.0389246828854084,
0.015566335059702396,
0.03046071156859398,
0.008767198771238327,
-0.04313991963863373,
-0.08583179116249084,
-0.04517483711242676,
-0.00684835109859705,
0.02616613171994686,
0.022419819608330727,
-0.05378880351781845,
0.018588809296488762,
-0.030142677947878838,
-0.0052816602401435375,
0.04939976707100868,
-0.011120384559035301,
-0.010225635953247547,
0.06642848253250122,
0.07367339730262756,
-0.047753915190696716,
0.05476445332169533,
0.022936610504984856,
-0.028512384742498398,
0.05697385221719742,
0.0059989504516124725,
0.028164681047201157,
0.009917388670146465,
0.015735579654574394,
-0.017974503338336945,
-0.011655447073280811,
0.0004757037095259875,
-0.04138578847050667,
0.005328724626451731,
0.0041684494353830814,
0.04248236492276192
] |
Aurora/asdawd | [] | null | {
"architectures": null,
"model_type": null,
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 0 | null | https://www.geogebra.org/m/bbuczchu
https://www.geogebra.org/m/xwyasqje
https://www.geogebra.org/m/mx2cqkwr
https://www.geogebra.org/m/tkqqqthm
https://www.geogebra.org/m/asdaf9mj
https://www.geogebra.org/m/ywuaj7p5
https://www.geogebra.org/m/jkfkayj3
https://www.geogebra.org/m/hptnn7ar
https://www.geogebra.org/m/de9cwmrf
https://www.geogebra.org/m/yjc5hdep
https://www.geogebra.org/m/nm8r56w5
https://www.geogebra.org/m/j7wfcpxj | [
0.01000450924038887,
-0.029606236144900322,
-0.0194969791918993,
0.033842477947473526,
0.01758449152112007,
0.01426932867616415,
0.018629582598805428,
0.013413336127996445,
-0.058955561369657516,
0.051665060222148895,
0.017157668247818947,
-0.021504120901226997,
-0.015280550345778465,
0.042638130486011505,
-0.01595265045762062,
-0.0117277130484581,
0.008227087557315826,
-0.00679364800453186,
-0.10750236362218857,
-0.009203488007187843,
0.04660698026418686,
0.03243273124098778,
-0.030713623389601707,
0.03640907257795334,
-0.00036629330134019256,
0.010926902294158936,
-0.009194796904921532,
0.02031879313290119,
0.02886006236076355,
-0.0685354545712471,
0.004870734177529812,
-0.037841420620679855,
-0.0260421484708786,
-0.048066213726997375,
-0.03665485233068466,
-0.028726913034915924,
-0.01929742656648159,
0.0056179482489824295,
0.01522376574575901,
0.07932492345571518,
0.0033368004951626062,
0.0452701635658741,
-0.007781601510941982,
-0.0367739237844944,
0.037022508680820465,
-0.017803890630602837,
-0.05306316167116165,
-0.0367596298456192,
0.024675976485013962,
-0.019647812470793724,
-0.07304307818412781,
-0.08840809017419815,
-0.03109673783183098,
-0.02781290002167225,
-0.017112040892243385,
-0.03867373615503311,
-0.06404317170381546,
-0.010421034879982471,
0.07207770645618439,
-0.07129233330488205,
-0.021177345886826515,
0.007642991840839386,
-0.10024556517601013,
0.021920112892985344,
0.01091255247592926,
-0.05308113619685173,
0.02497876062989235,
-0.023915860801935196,
0.020577533170580864,
-0.02786494977772236,
0.03819284215569496,
-0.027872370555996895,
0.01968924142420292,
-0.07843862473964691,
0.005567218642681837,
-0.003954268991947174,
0.021921470761299133,
0.05112500861287117,
-0.03194073587656021,
0.050681449472904205,
0.05516586825251579,
-0.0012981741456314921,
0.05800728499889374,
-0.00696859136223793,
-0.033408794552087784,
0.028501074761152267,
-0.058073822408914566,
-0.004678026773035526,
0.013395524583756924,
0.0616365484893322,
-0.02649550698697567,
-0.04686601459980011,
-0.03894447535276413,
-0.01142446044832468,
-0.001684029819443822,
0.012841125950217247,
0.03673822805285454,
0.008474797010421753,
0.010175221599638462,
0.03520748019218445,
-0.0031761410646140575,
0.07145129889249802,
-0.02144632302224636,
0.05532524362206459,
-0.024729251861572266,
-0.006593366153538227,
-0.0016078127082437277,
-0.01229487732052803,
-0.028333816677331924,
0.01054404303431511,
0.00403941422700882,
-0.04039190337061882,
-0.015434738248586655,
0.033567462116479874,
0.012554898858070374,
-0.037727635353803635,
0.04120538756251335,
-0.022718673571944237,
-0.05811139568686485,
-0.008350268006324768,
0.06618189811706543,
0.038227468729019165,
-0.0123507184907794,
0.03252682089805603,
-0.05039791017770767,
0.009465410374104977,
-0.025493493303656578,
0.009976093657314777,
-0.030112072825431824,
0.021779172122478485,
0.019148381426930428,
0.036375463008880615,
0.047569770365953445,
-0.0863274484872818,
0.0050400299951434135,
0.025598976761102676,
-0.045916687697172165,
0.026563012972474098,
-0.005625494755804539,
0.11682414263486862,
-0.09163478016853333,
-0.0708925873041153,
-0.01582510955631733,
0.011812531389296055,
-0.049348048865795135,
-0.004248978570103645,
-0.004979223012924194,
-0.02764318697154522,
-0.05255592241883278,
-0.024390438571572304,
0.06786113977432251,
-0.04630150645971298,
0.008906523697078228,
0.043858740478754044,
-0.004181052558124065,
0.04234769940376282,
-0.03714488819241524,
0.003702470799908042,
0.011727683246135712,
-0.0008936314261518419,
-0.03611812740564346,
0.026907537132501602,
-0.02165672928094864,
-0.0248896274715662,
-0.03608202561736107,
-0.03790149837732315,
-0.0066729323007166386,
0.06322681903839111,
0.01016788650304079,
-0.021968822926282883,
-0.03505625203251839,
0.013280892744660378,
0.03373204544186592,
0.020390549674630165,
-0.02837046980857849,
0.03618667647242546,
0.028341729193925858,
0.03154270350933075,
-0.014151402749121189,
0.017023151740431786,
0.035790666937828064,
-0.030283471569418907,
-0.04040570557117462,
-0.011925260536372662,
0.05268016457557678,
-0.03171749785542488,
0.0006172338034957647,
0.049685634672641754,
0.010090981610119343,
-0.04461962357163429,
-0.015101972036063671,
0.05345543101429939,
-0.015259623527526855,
-0.0041369106620550156,
-0.004972999915480614,
-0.02724887616932392,
-0.04521108418703079,
0.042898062616586685,
-0.017982224002480507,
-0.009976480156183243,
-0.029611356556415558,
-0.014390252530574799,
0.007763324771076441,
0.02406308241188526,
0.01434679701924324,
0.027195440605282784,
0.0014662552857771516,
0.08785483986139297,
-0.03170432150363922,
-0.0034620824735611677,
-0.05247889459133148,
-0.06140369921922684,
-0.03345848619937897,
0.06444280594587326,
0.028630634769797325,
0.017704444006085396,
-0.006156640592962503,
-0.0333610363304615,
0.012007649056613445,
0.06731456518173218,
0.04275495558977127,
-0.00018616313172969967,
0.00795706920325756,
-0.01208581868559122,
0.0695067048072815,
0.06535878777503967,
-0.04099293053150177,
-0.010361053049564362,
0.009621555916965008,
0.01615479402244091,
-0.07267217338085175,
0.008601081557571888,
-0.0171665009111166,
0.017026133835315704,
-0.03931788355112076,
-0.07008766382932663,
0.04724467918276787,
0.030138423666357994,
0.014316772110760212,
-0.0004914369201287627,
0.0034662450198084116,
0.0264829583466053,
0.0218547023832798,
0.04111036658287048,
0.004883833695203066,
-0.040802307426929474,
0.011293004266917706,
0.0201248936355114,
0.0605618990957737,
-0.03442617878317833,
0.01774861291050911,
0.008094243705272675,
0.03667140007019043,
0.023770499974489212,
-0.034142520278692245,
0.02230726182460785,
0.07378104329109192,
0.0057306899689137936,
-0.03114590048789978,
0.020844047889113426,
-0.007377943489700556,
0.00918371882289648,
0.04671672731637955,
-0.021288158372044563,
0.06086146831512451,
-0.015154925175011158,
0.04722952842712402,
0.07355489581823349,
0.012667170725762844,
-0.020045697689056396,
0.0028359300922602415,
0.07803033292293549,
-0.004841786343604326,
-0.02717522345483303,
0.048609793186187744,
0.00047830335097387433,
0.038071293383836746,
-0.01310504600405693,
0.011414514854550362,
-0.012407059781253338,
-0.006363582331687212,
0.04406344145536423,
-0.007197557482868433,
-0.007933738641440868,
-0.0013877192977815866,
-0.008866652846336365,
-0.0031063691712915897,
0.02501816116273403,
-0.013781148009002209,
0.017687927931547165,
0.0008018389344215393,
-0.033729638904333115,
0.00586618110537529,
-0.06953324377536774,
-0.03951899707317352,
-0.02030031755566597,
-0.010354265570640564,
0.011786151677370071,
-0.06453924626111984,
-0.01068136841058731,
-0.07402142882347107,
0.016904182732105255,
0.047605209052562714,
0.039587780833244324,
-0.030074309557676315,
-0.03295488283038139,
0.005024807993322611,
-0.03729629144072533,
-0.05249187722802162,
-0.04824892058968544,
-0.03621803596615791,
-0.02433662675321102,
-0.07059703767299652,
0.02885422855615616,
0.013144323602318764,
0.04375969618558884,
0.015358157455921173,
0.026791319251060486,
-0.03025493398308754,
-0.020975524559617043,
0.037171587347984314,
0.042152632027864456,
-0.012810750864446163,
-0.06752079725265503,
0.0638919472694397,
0.016029059886932373,
-0.007959544658660889,
-0.007858115248382092,
-0.019996289163827896,
0.05364334583282471,
0.08226770907640457,
0.022572528570890427,
0.010420549660921097,
0.014223097823560238,
-0.06467222422361374,
-0.013919521123170853,
-0.0363989919424057,
-0.019313910976052284,
-0.026739269495010376,
-0.03882724046707153,
-0.03216033801436424,
-0.004166945815086365,
-0.05587189272046089,
0.005716780666261911,
-0.008581743575632572,
-0.0007380194147117436,
0.027889400720596313,
0.041976120322942734,
0.01529526524245739,
0.038952842354774475,
-0.046433188021183014,
0.002782691502943635,
0.06141979247331619,
-0.0003879119176417589,
-0.032742973417043686,
-0.06929801404476166,
-0.033798698335886,
0.056286487728357315,
-0.007116549648344517,
0.020689306780695915,
-0.01870797760784626,
0.04932659491896629,
-0.007703863084316254,
-0.012611917220056057,
-0.004777473397552967,
0.002507140627130866,
-0.0351264663040638,
0.008175629191100597,
0.0020545008592307568,
-0.003302896162495017,
-0.05276660621166229,
0.008076217025518417,
0.017247265204787254,
0.0598454624414444,
-0.06683256477117538,
-0.03638838976621628,
-0.00007097405614331365,
0.0304596908390522,
0.008601823821663857,
-0.021950742229819298,
-0.05867816507816315,
0.017266610637307167,
-0.05490826442837715,
0.0007803113549016416,
0.013047347776591778,
-0.011239256709814072,
-0.02176566980779171,
0.04714280366897583,
0.03727118298411369,
-0.0017894369084388018,
0.03401287645101547,
0.05168938264250755,
0.040371738374233246,
0.034023791551589966,
-0.07177812606096268,
0.007624304853379726,
-0.007081817369908094,
0.008757690899074078,
0.000656449468806386,
-0.038237523287534714,
-0.042041387408971786,
-0.06602609902620316,
-0.0223627220839262,
0.026142733171582222,
-0.039124373346567154,
-0.01827418990433216,
0.050605110824108124,
-0.014948081225156784,
-0.02361621893942356,
0.00812226627022028,
0.019825058057904243,
0.030872970819473267,
-0.04076281189918518,
0.06952641159296036,
-0.018941879272460938,
0.009279248304665089,
-0.06861798465251923,
-0.0016678186366334558,
-0.02287342958152294,
0.0002895078796427697,
-0.0037806204054504633,
0.030521880835294724,
0.02168162353336811,
0.06742213666439056,
0.047370102256536484,
0.00681921374052763,
-0.03961724415421486,
0.02515420876443386,
0.007720460649579763,
-0.03217810019850731,
-0.0510513074696064,
0.021608542650938034,
-0.0104689821600914,
-0.000047124780394369736,
-0.01415799930691719,
-0.021768849343061447,
0.026695476844906807,
0.04807148873806,
0.023647816851735115,
0.0009787355083972216,
0.01539740338921547,
-0.03072313778102398,
-0.03277082368731499,
-0.023299649357795715,
-0.030988212674856186,
0.0015390908811241388,
-0.018818506971001625,
0.004722670651972294,
0.06526894122362137,
0.022440094500780106,
0.05064922571182251,
0.04178772494196892,
-0.035944584757089615,
-0.02751285955309868,
0.0035634138621389866,
0.005327782593667507,
-0.016180075705051422,
-0.0387486070394516,
-0.015877341851592064,
0.01109677366912365,
0.018217023462057114,
-0.018861589953303337,
-0.06167972832918167,
0.0421258807182312,
0.05113689973950386,
-0.015389852225780487,
0.012825559824705124,
0.01303662359714508,
0.04971360042691231,
0.047336284071207047,
-0.023135177791118622,
0.037640850991010666,
-0.02041473425924778,
0.02109435573220253,
-0.02823728881776333,
0.07399149239063263,
0.0036986039485782385,
-0.024390393868088722,
-0.03712749481201172,
0.039505574852228165,
0.030933642759919167,
0.04267821088433266,
0.044173456728458405,
-0.02335995063185692,
-0.02356165274977684,
-0.04172194376587868,
0.05472125485539436,
-0.0699741467833519,
0.04817851260304451,
0.029907720163464546,
0.012011460959911346,
-0.07649094611406326,
-0.06456292420625687,
0.000817885622382164,
0.00816532876342535,
0.05872423201799393,
-0.02931671217083931,
-0.0021955491974949837,
-0.034944403916597366,
0.021346651017665863,
-0.003779818071052432,
-0.01612996868789196,
-0.05908204987645149,
0.06762886047363281,
-0.020328160375356674,
-0.03699647635221481,
0.059957824647426605,
0.02915649674832821,
0.0065980516374111176,
0.08251594007015228,
0.0016587795689702034,
0.04277368262410164,
-0.046342868357896805,
0.054247692227363586,
-0.02741144225001335,
-0.0008646863279864192,
-0.020435674116015434,
-0.026218231767416,
-0.008092112839221954,
-0.029281454160809517,
-0.025130733847618103,
-0.02684374339878559,
-0.06127678230404854,
0.05337350070476532,
-0.01727629080414772,
0.002305178204551339,
0.00913474801927805,
0.015012129209935665,
-0.008013192564249039,
-0.02781621739268303,
-0.03916219621896744,
-0.04443513602018356,
-0.06311529874801636,
-0.03677966073155403,
0.04512202739715576,
-0.018292175605893135,
0.011026725172996521,
0.012001675553619862,
0.02066568098962307,
0.033048514276742935,
0.024193050339818,
-0.056010812520980835,
0.023772981017827988,
0.005954599007964134,
-0.04356766492128372,
-0.017942436039447784,
0.004885125905275345,
0.011827187612652779,
0.0215980876237154,
-0.038035161793231964,
0.010606059804558754,
0.0009674091124907136,
-0.026718128472566605,
-0.003329518949612975,
0.04017331823706627,
0.02722485363483429,
-0.056706350296735764,
-0.05671070143580437,
-0.007579440250992775,
-0.026598433032631874,
0.022191878408193588,
-0.03327671065926552,
-0.06465485692024231,
0.024996453896164894,
0.042061593383550644,
0.055153872817754745,
0.0094865458086133,
-0.012544501572847366,
0.040042486041784286,
-0.02523771859705448,
0.03069402277469635,
-0.05404898524284363,
0.039712704718112946,
-0.027820143848657608,
0.038388535380363464,
-0.03159062936902046,
-0.04163862019777298,
-0.041766561567783356,
0.02832762524485588,
-0.05393214523792267,
-0.03568818420171738,
-0.009691394865512848,
0.02222592942416668,
-0.0120625589042902,
0.04816875979304314,
-0.024738525971770287,
0.025722384452819824,
-0.03688555955886841,
0.03975607454776764,
-0.04487712308764458,
0.008284223265945911,
-0.03802555799484253,
0.004513836465775967,
-0.08148380368947983,
0.0053385901264846325,
0.009005782194435596,
-0.04775754362344742,
0.009050397202372551,
0.05633564665913582,
-0.001847685663960874,
0.012181081809103489,
-0.021169457584619522,
-0.025175321847200394,
0.014836224727332592,
-0.05171485245227814,
0.00028077547904103994,
-0.0035170174669474363,
-0.028898481279611588,
-0.022574620321393013,
0.027286268770694733,
0.054015565663576126,
-0.043902892619371414,
-0.04534408450126648,
0.06650696694850922,
0.036295872181653976,
0.0001547996507724747,
-0.008959710597991943,
0.02086440473794937,
0.040092192590236664,
0.048372119665145874,
-0.021616842597723007,
0.02998344786465168,
-0.020845074206590652,
-0.011484639719128609,
0.02885768562555313,
-0.008278355933725834,
0.036562707275152206,
0.013471521437168121,
-0.02316666580736637,
-0.022031979635357857,
0.08452901989221573,
0.011132524348795414,
0.031438786536455154,
-0.005442441441118717,
-0.023415545001626015,
0.04276043176651001,
0.030942628160119057,
-0.0316431038081646,
0.0522710382938385,
0.011773757636547089,
-0.016450822353363037,
0.05832149460911751,
-0.01852486841380596,
0.03461170569062233,
0.04707041382789612,
0.0022129418794065714,
-0.02520468831062317,
0.04549970105290413,
-0.037653692066669464,
-0.014057092368602753,
0.03472709655761719,
-0.04313662275671959,
-0.004273649305105209,
-0.04930642247200012,
0.027459530159831047,
-0.09239713102579117,
0.06175805628299713,
0.04399074241518974,
-0.013759439811110497,
0.027363304048776627,
-0.009300846606492996,
-0.04291648045182228,
0.03248419240117073,
-0.05066225677728653,
0.06736110895872116,
-0.03357325866818428,
-0.07202564924955368,
0.05524209141731262,
0.0043474105186760426,
-0.06668421626091003,
0.029507111757993698,
0.008472071029245853,
0.030945952981710434,
0.0342102013528347,
0.028698211535811424,
-0.0361751951277256,
0.01337948814034462,
-0.04541722685098648,
0.06447430700063705,
-0.02992154285311699,
-0.02969253994524479,
0.011451337486505508,
-0.014301398769021034,
0.00862723309546709,
0.011564518325030804,
0.003478193888440728,
0.000995779293589294,
0.03241857886314392,
-0.06544866412878036,
-0.06600216031074524,
0.01785014569759369,
0.038202978670597076,
-0.035271551460027695,
-0.03417722508311272,
-0.04591558501124382,
0.023528695106506348,
0.0131771769374609,
0.007593980059027672,
-0.05407796800136566,
0.016323039308190346,
0.024373775348067284,
-0.10452467203140259,
-0.03338281437754631,
0.020707372575998306,
-0.015327532775700092,
-0.03150332719087601,
-0.0045122611336410046,
0.0012324419803917408,
0.03105536848306656,
-0.005029684863984585,
-0.0132580092176795,
-0.007348484359681606,
-0.04876672476530075,
-0.02548915334045887,
0.026252934709191322,
-0.005342082120478153,
0.03503436967730522,
-0.020835833624005318,
0.024159004911780357,
0.021924590691924095,
0.05533508211374283,
0.014916992746293545,
-0.008170532993972301,
-0.01901526190340519,
0.07215046137571335,
-0.05139395594596863,
0.021484194323420525,
-0.014802592806518078,
-0.05446229130029678,
-0.02414671890437603,
-0.0015318543883040547,
0.012742551974952221,
0.039817120879888535,
-0.027134990319609642,
0.03827618435025215,
0.0033434168435633183,
0.02291538566350937,
-0.06456875801086426,
-0.07696204632520676,
-0.032033078372478485,
-0.03336711227893829,
0.004982560873031616,
0.040545184165239334,
-0.03182827681303024,
0.014607072807848454,
-0.06428691744804382,
-0.06337234377861023,
0.038488175719976425,
0.02419883757829666,
-0.045735739171504974,
0.0038401964120566845,
0.05463286116719246,
-0.025804026052355766,
0.008769500069320202,
0.025596974417567253,
-0.011074707843363285,
0.0002852327306754887,
-0.01741175167262554,
0.0072642732411623,
0.04545953869819641,
0.04067615419626236,
0.0003963570052292198,
-0.017684653401374817,
-0.022778760641813278,
-0.014855055138468742,
-0.009971918538212776,
0.010349180549383163,
0.06550385057926178
] |
Ayham/albert_distilgpt2_summarization_cnn_dailymail | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:cnn_dailymail",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9 | null | ---
tags:
- generated_from_trainer
datasets:
- cnn_dailymail
model-index:
- name: albert_distilgpt2_summarization_cnn_dailymail
results: []
---
<!-- 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. -->
# albert_distilgpt2_summarization_cnn_dailymail
This model is a fine-tuned version of [](https://huggingface.co/) on the cnn_dailymail 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: 5e-05
- train_batch_size: 8
- 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: 2000
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.16.2
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.11.0
| [
-0.027727466076612473,
-0.014908277429640293,
-0.030296094715595245,
0.05311718210577965,
0.03613452613353729,
0.019335538148880005,
-0.004624738357961178,
-0.029071422293782234,
-0.04108477756381035,
0.06502967327833176,
0.053155627101659775,
0.00012075075937900692,
0.0025256574153900146,
0.045002393424510956,
-0.03632136806845665,
-0.0308261439204216,
-0.030793029814958572,
-0.0063414606265723705,
-0.020264871418476105,
-0.009467986412346363,
0.024600224569439888,
-0.013338880613446236,
-0.006905568763613701,
0.00004070416252943687,
-0.012632186524569988,
0.023060468956828117,
0.004050235264003277,
0.03581870347261429,
0.00217345985583961,
-0.06438271701335907,
0.00983700342476368,
-0.046441156417131424,
-0.043511807918548584,
-0.013358348980545998,
-0.022591058164834976,
-0.0014137381222099066,
0.0008366518304683268,
0.006333474535495043,
0.023924026638269424,
0.04768052324652672,
-0.013254474848508835,
0.00196719984523952,
-0.006828135345131159,
-0.019870713353157043,
0.06807491183280945,
0.014364780858159065,
-0.04876910150051117,
-0.017147677019238472,
0.05901749059557915,
-0.02584562450647354,
-0.06982319802045822,
-0.05984102189540863,
-0.030397769063711166,
0.01668381690979004,
-0.04010218009352684,
-0.026381390169262886,
-0.07159428298473358,
-0.014266976155340672,
0.05061006546020508,
-0.03997168317437172,
-0.02757958322763443,
0.016589459031820297,
-0.06925862282514572,
0.003374878317117691,
0.04904485121369362,
-0.009324326179921627,
0.022140968590974808,
-0.03233616054058075,
0.025535082444548607,
-0.02150668390095234,
0.06740204244852066,
-0.02163832075893879,
0.02893872745335102,
-0.08728887140750885,
-0.00837252102792263,
0.0001161354302894324,
0.04743124544620514,
0.04514138773083687,
-0.02184039168059826,
0.038647398352622986,
0.03919658437371254,
0.004714962560683489,
0.04839472100138664,
-0.020876821130514145,
-0.009320891462266445,
0.030405521392822266,
-0.06549811363220215,
0.0028270764742046595,
0.012576988898217678,
0.03569243848323822,
-0.044633813202381134,
-0.038458678871393204,
-0.028187401592731476,
-0.04327420890331268,
-0.036460649222135544,
0.02247011289000511,
0.05110526829957962,
-0.0025901843328028917,
0.041106391698122025,
0.026787450537085533,
0.04967636987566948,
0.04473298788070679,
-0.027526983991265297,
0.06610587239265442,
0.0010246486635878682,
-0.01701132394373417,
-0.047364287078380585,
-0.02993343025445938,
-0.0503363162279129,
0.04188478738069534,
0.022959301248192787,
-0.041357364505529404,
-0.04857572168111801,
0.02448423020541668,
-0.012137537822127342,
-0.01344867330044508,
0.042883649468421936,
-0.02833983115851879,
-0.046969011425971985,
-0.025352630764245987,
0.012195847928524017,
0.01278698816895485,
-0.01293843425810337,
0.0012692805612459779,
-0.04724624380469322,
-0.005960907321423292,
-0.03531540557742119,
-0.03857446834445,
0.0016771540977060795,
0.009884498082101345,
0.022245457395911217,
0.046659160405397415,
0.03161780163645744,
-0.06914746016263962,
-0.005016579292714596,
0.019624924287199974,
-0.05557521805167198,
0.0602203831076622,
0.021747415885329247,
0.09505753219127655,
-0.08795376121997833,
-0.06139315664768219,
0.024817682802677155,
0.0009266526321880519,
-0.03540164977312088,
0.012185032479465008,
0.04343470558524132,
-0.04928259924054146,
-0.02044614590704441,
0.005199700593948364,
0.059686630964279175,
-0.055967867374420166,
-0.001217717188410461,
0.03702719509601593,
0.005593057256191969,
0.03523269668221474,
-0.05466315150260925,
-0.02822151407599449,
0.0034648303408175707,
0.006263873539865017,
-0.03772569075226784,
0.057675641030073166,
-0.004226492717862129,
-0.007655858527868986,
-0.0455850325524807,
-0.046599384397268295,
0.00302685028873384,
0.08119001984596252,
-0.004555580206215382,
-0.028268402442336082,
-0.027948986738920212,
0.030259424820542336,
0.05584905296564102,
0.04188559204339981,
-0.007997923530638218,
0.03283277899026871,
0.06893149018287659,
0.06025560200214386,
-0.027053946629166603,
0.04429333284497261,
-0.003296203212812543,
-0.03531584516167641,
-0.024152524769306183,
0.009084684774279594,
0.0006334122153930366,
-0.037950363010168076,
0.02451210655272007,
0.017431024461984634,
-0.003061611671000719,
-0.03757980838418007,
-0.026724912226200104,
0.04805181547999382,
-0.0020066476427018642,
-0.004670427646487951,
-0.008809685707092285,
-0.027979325503110886,
-0.011474399827420712,
0.03518582135438919,
-0.02316499873995781,
-0.004250829108059406,
-0.011577710509300232,
-0.025846412405371666,
0.00987279787659645,
0.020250042900443077,
0.04041210561990738,
0.06242826581001282,
-0.019888659939169884,
0.0911574512720108,
-0.049335043877363205,
0.008016504347324371,
-0.046399060636758804,
-0.0498935841023922,
0.0069367787800729275,
0.04195750132203102,
0.05323347449302673,
0.06624709814786911,
0.025598416104912758,
-0.03975366801023483,
0.0533871129155159,
0.04991220310330391,
0.017012324184179306,
0.02655082382261753,
-0.011528167873620987,
-0.018675513565540314,
0.03321060910820961,
0.06241460517048836,
-0.05191848427057266,
-0.017311736941337585,
0.007824420928955078,
0.029148876667022705,
-0.007326401770114899,
0.01420928817242384,
-0.016217608004808426,
0.033686213195323944,
-0.05917108431458473,
-0.06902529299259186,
0.042709849774837494,
0.049444206058979034,
-0.010314223356544971,
0.03046431764960289,
-0.003373846411705017,
0.00411738408729434,
0.015595019795000553,
0.0032595836091786623,
0.0020741086918860674,
-0.03949262574315071,
0.007999129593372345,
0.012402908876538277,
0.044429223984479904,
-0.048420075327157974,
0.015339025296270847,
-0.015243830159306526,
0.010075309313833714,
0.034923624247312546,
-0.032453011721372604,
0.041721947491168976,
0.03127765655517578,
0.04468107596039772,
-0.038708485662937164,
0.027114080265164375,
-0.004566602408885956,
0.029272535815835,
0.034543052315711975,
0.007120332680642605,
0.055521175265312195,
0.005017545539885759,
0.05819800868630409,
0.07029750198125839,
0.033975690603256226,
0.0293414406478405,
0.03852264583110809,
0.0585797056555748,
0.03173957020044327,
-0.015652716159820557,
0.054834190756082535,
-0.043906744569540024,
0.019777661189436913,
-0.07200804352760315,
0.020518608391284943,
-0.012303904630243778,
-0.0022733728401362896,
0.03502703830599785,
0.013675815425813198,
-0.021436741575598717,
0.004582374356687069,
-0.023529523983597755,
-0.019064946100115776,
0.017079509794712067,
-0.0045280153863132,
-0.018193356692790985,
-0.010103537701070309,
-0.023157982155680656,
-0.02148357778787613,
-0.0675998330116272,
-0.02679969184100628,
-0.022855518385767937,
-0.028763355687260628,
-0.01521039567887783,
-0.08891037851572037,
-0.023952146992087364,
-0.06636574864387512,
-0.008957015350461006,
0.020489487797021866,
0.0021723394747823477,
0.006866130977869034,
-0.04055662825703621,
0.027458224445581436,
-0.05810347571969032,
-0.0684041902422905,
-0.0520063191652298,
-0.05310840532183647,
-0.03314989060163498,
-0.07565099000930786,
0.024721242487430573,
0.024772658944129944,
0.012829767540097237,
-0.011060664430260658,
-0.0012087102513760328,
-0.014726863242685795,
-0.02325877733528614,
0.04578090086579323,
0.058119386434555054,
-0.03724668174982071,
-0.0678592398762703,
0.027818992733955383,
-0.020429981872439384,
0.009802362881600857,
-0.010464162565767765,
-0.00826413743197918,
0.0673920214176178,
0.07910940796136856,
0.015801560133695602,
0.030154652893543243,
-0.030328353866934776,
-0.06497593969106674,
-0.05421048402786255,
-0.014932151883840561,
-0.017406383529305458,
-0.018170010298490524,
-0.04314893111586571,
-0.04451042041182518,
-0.005737130995839834,
-0.06211808696389198,
-0.013094081543385983,
-0.002730049891397357,
0.017972085624933243,
0.031951919198036194,
0.030442552641034126,
0.0214656013995409,
0.023492533713579178,
-0.024598106741905212,
-0.06116778030991554,
0.06324486434459686,
-0.0044889310374855995,
0.007179700303822756,
-0.0763063058257103,
-0.0272368136793375,
0.056261394172906876,
0.012734082527458668,
-0.003952335566282272,
-0.021324794739484787,
0.06733396649360657,
0.00784516055136919,
0.005388940218836069,
0.012881285510957241,
0.006278956774622202,
-0.005681101698428392,
-0.01155257411301136,
-0.0053846221417188644,
-0.024742869660258293,
-0.036321379244327545,
-0.02868284285068512,
-0.017743319272994995,
0.045047905296087265,
-0.06606613099575043,
-0.06524531543254852,
-0.023402832448482513,
0.03746980428695679,
0.03559160605072975,
0.007733186241239309,
-0.053138285875320435,
-0.007824709638953209,
-0.06300624459981918,
0.009245479479432106,
0.030560579150915146,
0.011651632376015186,
0.0038344485219568014,
0.03763841465115547,
0.021267913281917572,
-0.022429246455430984,
0.03862588480114937,
0.038159631192684174,
0.0729266032576561,
0.006901461631059647,
-0.055135685950517654,
0.01080670952796936,
-0.008809073828160763,
0.02255437523126602,
0.01764671690762043,
-0.014085854403674603,
-0.03774801641702652,
-0.10697834938764572,
-0.0023716986179351807,
0.012810638174414635,
-0.017902547493577003,
-0.00543676083907485,
0.02651025913655758,
-0.019456295296549797,
-0.024625735357403755,
0.005172121804207563,
0.025552252307534218,
0.04277392849326134,
-0.06117730215191841,
0.051495764404535294,
-0.0013716906541958451,
0.01969044655561447,
-0.0579247921705246,
0.007932326756417751,
-0.03243889659643173,
-0.013174673542380333,
-0.004283859394490719,
0.053798917680978775,
0.007087904494255781,
0.04232624173164368,
0.07566706091165543,
0.022428065538406372,
-0.040001362562179565,
0.036861006170511246,
0.0837869942188263,
-0.02991785854101181,
-0.03479399159550667,
-0.004049935843795538,
0.019576994702219963,
-0.018694233149290085,
-0.00900349859148264,
0.007273848168551922,
0.029933994635939598,
0.04832139238715172,
0.0027812225744128227,
0.013684636913239956,
0.0161578506231308,
-0.014514594338834286,
-0.029637202620506287,
-0.048542916774749756,
-0.014647714793682098,
0.0034151053987443447,
-0.03164386749267578,
0.009707567282021046,
0.02218656614422798,
0.01736912503838539,
0.06460122764110565,
0.033242758363485336,
-0.012774178758263588,
-0.05221354588866234,
0.049729518592357635,
0.020703356713056564,
-0.026352856308221817,
-0.05499947443604469,
-0.0427742525935173,
0.020754829049110413,
0.039620354771614075,
-0.025097673758864403,
-0.0735345333814621,
-0.0036508464254438877,
0.04290717467665672,
-0.03767431899905205,
0.04365270212292671,
0.0018598319729790092,
0.029757250100374222,
0.05529124662280083,
-0.025324715301394463,
0.043012745678424835,
-0.04055481776595116,
0.0013518998166546226,
0.01865050010383129,
0.02919803187251091,
-0.03732740879058838,
-0.050422172993421555,
-0.0529630184173584,
0.028730470687150955,
0.03474628925323486,
0.041403938084840775,
0.0635162740945816,
-0.025322554633021355,
-0.037885330617427826,
0.009057477116584778,
0.04433682933449745,
-0.027042508125305176,
0.0005931904306635261,
0.03411386162042618,
0.026957593858242035,
-0.05115696042776108,
-0.04651562124490738,
-0.022380689159035683,
-0.011415747925639153,
0.04540913179516792,
-0.029628273099660873,
-0.04475720226764679,
-0.025681523606181145,
0.024184444919228554,
-0.0038934305775910616,
-0.014468961395323277,
-0.06859733909368515,
0.04878084734082222,
0.0003422473091632128,
-0.008938583545386791,
0.0384676568210125,
0.030278077349066734,
0.040373269468545914,
0.07423803210258484,
0.011595667339861393,
0.048909008502960205,
-0.04299715906381607,
0.03971470519900322,
-0.04085033759474754,
-0.013891708105802536,
0.006825197953730822,
-0.05598865821957588,
-0.010913003236055374,
-0.008313916623592377,
-0.06451071053743362,
-0.04125630110502243,
-0.012868653982877731,
0.011531448923051357,
-0.003208394628018141,
-0.004425973631441593,
-0.0042842235416173935,
0.03685767203569412,
-0.04347889497876167,
-0.024932192638516426,
-0.03427089378237724,
-0.03705168515443802,
-0.08377686142921448,
-0.07216314226388931,
0.01045655645430088,
0.01321383472532034,
0.04613201692700386,
0.018895072862505913,
0.029268506914377213,
0.02057485841214657,
0.012112997472286224,
-0.040917858481407166,
0.020988980308175087,
0.006857055705040693,
-0.0313987210392952,
-0.03221460059285164,
0.019994596019387245,
0.01215314120054245,
0.0249235387891531,
-0.02962004579603672,
0.027201028540730476,
0.020352104678750038,
-0.02143031917512417,
-0.026794681325554848,
0.04089680686593056,
-0.0019210554892197251,
-0.06795159727334976,
-0.01686622016131878,
-0.015623687766492367,
-0.033763639628887177,
0.022121984511613846,
-0.017918040975928307,
-0.021988999098539352,
-0.011594501323997974,
0.008361642248928547,
0.029233990237116814,
-0.02469620108604431,
-0.02693939208984375,
0.020740553736686707,
-0.049084775149822235,
0.03789278119802475,
-0.05670206993818283,
0.06761252880096436,
-0.031201956793665886,
-0.003080763854086399,
-0.011385813355445862,
0.015654737129807472,
-0.04558398202061653,
0.04224465414881706,
-0.012469502165913582,
0.0005041023250669241,
-0.017275476828217506,
0.03596607968211174,
-0.024636371061205864,
0.04634800925850868,
-0.01462610438466072,
0.027517076581716537,
-0.034933000802993774,
0.06951618194580078,
-0.02860323153436184,
0.00912533514201641,
-0.034879010170698166,
0.015150022692978382,
-0.048462070524692535,
0.00391533225774765,
-0.02951095998287201,
-0.011270727030932903,
0.03354251757264137,
0.04267048463225365,
0.02753802016377449,
0.02316436357796192,
-0.015578990802168846,
-0.0046859197318553925,
0.01974920555949211,
-0.07213339954614639,
-0.022004326805472374,
-0.016641981899738312,
-0.008458975702524185,
-0.010132333263754845,
0.04324141889810562,
0.04708949476480484,
-0.04523728787899017,
-0.057651691138744354,
0.04655992612242699,
0.00968225672841072,
0.0102081298828125,
0.004766120109707117,
0.03349297121167183,
0.017087379470467567,
0.036586783826351166,
-0.04153340309858322,
-0.008243256248533726,
-0.013687541708350182,
-0.047612130641937256,
0.03389367088675499,
-0.010012518614530563,
0.036204077303409576,
-0.001568160718306899,
-0.036247286945581436,
-0.028071893379092216,
0.06737527251243591,
0.030784787610173225,
0.01976722851395607,
-0.01185913011431694,
-0.036835089325904846,
0.03644479438662529,
0.003976137842983007,
-0.05257817730307579,
0.011208269745111465,
0.015896713361144066,
-0.021534452214837074,
0.06837350130081177,
-0.0022411190439015627,
0.008345657959580421,
0.03466362506151199,
0.04020195081830025,
-0.02097279764711857,
0.05276529863476753,
-0.03446316719055176,
0.013898782432079315,
0.03415438160300255,
-0.056999463587999344,
-0.01172706950455904,
-0.04544118791818619,
0.06450746208429337,
-0.06467994302511215,
0.02758588269352913,
0.04905399680137634,
0.023376042023301125,
0.021355710923671722,
-0.037441808730363846,
-0.06853530555963516,
0.00869380310177803,
-0.04755306988954544,
0.07893332093954086,
0.015692343935370445,
-0.03555792197585106,
0.08125793933868408,
0.004759006667882204,
-0.0432480163872242,
0.03041393682360649,
0.0341159962117672,
0.05191933736205101,
0.023931248113512993,
0.04255874827504158,
-0.03185518458485603,
-0.010430554859340191,
-0.05463269352912903,
0.012581928633153439,
-0.029589178040623665,
-0.015811000019311905,
0.037427086383104324,
-0.04482860490679741,
-0.040191859006881714,
0.045747630298137665,
-0.01819717511534691,
-0.029571376740932465,
0.03604007884860039,
-0.06532248109579086,
-0.024926966056227684,
-0.00003999848195235245,
-0.005791060160845518,
-0.04081225022673607,
0.008472624234855175,
-0.03892878070473671,
0.002789432415738702,
0.018393347039818764,
-0.009795050136744976,
-0.014846243895590305,
0.020340818911790848,
0.031436048448085785,
-0.04240698367357254,
-0.0473107174038887,
0.011229898780584335,
-0.006680862978100777,
-0.011918928474187851,
0.026495028287172318,
0.0065888408571481705,
0.009462147951126099,
0.023056238889694214,
0.0005824035033583641,
0.030858194455504417,
-0.02819833718240261,
-0.0046475431881845,
0.005530580412596464,
-0.00029774982249364257,
0.02498294785618782,
-0.009545144625008106,
0.0637950748205185,
0.03843175619840622,
0.02265552245080471,
-0.016839182004332542,
-0.01927809976041317,
-0.03868600353598595,
0.013299652375280857,
-0.03260262683033943,
0.017656980082392693,
0.01446915790438652,
-0.03882056474685669,
-0.03290807828307152,
-0.024214379489421844,
-0.03831503540277481,
0.032221462577581406,
-0.04385026916861534,
-0.010351790115237236,
0.010372389107942581,
0.012539911083877087,
-0.05855212360620499,
-0.08349358290433884,
-0.009830129332840443,
-0.05466531217098236,
0.020377619192004204,
0.04745550826191902,
-0.06420320272445679,
0.032546818256378174,
-0.05426706746220589,
-0.04809335246682167,
0.0449342243373394,
0.029546670615673065,
-0.044554322957992554,
0.048456039279699326,
0.044303566217422485,
-0.034487996250391006,
0.012924776412546635,
0.018539734184741974,
-0.059645041823387146,
0.008695435710251331,
0.023815950378775597,
0.017801184207201004,
0.024758633226156235,
0.0251134242862463,
-0.026861954480409622,
-0.013830828480422497,
-0.06287650763988495,
-0.04716191813349724,
-0.05403559282422066,
0.007883909158408642,
0.06440600752830505
] |
Ayham/albert_gpt2_summarization_cnndm | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:cnn_dailymail",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | null | ---
tags:
- generated_from_trainer
datasets:
- cnn_dailymail
model-index:
- name: albert_large_gpt2_summarization_cnndm
results: []
---
<!-- 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. -->
# albert_large_gpt2_summarization_cnndm
This model is a fine-tuned version of [](https://huggingface.co/) on the cnn_dailymail 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: 5e-05
- train_batch_size: 8
- 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: 2000
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.12.0.dev0
- Pytorch 1.10.0+cu111
- Datasets 1.17.0
- Tokenizers 0.10.3
| [
-0.023604728281497955,
-0.006189126055687666,
-0.02070355974137783,
0.059805817902088165,
0.0391814298927784,
0.00014794316666666418,
-0.001427522744052112,
-0.037180304527282715,
-0.033805862069129944,
0.05761459842324257,
0.04959709569811821,
0.0006475832196883857,
0.00882620271295309,
0.046193283051252365,
-0.030525071546435356,
-0.017238901928067207,
-0.029509101063013077,
-0.0021113764960318804,
-0.025102445855736732,
-0.0062072547152638435,
0.0030196658335626125,
-0.013842745684087276,
-0.021525699645280838,
0.0016731380019336939,
-0.004941187798976898,
0.026498567312955856,
0.01498203631490469,
0.03616589680314064,
-0.002590675838291645,
-0.07286953926086426,
0.006966426037251949,
-0.04483206942677498,
-0.04107873886823654,
-0.015980031341314316,
-0.012510391883552074,
-0.010213835164904594,
0.0002612215466797352,
0.0077017503790557384,
0.017404727637767792,
0.042134273797273636,
-0.017641765996813774,
0.004661185201257467,
0.010441677644848824,
-0.031061355024576187,
0.0554143451154232,
0.004173374269157648,
-0.050811924040317535,
-0.03406989574432373,
0.05459146574139595,
-0.009514490142464638,
-0.05798381567001343,
-0.06202792376279831,
-0.022507458925247192,
0.016941403970122337,
-0.020638659596443176,
-0.02190149948000908,
-0.06940294802188873,
-0.00003084746276726946,
0.05514407530426979,
-0.03570081666111946,
-0.04131435602903366,
0.009587696753442287,
-0.07345788925886154,
0.0058350712060928345,
0.035535965114831924,
-0.011860702186822891,
0.019298043102025986,
-0.024840060621500015,
0.04159165173768997,
-0.013622285798192024,
0.07206007838249207,
-0.018953632563352585,
0.03396869823336601,
-0.09469804912805557,
-0.00872051902115345,
0.008050964213907719,
0.03162160888314247,
0.04204010218381882,
-0.031010344624519348,
0.04065762460231781,
0.04218157008290291,
0.010742750950157642,
0.03682968020439148,
-0.008995432406663895,
-0.006283269729465246,
0.03228981792926788,
-0.05982183665037155,
0.002035046461969614,
0.026677681133151054,
0.04409710690379143,
-0.043990761041641235,
-0.05504786595702171,
-0.0358765609562397,
-0.04255606234073639,
-0.039976876229047775,
0.01807587780058384,
0.04401126503944397,
-0.004708471707999706,
0.036437779664993286,
0.02299942821264267,
0.05230715870857239,
0.033061668276786804,
-0.02531735971570015,
0.06712494045495987,
0.008779178373515606,
-0.006535639986395836,
-0.050994064658880234,
-0.03287449851632118,
-0.03851117566227913,
0.04523090273141861,
0.03959469124674797,
-0.047426946461200714,
-0.050857219845056534,
0.019741849973797798,
-0.010306804440915585,
-0.008013531565666199,
0.045962151139974594,
-0.025216704234480858,
-0.041052427142858505,
-0.02965516783297062,
0.018980354070663452,
0.012737680226564407,
0.007756643928587437,
0.022816333919763565,
-0.050328828394412994,
-0.012455735355615616,
-0.034095875918865204,
-0.03180183470249176,
0.0025226084981113672,
0.01204860582947731,
0.012867484241724014,
0.028624527156352997,
0.029647789895534515,
-0.06738760322332382,
0.006483910605311394,
0.01895463466644287,
-0.05308043584227562,
0.04697183892130852,
0.009046892635524273,
0.0994754210114479,
-0.0807923674583435,
-0.06744793057441711,
0.03682619705796242,
0.0006993106799200177,
-0.02951367199420929,
0.005835477728396654,
0.038420770317316055,
-0.05132342129945755,
-0.02814141847193241,
0.0007126928539946675,
0.06402572989463806,
-0.05168870836496353,
-0.0029482864774763584,
0.0488760769367218,
0.0028151904698461294,
0.032014332711696625,
-0.04247603565454483,
-0.031176744028925896,
0.007086914964020252,
-0.01086657214909792,
-0.02730998769402504,
0.05585072562098503,
-0.010340656153857708,
-0.02198360487818718,
-0.05378512293100357,
-0.048492081463336945,
0.0020399605855345726,
0.08511342853307724,
0.010133104398846626,
-0.012859674170613289,
-0.01846090890467167,
0.042108967900276184,
0.05246194452047348,
0.050249744206666946,
-0.021522225812077522,
0.04257059097290039,
0.0669313296675682,
0.04787347465753555,
-0.024141833186149597,
0.03778262063860893,
0.0027525159530341625,
-0.036752160638570786,
-0.03146805986762047,
0.01356558222323656,
0.0003235774056520313,
-0.044592227786779404,
0.031982894986867905,
0.008847055956721306,
0.004374215845018625,
-0.042671721428632736,
-0.024353791028261185,
0.05888807773590088,
0.011827267706394196,
-0.010510222055017948,
0.001875774352811277,
-0.017784062772989273,
-0.004652281291782856,
0.03391947224736214,
-0.03123493306338787,
-0.0023625355679541826,
-0.010962908156216145,
-0.0389239564538002,
0.010145251639187336,
0.011451136320829391,
0.032852716743946075,
0.06906849890947342,
-0.020667916163802147,
0.07915312796831131,
-0.0495603121817112,
0.01044752262532711,
-0.04657553508877754,
-0.037110891193151474,
-0.003945920150727034,
0.02832765318453312,
0.04870803654193878,
0.0512620247900486,
0.013327342458069324,
-0.04195934534072876,
0.04559316858649254,
0.054908204823732376,
0.019661134108901024,
0.043433960527181625,
-0.01104014366865158,
-0.021626384928822517,
0.028306998312473297,
0.06107814237475395,
-0.06122356280684471,
-0.030860524624586105,
0.01755470409989357,
0.025268273428082466,
0.000886125722900033,
0.027588030323386192,
-0.019050871953368187,
0.024573639035224915,
-0.05327600985765457,
-0.06033096835017204,
0.03904440253973007,
0.05094289407134056,
-0.01838986948132515,
0.04126046225428581,
-0.01868078112602234,
-0.0033759400248527527,
0.021418537944555283,
-0.002531354548409581,
0.00821670237928629,
-0.0456906296312809,
0.009055170230567455,
0.00843113474547863,
0.04482617974281311,
-0.04291596636176109,
0.019435672089457512,
-0.016779327765107155,
0.015179991722106934,
0.028750933706760406,
-0.02518908493220806,
0.03733113035559654,
0.035656556487083435,
0.04050544649362564,
-0.02376459538936615,
0.027593281120061874,
0.003972984384745359,
0.028385190293192863,
0.036519769579172134,
0.015424588695168495,
0.06344231218099594,
0.005732836667448282,
0.06549222022294998,
0.06965741515159607,
0.028254827484488487,
0.031044958159327507,
0.047769464552402496,
0.06516338139772415,
0.0347159281373024,
-0.01301588211208582,
0.032216526567935944,
-0.04179013520479202,
0.02516351453959942,
-0.061084553599357605,
0.011823158711194992,
-0.014850460924208164,
-0.014447418041527271,
0.053697340190410614,
0.030357403680682182,
-0.006225771736353636,
0.00819431059062481,
-0.025245513767004013,
-0.01751956343650818,
0.019910432398319244,
-0.017062582075595856,
-0.016348732635378838,
-0.01519157737493515,
-0.014600405469536781,
-0.01308475062251091,
-0.0629461333155632,
-0.026131749153137207,
-0.02160642482340336,
-0.026127642020583153,
-0.006306651048362255,
-0.10543522983789444,
-0.023071520030498505,
-0.06499239057302475,
0.00568846520036459,
0.02226720005273819,
0.013731127604842186,
0.0020823944360017776,
-0.059653278440237045,
0.023598913103342056,
-0.05071566253900528,
-0.0500732846558094,
-0.05262387916445732,
-0.04065790772438049,
-0.03534818813204765,
-0.08745932579040527,
0.02349146269261837,
0.029037417843937874,
0.017138144001364708,
-0.020345311611890793,
-0.006104947067797184,
-0.014093976467847824,
-0.03143543377518654,
0.05648237466812134,
0.04867085441946983,
-0.043109338730573654,
-0.06394291669130325,
0.023997439071536064,
-0.017645133659243584,
0.015062314458191395,
-0.016019700095057487,
-0.009521493688225746,
0.07655781507492065,
0.08244961500167847,
0.018192797899246216,
0.024097865447402,
-0.02859492413699627,
-0.06337746232748032,
-0.035604219883680344,
-0.020991364493966103,
-0.01580909453332424,
-0.008931774646043777,
-0.048852477222681046,
-0.036169327795505524,
-0.0030539119616150856,
-0.05089910328388214,
-0.013481422327458858,
0.00028308542096056044,
0.011939043179154396,
0.03134114667773247,
0.021612737327814102,
0.02111898921430111,
0.024210872128605843,
-0.030871903523802757,
-0.06390707194805145,
0.07751399278640747,
0.005623531993478537,
0.0088206110522151,
-0.07401223480701447,
-0.028882773593068123,
0.05602498725056648,
0.023457162082195282,
0.00562165305018425,
-0.01210964098572731,
0.06752241402864456,
0.011201843619346619,
0.004474353510886431,
0.019362201914191246,
-0.01232626661658287,
-0.025544695556163788,
-0.037647638469934464,
0.009664100594818592,
-0.017611902207136154,
-0.024382663890719414,
-0.024287529289722443,
-0.03644874691963196,
0.04608980566263199,
-0.06386289745569229,
-0.06815279275178909,
-0.028067776933312416,
0.03713897615671158,
0.03862763196229935,
0.0027630040422081947,
-0.04907524585723877,
-0.016947459429502487,
-0.05799413099884987,
0.009153527207672596,
0.021158484742045403,
0.01007336750626564,
0.010759003460407257,
0.04508211091160774,
0.032711371779441833,
-0.010124151594936848,
0.03281378000974655,
0.043528929352760315,
0.0775141790509224,
0.011854847893118858,
-0.05296760052442551,
0.017557498067617416,
-0.004566495772451162,
0.02664542756974697,
0.015889253467321396,
-0.02202656678855419,
-0.03668905049562454,
-0.10937119275331497,
0.011476577259600163,
0.007434467785060406,
-0.01815146580338478,
-0.005756293889135122,
0.02271534688770771,
-0.018361423164606094,
-0.023091468960046768,
0.0001433321594959125,
0.007339969743043184,
0.035195641219615936,
-0.07372982800006866,
0.05719444900751114,
0.006911768112331629,
0.013443434610962868,
-0.03946539759635925,
-0.004381945356726646,
-0.041762832552194595,
-0.013399193063378334,
-0.0007195346988737583,
0.056916244328022,
0.013811123557388783,
0.04298371076583862,
0.06793073564767838,
0.019101420417428017,
-0.04058267921209335,
0.03496368229389191,
0.08202651888132095,
-0.025180360302329063,
-0.0356106236577034,
-0.0068924096412956715,
0.019479991868138313,
-0.021070098504424095,
-0.020485207438468933,
0.012757077813148499,
0.027679968625307083,
0.04600902274250984,
0.008780503645539284,
0.018928762525320053,
0.009443129412829876,
-0.016887255012989044,
-0.02870715968310833,
-0.05672014132142067,
-0.009917541407048702,
-0.002230876125395298,
-0.031426284462213516,
0.017740923911333084,
0.030556414276361465,
0.021249257028102875,
0.062125980854034424,
0.04247711971402168,
-0.011943851597607136,
-0.040869519114494324,
0.051869556307792664,
0.021894989535212517,
-0.03389094024896622,
-0.04534927010536194,
-0.03715462237596512,
0.036746785044670105,
0.036813247948884964,
-0.01603805087506771,
-0.07405242323875427,
-0.016703328117728233,
0.051284730434417725,
-0.04193217679858208,
0.03325285017490387,
-0.008284824900329113,
0.032065242528915405,
0.05503898486495018,
-0.02697415091097355,
0.03898271173238754,
-0.03327428922057152,
0.009868195280432701,
0.009716885164380074,
0.029630335047841072,
-0.04113023355603218,
-0.04575929045677185,
-0.04534675553441048,
0.022000113502144814,
0.03351001814007759,
0.04067734628915787,
0.06556936353445053,
-0.02242521569132805,
-0.0392611026763916,
0.015527847222983837,
0.04980012774467468,
-0.02956056408584118,
-0.00629136897623539,
0.018606701865792274,
0.028656892478466034,
-0.050811413675546646,
-0.038079883903265,
-0.022572314366698265,
-0.009730643592774868,
0.04582437500357628,
-0.019026929512619972,
-0.03370170295238495,
-0.0311641413718462,
0.017957421019673347,
-0.01009959727525711,
-0.0335765965282917,
-0.05136927589774132,
0.04459255561232567,
0.0063550774939358234,
-0.013297558762133121,
0.029204176738858223,
0.029499836266040802,
0.03902322053909302,
0.07291794568300247,
0.005133589264005423,
0.030334975570440292,
-0.03732050955295563,
0.02532319165766239,
-0.04262136295437813,
-0.012822260148823261,
0.005077915731817484,
-0.04959125444293022,
-0.008027458563446999,
-0.01368462573736906,
-0.06201209872961044,
-0.03458455204963684,
-0.00470764609053731,
0.008994833566248417,
-0.01047439407557249,
-0.010776660405099392,
-0.010009883902966976,
0.037809107452631,
-0.03749208524823189,
-0.02222185768187046,
-0.027521468698978424,
-0.04022955521941185,
-0.08427131175994873,
-0.06993278115987778,
0.018973203375935555,
0.017160329967737198,
0.0416414849460125,
0.020969577133655548,
0.030538201332092285,
0.01882210746407509,
0.007073510903865099,
-0.03216422721743584,
0.03192567825317383,
-0.001713051344268024,
-0.027892136946320534,
-0.04499094933271408,
0.022952280938625336,
0.025753242895007133,
0.027187777683138847,
-0.02292863093316555,
0.026975994929671288,
0.017996275797486305,
-0.02061556838452816,
-0.015613069757819176,
0.04776106774806976,
-0.001900416798889637,
-0.06816985458135605,
-0.005750431679189205,
-0.006085127592086792,
-0.021457089111208916,
0.01831662468612194,
-0.027415841817855835,
-0.01753794215619564,
-0.01972176507115364,
0.024642644450068474,
0.0411248616874218,
-0.012629915028810501,
-0.02762962132692337,
0.018825119361281395,
-0.059764564037323,
0.03177887201309204,
-0.06361851096153259,
0.07083281874656677,
-0.041888922452926636,
-0.0029677667189389467,
-0.014619819819927216,
0.00920251477509737,
-0.04511922970414162,
0.03720347583293915,
-0.010212854482233524,
0.007333093788474798,
-0.014137104153633118,
0.03922506421804428,
-0.020557131618261337,
0.03751759231090546,
-0.011570606380701065,
0.039335258305072784,
-0.030032997950911522,
0.06114334985613823,
-0.030952133238315582,
0.0027890997007489204,
-0.0378446988761425,
0.015769368037581444,
-0.0530843585729599,
0.004816605243831873,
-0.022708339616656303,
-0.02257341891527176,
0.03906582295894623,
0.05250008776783943,
0.03298775479197502,
0.021496767178177834,
-0.02134314551949501,
-0.005215889774262905,
0.02348058857023716,
-0.06707285344600677,
-0.02481772191822529,
-0.0217653289437294,
-0.013663563877344131,
-0.013097195886075497,
0.047403473407030106,
0.04975820332765579,
-0.057631153613328934,
-0.05497932434082031,
0.04974991828203201,
0.000947049877140671,
0.013851530849933624,
-0.0003612009168136865,
0.03399759903550148,
0.02179853431880474,
0.04179438576102257,
-0.053337424993515015,
-0.010008194483816624,
-0.025342801585793495,
-0.038422226905822754,
0.03705723583698273,
-0.006305821239948273,
0.046542633324861526,
0.012887752614915371,
-0.03661608323454857,
-0.026540905237197876,
0.06469389796257019,
0.03438960015773773,
0.0115017369389534,
-0.009324216283857822,
-0.040658749639987946,
0.028459172695875168,
0.0053098066709935665,
-0.04970308765769005,
0.015166662633419037,
0.025146055966615677,
-0.012886274605989456,
0.06717499345541,
0.003683878108859062,
0.004936346784234047,
0.04620073735713959,
0.03524364158511162,
-0.011571245267987251,
0.061259325593709946,
-0.03001783788204193,
0.014651957899332047,
0.03334050998091698,
-0.06409300863742828,
-0.011026105843484402,
-0.05209018662571907,
0.06779281795024872,
-0.06293081492185593,
0.04497415944933891,
0.052600469440221786,
0.033338092267513275,
0.01246006041765213,
-0.029626864939928055,
-0.06529372185468674,
-0.007287401240319014,
-0.0517934113740921,
0.07314440608024597,
0.003400576300919056,
-0.03519386798143387,
0.07220014184713364,
0.013888873159885406,
-0.04491840675473213,
0.04102672263979912,
0.04151496663689613,
0.06394068896770477,
0.028905397281050682,
0.04486892372369766,
-0.032407402992248535,
-0.006579756736755371,
-0.06441782414913177,
0.029223470017313957,
-0.021185750141739845,
-0.02655257284641266,
0.03502420708537102,
-0.036740727722644806,
-0.043551791459321976,
0.0591256320476532,
-0.02235664799809456,
-0.02677769586443901,
0.04391469061374664,
-0.06393296271562576,
-0.028478287160396576,
0.005640002898871899,
0.007228745147585869,
-0.042758237570524216,
0.01235121302306652,
-0.04801921546459198,
0.005830415524542332,
0.009771964512765408,
-0.01189081184566021,
-0.014088589698076248,
0.02459392510354519,
0.03510303422808647,
-0.03826310485601425,
-0.038649916648864746,
0.005786832422018051,
0.0014091305201873183,
-0.015680449083447456,
0.024362701922655106,
-0.008954552002251148,
0.00690826028585434,
0.026169516146183014,
0.0032333771232515574,
0.02680005133152008,
-0.015581819228827953,
-0.011192136444151402,
0.004049622919410467,
-0.004033680073916912,
0.021662702783942223,
-0.012961548753082752,
0.05134586617350578,
0.024518359452486038,
0.029529932886362076,
-0.00955045036971569,
-0.03333320468664169,
-0.03633621335029602,
0.013914513401687145,
-0.02042408287525177,
0.009466507472097874,
0.007337277289479971,
-0.04492557421326637,
-0.03605133667588234,
-0.021880170330405235,
-0.042740095406770706,
0.03206394240260124,
-0.03336520493030548,
-0.006126516032963991,
0.010566109791398048,
0.015303151682019234,
-0.05749889835715294,
-0.09330542385578156,
0.0031873316038399935,
-0.04427104443311691,
0.014907275326550007,
0.03657819330692291,
-0.05827001482248306,
0.02473781630396843,
-0.06186075508594513,
-0.03847235068678856,
0.056717488914728165,
0.012558739632368088,
-0.03538786992430687,
0.04299750179052353,
0.032028134912252426,
-0.03683512285351753,
0.008275761269032955,
0.021914908662438393,
-0.05531502142548561,
0.014617682434618473,
0.03239328786730766,
0.017507795244455338,
0.028971821069717407,
0.01837041974067688,
-0.031217938289046288,
-0.006419263314455748,
-0.06851084530353546,
-0.05140526965260506,
-0.058726463466882706,
0.009641723707318306,
0.06417755037546158
] |
Ayham/distilbert_gpt2_summarization_xsum | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:xsum",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
tags:
- generated_from_trainer
datasets:
- xsum
model-index:
- name: distilbert_gpt2_summarization_xsum
results: []
---
<!-- 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_gpt2_summarization_xsum
This model is a fine-tuned version of [](https://huggingface.co/) on the xsum 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: 5e-05
- train_batch_size: 8
- 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: 2000
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.12.0.dev0
- Pytorch 1.10.0+cu111
- Datasets 1.16.1
- Tokenizers 0.10.3
| [
-0.012397421523928642,
-0.005650687962770462,
-0.025247860699892044,
0.04433070123195648,
0.03998791053891182,
0.030337588861584663,
-0.012200996279716492,
-0.025289960205554962,
-0.04090764373540878,
0.05847376212477684,
0.0467989444732666,
-0.006149031221866608,
0.0015813957434147596,
0.0509134866297245,
-0.024434490129351616,
-0.04190411791205406,
-0.021450253203511238,
-0.0072447191923856735,
-0.04036913067102432,
-0.002513984916731715,
0.010160531848669052,
-0.009333723224699497,
-0.0036192331463098526,
0.0028004501946270466,
-0.0017216203268617392,
0.02062171697616577,
0.007046331651508808,
0.03384574502706528,
0.01859232224524021,
-0.0787089392542839,
0.013692457228899002,
-0.03814130276441574,
-0.04487011954188347,
-0.013295997865498066,
-0.01630050502717495,
-0.01146668940782547,
-0.0032689659856259823,
0.009158537723124027,
0.02458239160478115,
0.04442153871059418,
-0.013992181979119778,
0.027057580649852753,
-0.005675751715898514,
-0.02884666621685028,
0.05228286236524582,
0.013527808710932732,
-0.03781197592616081,
-0.02495071478188038,
0.041550517082214355,
-0.013931521214544773,
-0.06350739300251007,
-0.06295375525951385,
-0.02646220102906227,
0.01802619732916355,
-0.02186640538275242,
-0.027659624814987183,
-0.0691557452082634,
0.008442883379757404,
0.05651146546006203,
-0.04716937243938446,
-0.03483305498957634,
0.004720175173133612,
-0.06912180036306381,
0.012832364067435265,
0.027592133730649948,
-0.020846137776970863,
0.008555169217288494,
-0.03694400563836098,
0.042222291231155396,
-0.013058850541710854,
0.06777255237102509,
-0.022930478677153587,
0.02244008146226406,
-0.09511934220790863,
-0.01996539905667305,
-0.010544308461248875,
0.01866179332137108,
0.049624793231487274,
-0.02456063963472843,
0.043309979140758514,
0.045968394726514816,
-0.006065016612410545,
0.05056189000606537,
-0.015930337831377983,
-0.0014931890182197094,
0.03518117219209671,
-0.04458000138401985,
0.00647610193118453,
0.0071683707647025585,
0.04080412909388542,
-0.04170406609773636,
-0.04683956876397133,
-0.036429472267627716,
-0.032524049282073975,
-0.008938750252127647,
0.017122887074947357,
0.036890048533678055,
0.00971433985978365,
0.03740343078970909,
0.018493374809622765,
0.04327625408768654,
0.02760796993970871,
-0.02858746610581875,
0.060433726757764816,
0.014056315645575523,
-0.013799327425658703,
-0.029535599052906036,
-0.03531590849161148,
-0.04934679716825485,
0.03638770058751106,
0.03673284873366356,
-0.022926025092601776,
-0.031093670055270195,
0.024266820400953293,
-0.018582111224532127,
-0.017031338065862656,
0.060109853744506836,
-0.034294456243515015,
-0.028007688000798225,
-0.01729596219956875,
0.02973908558487892,
0.019829729571938515,
0.013577264733612537,
0.012797574512660503,
-0.042451512068510056,
-0.023984450846910477,
-0.023376069962978363,
-0.020224330946803093,
0.0018681002547964454,
0.026642901822924614,
0.02276533469557762,
0.04084558039903641,
0.027580350637435913,
-0.06380990147590637,
0.004802890587598085,
0.02586354687809944,
-0.042528338730335236,
0.05788606032729149,
0.03034316562116146,
0.11237534880638123,
-0.059732791036367416,
-0.07398094981908798,
0.019505556672811508,
-0.0037325986195355654,
-0.03527778759598732,
0.012818839401006699,
0.021685484796762466,
-0.049980755895376205,
-0.021169595420360565,
0.0019494694424793124,
0.04888249188661575,
-0.0421951524913311,
-0.02313496544957161,
0.042679764330387115,
0.00251516024582088,
0.03178506717085838,
-0.04883728548884392,
-0.029605263844132423,
0.014702515676617622,
-0.016120245680212975,
-0.03971608355641365,
0.05743792653083801,
-0.015394295565783978,
-0.02154645510017872,
-0.036307740956544876,
-0.03650099039077759,
0.009516465477645397,
0.08755018562078476,
-0.010169659741222858,
-0.0172641109675169,
-0.01901722140610218,
0.04256362095475197,
0.04750821366906166,
0.07898100465536118,
-0.02336296997964382,
0.031985700130462646,
0.054906606674194336,
0.048982150852680206,
-0.022560805082321167,
0.03837495297193527,
0.013729841448366642,
-0.031070617958903313,
-0.015512748621404171,
0.0016450759721919894,
0.007508050184696913,
-0.043187983334064484,
0.03794403746724129,
0.019175706431269646,
0.00511195557191968,
-0.05974426493048668,
-0.031234724447131157,
0.025750260800123215,
-0.0012538350420072675,
0.00911731831729412,
0.017347421497106552,
-0.007947385311126709,
-0.008016224950551987,
0.045734528452157974,
-0.016547515988349915,
0.005241534672677517,
-0.016923995688557625,
-0.028072888031601906,
0.005293233320116997,
0.016138926148414612,
0.0415709987282753,
0.05561931058764458,
-0.015219386667013168,
0.08257972449064255,
-0.03230269253253937,
0.017153766006231308,
-0.05047042295336723,
-0.03584831953048706,
0.007833399809896946,
0.03254542872309685,
0.05136679485440254,
0.044842157512903214,
0.014016594737768173,
-0.03660053759813309,
0.050237610936164856,
0.05341322347521782,
0.033168990164995193,
0.030254794284701347,
-0.025945326313376427,
-0.02330464869737625,
0.033183421939611435,
0.06517446041107178,
-0.05983347073197365,
-0.019309576600790024,
0.00517009012401104,
0.019497275352478027,
0.011462424881756306,
0.021811174228787422,
-0.015965109691023827,
0.04837995767593384,
-0.05425659567117691,
-0.054251864552497864,
0.04515429586172104,
0.019170086830854416,
-0.014784182421863079,
0.039777498692274094,
0.01373334601521492,
-0.003256831783801317,
0.023487964645028114,
0.007157651707530022,
0.005441836081445217,
-0.04738533869385719,
0.0037714827340096235,
0.011557542718946934,
0.0656130388379097,
-0.041062962263822556,
0.021907275542616844,
-0.009712537750601768,
0.01370640192180872,
0.059804823249578476,
-0.057224322110414505,
0.026829281821846962,
0.03737499564886093,
0.03983680158853531,
-0.03359495848417282,
0.024989457800984383,
0.014495505020022392,
0.03874640166759491,
0.04059003293514252,
0.02019369602203369,
0.06353089213371277,
0.007094693835824728,
0.060086559504270554,
0.08430612832307816,
0.021848507225513458,
0.028198575600981712,
0.03309576213359833,
0.06414319574832916,
0.01688065007328987,
-0.008434425108134747,
0.04008211940526962,
-0.05137191712856293,
0.02058148942887783,
-0.04762043058872223,
-0.004404946230351925,
-0.021520571783185005,
-0.020498041063547134,
0.056207794696092606,
0.022448409348726273,
-0.016708049923181534,
0.005375221837311983,
-0.013739271089434624,
-0.02422531135380268,
0.022990429773926735,
-0.0019009296083822846,
-0.01839403621852398,
-0.0009175812592729926,
-0.027399331331253052,
-0.02738167718052864,
-0.08117087185382843,
-0.04121139645576477,
-0.02974604442715645,
-0.00978225190192461,
-0.005383016541600227,
-0.09602738171815872,
-0.00929021555930376,
-0.07274915277957916,
-0.032322414219379425,
0.01597018726170063,
0.00939695630222559,
0.005910944659262896,
-0.041682615876197815,
0.030593741685152054,
-0.051384087651968,
-0.041428349912166595,
-0.0466751903295517,
-0.05265378952026367,
-0.04401678964495659,
-0.07309192419052124,
0.02957717701792717,
0.025459738448262215,
0.008836408145725727,
0.00616765720769763,
0.008504313416779041,
0.0013905788073316216,
-0.019597390666604042,
0.05257833003997803,
0.07318595051765442,
-0.04620184376835823,
-0.052227240055799484,
0.039144210517406464,
-0.017720064148306847,
0.0033046004828065634,
0.0048654587008059025,
-0.03096306137740612,
0.09371572732925415,
0.08260752260684967,
0.0050019570626318455,
0.02281942218542099,
-0.009110517799854279,
-0.057023730129003525,
-0.06524242460727692,
-0.02202116884291172,
-0.035514235496520996,
-0.015931038185954094,
-0.03261193633079529,
-0.04674939438700676,
-0.01930806040763855,
-0.03548460453748703,
-0.009542003273963928,
-0.01460350677371025,
0.03648160770535469,
0.040206052362918854,
0.0328749418258667,
0.030233928933739662,
0.021450506523251534,
-0.03827400505542755,
-0.03835799917578697,
0.05618791654706001,
-0.0014273395063355565,
-0.015386534854769707,
-0.0793444812297821,
-0.02409408427774906,
0.04839950054883957,
0.02365533448755741,
0.02009044587612152,
-0.009397090412676334,
0.06436716020107269,
-0.004989974200725555,
0.0026876472402364016,
0.021806754171848297,
-0.01735737919807434,
-0.025052202865481377,
-0.005200955085456371,
0.007026303559541702,
-0.015797084197402,
-0.035619474947452545,
-0.031626950949430466,
-0.027550918981432915,
0.036391276866197586,
-0.061178989708423615,
-0.05031706020236015,
-0.010192598216235638,
0.04639113321900368,
0.05212506651878357,
-0.008705070242285728,
-0.030938342213630676,
-0.00863177515566349,
-0.06646199524402618,
-0.005287523381412029,
0.03488763049244881,
0.014978881925344467,
0.01878390647470951,
0.03497529774904251,
0.02402956411242485,
-0.022893186658620834,
0.03330609202384949,
0.057365309447050095,
0.0859205350279808,
0.007904434576630592,
-0.05423120781779289,
-0.011117991991341114,
-0.03191496431827545,
0.02346198819577694,
0.008502849377691746,
-0.017791083082556725,
-0.028807664290070534,
-0.10793866217136383,
-0.019008062779903412,
0.003939054440706968,
0.0066412389278411865,
0.0042390963062644005,
0.032955899834632874,
-0.003095122054219246,
-0.03938451036810875,
0.009239323437213898,
0.010154698975384235,
0.04670213535428047,
-0.04007594659924507,
0.05775177478790283,
-0.008002231828868389,
0.0060358233749866486,
-0.047631315886974335,
0.0069651235826313496,
-0.06399164348840714,
-0.014611457474529743,
-0.015191808342933655,
0.0525350384414196,
-0.0066187153570353985,
0.037894174456596375,
0.07910550385713577,
0.017099877819418907,
-0.04634452983736992,
0.026865195482969284,
0.05924159288406372,
-0.03641892597079277,
-0.049625214189291,
-0.005416571162641048,
0.015061503276228905,
-0.008108904585242271,
-0.025748400017619133,
-0.004310660529881716,
0.040193505585193634,
0.04623354226350784,
0.012630955316126347,
0.012923423200845718,
0.01160381082445383,
-0.02596975304186344,
-0.026191622018814087,
-0.057995669543743134,
-0.02562102861702442,
0.006493804045021534,
-0.026829957962036133,
0.005110965576022863,
0.02711600810289383,
0.02759779617190361,
0.06972774863243103,
0.039862778037786484,
-0.01107050385326147,
-0.029926352202892303,
0.03126537427306175,
0.020312460139393806,
-0.031018555164337158,
-0.06762061268091202,
-0.045268893241882324,
0.01662975735962391,
0.044882774353027344,
-0.0216741394251585,
-0.05821484327316284,
0.0035464372485876083,
0.031237659975886345,
-0.02869643084704876,
0.06406514346599579,
-0.003151265438646078,
0.04382485896348953,
0.051785826683044434,
-0.005627145525068045,
0.029370391741394997,
-0.0087276017293334,
0.011129755526781082,
0.00856659933924675,
0.03322325646877289,
-0.024894243106245995,
-0.050726767629384995,
-0.03965040668845177,
0.021898332983255386,
0.03880521282553673,
0.047419313341379166,
0.04622914642095566,
-0.03268769755959511,
-0.061484478414058685,
0.020645594224333763,
0.038208287209272385,
-0.03640010207891464,
0.015054977498948574,
0.03698428347706795,
0.029832160100340843,
-0.05536442622542381,
-0.03337721899151802,
-0.030319949612021446,
-0.0009476274717599154,
0.04448873922228813,
-0.0072255851700901985,
-0.024300670251250267,
-0.025671474635601044,
0.021658165380358696,
-0.00988867785781622,
-0.02740001678466797,
-0.07189001888036728,
0.043019235134124756,
-0.005557982251048088,
-0.020224854350090027,
0.06819239258766174,
0.044003769755363464,
0.03992744907736778,
0.06918364018201828,
0.026633761823177338,
0.044872768223285675,
-0.04174404963850975,
0.031386349350214005,
-0.05620085075497627,
-0.012710079550743103,
0.00967013742774725,
-0.029419250786304474,
-0.03584181144833565,
-0.026727648451924324,
-0.058404598385095596,
-0.04757232218980789,
-0.017523307353258133,
0.006574959494173527,
-0.0003508876252453774,
-0.006245679222047329,
-0.0028649205341935158,
0.0316852331161499,
-0.016577819362282753,
-0.017021551728248596,
-0.04203229770064354,
-0.026357755064964294,
-0.07327242195606232,
-0.05622563883662224,
-0.0003928515943698585,
0.0035909293219447136,
0.03627965971827507,
0.035025741904973984,
0.018623486161231995,
0.02589491568505764,
0.015137569047510624,
-0.026117224246263504,
0.01032201573252678,
0.008332311175763607,
-0.027004899457097054,
-0.03657994791865349,
0.025461165234446526,
0.014192757196724415,
0.0241334717720747,
-0.022270243614912033,
0.046771835535764694,
0.008927335031330585,
-0.0030465717427432537,
-0.0078090461902320385,
0.02468854933977127,
0.01790534146130085,
-0.0768313780426979,
-0.03560270741581917,
0.0014263237826526165,
-0.030677005648612976,
0.006431722082197666,
-0.03199198096990585,
-0.038308653980493546,
0.0023523292038589716,
0.01483879517763853,
0.039727743715047836,
-0.017480604350566864,
-0.023782944306731224,
0.025065729394555092,
-0.025266295298933983,
0.03599143400788307,
-0.062254924327135086,
0.06650868058204651,
-0.04650789126753807,
0.012021287344396114,
-0.007895538583397865,
0.017661625519394875,
-0.02601929008960724,
0.03466110676527023,
-0.01293879747390747,
-0.008500486612319946,
-0.022665005177259445,
0.02247130312025547,
-0.028997335582971573,
0.02910749614238739,
-0.006187895312905312,
0.014340538531541824,
-0.03119855560362339,
0.07086964696645737,
-0.0376993864774704,
0.019079048186540604,
-0.04395294561982155,
0.033541347831487656,
-0.042514618486166,
0.011948765255510807,
0.0004769119550473988,
-0.027142712846398354,
0.037116244435310364,
0.050395600497722626,
0.03471672162413597,
0.010002371855080128,
-0.00958508625626564,
-0.010755875147879124,
0.023033998906612396,
-0.0512070469558239,
-0.013486667536199093,
-0.04218091070652008,
-0.01279093511402607,
-0.009559989906847477,
0.040524281561374664,
0.04359070211648941,
-0.04806724563241005,
-0.0562937892973423,
0.042211178690195084,
0.02431006170809269,
0.01686609908938408,
-0.008258434012532234,
0.05440935492515564,
0.01798710972070694,
0.04306235536932945,
-0.025838259607553482,
0.0032377243041992188,
-0.012354614213109016,
-0.039488088339567184,
0.015435239300131798,
-0.004482971504330635,
0.030080407857894897,
-0.000009361084266856778,
-0.03681538626551628,
-0.028483690693974495,
0.06914959847927094,
0.039820171892642975,
0.02122603915631771,
0.006978868506848812,
-0.04765572398900986,
0.038721963763237,
0.02227623760700226,
-0.04122927039861679,
0.030493443831801414,
0.0240970179438591,
-0.024744318798184395,
0.07043064385652542,
-0.010017857886850834,
0.014356836676597595,
0.05033077299594879,
0.015314032323658466,
-0.026603834703564644,
0.053910087794065475,
-0.027665598317980766,
0.014157162047922611,
0.04370258376002312,
-0.06440190970897675,
-0.012515022419393063,
-0.04490949213504791,
0.04349629580974579,
-0.06074190139770508,
0.03273551166057587,
0.043207429349422455,
0.026324894279241562,
0.021598896011710167,
-0.04737067595124245,
-0.05842701345682144,
-0.0018832172499969602,
-0.04931427910923958,
0.07552928477525711,
-0.013636243529617786,
-0.036207955330610275,
0.0780218169093132,
-0.011867845430970192,
-0.039695583283901215,
0.043912969529628754,
0.023672113195061684,
0.06989496946334839,
0.02278825081884861,
0.057149019092321396,
-0.04209091141819954,
-0.0026251350063830614,
-0.03867784142494202,
0.00471176952123642,
-0.046272046864032745,
-0.01063366699963808,
0.04307614639401436,
-0.04515563324093819,
-0.03924046456813812,
0.05151352286338806,
-0.01046139094978571,
-0.020839136093854904,
0.03561863303184509,
-0.05503648892045021,
-0.04509984329342842,
0.019617024809122086,
0.017622623592615128,
-0.029070833697915077,
-0.0038373491261154413,
-0.04030640795826912,
0.007681620307266712,
0.01191609725356102,
-0.004192826803773642,
-0.009177683852612972,
0.005024419631808996,
0.04288850352168083,
-0.035717107355594635,
-0.05306321009993553,
0.009879645891487598,
0.011956639587879181,
-0.017862733453512192,
0.03664744272828102,
0.01501023955643177,
0.0287880040705204,
0.02667056955397129,
-0.011302748695015907,
0.027617042884230614,
-0.015591425821185112,
-0.015113461762666702,
0.009141379967331886,
0.0023375828750431538,
0.029425961896777153,
-0.0016652087215334177,
0.05354752019047737,
0.03780626133084297,
0.0472128689289093,
0.0028149487916380167,
-0.029051732271909714,
-0.025524737313389778,
0.010035823099315166,
-0.03344125673174858,
0.011836185120046139,
0.0020896042697131634,
-0.052509646862745285,
-0.042437873780727386,
-0.0013558748178184032,
-0.031658053398132324,
0.04669241979718208,
-0.06223611906170845,
0.03146747127175331,
0.026850054040551186,
0.0009167621028609574,
-0.06014193221926689,
-0.09089580923318863,
-0.013155952095985413,
-0.05866188555955887,
0.003270922927185893,
0.05104302614927292,
-0.04494774341583252,
0.03019191510975361,
-0.03921553120017052,
-0.028995200991630554,
0.038475289940834045,
0.019389929249882698,
-0.047435518354177475,
0.05654987320303917,
0.04089413583278656,
-0.047845758497714996,
0.00788091029971838,
0.025965441018342972,
-0.05146127566695213,
-0.0002602146123535931,
0.025921029970049858,
-0.012458907440304756,
0.038446903228759766,
-0.006634696386754513,
-0.05877821892499924,
-0.01907331682741642,
-0.07762310653924942,
-0.05656152963638306,
-0.05955018475651741,
0.006263194140046835,
0.05256776884198189
] |
Ayham/ernie_gpt2_summarization_cnn_dailymail | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:cnn_dailymail",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 13 | null | ---
tags:
- generated_from_trainer
datasets:
- cnn_dailymail
model-index:
- name: ernie_gpt2_summarization_cnn_dailymail
results: []
---
<!-- 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. -->
# ernie_gpt2_summarization_cnn_dailymail
This model is a fine-tuned version of [](https://huggingface.co/) on the cnn_dailymail 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: 5e-05
- train_batch_size: 8
- 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: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.12.0.dev0
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.10.3
| [
-0.025416741147637367,
-0.007336568087339401,
-0.01733085699379444,
0.04508119076490402,
0.03886226564645767,
0.019939720630645752,
-0.0062176804058253765,
-0.027837257832288742,
-0.04385002329945564,
0.06073789298534393,
0.04108747839927673,
-0.005043423734605312,
0.015578207559883595,
0.04268428683280945,
-0.023732198402285576,
-0.029813826084136963,
-0.031112002208828926,
0.0027711305301636457,
-0.028572889044880867,
-0.006581607740372419,
0.022206900641322136,
-0.002257915213704109,
-0.004629930015653372,
-0.008153525181114674,
-0.01535764243453741,
0.01989283785223961,
0.006521112285554409,
0.02261500433087349,
-0.0013149960432201624,
-0.06988126039505005,
0.009754478000104427,
-0.055120114237070084,
-0.04713863134384155,
-0.015530120581388474,
-0.021084370091557503,
-0.002208375371992588,
-0.00026853501913137734,
0.003640890819951892,
0.017330020666122437,
0.047463905066251755,
-0.013906406238675117,
0.006773105822503567,
0.0026235368568450212,
-0.030136702582240105,
0.0467621311545372,
0.011684361845254898,
-0.047219421714544296,
-0.008407040499150753,
0.0540180429816246,
-0.019742773845791817,
-0.06361230462789536,
-0.06371928751468658,
-0.02078714407980442,
0.01834818534553051,
-0.036277856677770615,
-0.03594028577208519,
-0.07530529052019119,
-0.01279437355697155,
0.06143932044506073,
-0.02849823608994484,
-0.036428049206733704,
0.020830972120165825,
-0.07065069675445557,
-0.000320891645969823,
0.03470924124121666,
-0.00738939456641674,
0.017527703195810318,
-0.03211476653814316,
0.028815574944019318,
-0.021274013444781303,
0.06154865026473999,
-0.03043309971690178,
0.024647915735840797,
-0.0960773378610611,
-0.022725794464349747,
-0.0012328721350058913,
0.0407303050160408,
0.04248667135834694,
-0.01961265504360199,
0.03757961466908455,
0.03716718405485153,
0.00549180107191205,
0.055006153881549835,
-0.011756368912756443,
-0.011065363883972168,
0.022483209148049355,
-0.0614265576004982,
-0.0021884506568312645,
0.016578685492277145,
0.031362470239400864,
-0.04043611139059067,
-0.04307716339826584,
-0.031350042670965195,
-0.04019235447049141,
-0.03139026463031769,
0.01828194223344326,
0.05283617228269577,
0.008998187258839607,
0.04422823712229729,
0.031081652268767357,
0.040738265961408615,
0.034450139850378036,
-0.017124993726611137,
0.07524479180574417,
-0.009360824711620808,
-0.0010612416081130505,
-0.04207666590809822,
-0.03142422437667847,
-0.05863005295395851,
0.03612806275486946,
0.022211290895938873,
-0.04860711842775345,
-0.05683028697967529,
0.023779798299074173,
-0.01292838342487812,
-0.007264861837029457,
0.035973042249679565,
-0.027058720588684082,
-0.04692021757364273,
-0.022550739347934723,
0.015250066295266151,
0.013399439863860607,
0.00007412880950141698,
0.01621309667825699,
-0.05134190246462822,
-0.0018868889892473817,
-0.023098500445485115,
-0.02547725848853588,
-0.004519776441156864,
0.0064001791179180145,
0.019584737718105316,
0.045935165137052536,
0.022188423201441765,
-0.06084786728024483,
0.00007999698573257774,
0.017212705686688423,
-0.061939895153045654,
0.054947905242443085,
0.018376899883151054,
0.09335266053676605,
-0.09023407846689224,
-0.058609381318092346,
0.024931712076067924,
0.010891944169998169,
-0.031033337116241455,
0.012205153703689575,
0.04915054515004158,
-0.04753631725907326,
-0.0273117795586586,
0.006261356174945831,
0.06543204188346863,
-0.05538736283779144,
0.0011048709275200963,
0.02987656556069851,
0.014446254819631577,
0.03003288432955742,
-0.05298975110054016,
-0.036727454513311386,
-0.0037688552401959896,
0.011530531570315361,
-0.0306046474725008,
0.043165456503629684,
-0.010469149798154831,
-0.007356505375355482,
-0.05076892673969269,
-0.05509161949157715,
0.007967229001224041,
0.08395376056432724,
-0.006541694048792124,
-0.02488533779978752,
-0.03276638314127922,
0.03718459606170654,
0.06477144360542297,
0.042652253061532974,
-0.01740339584648609,
0.033341359347105026,
0.0658482015132904,
0.061045367270708084,
-0.026918884366750717,
0.048223014920949936,
-0.007758421823382378,
-0.04138951376080513,
-0.018814992159605026,
0.0001450056879548356,
-0.002163624158129096,
-0.04025688394904137,
0.022343168035149574,
0.02056802436709404,
-0.0012603647774085402,
-0.04694042354822159,
-0.03356726095080376,
0.05000552162528038,
0.009157629683613777,
-0.007034834008663893,
-0.004750622436404228,
-0.0322522334754467,
-0.017446225509047508,
0.03574805334210396,
-0.018471799790859222,
0.004296093713492155,
-0.015670083463191986,
-0.031714145094156265,
0.007360592484474182,
0.015280951745808125,
0.021832821890711784,
0.06448917835950851,
-0.018819915130734444,
0.07261643558740616,
-0.044855743646621704,
0.019835779443383217,
-0.051992885768413544,
-0.05175933614373207,
-0.005939571652561426,
0.03798411414027214,
0.052872661501169205,
0.06577765196561813,
0.019848614931106567,
-0.043660979717969894,
0.04004936292767525,
0.04463924840092659,
0.023767057806253433,
0.026865730062127113,
-0.015459136106073856,
-0.02010221965610981,
0.03875916451215744,
0.06520957499742508,
-0.04537207633256912,
-0.021243860945105553,
0.013180915266275406,
0.030045796185731888,
0.006745834834873676,
0.01970076933503151,
-0.016955580562353134,
0.0334867499768734,
-0.05236970633268356,
-0.06443244218826294,
0.049226339906454086,
0.048226550221443176,
-0.013898776844143867,
0.02938373014330864,
-0.013329007662832737,
0.006765215657651424,
0.02088870294392109,
0.007256464567035437,
0.007118924520909786,
-0.0450933463871479,
0.008219074457883835,
0.01724901795387268,
0.049724068492650986,
-0.03425587713718414,
0.020151600241661072,
-0.012095658108592033,
0.012060369364917278,
0.03957844898104668,
-0.03750414028763771,
0.034750569611787796,
0.024981357157230377,
0.04925841838121414,
-0.03620472922921181,
0.019711945205926895,
0.0011987796751782298,
0.030213767662644386,
0.02525835856795311,
0.00856033992022276,
0.06245893985033035,
-0.0003074446867685765,
0.05683984234929085,
0.06805647909641266,
0.022483203560113907,
0.02914869412779808,
0.041546598076820374,
0.06431601196527481,
0.027229594066739082,
-0.01230088621377945,
0.056162234395742416,
-0.04040157422423363,
0.01364681962877512,
-0.0671035423874855,
0.01749291643500328,
-0.012801207602024078,
-0.0047168429009616375,
0.04276660829782486,
0.013513974845409393,
-0.009728854522109032,
0.005544470623135567,
-0.015438197180628777,
-0.028553178533911705,
0.018844157457351685,
-0.013147450983524323,
-0.024621300399303436,
-0.013302224688231945,
-0.01350292470306158,
-0.01929953508079052,
-0.06849924474954605,
-0.030428418889641762,
-0.019644159823656082,
-0.03981476649641991,
-0.009651917032897472,
-0.0985535979270935,
-0.028900494799017906,
-0.0646231472492218,
0.0021904788445681334,
0.025253374129533768,
0.01767418533563614,
0.0057715754956007,
-0.057629361748695374,
0.02882670983672142,
-0.05227544531226158,
-0.07492461055517197,
-0.05356847494840622,
-0.043592389672994614,
-0.02882913500070572,
-0.07804073393344879,
0.02542734332382679,
0.03442377597093582,
0.019891316071152687,
-0.008872626349329948,
0.0017809579148888588,
-0.020813295617699623,
-0.014487453736364841,
0.047995712608098984,
0.06103721261024475,
-0.04027740657329559,
-0.06236003711819649,
0.03176047280430794,
-0.02232515439391136,
0.012135116383433342,
-0.01801093854010105,
-0.0009990239050239325,
0.07139763236045837,
0.07309146225452423,
0.015107669867575169,
0.030453141778707504,
-0.016762826591730118,
-0.052352793514728546,
-0.044329311698675156,
-0.011863373219966888,
-0.021328778937458992,
-0.015561076812446117,
-0.042585186660289764,
-0.04233270883560181,
-0.013298090547323227,
-0.055765215307474136,
-0.023583995178341866,
-0.004987088963389397,
0.012256472371518612,
0.026395276188850403,
0.03273683786392212,
0.023716380819678307,
0.02527451701462269,
-0.041116856038570404,
-0.048851434141397476,
0.056049883365631104,
-0.00850224494934082,
0.016109365969896317,
-0.08667638152837753,
-0.01663358137011528,
0.05380992963910103,
0.009158773347735405,
0.003231329144909978,
-0.013154209591448307,
0.06626534461975098,
0.022913504391908646,
-0.004539001267403364,
0.012367178685963154,
-0.005363733973354101,
-0.02073925919830799,
-0.017176872119307518,
0.009038726799190044,
-0.023517625406384468,
-0.03827474266290665,
-0.02814335934817791,
-0.030554471537470818,
0.04987001791596413,
-0.07034693658351898,
-0.06367108225822449,
-0.021167324855923653,
0.03774331882596016,
0.04453367367386818,
0.008225593715906143,
-0.052182648330926895,
-0.01820342056453228,
-0.05702725797891617,
0.0039588152430951595,
0.03635779395699501,
0.010604443028569221,
0.016303248703479767,
0.03953513503074646,
0.032708823680877686,
-0.017608247697353363,
0.03934861719608307,
0.0380120612680912,
0.06681026518344879,
0.008085489273071289,
-0.05066557973623276,
0.014070753939449787,
-0.009509752504527569,
0.02371380291879177,
0.018344217911362648,
-0.01872153952717781,
-0.04076136648654938,
-0.10408918559551239,
-0.012682473286986351,
0.013648713938891888,
-0.021181821823120117,
-0.009930179454386234,
0.021769171580672264,
-0.015451700426638126,
-0.014793290756642818,
-0.005434285383671522,
0.016819190233945847,
0.03444189578294754,
-0.06564855575561523,
0.04444662481546402,
-0.010199371725320816,
0.01624099723994732,
-0.05844816938042641,
-0.0033547671046108007,
-0.033697709441185,
-0.010676124133169651,
-0.008605419658124447,
0.051056019961833954,
0.009975115768611431,
0.044853366911411285,
0.08263644576072693,
0.016658205538988113,
-0.04236261919140816,
0.02919069677591324,
0.08569453656673431,
-0.030997712165117264,
-0.03449341654777527,
-0.009597237221896648,
0.027944767847657204,
-0.02042960934340954,
-0.01658443547785282,
0.013546532019972801,
0.03494412079453468,
0.042525965720415115,
0.0013617142103612423,
0.021177377551794052,
0.017455855384469032,
-0.026851816102862358,
-0.02626858465373516,
-0.06328058242797852,
-0.01892554946243763,
-0.013559509068727493,
-0.03575605899095535,
0.015946730971336365,
0.02856902778148651,
0.0014845578698441386,
0.06386517733335495,
0.0400470532476902,
-0.012804174795746803,
-0.038646601140499115,
0.04604427143931389,
0.020364655181765556,
-0.03041887655854225,
-0.055712416768074036,
-0.03404352441430092,
0.027089927345514297,
0.03647249564528465,
-0.014088388532400131,
-0.06644489616155624,
0.0020140691194683313,
0.04958732798695564,
-0.034717630594968796,
0.03643798828125,
0.002206091769039631,
0.028400693088769913,
0.050827011466026306,
-0.02268916182219982,
0.04193175584077835,
-0.036398276686668396,
0.0022760836873203516,
0.007802972104400396,
0.03266504034399986,
-0.04161141812801361,
-0.0502033531665802,
-0.05072439834475517,
0.03008263371884823,
0.038663577288389206,
0.04791263863444328,
0.06972284615039825,
-0.026195278391242027,
-0.03229627013206482,
0.009972548112273216,
0.042352668941020966,
-0.027210231870412827,
0.008643980138003826,
0.025790859013795853,
0.024767238646745682,
-0.05149274319410324,
-0.0500863753259182,
-0.02500343881547451,
-0.0157339908182621,
0.041966117918491364,
-0.03519700840115547,
-0.042887769639492035,
-0.023651817813515663,
0.015902167186141014,
-0.00008155500836437568,
-0.013858678750693798,
-0.06366925686597824,
0.05100465193390846,
-0.00024092066450975835,
-0.008325343020260334,
0.031212275847792625,
0.030887072905898094,
0.027832601219415665,
0.06512907892465591,
0.002963953884318471,
0.03577055782079697,
-0.043407995253801346,
0.02517063543200493,
-0.04866499826312065,
-0.016140615567564964,
0.0002530503843445331,
-0.05452389270067215,
-0.00707388948649168,
-0.013207758776843548,
-0.06928509473800659,
-0.04528441280126572,
-0.010112892836332321,
0.017518455162644386,
-0.011640524491667747,
-0.009415693581104279,
-0.006569306366145611,
0.028468996286392212,
-0.04348070174455643,
-0.031568851321935654,
-0.03328906372189522,
-0.04733046889305115,
-0.07634519040584564,
-0.0771738812327385,
0.013354312628507614,
0.01000177301466465,
0.04304168373346329,
0.02663418836891651,
0.02767132967710495,
0.0077239335514605045,
0.01100708357989788,
-0.03779010474681854,
0.016722463071346283,
-0.003723796224221587,
-0.030153004452586174,
-0.041235215961933136,
0.013155640102922916,
0.006884699687361717,
0.02828666940331459,
-0.011430150829255581,
0.03626028448343277,
0.02202961966395378,
-0.011171577498316765,
-0.018479323014616966,
0.05341927334666252,
-0.004889829084277153,
-0.06784022599458694,
-0.014320192858576775,
-0.010346774011850357,
-0.025792155414819717,
0.030618246644735336,
-0.02297276072204113,
-0.03140425309538841,
-0.031167635694146156,
0.002655884949490428,
0.04052034392952919,
-0.019278718158602715,
-0.028229476884007454,
0.019690442830324173,
-0.0564810074865818,
0.03263771906495094,
-0.05057109519839287,
0.0656173899769783,
-0.03490602225065231,
-0.0015890165232121944,
-0.01325956080108881,
0.018224002793431282,
-0.050316981971263885,
0.04227563366293907,
-0.009555850178003311,
0.0005817216588184237,
-0.004878247156739235,
0.04423193633556366,
-0.019889909774065018,
0.04211532324552536,
-0.01048195082694292,
0.03535555675625801,
-0.045367151498794556,
0.0663505494594574,
-0.028184941038489342,
0.006873678416013718,
-0.03759859502315521,
0.01138244941830635,
-0.0479096919298172,
0.0041672601364552975,
-0.030142640694975853,
-0.022417133674025536,
0.030468488112092018,
0.03184259682893753,
0.01755448430776596,
0.019254259765148163,
-0.017925292253494263,
-0.005541326943784952,
0.0325884148478508,
-0.07236356288194656,
-0.01929229125380516,
-0.01815735548734665,
-0.014382753521203995,
-0.0170857273042202,
0.05097860097885132,
0.05876462161540985,
-0.056492093950510025,
-0.05933653563261032,
0.04966781660914421,
0.00802844762802124,
0.008695117197930813,
0.009027869440615177,
0.026862857863307,
0.015684278681874275,
0.03499247878789902,
-0.04811255633831024,
-0.015139145776629448,
-0.015351089648902416,
-0.04803561419248581,
0.03117234632372856,
-0.0032917591743171215,
0.030445311218500137,
0.01388225145637989,
-0.03661138564348221,
-0.01976490020751953,
0.06657085567712784,
0.03752864524722099,
0.02103707753121853,
-0.00512548815459013,
-0.044753119349479675,
0.039031703025102615,
0.0008390305447392166,
-0.05079251527786255,
0.009394834749400616,
0.026488978415727615,
-0.01113004982471466,
0.07837562263011932,
-0.0027542354073375463,
0.009235575795173645,
0.04630541428923607,
0.04481762647628784,
-0.020632797852158546,
0.048607826232910156,
-0.026052149012684822,
0.015579571947455406,
0.04219822958111763,
-0.06840646266937256,
-0.012896248139441013,
-0.045413676649332047,
0.07412263751029968,
-0.060488298535346985,
0.025443309918045998,
0.04300646483898163,
0.021156063303351402,
0.018088029697537422,
-0.028608104214072227,
-0.06995610147714615,
0.011653522029519081,
-0.048528820276260376,
0.07884247601032257,
0.001402703463099897,
-0.03579169139266014,
0.07941267639398575,
0.0017138730036094785,
-0.04607679322361946,
0.0349276065826416,
0.030320266261696815,
0.04950357601046562,
0.020568205043673515,
0.05280303210020065,
-0.039354193955659866,
-0.013886755332350731,
-0.05785444378852844,
0.012578370049595833,
-0.03509721904993057,
-0.026402607560157776,
0.044110964983701706,
-0.04208112880587578,
-0.04300827160477638,
0.055760547518730164,
-0.01651802659034729,
-0.0411233976483345,
0.04085656628012657,
-0.06476311385631561,
-0.022697508335113525,
0.0029595361556857824,
0.002706506522372365,
-0.03364686295390129,
0.0006210047868080437,
-0.03947661444544792,
0.010131986811757088,
0.011925936676561832,
-0.012207495048642159,
-0.007575914729386568,
0.024244409054517746,
0.03438859432935715,
-0.04234610125422478,
-0.03414599597454071,
0.013436923734843731,
0.00016355417028535157,
-0.011490883305668831,
0.025125185027718544,
-0.004113663919270039,
0.022413164377212524,
0.028946274891495705,
-0.0013325304025784135,
0.03912946954369545,
-0.02706642635166645,
-0.006403760518878698,
0.008859263733029366,
0.0079271225258708,
0.03232039138674736,
-0.0112235676497221,
0.055366937071084976,
0.027283184230327606,
0.017899176105856895,
-0.019690508022904396,
-0.023865826427936554,
-0.04670778289437294,
0.00609769020229578,
-0.021334661170840263,
0.023739172145724297,
0.009856915101408958,
-0.04272304102778435,
-0.035031758248806,
-0.017359262332320213,
-0.03567920997738838,
0.03190412372350693,
-0.04821964353322983,
-0.00024141969333868474,
0.017317090183496475,
0.006058994680643082,
-0.061240941286087036,
-0.08238454908132553,
-0.006772313732653856,
-0.04834846407175064,
0.019076824188232422,
0.04388108104467392,
-0.04397261142730713,
0.019581787288188934,
-0.04690142348408699,
-0.055037446320056915,
0.04655860364437103,
0.01856423355638981,
-0.037748903036117554,
0.04861302301287651,
0.045970313251018524,
-0.04259214550256729,
0.009977379813790321,
0.016807617619633675,
-0.061027947813272476,
0.005912237800657749,
0.02346952073276043,
0.026333579793572426,
0.020739350467920303,
0.021045932546257973,
-0.02566729672253132,
-0.01301641296595335,
-0.059675127267837524,
-0.04009820893406868,
-0.06114900857210159,
0.0032087701838463545,
0.06389226019382477
] |
Ayham/roberta_bert_summarization_cnn_dailymail | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:cnn_dailymail",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 12 | null | ---
tags:
- generated_from_trainer
datasets:
- cnn_dailymail
model-index:
- name: roberta_bert_summarization_cnn_dailymail
results: []
---
<!-- 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. -->
# roberta_bert_summarization_cnn_dailymail
This model is a fine-tuned version of [](https://huggingface.co/) on the cnn_dailymail 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: 5e-05
- train_batch_size: 8
- 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: 2000
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.12.0.dev0
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.10.3
| [
-0.02529999427497387,
-0.007166489493101835,
-0.025497978553175926,
0.04488505423069,
0.035269249230623245,
0.0263226255774498,
-0.01878948323428631,
-0.03301657736301422,
-0.04705727472901344,
0.06412534415721893,
0.04698002338409424,
-0.0063147032633423805,
0.015623193234205246,
0.05228671059012413,
-0.02367176115512848,
-0.033036842942237854,
-0.035402413457632065,
0.0061827185563743114,
-0.029337354004383087,
-0.008579283021390438,
0.030563266947865486,
-0.009297216311097145,
0.0018076291307806969,
0.00019563328532967716,
-0.0025468613021075726,
0.007598097901791334,
0.001478632795624435,
0.029545871540904045,
0.0023624913301318884,
-0.06839185208082199,
0.010976340621709824,
-0.047369591891765594,
-0.0497748889029026,
-0.012503562495112419,
-0.011126674711704254,
0.00439396733418107,
0.007929840125143528,
0.009957319125533104,
0.0234525129199028,
0.052929989993572235,
-0.0042318846099078655,
-0.0003512232506182045,
-0.011401762254536152,
-0.03985637053847313,
0.06454480439424515,
0.0030218493193387985,
-0.056744616478681564,
-0.009603072889149189,
0.04902683570981026,
-0.036920491605997086,
-0.0627908930182457,
-0.0690302848815918,
-0.02136380225419998,
0.01938452571630478,
-0.043294940143823624,
-0.027301007881760597,
-0.06343916803598404,
-0.010956958867609501,
0.05396769568324089,
-0.030530547723174095,
-0.03816373646259308,
0.021938839927315712,
-0.06760503351688385,
0.0050903912633657455,
0.037922415882349014,
-0.013230843469500542,
0.018134314566850662,
-0.031277358531951904,
0.0277931597083807,
-0.019300946965813637,
0.06842897087335587,
-0.029305022209882736,
0.024241136386990547,
-0.08368632942438126,
-0.02081122435629368,
-0.008352725766599178,
0.04371272027492523,
0.04959814250469208,
-0.015048558823764324,
0.039330583065748215,
0.03700783848762512,
-0.0015288343420252204,
0.05138615891337395,
-0.019483698531985283,
-0.004614095203578472,
0.02302379719913006,
-0.052401404827833176,
-0.008264083415269852,
0.015215708874166012,
0.035894427448511124,
-0.0408346951007843,
-0.03530985116958618,
-0.029033992439508438,
-0.02891560085117817,
-0.039168741554021835,
0.021014025434851646,
0.05305596813559532,
0.005630925297737122,
0.03731059655547142,
0.015660949051380157,
0.039230506867170334,
0.04222860187292099,
-0.014067016541957855,
0.06519532948732376,
-0.011312076821923256,
-0.022681178525090218,
-0.04245692864060402,
-0.027949290350079536,
-0.04568540304899216,
0.04299026355147362,
0.020332656800746918,
-0.047797657549381256,
-0.045871149748563766,
0.02073819190263748,
-0.0018371455371379852,
-0.01567046158015728,
0.03355001285672188,
-0.024179797619581223,
-0.04840366542339325,
-0.019891858100891113,
0.028749560937285423,
0.01262819953262806,
-0.004336261656135321,
0.009231033734977245,
-0.045966554433107376,
-0.0066228630021214485,
-0.03420295566320419,
-0.03656961768865585,
0.016691958531737328,
0.009376727044582367,
0.021754050627350807,
0.045159392058849335,
0.019883252680301666,
-0.06858796626329422,
-0.003752656513825059,
0.018188320100307465,
-0.04567256569862366,
0.05830397829413414,
0.019481994211673737,
0.10128970444202423,
-0.082194022834301,
-0.06763960421085358,
0.03533445671200752,
0.01563497819006443,
-0.028917701914906502,
0.01350483950227499,
0.04680374637246132,
-0.0457269549369812,
-0.017783937975764275,
0.003086218610405922,
0.049328215420246124,
-0.049599312245845795,
0.00017719010065775365,
0.029861053451895714,
0.013124923221766949,
0.029186097905039787,
-0.06055336073040962,
-0.0396488718688488,
0.0049620443023741245,
-0.0027845643926411867,
-0.03503686934709549,
0.0528215654194355,
-0.004823993891477585,
-0.013700567185878754,
-0.039038218557834625,
-0.05150764435529709,
0.019112935289740562,
0.08744597434997559,
-0.014743681997060776,
-0.03307832032442093,
-0.015379355289041996,
0.020213088020682335,
0.05954213812947273,
0.04086389020085335,
-0.012554078362882137,
0.024410266429185867,
0.06526542454957962,
0.0647263303399086,
-0.027102511376142502,
0.045985009521245956,
-0.003734021447598934,
-0.04142988100647926,
-0.02478807233273983,
0.017952099442481995,
-0.00012916597188450396,
-0.03670947253704071,
0.03256198391318321,
0.032546285539865494,
-0.0022268909960985184,
-0.03794129192829132,
-0.03677580505609512,
0.055205583572387695,
0.004820866510272026,
-0.007120850030332804,
-0.009392648003995419,
-0.02737119421362877,
-0.018922338262200356,
0.04325244948267937,
-0.011150614358484745,
-0.00397295318543911,
-0.010434920899569988,
-0.036441657692193985,
0.012509609572589397,
0.011895767413079739,
0.03458757698535919,
0.06606425344944,
-0.027570076286792755,
0.0825057327747345,
-0.050798580050468445,
0.02095256745815277,
-0.0510961078107357,
-0.05162354186177254,
0.007150583900511265,
0.04709826782345772,
0.05114898085594177,
0.06777841597795486,
0.02667034976184368,
-0.032027631998062134,
0.03984977677464485,
0.055879589170217514,
0.02090013213455677,
0.024993345141410828,
-0.008627583272755146,
-0.023654235526919365,
0.023822173476219177,
0.05485336855053902,
-0.050056736916303635,
-0.025948040187358856,
0.001057094894349575,
0.03393235802650452,
-0.0037142836954444647,
0.01643783040344715,
-0.017891496419906616,
0.029351532459259033,
-0.056659139692783356,
-0.0704566091299057,
0.057908542454242706,
0.04239670932292938,
-0.008163334801793098,
0.030621256679296494,
-0.007962895557284355,
-0.006556354928761721,
0.013615595176815987,
0.007110085804015398,
0.005711799953132868,
-0.03807234764099121,
0.0008302457281388342,
0.012515041045844555,
0.04631656035780907,
-0.043821290135383606,
0.014144213870167732,
-0.018125295639038086,
0.010330887511372566,
0.03505149483680725,
-0.03685985505580902,
0.028343208134174347,
0.03543165326118469,
0.04396611824631691,
-0.030081385746598244,
0.025363730266690254,
0.005337432026863098,
0.027753664180636406,
0.028141720220446587,
0.008873899467289448,
0.050695452839136124,
0.00817243754863739,
0.057090699672698975,
0.08094288408756256,
0.0197194404900074,
0.03406331315636635,
0.038786690682172775,
0.06990917026996613,
0.026893453672528267,
-0.015145602636039257,
0.06357136368751526,
-0.04074207693338394,
0.016112184152007103,
-0.07486987859010696,
0.021045789122581482,
-0.01450178399682045,
-0.0063158064149320126,
0.025847412645816803,
0.010408885776996613,
-0.026872893795371056,
-0.0032389124389737844,
-0.016526857390999794,
-0.01987108401954174,
0.030478090047836304,
-0.0018377599772065878,
-0.020520102232694626,
-0.016025863587856293,
-0.017600975930690765,
-0.016825314611196518,
-0.06716527789831161,
-0.030140196904540062,
-0.012707053683698177,
-0.030449580401182175,
-0.019252900034189224,
-0.09845636785030365,
-0.0333653949201107,
-0.06047951430082321,
-0.017420971766114235,
0.026570744812488556,
0.009575197473168373,
0.000694992661010474,
-0.042804837226867676,
0.023275082930922508,
-0.05544395372271538,
-0.07598510384559631,
-0.04791879653930664,
-0.048971377313137054,
-0.028287537395954132,
-0.07369125634431839,
0.02309730090200901,
0.028997590765357018,
0.0323333777487278,
-0.008445840328931808,
-0.006321297958493233,
-0.016564838588237762,
-0.012405718676745892,
0.047225192189216614,
0.06159909814596176,
-0.03440487012267113,
-0.060892172157764435,
0.016913047060370445,
-0.02148475870490074,
0.012712215073406696,
-0.005568230524659157,
-0.009718385525047779,
0.07428343594074249,
0.0721270814538002,
0.01675574667751789,
0.02234276756644249,
-0.025916092097759247,
-0.059676844626665115,
-0.04299847409129143,
-0.006725315470248461,
-0.02275138720870018,
-0.027105111628770828,
-0.05482146888971329,
-0.04680893197655678,
0.002014599973335862,
-0.04773391783237457,
-0.016927523538470268,
-0.007490798830986023,
0.015938650816679,
0.028169531375169754,
0.028490470722317696,
0.028160417452454567,
0.02452070266008377,
-0.02640138566493988,
-0.05805452540516853,
0.057646457105875015,
-0.0032697308342903852,
0.008838959038257599,
-0.08052434027194977,
-0.016853971406817436,
0.05947085842490196,
0.007016726769506931,
0.0031235949136316776,
-0.016231372952461243,
0.0694040060043335,
0.00867233145982027,
-0.0061205001547932625,
0.006994990166276693,
0.006645649205893278,
-0.010837957262992859,
-0.013538633473217487,
-0.004375407937914133,
-0.03727298974990845,
-0.04063786193728447,
-0.03493961691856384,
-0.017964845523238182,
0.04476824402809143,
-0.06430384516716003,
-0.0666777491569519,
-0.021894734352827072,
0.0315609872341156,
0.03465491160750389,
0.0024895837996155024,
-0.04437549412250519,
-0.011443928815424442,
-0.05581183359026909,
-0.009356187656521797,
0.03973666578531265,
0.013792024925351143,
0.010422811843454838,
0.046694304794073105,
0.027342887595295906,
-0.02345445565879345,
0.042289867997169495,
0.03698180615901947,
0.06975378841161728,
0.004212670028209686,
-0.06553562730550766,
0.006892349570989609,
-0.017185838893055916,
0.02817695029079914,
0.013721629977226257,
-0.021455921232700348,
-0.04381909966468811,
-0.09599293768405914,
0.0004567116848193109,
0.017986813560128212,
-0.017859330400824547,
-0.011120795272290707,
0.035069987177848816,
-0.012861614115536213,
-0.018702419474720955,
-0.01173305045813322,
0.024366555735468864,
0.034232769161462784,
-0.06452953070402145,
0.05950886756181717,
0.0042222654446959496,
0.02408989518880844,
-0.05796210840344429,
0.008659962564706802,
-0.0464828796684742,
-0.0034228088334202766,
0.00645139254629612,
0.05295499786734581,
0.0069996085949242115,
0.04532909020781517,
0.08428391814231873,
0.02195078134536743,
-0.04041978344321251,
0.03540312126278877,
0.08282691985368729,
-0.021441562101244926,
-0.03294093534350395,
-0.002812963677570224,
0.019878579303622246,
-0.033845920115709305,
-0.018164345994591713,
0.009688393212854862,
0.030232947319746017,
0.04070297256112099,
0.00546116242185235,
0.024137094616889954,
0.020245663821697235,
-0.017339784651994705,
-0.0341067910194397,
-0.05109512433409691,
-0.012376992031931877,
-0.012374726124107838,
-0.02884325571358204,
0.014763194136321545,
0.033296048641204834,
0.007133934646844864,
0.05631212145090103,
0.0404510423541069,
-0.012204483151435852,
-0.03993532806634903,
0.04812929034233093,
0.020307285711169243,
-0.019945714622735977,
-0.05435451865196228,
-0.03972714766860008,
0.01575385592877865,
0.04353123530745506,
-0.02367127500474453,
-0.07237579673528671,
0.019904902204871178,
0.056914374232292175,
-0.03746446594595909,
0.04136441648006439,
0.001685498165898025,
0.03870522603392601,
0.05951657518744469,
-0.025217249989509583,
0.053143762052059174,
-0.03835300728678703,
0.0046880003064870834,
0.0047990260645747185,
0.026389896869659424,
-0.033281825482845306,
-0.04415792226791382,
-0.05726102367043495,
0.02286357246339321,
0.03566339239478111,
0.0469905287027359,
0.06763795018196106,
-0.025577012449502945,
-0.03242933005094528,
0.01374577172100544,
0.04862165451049805,
-0.037979550659656525,
0.016304124146699905,
0.027202125638723373,
0.020290445536375046,
-0.047029972076416016,
-0.055892910808324814,
-0.013677388429641724,
-0.016848938539624214,
0.040915414690971375,
-0.0274595208466053,
-0.043030112981796265,
-0.032907675951719284,
0.02233448065817356,
0.0023406674154102802,
-0.017180796712636948,
-0.06412819772958755,
0.049363575875759125,
0.007940013892948627,
-0.006010203622281551,
0.03179553523659706,
0.023221319541335106,
0.02859658934175968,
0.061308663338422775,
0.012004837393760681,
0.04084755852818489,
-0.042470041662454605,
0.026171868667006493,
-0.04906321316957474,
-0.012120470404624939,
-0.0018595377914607525,
-0.051931314170360565,
-0.015193200670182705,
-0.01557755097746849,
-0.07143957912921906,
-0.04198092594742775,
-0.008280816487967968,
0.005874968133866787,
-0.003977671731263399,
-0.004142489284276962,
-0.012565727345645428,
0.026485439389944077,
-0.04488453269004822,
-0.01601606048643589,
-0.032713159918785095,
-0.03774726390838623,
-0.07525696605443954,
-0.06373011320829391,
0.013393823988735676,
0.02130470797419548,
0.038950543850660324,
0.03715744987130165,
0.025171667337417603,
0.018937239423394203,
0.004520891234278679,
-0.04377879574894905,
0.015220104716718197,
0.0012836630921810865,
-0.02477196231484413,
-0.037767235189676285,
0.024602442979812622,
0.010211704298853874,
0.028827892616391182,
-0.03057907335460186,
0.04119216278195381,
0.021013233810663223,
-0.007526036351919174,
-0.021720079705119133,
0.04323900490999222,
-0.00843573547899723,
-0.07259596884250641,
-0.024564722552895546,
-0.0043683224357664585,
-0.02746281400322914,
0.03683612868189812,
-0.03014085255563259,
-0.029852790758013725,
-0.015208009630441666,
0.004564865492284298,
0.03760125860571861,
-0.017449621111154556,
-0.024870458990335464,
0.010409314185380936,
-0.05265122279524803,
0.03111787885427475,
-0.04735899716615677,
0.06729098409414291,
-0.0410335436463356,
-0.0076606422662734985,
-0.012478314340114594,
0.0043642339296638966,
-0.045423515141010284,
0.04311884939670563,
-0.0160163976252079,
-0.004105822183191776,
-0.013963819481432438,
0.04562140628695488,
-0.021704161539673805,
0.03646927699446678,
-0.010353698395192623,
0.01743927411735058,
-0.04398282617330551,
0.07984073460102081,
-0.03776893764734268,
0.008889013901352882,
-0.02891012467443943,
0.0018884342862293124,
-0.04711022973060608,
-0.0023006617557257414,
-0.02826232835650444,
-0.0146243991330266,
0.04364227503538132,
0.030291801318526268,
0.02960994280874729,
0.02505962736904621,
-0.007235192693769932,
-0.00970168225467205,
0.020050998777151108,
-0.0766087993979454,
-0.028626123443245888,
-0.01828628219664097,
-0.008254092186689377,
-0.01005973294377327,
0.04514067992568016,
0.054310474544763565,
-0.05085887759923935,
-0.059543948620557785,
0.044632576406002045,
0.0038699337746948004,
0.005123581737279892,
0.009034248068928719,
0.03523086756467819,
0.012546767480671406,
0.03664834797382355,
-0.04276379570364952,
-0.01296051125973463,
-0.007970127277076244,
-0.04998454824090004,
0.032149091362953186,
-0.008939172141253948,
0.0338166169822216,
-0.0017795064486563206,
-0.04699724167585373,
-0.026021834462881088,
0.06849514693021774,
0.032296016812324524,
0.021039944142103195,
-0.0031007344368845224,
-0.03376025706529617,
0.035484373569488525,
0.007329178974032402,
-0.05333971977233887,
0.015265749767422676,
0.020562080666422844,
-0.011609586887061596,
0.07067333161830902,
-0.0023058627266436815,
0.009837520308792591,
0.04209670424461365,
0.045576293021440506,
-0.027695994824171066,
0.040280781686306,
-0.03081466630101204,
0.023258579894900322,
0.03656283766031265,
-0.0736762285232544,
-0.013804632239043713,
-0.047653667628765106,
0.07610789686441422,
-0.0726696327328682,
0.03286650776863098,
0.05023224279284477,
0.026234783232212067,
0.017193127423524857,
-0.026317045092582703,
-0.07289468497037888,
0.0048578944988548756,
-0.04676547646522522,
0.07814136147499084,
0.0032464878167957067,
-0.0452861525118351,
0.09149409085512161,
0.001021411968395114,
-0.0524723194539547,
0.026125840842723846,
0.019141633063554764,
0.041944053024053574,
0.014348341152071953,
0.04106918349862099,
-0.028740989044308662,
0.0078325429931283,
-0.06281834095716476,
0.019902000203728676,
-0.028425278142094612,
-0.024121781811118126,
0.039403125643730164,
-0.03497609123587608,
-0.04135940596461296,
0.05229651555418968,
-0.015888042747974396,
-0.02325308695435524,
0.04410635307431221,
-0.05563626065850258,
-0.02622336894273758,
-0.008801274001598358,
-0.00817133393138647,
-0.03389686718583107,
0.0044280183501541615,
-0.033259835094213486,
0.009404235519468784,
0.023057028651237488,
-0.016426412388682365,
-0.018507426604628563,
0.008350254967808723,
0.03482552990317345,
-0.039960455149412155,
-0.05253826826810837,
0.013852466829121113,
-0.0030130327213555574,
-0.006967289838939905,
0.028010284528136253,
0.00959367211908102,
0.02279338240623474,
0.017709696665406227,
-0.004467489663511515,
0.030664948746562004,
-0.04321260005235672,
0.0034548959229141474,
0.0049077305011451244,
0.00923620630055666,
0.03245238587260246,
-0.006163220386952162,
0.05514848604798317,
0.04041524976491928,
0.02179829217493534,
-0.019797425717115402,
-0.015234620310366154,
-0.04140259325504303,
0.0260180551558733,
-0.028506673872470856,
0.010160508565604687,
0.014524496160447598,
-0.03630906343460083,
-0.03106934390962124,
-0.02533756196498871,
-0.037495728582143784,
0.029735036194324493,
-0.049092866480350494,
0.00786752812564373,
0.02048276551067829,
-0.006953977979719639,
-0.058645691722631454,
-0.07618618756532669,
-0.016898686066269875,
-0.049763940274715424,
0.005373902153223753,
0.040683675557374954,
-0.04864593967795372,
0.014270312152802944,
-0.04106202349066734,
-0.047958992421627045,
0.043243858963251114,
0.0283263698220253,
-0.045368876308202744,
0.043670736253261566,
0.0350751131772995,
-0.02934027649462223,
0.0011284948559477925,
0.021106697618961334,
-0.05458976700901985,
0.006065684836357832,
0.020614078268408775,
0.009967237710952759,
0.02148469351232052,
0.02660663053393364,
-0.02638898231089115,
-0.01797736994922161,
-0.05185343325138092,
-0.03886667266488075,
-0.055011264979839325,
-0.0006557815941050649,
0.06884629279375076
] |
Ayham/roberta_distilgpt2_summarization_cnn_dailymail | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:cnn_dailymail",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | null | ---
tags:
- generated_from_trainer
datasets:
- cnn_dailymail
model-index:
- name: roberta_distilgpt2_summarization_cnn_dailymail
results: []
---
<!-- 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. -->
# roberta_distilgpt2_summarization_cnn_dailymail
This model is a fine-tuned version of [](https://huggingface.co/) on the cnn_dailymail 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: 5e-05
- train_batch_size: 8
- 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: 2000
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.16.2
- Pytorch 1.10.0+cu111
- Datasets 1.18.2
- Tokenizers 0.11.0
| [
-0.025774048641324043,
-0.012613351456820965,
-0.019462333992123604,
0.04021063819527626,
0.034207940101623535,
0.030683394521474838,
-0.010204577818512917,
-0.025553373619914055,
-0.04322012886404991,
0.06214778125286102,
0.04828183352947235,
-0.005087254103273153,
0.00480163749307394,
0.05178312212228775,
-0.02660515531897545,
-0.03582489863038063,
-0.03486775979399681,
0.0017711876425892115,
-0.028678571805357933,
-0.011090872809290886,
0.031134571880102158,
-0.011965456418693066,
0.00106731744017452,
-0.00025614979676902294,
-0.010342038236558437,
0.012574316933751106,
0.00443397369235754,
0.026830213144421577,
0.0059962947852909565,
-0.06968898326158524,
0.007761937566101551,
-0.055420152842998505,
-0.04364985227584839,
-0.005615958012640476,
-0.018835274502635002,
-0.0029315061401575804,
0.007266520522534847,
0.0065285502932965755,
0.02660215273499489,
0.05346427857875824,
-0.005351457744836807,
0.004656353499740362,
-0.01684907078742981,
-0.035136207938194275,
0.06689543277025223,
0.006475237663835287,
-0.055167775601148605,
-0.012713178992271423,
0.05191328004002571,
-0.027713119983673096,
-0.06485642492771149,
-0.06697679311037064,
-0.020186392590403557,
0.015539083629846573,
-0.0459747314453125,
-0.028920836746692657,
-0.06956296414136887,
-0.017535217106342316,
0.052580174058675766,
-0.03634398803114891,
-0.030930768698453903,
0.016142092645168304,
-0.0710659921169281,
0.004596575163304806,
0.04253758117556572,
-0.014799264259636402,
0.01829497329890728,
-0.03140472248196602,
0.026779262349009514,
-0.0218912735581398,
0.0662088692188263,
-0.03000367432832718,
0.022784903645515442,
-0.09241044521331787,
-0.015211201272904873,
-0.006266987416893244,
0.04657823592424393,
0.04810761660337448,
-0.01683981902897358,
0.04257133975625038,
0.041228752583265305,
0.001567114726640284,
0.050470806658267975,
-0.017999567091464996,
-0.0017710111569613218,
0.028266625478863716,
-0.059614550322294235,
-0.002005986636504531,
0.012371120043098927,
0.037006132304668427,
-0.04164043068885803,
-0.03859075903892517,
-0.03029659017920494,
-0.0324673168361187,
-0.034513626247644424,
0.02507532201707363,
0.05107283592224121,
0.0014884514966979623,
0.03758954629302025,
0.024685939773917198,
0.03974918648600578,
0.039640575647354126,
-0.025903970003128052,
0.06573082506656647,
-0.005056966096162796,
-0.016304833814501762,
-0.044104401022195816,
-0.03409901261329651,
-0.05349349603056908,
0.04189545661211014,
0.018185699358582497,
-0.046978387981653214,
-0.04500078409910202,
0.020439904183149338,
-0.010685760527849197,
-0.010281724855303764,
0.03899950906634331,
-0.03101245127618313,
-0.050897881388664246,
-0.023906754329800606,
0.023614447563886642,
0.020077023655176163,
-0.00951691996306181,
0.006905590184032917,
-0.0467887781560421,
-0.009275531396269798,
-0.03726337105035782,
-0.03667742758989334,
0.01298658549785614,
0.01107250526547432,
0.01658853515982628,
0.044350337237119675,
0.0248976219445467,
-0.0692502111196518,
-0.007457612548023462,
0.024423429742455482,
-0.052019715309143066,
0.05545904114842415,
0.02588832937180996,
0.09793934971094131,
-0.08820563554763794,
-0.06008904427289963,
0.022992603480815887,
0.008673146367073059,
-0.02909102663397789,
0.015069443732500076,
0.04064098745584488,
-0.05381014943122864,
-0.022469844669103622,
-0.0016468057874590158,
0.054339271038770676,
-0.05534611642360687,
-0.0002691792615223676,
0.03379558026790619,
0.010510366410017014,
0.035725053399801254,
-0.059451211243867874,
-0.0392354317009449,
0.0034413891844451427,
0.0014498971868306398,
-0.0352003239095211,
0.05987202003598213,
-0.004611759912222624,
-0.0068227811716496944,
-0.046863749623298645,
-0.04450273513793945,
0.013720429502427578,
0.09475205838680267,
-0.011500009335577488,
-0.0329572968184948,
-0.015359786339104176,
0.025760695338249207,
0.0582442432641983,
0.04090001434087753,
-0.007074379827827215,
0.027622338384389877,
0.061639051884412766,
0.06852149963378906,
-0.02114887535572052,
0.04143547639250755,
-0.002456472022458911,
-0.03829734027385712,
-0.028847265988588333,
0.012216264382004738,
0.0021870615892112255,
-0.038442935794591904,
0.024419844150543213,
0.025800565257668495,
-0.0015505889896303415,
-0.03779364377260208,
-0.029820596799254417,
0.05630073323845863,
-0.00041228957707062364,
-0.003327425569295883,
-0.010876134969294071,
-0.03404736891388893,
-0.019244002178311348,
0.04487452656030655,
-0.009963573887944221,
-0.001827329397201538,
-0.011567442677915096,
-0.023495910689234734,
0.011047725565731525,
0.016366200521588326,
0.03289765864610672,
0.056664492934942245,
-0.027474941685795784,
0.08794547617435455,
-0.047659263014793396,
0.013603114522993565,
-0.050176311284303665,
-0.05332360416650772,
0.0035412271972745657,
0.04382298141717911,
0.050457101315259933,
0.06857152283191681,
0.025686822831630707,
-0.03963683173060417,
0.048759058117866516,
0.051317084580659866,
0.029437610879540443,
0.02894158847630024,
-0.011942836456000805,
-0.012667435221374035,
0.024915674701333046,
0.05500086024403572,
-0.04514746367931366,
-0.026769790798425674,
0.003236527321860194,
0.03416908532381058,
-0.007311465218663216,
0.011949419975280762,
-0.024773890152573586,
0.035907771438360214,
-0.06315694749355316,
-0.07236459106206894,
0.048557132482528687,
0.04240693151950836,
-0.005286123603582382,
0.033382121473550797,
-0.007544685620814562,
-0.0012210531858727336,
0.011041287332773209,
-0.0038426918908953667,
0.003541358979418874,
-0.03972911834716797,
0.004036243539303541,
0.01906399428844452,
0.04783004894852638,
-0.04517346993088722,
0.01351978164166212,
-0.014117099344730377,
0.004329980816692114,
0.04051431268453598,
-0.03893248736858368,
0.028310053050518036,
0.0349557064473629,
0.04280281439423561,
-0.03536178171634674,
0.02312897890806198,
-0.002083804924041033,
0.02350110374391079,
0.024147750809788704,
0.010451864451169968,
0.05432077497243881,
0.0016184392152354121,
0.05622038245201111,
0.07784590870141983,
0.019769469276070595,
0.02746533788740635,
0.03948711231350899,
0.06267401576042175,
0.023320266976952553,
-0.01674414798617363,
0.06077013537287712,
-0.039639655500650406,
0.01802096702158451,
-0.07529450953006744,
0.020685886964201927,
-0.02135521173477173,
-0.006722412072122097,
0.03036891296505928,
0.009318621829152107,
-0.028842048719525337,
0.0009190493146888912,
-0.01735612004995346,
-0.022561687976121902,
0.024190569296479225,
-0.007145183626562357,
-0.023832645267248154,
-0.01727733388543129,
-0.01970624551177025,
-0.01605108194053173,
-0.06656303256750107,
-0.03169294074177742,
-0.020702052861452103,
-0.031558435410261154,
-0.019187742844223976,
-0.09549769014120102,
-0.029537692666053772,
-0.05821064114570618,
-0.02155822142958641,
0.02361244522035122,
0.009765837341547012,
0.004373766016215086,
-0.03636030852794647,
0.025078346952795982,
-0.056757885962724686,
-0.07417479157447815,
-0.046661581844091415,
-0.05497291311621666,
-0.03194771707057953,
-0.07267860323190689,
0.021824490278959274,
0.027454432100057602,
0.02223726361989975,
0.0017472644103690982,
-0.001431704149581492,
-0.009473402984440327,
-0.015150729566812515,
0.043046317994594574,
0.06281230598688126,
-0.031185634434223175,
-0.06332357972860336,
0.027858968824148178,
-0.021597346290946007,
0.006233246065676212,
-0.006065738387405872,
-0.011055457405745983,
0.0711042582988739,
0.07122654467821121,
0.016833769157528877,
0.02535937912762165,
-0.023556668311357498,
-0.061861250549554825,
-0.040991827845573425,
-0.013271045871078968,
-0.021855037659406662,
-0.021401407197117805,
-0.049990464001894,
-0.04851984605193138,
0.0014056435320526361,
-0.053073592483997345,
-0.01493755728006363,
-0.007329095155000687,
0.014809738844633102,
0.032173581421375275,
0.030625544488430023,
0.031089525669813156,
0.02371113933622837,
-0.0230533629655838,
-0.054177865386009216,
0.052147090435028076,
-0.007950134575366974,
0.0066832685843110085,
-0.07968171685934067,
-0.020235996693372726,
0.05208152160048485,
0.005513468291610479,
0.001005496014840901,
-0.01842750795185566,
0.0681307464838028,
0.01056873518973589,
0.000860603351611644,
0.00860152579843998,
0.0006622462533414364,
-0.0011051577748730779,
-0.0070227691903710365,
-0.006767971441149712,
-0.038230739533901215,
-0.0373777374625206,
-0.029649943113327026,
-0.020459607243537903,
0.0485091470181942,
-0.0641930028796196,
-0.06827011704444885,
-0.022362204268574715,
0.03470997512340546,
0.03525889292359352,
0.009711571037769318,
-0.04932457581162453,
-0.00769874406978488,
-0.05631819739937782,
-0.0017069126479327679,
0.04207799583673477,
0.017933238297700882,
0.007986711338162422,
0.0467253178358078,
0.023571785539388657,
-0.021508896723389626,
0.040858738124370575,
0.037110116332769394,
0.07175803184509277,
0.009016699157655239,
-0.05469699576497078,
0.0028463106136769056,
-0.015430889092385769,
0.0291757769882679,
0.016455745324492455,
-0.01186392828822136,
-0.04585804045200348,
-0.10151150077581406,
-0.004040186759084463,
0.014744153246283531,
-0.017728127539157867,
-0.00956900604069233,
0.03168348968029022,
-0.016062727198004723,
-0.023504693061113358,
0.000021796358851133846,
0.022296246141195297,
0.04571177810430527,
-0.060683008283376694,
0.05531298369169235,
0.006763405632227659,
0.0234148520976305,
-0.058290742337703705,
0.007719135843217373,
-0.042428627610206604,
-0.010354221798479557,
0.002636923920363188,
0.057851146906614304,
0.009060648269951344,
0.047189828008413315,
0.08532533049583435,
0.02268211357295513,
-0.039378389716148376,
0.03507205471396446,
0.08330322802066803,
-0.028076769784092903,
-0.031880225986242294,
-0.007204515393823385,
0.015963517129421234,
-0.027722883969545364,
-0.014211734756827354,
0.0057380907237529755,
0.041093990206718445,
0.04608799144625664,
0.0005138891865499318,
0.01678023301064968,
0.02198735810816288,
-0.019477808848023415,
-0.032952748239040375,
-0.0503290556371212,
-0.018132809549570084,
-0.009538891725242138,
-0.03233163803815842,
0.0017957225209102035,
0.026342719793319702,
0.012763736769557,
0.057346928864717484,
0.038980573415756226,
-0.012477547861635685,
-0.052640799432992935,
0.042965054512023926,
0.020063327625393867,
-0.02402404323220253,
-0.05191310495138168,
-0.04510493949055672,
0.020847871899604797,
0.039630863815546036,
-0.025790149345993996,
-0.06968705356121063,
0.01409921795129776,
0.04716433584690094,
-0.03857697919011116,
0.045527394860982895,
-0.0012901047011837363,
0.03019118122756481,
0.05072297528386116,
-0.02562933787703514,
0.045070014894008636,
-0.03704183176159859,
0.005414070561528206,
0.0110457893460989,
0.03271694481372833,
-0.029145464301109314,
-0.04658931493759155,
-0.053989946842193604,
0.02519213780760765,
0.034751348197460175,
0.0496491976082325,
0.0628347173333168,
-0.02670258842408657,
-0.037063922733068466,
0.00650821765884757,
0.04379966855049133,
-0.03250802308320999,
0.01643224060535431,
0.027933528646826744,
0.01850065588951111,
-0.04891037195920944,
-0.056336209177970886,
-0.017942143604159355,
-0.011975389905273914,
0.04401851445436478,
-0.028946850448846817,
-0.04530331864953041,
-0.02934430167078972,
0.021419327706098557,
-0.0013260205741971731,
-0.013034576550126076,
-0.06866033375263214,
0.04911326617002487,
0.008039984852075577,
-0.006080401595681906,
0.037318237125873566,
0.02274455316364765,
0.04187072068452835,
0.06491923332214355,
0.01373242400586605,
0.051301706582307816,
-0.04411093890666962,
0.03475377336144447,
-0.050345323979854584,
-0.013305390253663063,
-0.0006755339563824236,
-0.05534641072154045,
-0.01799882762134075,
-0.011753633618354797,
-0.0638001337647438,
-0.04520338028669357,
-0.00855984352529049,
0.005628881510347128,
-0.0016212317859753966,
-0.0038596943486481905,
-0.006699920166283846,
0.029445772990584373,
-0.03854000195860863,
-0.02001524157822132,
-0.036214206367731094,
-0.04016529396176338,
-0.07323814928531647,
-0.06624665856361389,
0.014677152968943119,
0.014423218555748463,
0.04212702065706253,
0.030738595873117447,
0.026003306731581688,
0.014728519134223461,
0.00672367075458169,
-0.045582354068756104,
0.023239394649863243,
0.008370889350771904,
-0.02146410383284092,
-0.037453558295965195,
0.01925584487617016,
0.0098106749355793,
0.02173224650323391,
-0.028985515236854553,
0.035358838737010956,
0.021268317475914955,
-0.012077954597771168,
-0.021972237154841423,
0.03961619734764099,
-0.004827593918889761,
-0.06621301174163818,
-0.02963162772357464,
-0.0028068057727068663,
-0.02956409379839897,
0.03221740201115608,
-0.029774440452456474,
-0.021820150315761566,
-0.017098443582654,
0.0020903190597891808,
0.03351977840065956,
-0.025414934381842613,
-0.024699654430150986,
0.014896105974912643,
-0.05215391144156456,
0.029603328555822372,
-0.04682778939604759,
0.07151512801647186,
-0.03423261269927025,
-0.0033188904635608196,
-0.007584367413073778,
0.006510533392429352,
-0.04353432357311249,
0.04291113093495369,
-0.004140073899179697,
0.00062818534206599,
-0.017757419496774673,
0.04126645624637604,
-0.020285358652472496,
0.03952452540397644,
-0.01174868829548359,
0.01392778754234314,
-0.044862087815999985,
0.08534087985754013,
-0.03503788635134697,
0.011950035579502583,
-0.03037838824093342,
0.008415124379098415,
-0.04301207512617111,
0.0006685424013994634,
-0.03252758830785751,
-0.017435919493436813,
0.037721291184425354,
0.03724122419953346,
0.02726934105157852,
0.015762144699692726,
-0.01328252162784338,
-0.005437507294118404,
0.018182260915637016,
-0.08043105155229568,
-0.023381365463137627,
-0.0169246606528759,
-0.013312626630067825,
-0.007943987846374512,
0.04245201125741005,
0.0520409420132637,
-0.04680904746055603,
-0.0592484287917614,
0.04332910478115082,
0.006241942290216684,
0.009228561073541641,
0.010149208828806877,
0.028791164979338646,
0.015795862302184105,
0.035029586404561996,
-0.04301885515451431,
-0.0036670139525085688,
-0.008889710530638695,
-0.04567675292491913,
0.03377149626612663,
-0.00952878501266241,
0.03438587114214897,
-0.005551458802074194,
-0.047394439578056335,
-0.024036087095737457,
0.06349802762269974,
0.030992833897471428,
0.014947236515581608,
-0.004443018697202206,
-0.04324914515018463,
0.03678511455655098,
0.004408723674714565,
-0.053617924451828,
0.006554684601724148,
0.011447647586464882,
-0.014815305359661579,
0.06785154342651367,
-0.009442426264286041,
0.006953751668334007,
0.04081286862492561,
0.04130534082651138,
-0.0300814937800169,
0.040871649980545044,
-0.030637269839644432,
0.018565302714705467,
0.03898964077234268,
-0.07229237258434296,
-0.011532586067914963,
-0.04244037717580795,
0.06836732476949692,
-0.0717284232378006,
0.029917404055595398,
0.042527634650468826,
0.02136087976396084,
0.020435389131307602,
-0.03117913007736206,
-0.06973971426486969,
0.0012301272945478559,
-0.045112960040569305,
0.08116903156042099,
0.005300970748066902,
-0.04302503541111946,
0.09280811250209808,
0.0034728539176285267,
-0.04594146087765694,
0.03295058384537697,
0.027139175683259964,
0.04121851921081543,
0.020693030208349228,
0.04484923556447029,
-0.021618498489260674,
0.005189666524529457,
-0.05762532353401184,
0.013234959915280342,
-0.02979026921093464,
-0.01711365021765232,
0.04235067963600159,
-0.03789529949426651,
-0.041330255568027496,
0.049058616161346436,
-0.014505154453217983,
-0.025836579501628876,
0.04151337593793869,
-0.062163420021533966,
-0.022437727078795433,
-0.006811321713030338,
-0.005280581768602133,
-0.03556179255247116,
0.003226030617952347,
-0.03192684426903725,
0.006639378145337105,
0.02516765706241131,
-0.01280411146581173,
-0.011043448001146317,
0.013072818517684937,
0.037282589823007584,
-0.04209316149353981,
-0.05159727856516838,
0.013751843944191933,
0.0023902179673314095,
-0.00595064414665103,
0.03036874532699585,
0.00846526212990284,
0.021084973588585854,
0.01796947605907917,
-0.0019217552617192268,
0.02802385203540325,
-0.040518056601285934,
-0.0008450770983472466,
0.004997640382498503,
0.005197286140173674,
0.03195734694600105,
-0.007984078489243984,
0.05709390714764595,
0.04223460704088211,
0.026358507573604584,
-0.01587739586830139,
-0.013491181656718254,
-0.036862775683403015,
0.023952458053827286,
-0.03535779193043709,
0.018206879496574402,
0.012461759150028229,
-0.03990877792239189,
-0.031788378953933716,
-0.0295608788728714,
-0.031809352338314056,
0.0345514677464962,
-0.04968646168708801,
0.0014960976550355554,
0.01708780974149704,
0.0037056803703308105,
-0.05015256628394127,
-0.0777788981795311,
-0.018601922318339348,
-0.051071759313344955,
0.010024509392678738,
0.041101206094026566,
-0.05588597059249878,
0.029172463342547417,
-0.044528085738420486,
-0.052628643810749054,
0.04070252180099487,
0.03227858617901802,
-0.04029593989253044,
0.05060926079750061,
0.040313471108675,
-0.032073669135570526,
0.00944740604609251,
0.02393708936870098,
-0.056570399552583694,
0.0033465868327766657,
0.021753957495093346,
0.00518407765775919,
0.023691236972808838,
0.025182947516441345,
-0.027024779468774796,
-0.019169479608535767,
-0.05153460055589676,
-0.040037158876657486,
-0.05497352406382561,
0.0000900135564734228,
0.06407590210437775
] |
Ayham/roberta_gpt2_summarization_xsum | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:xsum",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | null | ---
tags:
- generated_from_trainer
datasets:
- xsum
model-index:
- name: roberta_gpt2_summarization_xsum
results: []
---
<!-- 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. -->
# roberta_gpt2_summarization_xsum
This model is a fine-tuned version of [](https://huggingface.co/) on the xsum 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: 5e-05
- train_batch_size: 8
- 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: 2000
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.12.0.dev0
- Pytorch 1.10.0+cu111
- Datasets 1.16.1
- Tokenizers 0.10.3
| [
-0.01818983629345894,
-0.006584119517356157,
-0.00879990216344595,
0.04007445648312569,
0.024731583893299103,
0.030810700729489326,
-0.007657925598323345,
-0.018006592988967896,
-0.04315405339002609,
0.05112875998020172,
0.04723035916686058,
-0.009053993038833141,
0.004068800248205662,
0.053054697811603546,
-0.03112996369600296,
-0.04362797364592552,
-0.025598537176847458,
0.0033397190272808075,
-0.0357186496257782,
-0.001469518058001995,
0.015370644629001617,
-0.0063790553249418736,
-0.0009391274070367217,
0.0063770972192287445,
-0.0061564319767057896,
0.01873011700809002,
0.000053045121603645384,
0.02013135328888893,
0.022394690662622452,
-0.07826671749353409,
0.007260408718138933,
-0.045141685754060745,
-0.04519888013601303,
-0.014088833704590797,
-0.010529952123761177,
-0.0011825661640614271,
0.00477389432489872,
0.0032076023053377867,
0.03747978061437607,
0.0658394992351532,
-0.014225511811673641,
0.022948654368519783,
-0.013696914538741112,
-0.04049045220017433,
0.04696664214134216,
0.005605351645499468,
-0.034042950719594955,
-0.030882952734827995,
0.04149517044425011,
-0.013342205435037613,
-0.060315001755952835,
-0.064297154545784,
-0.013610861264169216,
0.015290891751646996,
-0.03426027297973633,
-0.02631954289972782,
-0.05974730849266052,
-0.0023792171850800514,
0.06454229354858398,
-0.044120486825704575,
-0.047321949154138565,
0.0075171771459281445,
-0.07428709417581558,
0.032614175230264664,
0.034382253885269165,
-0.030230484902858734,
0.012237104587256908,
-0.029264578595757484,
0.046254098415374756,
-0.014231237582862377,
0.06522593647241592,
-0.025183433666825294,
0.016385842114686966,
-0.10861580073833466,
-0.015391180291771889,
-0.0075126406736671925,
0.0218957606703043,
0.04887741059064865,
-0.03246084228157997,
0.05117494612932205,
0.04727731645107269,
-0.009989413432776928,
0.05375566706061363,
0.0023343132343143225,
0.0045508770272135735,
0.04384717345237732,
-0.043103501200675964,
0.002723796060308814,
0.007892322726547718,
0.05421384423971176,
-0.04371599107980728,
-0.04660637304186821,
-0.03698364272713661,
-0.024028485640883446,
-0.024094250053167343,
0.02149469405412674,
0.04786144196987152,
0.003560261568054557,
0.04429871216416359,
0.012147726491093636,
0.041591428220272064,
0.023198150098323822,
-0.023897971957921982,
0.057871412485837936,
0.01415171567350626,
-0.01441295724362135,
-0.031816475093364716,
-0.03366716206073761,
-0.03282397612929344,
0.046257201582193375,
0.032812803983688354,
-0.033167529851198196,
-0.04403628781437874,
0.026055125519633293,
-0.014487655833363533,
-0.023040611296892166,
0.05277364328503609,
-0.0327085442841053,
-0.04549909755587578,
-0.030139295384287834,
0.05312516167759895,
0.028780363500118256,
0.01865856535732746,
0.013095499016344547,
-0.046754490584135056,
-0.02620985545217991,
-0.0168590247631073,
-0.029256926849484444,
0.018646718934178352,
0.022674458101391792,
0.009575367905199528,
0.03765133395791054,
0.017791060730814934,
-0.0560438372194767,
-0.00021386552543845028,
0.027478020638227463,
-0.0488596186041832,
0.05430324375629425,
0.01918121613562107,
0.11094997823238373,
-0.06616733223199844,
-0.07396649569272995,
0.03411872312426567,
-0.000642776838503778,
-0.025732271373271942,
0.016617443412542343,
0.0278642401099205,
-0.05336219072341919,
-0.028601955622434616,
-0.009472045116126537,
0.04473302140831947,
-0.05199095979332924,
-0.01971462368965149,
0.042704686522483826,
-0.0006095636636018753,
0.0304246935993433,
-0.04762391373515129,
-0.030472395941615105,
0.017621556296944618,
-0.020713744685053825,
-0.01961883157491684,
0.04996515065431595,
-0.02439245954155922,
-0.014368497766554356,
-0.045288197696208954,
-0.04519990459084511,
0.010340736247599125,
0.10388901829719543,
-0.0035238987766206264,
-0.0058057126589119434,
-0.01255860272794962,
0.030848978087306023,
0.04510093107819557,
0.05898912623524666,
-0.018328957259655,
0.04209953919053078,
0.04794197157025337,
0.052274782210588455,
-0.02461220882833004,
0.03699508309364319,
0.0145061444491148,
-0.03446709364652634,
-0.022189432755112648,
0.011003988794982433,
0.011471432633697987,
-0.02983696572482586,
0.026830971240997314,
0.032999537885189056,
0.010354682803153992,
-0.04239647090435028,
-0.029269900172948837,
0.03986877575516701,
-0.004693354479968548,
0.008510523475706577,
0.009661633521318436,
-0.02407936565577984,
-0.0164849441498518,
0.04157404229044914,
-0.011770636774599552,
0.0006363355205394328,
-0.014777197502553463,
-0.039352964609861374,
0.01373172178864479,
0.032905202358961105,
0.03076905943453312,
0.05127789452672005,
-0.023762067779898643,
0.08878886699676514,
-0.024155164137482643,
0.02047591283917427,
-0.04855263978242874,
-0.04187808930873871,
0.00870861392468214,
0.03534162789583206,
0.046379879117012024,
0.049940530210733414,
0.020592806860804558,
-0.045452337712049484,
0.03709106892347336,
0.04778872802853584,
0.03279941529035568,
0.04436896741390228,
-0.023164521902799606,
-0.019240353256464005,
0.019055848941206932,
0.058225154876708984,
-0.051501885056495667,
-0.03959827497601509,
0.014236290007829666,
0.03304237499833107,
0.008952672593295574,
0.0345551036298275,
-0.015061087906360626,
0.03987601026892662,
-0.06118464842438698,
-0.06610678136348724,
0.042132649570703506,
0.02909257635474205,
-0.019664760679006577,
0.05191713571548462,
-0.008294307626783848,
-0.014740795828402042,
0.012722847051918507,
-0.0015978349838405848,
0.0023404802195727825,
-0.03487616404891014,
0.0024121117312461138,
0.025069694966077805,
0.06660190969705582,
-0.032776929438114166,
0.020606504753232002,
-0.0036383545957505703,
0.00855729728937149,
0.05018873140215874,
-0.0548061765730381,
0.01773916184902191,
0.04360755905508995,
0.028798306360840797,
-0.02644519694149494,
0.022540712729096413,
0.023020194843411446,
0.028728999197483063,
0.034682366997003555,
0.016523564234375954,
0.06846150755882263,
-0.006192537024617195,
0.05935833603143692,
0.09229478240013123,
0.004049214534461498,
0.027063019573688507,
0.04176461696624756,
0.07649853080511093,
0.015561500564217567,
-0.015475924126803875,
0.04909845069050789,
-0.04292748495936394,
0.018817247822880745,
-0.03759079799056053,
0.005784043576568365,
-0.024911195039749146,
-0.015039007179439068,
0.047015395015478134,
0.008969918824732304,
-0.013563909567892551,
0.0010710307396948338,
-0.023245127871632576,
-0.032817292958498,
0.02444295957684517,
-0.006455687806010246,
-0.028404921293258667,
-0.004076918587088585,
-0.004703958984464407,
-0.016114963218569756,
-0.0782579556107521,
-0.027656838297843933,
-0.02181636542081833,
-0.014791421592235565,
-0.012448393739759922,
-0.0940951555967331,
-0.014141351915895939,
-0.06164664402604103,
-0.03539469465613365,
0.015364374965429306,
0.0038602317217737436,
0.009353491477668285,
-0.05289212986826897,
0.032120704650878906,
-0.046144627034664154,
-0.051593534648418427,
-0.035624850541353226,
-0.065581314265728,
-0.033081766217947006,
-0.06902892887592316,
0.025400271639227867,
0.026122743263840675,
0.024726124480366707,
0.011087315157055855,
-0.005600321106612682,
-0.00034392127417959273,
-0.021237842738628387,
0.05398740991950035,
0.06981544941663742,
-0.03550677374005318,
-0.05596724897623062,
0.03815833851695061,
-0.018216939643025398,
0.005228439811617136,
-0.004936241544783115,
-0.02428128570318222,
0.09198121726512909,
0.07129793614149094,
0.01356455311179161,
0.013191461563110352,
-0.014210090041160583,
-0.056846100836992264,
-0.05060013383626938,
-0.024817243218421936,
-0.030051447451114655,
-0.015396838076412678,
-0.040702320635318756,
-0.044296298176050186,
-0.0018959353910759091,
-0.028344910591840744,
-0.007843983359634876,
-0.02026236243546009,
0.0295006912201643,
0.044377025216817856,
0.025493692606687546,
0.04037924110889435,
0.018801361322402954,
-0.03327507525682449,
-0.05206158757209778,
0.05697686970233917,
-0.004249441437423229,
-0.01377952005714178,
-0.07623208314180374,
-0.02558891661465168,
0.05079825222492218,
0.023837188258767128,
0.026406429708003998,
-0.011490999720990658,
0.05659932643175125,
-0.006793169770389795,
-0.0005760862841270864,
0.015145552344620228,
-0.01848604716360569,
-0.03545607253909111,
-0.018294749781489372,
0.01396273821592331,
-0.03479935973882675,
-0.04736096039414406,
-0.01960064470767975,
-0.032412849366664886,
0.04815462976694107,
-0.05577094852924347,
-0.04774433374404907,
-0.00949853751808405,
0.046964459121227264,
0.04296645522117615,
-0.0015883223386481404,
-0.02137778326869011,
-0.013623608276247978,
-0.04684854671359062,
-0.016183217987418175,
0.038870543241500854,
0.00505627179518342,
0.02189006097614765,
0.041258975863456726,
0.032545749098062515,
-0.029037654399871826,
0.03773036226630211,
0.04376175254583359,
0.07954138517379761,
0.013507294468581676,
-0.043833840638399124,
-0.0020315118599683046,
-0.027323981747031212,
0.034933608025312424,
0.01008646935224533,
-0.021129749715328217,
-0.03546130284667015,
-0.11079420894384384,
-0.008248060941696167,
0.003766510169953108,
-0.0007231770432554185,
0.011117619462311268,
0.04156901687383652,
-0.01143669057637453,
-0.03446958586573601,
0.004255661740899086,
-0.004851178731769323,
0.04500104859471321,
-0.05535624921321869,
0.05528964102268219,
0.00720937317237258,
0.011508234776556492,
-0.04254285618662834,
0.00709979934617877,
-0.06151469051837921,
-0.013863950036466122,
-0.00901191309094429,
0.059443987905979156,
0.00499413488432765,
0.044960543513298035,
0.08165252208709717,
0.0097605986520648,
-0.03852922469377518,
0.02683768980205059,
0.05947188287973404,
-0.023292146623134613,
-0.0473828986287117,
0.006880667991936207,
0.01149501372128725,
-0.017167584970593452,
-0.03111642226576805,
-0.00017344095977023244,
0.046785008162260056,
0.052007198333740234,
0.006210992578417063,
0.020360169932246208,
0.02079608477652073,
-0.02422362193465233,
-0.032192543148994446,
-0.06133966147899628,
-0.022160865366458893,
-0.007722943555563688,
-0.032209206372499466,
-0.0033928516786545515,
0.03013766184449196,
0.015483982861042023,
0.047865286469459534,
0.054467108100652695,
-0.012089704163372517,
-0.043324753642082214,
0.03304022178053856,
0.021011969074606895,
-0.02379763498902321,
-0.06270170956850052,
-0.03462674096226692,
0.026645924896001816,
0.029445556923747063,
-0.021710870787501335,
-0.05788477137684822,
0.005693763494491577,
0.03574363514780998,
-0.03397645428776741,
0.05240703746676445,
-0.0049026599153876305,
0.04153141751885414,
0.05242329090833664,
-0.02192835323512554,
0.039222363382577896,
-0.005603638477623463,
0.00970598217099905,
0.0027525208424776793,
0.02340628020465374,
-0.014806204475462437,
-0.04502405598759651,
-0.047513872385025024,
0.01708587445318699,
0.03771982714533806,
0.05232183262705803,
0.04713284224271774,
-0.02294103242456913,
-0.06327086687088013,
0.018571477383375168,
0.05246959999203682,
-0.03723505139350891,
0.03615541383624077,
0.03848802298307419,
0.020303135737776756,
-0.05102337524294853,
-0.048408206552267075,
-0.025071708485484123,
-0.001894720597192645,
0.0377836637198925,
-0.015635628253221512,
-0.028181476518511772,
-0.023599430918693542,
0.016063665971159935,
0.0035846943501383066,
-0.027654780074954033,
-0.06667926907539368,
0.04255145043134689,
0.0025649627204984426,
-0.021071162074804306,
0.05933524668216705,
0.026820778846740723,
0.03538183867931366,
0.05737963691353798,
0.014719338156282902,
0.04419182986021042,
-0.047430895268917084,
0.03536450117826462,
-0.0569315105676651,
-0.011236398480832577,
0.001390401623211801,
-0.031750407069921494,
-0.028287094086408615,
-0.0348183773458004,
-0.04373113065958023,
-0.04743953049182892,
-0.011781034991145134,
0.005896118935197592,
-0.00016260256234090775,
-0.00048777757911011577,
-0.010379067622125149,
0.03182524815201759,
-0.01884380355477333,
-0.021059777587652206,
-0.03251245617866516,
-0.040962789207696915,
-0.06367865949869156,
-0.04948531836271286,
0.027806023135781288,
0.014176919125020504,
0.04195170849561691,
0.03655818849802017,
0.009135911241173744,
0.020112881436944008,
0.00691530667245388,
-0.027400346472859383,
0.01951419934630394,
-0.005651009734719992,
-0.015060284174978733,
-0.04814865440130234,
0.018613163381814957,
0.017316307872533798,
0.025707576423883438,
-0.025311080738902092,
0.05232078954577446,
0.01936965063214302,
-0.006365878041833639,
0.0013670747866854072,
0.022159863263368607,
0.004213583655655384,
-0.06711211800575256,
-0.02768706902861595,
0.014312926679849625,
-0.04222806170582771,
0.00942924153059721,
-0.04257701709866524,
-0.025569379329681396,
-0.008116723038256168,
0.010365930385887623,
0.04529968649148941,
0.0007569872541353106,
-0.028900807723402977,
0.011871560476720333,
-0.04982329532504082,
0.025380553677678108,
-0.06409968435764313,
0.060980699956417084,
-0.04486478492617607,
0.0029879629146307707,
-0.00624999962747097,
0.015916885808110237,
-0.03702312707901001,
0.04144313558936119,
-0.010619211941957474,
-0.011480066925287247,
-0.018741445615887642,
0.03370588645339012,
-0.03157602623105049,
0.029854776337742805,
0.002257043495774269,
0.006182374432682991,
-0.03987929970026016,
0.0721646398305893,
-0.03314509987831116,
0.016302255913615227,
-0.036293428391218185,
0.018832288682460785,
-0.04215189814567566,
-0.0006894407561048865,
-0.008044971153140068,
-0.032319094985723495,
0.042282041162252426,
0.05303104221820831,
0.04504984989762306,
0.0060225543566048145,
-0.013930810615420341,
-0.015407986007630825,
0.02418033592402935,
-0.05217663571238518,
-0.019876716658473015,
-0.02988443896174431,
-0.017430290579795837,
-0.009194435551762581,
0.03153359889984131,
0.049826882779598236,
-0.053549762815237045,
-0.050170619040727615,
0.045068737119436264,
0.009609576314687729,
0.014253168366849422,
0.0011787998955696821,
0.04948888346552849,
0.019810540601611137,
0.04241539537906647,
-0.03702834993600845,
0.01008506491780281,
-0.01771622896194458,
-0.03753801807761192,
0.04106776416301727,
-0.013701992109417915,
0.034583646804094315,
-0.004099204204976559,
-0.039557699114084244,
-0.02264423854649067,
0.06954731792211533,
0.04278513044118881,
0.01740596629679203,
0.0020879211369901896,
-0.044015541672706604,
0.03700973466038704,
0.014405650086700916,
-0.041050024330616,
0.015554617159068584,
0.015323130413889885,
-0.01982315629720688,
0.0670180693268776,
-0.021456200629472733,
0.013149561360478401,
0.04261869937181473,
0.02295714244246483,
-0.030089111998677254,
0.054127272218465805,
-0.015362017787992954,
0.01679905690252781,
0.056782495230436325,
-0.06815914064645767,
-0.013438086956739426,
-0.036153391003608704,
0.05745318904519081,
-0.06621270626783371,
0.035803794860839844,
0.027416877448558807,
0.025997202843427658,
0.015899376943707466,
-0.026152189821004868,
-0.05463116243481636,
-0.005572902970016003,
-0.06188832223415375,
0.07828761637210846,
-0.014646308496594429,
-0.05425003543496132,
0.08091840147972107,
-0.006401237566024065,
-0.04558195546269417,
0.03710554540157318,
0.014353516511619091,
0.04586280882358551,
0.026284722611308098,
0.057464830577373505,
-0.03998458757996559,
0.02085593156516552,
-0.04830359295010567,
0.024045627564191818,
-0.030862541869282722,
-0.021657954901456833,
0.0521339513361454,
-0.03697139769792557,
-0.04021088033914566,
0.06075142323970795,
-0.0003406707546673715,
-0.023180577903985977,
0.03657814860343933,
-0.05736205354332924,
-0.04631804674863815,
0.010459241457283497,
0.01823250949382782,
-0.02868693321943283,
0.014237778261303902,
-0.04380134865641594,
0.014054825529456139,
0.01943385787308216,
-0.0029776853043586016,
-0.014776713214814663,
0.006684753578156233,
0.041315481066703796,
-0.04688735678792,
-0.05974474921822548,
0.012178616598248482,
0.015782034024596214,
-0.009832222014665604,
0.032213229686021805,
0.01564064808189869,
0.0394318662583828,
0.019806737080216408,
-0.0034780895803123713,
0.02173309214413166,
-0.023900728672742844,
-0.01975494995713234,
0.0024771790485829115,
0.002328756032511592,
0.04269995912909508,
-0.008959007449448109,
0.05310608074069023,
0.03067917376756668,
0.04710758104920387,
-0.005661139264702797,
-0.02018595300614834,
-0.035019420087337494,
0.03078554756939411,
-0.029208919033408165,
0.01068870723247528,
0.0006927971262484789,
-0.04614541307091713,
-0.04930019751191139,
-0.017365368083119392,
-0.024583222344517708,
0.03786594048142433,
-0.05153331160545349,
0.02548937313258648,
0.02535155788064003,
-0.005870595574378967,
-0.059337787330150604,
-0.08492778986692429,
-0.028482727706432343,
-0.049236174672842026,
0.001344776595942676,
0.04354632645845413,
-0.03542419150471687,
0.01947000063955784,
-0.04343579337000847,
-0.044951967895030975,
0.045028358697891235,
0.008654345758259296,
-0.03604946658015251,
0.041580744087696075,
0.03901119530200958,
-0.0438004769384861,
-0.0018228155095130205,
0.029562348499894142,
-0.043499529361724854,
-0.00039631917024962604,
0.025937216356396675,
-0.0060251508839428425,
0.0450659915804863,
-0.0016119369538500905,
-0.04813556745648384,
-0.018207425251603127,
-0.059138745069503784,
-0.04846871271729469,
-0.06926258653402328,
0.0117503572255373,
0.06627166271209717
] |
Ayham/xlnet_bert_summarization_cnn_dailymail | [
"pytorch",
"tensorboard",
"encoder-decoder",
"text2text-generation",
"dataset:cnn_dailymail",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"EncoderDecoderModel"
],
"model_type": "encoder-decoder",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 7 | null | ---
tags:
- generated_from_trainer
datasets:
- cnn_dailymail
model-index:
- name: xlnet_bert_summarization_cnn_dailymail
results: []
---
<!-- 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. -->
# xlnet_bert_summarization_cnn_dailymail
This model is a fine-tuned version of [](https://huggingface.co/) on the cnn_dailymail 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: 5e-05
- train_batch_size: 8
- 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: 2000
- num_epochs: 3.0
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.12.0.dev0
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.10.3
| [
-0.024525148794054985,
-0.0022169260773807764,
-0.031006136909127235,
0.03920414671301842,
0.0333976075053215,
0.02873683162033558,
-0.02142714336514473,
-0.033122718334198,
-0.03355025500059128,
0.061281632632017136,
0.04246876761317253,
-0.0070390901528298855,
0.016509229317307472,
0.043406516313552856,
-0.018909478560090065,
-0.02996012754738331,
-0.03686798736453056,
-0.000586122740060091,
-0.03492062911391258,
-0.017089711502194405,
0.023111939430236816,
-0.007306999061256647,
-0.00112635747063905,
-0.0037653539329767227,
-0.007860971614718437,
0.01393668632954359,
0.008392272517085075,
0.03769930452108383,
-0.001232087379321456,
-0.05863136053085327,
0.014925459399819374,
-0.04068632423877716,
-0.04303105175495148,
-0.022226445376873016,
-0.008559092879295349,
0.008015706203877926,
0.009043402038514614,
0.004916804376989603,
0.02717387117445469,
0.051777616143226624,
-0.012724229134619236,
0.001480829087086022,
-0.0005795857287012041,
-0.033184997737407684,
0.05664459988474846,
0.010160344652831554,
-0.05118994787335396,
-0.009963298216462135,
0.046170659363269806,
-0.03653419390320778,
-0.06091959774494171,
-0.06834627687931061,
-0.03729772940278053,
0.02132340520620346,
-0.05060534179210663,
-0.02739091031253338,
-0.06894365698099136,
-0.006487230770289898,
0.053001731634140015,
-0.026462705805897713,
-0.04084230586886406,
0.02519812062382698,
-0.06914569437503815,
0.009367229416966438,
0.03559427708387375,
-0.00838878657668829,
0.01600603200495243,
-0.030678391456604004,
0.025243479758501053,
-0.018053021281957626,
0.07712989300489426,
-0.018666066229343414,
0.018697012215852737,
-0.07906433939933777,
-0.026922667399048805,
-0.013395780697464943,
0.0411507673561573,
0.05195958912372589,
-0.016113946214318275,
0.034439459443092346,
0.042170871049165726,
-0.0008497679955326021,
0.0472467802464962,
-0.024597911164164543,
-0.0018938140710815787,
0.016794387251138687,
-0.055189795792102814,
-0.001070069964043796,
0.016786526888608932,
0.031356967985630035,
-0.03935541585087776,
-0.038760989904403687,
-0.02722305618226528,
-0.02994662895798683,
-0.038781341165304184,
0.02232939563691616,
0.04818611219525337,
0.0021744866389781237,
0.03926343843340874,
0.017547767609357834,
0.04392159357666969,
0.03972519934177399,
-0.012990015558898449,
0.06526727229356766,
-0.015465312637388706,
-0.019541705027222633,
-0.04377332702279091,
-0.029895102605223656,
-0.03350863233208656,
0.04049666225910187,
0.019337782636284828,
-0.05068288743495941,
-0.05183906853199005,
0.025989031419157982,
-0.0022371450904756784,
-0.01845981366932392,
0.036992013454437256,
-0.020588912069797516,
-0.04216352850198746,
-0.013746562413871288,
0.016603412106633186,
0.008267955854535103,
0.011826113797724247,
0.005873539485037327,
-0.05004916340112686,
-0.005879103671759367,
-0.04205268621444702,
-0.03875787556171417,
0.009301802143454552,
0.009999887086451054,
0.021343329921364784,
0.0513143427670002,
0.02134079299867153,
-0.07291647791862488,
-0.005550181493163109,
0.02035190910100937,
-0.04334484785795212,
0.07136024534702301,
0.021164532750844955,
0.09888911992311478,
-0.07573546469211578,
-0.07363008707761765,
0.03080105222761631,
0.0183073952794075,
-0.033922553062438965,
0.011419390328228474,
0.0477384552359581,
-0.04384326934814453,
-0.012896151281893253,
-0.0003409099590498954,
0.05022185668349266,
-0.05039726197719574,
-0.00018909068603534251,
0.03472786769270897,
-0.0017869214061647654,
0.03171973675489426,
-0.059552256017923355,
-0.02631339244544506,
0.0011666215723380446,
0.004548042546957731,
-0.03191855549812317,
0.05398758500814438,
-0.006152090150862932,
-0.022465325891971588,
-0.040573690086603165,
-0.057393308728933334,
0.01617530547082424,
0.07602985203266144,
-0.01831497810781002,
-0.03816936910152435,
-0.016773944720625877,
0.03129976615309715,
0.05450219660997391,
0.049735646694898605,
-0.02185342274606228,
0.023001840338110924,
0.07859408110380173,
0.06982053816318512,
-0.02702946402132511,
0.04403204098343849,
-0.0010022693313658237,
-0.04555933550000191,
-0.018779706209897995,
0.013806304894387722,
-0.004142210818827152,
-0.03785676881670952,
0.03998445346951485,
0.035514675080776215,
-0.0033082065638154745,
-0.042038362473249435,
-0.03381029888987541,
0.04645571485161781,
0.00936064962297678,
-0.0060818432830274105,
-0.002976929070428014,
-0.02897852472960949,
-0.010631042532622814,
0.04380783438682556,
-0.010376963764429092,
-0.0007086715195327997,
-0.01244623027741909,
-0.0374564528465271,
0.0003422604931984097,
0.014019285328686237,
0.048664435744285583,
0.06724683940410614,
-0.019113730639219284,
0.0804985985159874,
-0.052502211183309555,
0.022248392924666405,
-0.04725821688771248,
-0.056600555777549744,
0.009097464382648468,
0.04543006047606468,
0.05317091569304466,
0.053639642894268036,
0.0307801254093647,
-0.03779744356870651,
0.042395927011966705,
0.057243622839450836,
0.008767839521169662,
0.013616188429296017,
-0.020445017144083977,
-0.033116940408945084,
0.0378386490046978,
0.053189050406217575,
-0.052440594881772995,
-0.02040259726345539,
0.0059719691053032875,
0.030796470120549202,
-0.004979443270713091,
0.014590253122150898,
-0.014724675565958023,
0.03182201087474823,
-0.05908922478556633,
-0.061684414744377136,
0.04739565774798393,
0.04293786361813545,
-0.00016598578076809645,
0.026745697483420372,
-0.005783537868410349,
-0.00993138924241066,
0.015851717442274094,
0.013276973739266396,
0.004809071309864521,
-0.041696324944496155,
0.0046606180258095264,
0.013571111485362053,
0.03647574037313461,
-0.047186367213726044,
0.02264614962041378,
-0.015023060142993927,
0.014731002040207386,
0.03491491824388504,
-0.03286511451005936,
0.04361196607351303,
0.024899110198020935,
0.040436387062072754,
-0.03292305767536163,
0.02218465320765972,
0.004940888378769159,
0.033773425966501236,
0.041450053453445435,
0.012645632959902287,
0.04618595913052559,
0.003183300606906414,
0.052760325372219086,
0.08214283734560013,
0.02696039155125618,
0.03624851629137993,
0.03765702247619629,
0.06749098002910614,
0.034269485622644424,
-0.011597320437431335,
0.06575099378824234,
-0.03920064866542816,
0.014216047711670399,
-0.0663892850279808,
0.019955648109316826,
-0.008445898070931435,
-0.01088871993124485,
0.02647717483341694,
0.011503736488521099,
-0.022720610722899437,
-0.0028664986602962017,
-0.024222275242209435,
-0.01954066753387451,
0.03486419469118118,
-0.004039152525365353,
-0.019091473892331123,
-0.0108267143368721,
-0.028624271973967552,
-0.02171722799539566,
-0.07271910458803177,
-0.03661324828863144,
-0.011743772774934769,
-0.028640486299991608,
-0.013444730080664158,
-0.09468752145767212,
-0.017325283959507942,
-0.07255808264017105,
-0.013004345819354057,
0.026173995807766914,
0.006310165394097567,
0.0029939005617052317,
-0.035861168056726456,
0.029575226828455925,
-0.05429075285792351,
-0.06315822899341583,
-0.047337811440229416,
-0.04726660996675491,
-0.03464990854263306,
-0.07835070788860321,
0.02637886442244053,
0.026525922119617462,
0.02880294807255268,
-0.01191591564565897,
-0.007366075646132231,
-0.013982856646180153,
-0.008744622580707073,
0.04682983458042145,
0.06623908132314682,
-0.039621252566576004,
-0.06238658353686333,
0.015793370082974434,
-0.022679394111037254,
0.011223568581044674,
-0.014769468456506729,
-0.008100981824100018,
0.07351117581129074,
0.07717201858758926,
0.011303715407848358,
0.019190216436982155,
-0.022852102294564247,
-0.06363458931446075,
-0.056793514639139175,
-0.008377459831535816,
-0.01880868896842003,
-0.03544261306524277,
-0.04764242470264435,
-0.0498456247150898,
-0.0004989673034287989,
-0.04349341616034508,
-0.021136237308382988,
-0.009038647636771202,
0.016588129103183746,
0.02837713062763214,
0.02970622293651104,
0.024683210998773575,
0.028092874214053154,
-0.033035874366760254,
-0.058789659291505814,
0.05612139031291008,
0.0002205118944402784,
0.007170382421463728,
-0.08019453287124634,
-0.023190630599856377,
0.06439190357923508,
0.01044740341603756,
0.006233262363821268,
-0.016351506114006042,
0.07309385389089584,
0.00746026448905468,
-0.004228767938911915,
0.014531897380948067,
0.007933157496154308,
-0.01586456410586834,
-0.01603693887591362,
0.0015486854827031493,
-0.027203338220715523,
-0.04417508468031883,
-0.024628156796097755,
-0.021129686385393143,
0.04032231122255325,
-0.05637332424521446,
-0.06423348933458328,
-0.011606947518885136,
0.03386629745364189,
0.030244091525673866,
0.003910678438842297,
-0.046821508556604385,
-0.017187779769301414,
-0.05877688154578209,
-0.007368077989667654,
0.03262854740023613,
0.015367787331342697,
0.017535215243697166,
0.046346504241228104,
0.02727772668004036,
-0.01279816497117281,
0.041181497275829315,
0.03988632932305336,
0.07244792580604553,
0.007969178259372711,
-0.0625288337469101,
0.004006350412964821,
-0.012149556539952755,
0.026301102712750435,
0.015599348582327366,
-0.027704233303666115,
-0.042979996651411057,
-0.09583114087581635,
0.004771040286868811,
0.019203120842576027,
-0.01878548040986061,
-0.012027958407998085,
0.0281815342605114,
-0.016421636566519737,
-0.01811406947672367,
-0.00036527871270664036,
0.02779519185423851,
0.027606738731265068,
-0.05784555897116661,
0.054097749292850494,
-0.004542557522654533,
0.021121958270668983,
-0.0605473555624485,
0.011090654879808426,
-0.04074719548225403,
0.0027756092604249716,
0.00974701065570116,
0.04622988402843475,
0.013070185668766499,
0.04428635165095329,
0.08288402855396271,
0.02108311466872692,
-0.04545203223824501,
0.03658735379576683,
0.07443521916866302,
-0.023755842819809914,
-0.031140534207224846,
0.00011134906526422128,
0.019970012828707695,
-0.029982520267367363,
-0.02086998149752617,
0.006788101978600025,
0.027168776839971542,
0.04114052653312683,
0.01145915873348713,
0.017197607085108757,
0.023209013044834137,
-0.015968428924679756,
-0.027756648138165474,
-0.05374275520443916,
-0.015705252066254616,
0.000434898684034124,
-0.03837644308805466,
0.026940956711769104,
0.03154272958636284,
0.0029082647524774075,
0.05697299912571907,
0.03897703066468239,
-0.016575252637267113,
-0.04284920170903206,
0.05768166109919548,
0.019012469798326492,
-0.02600603923201561,
-0.053384918719530106,
-0.035215284675359726,
0.013285760767757893,
0.04212365299463272,
-0.024261124432086945,
-0.07271350175142288,
0.012047570198774338,
0.05570150539278984,
-0.02925599180161953,
0.0411047637462616,
0.0015994398854672909,
0.042974963784217834,
0.06628204882144928,
-0.020885366946458817,
0.0483362041413784,
-0.035030487924814224,
-0.0008827199344523251,
-0.0007430349942296743,
0.01473517157137394,
-0.041645195335149765,
-0.04617546871304512,
-0.04506539925932884,
0.0280085988342762,
0.03523702546954155,
0.052258510142564774,
0.0630660280585289,
-0.027773261070251465,
-0.03383984789252281,
0.006566885393112898,
0.060572728514671326,
-0.037012238055467606,
0.0038828712422400713,
0.03279932215809822,
0.030151892453432083,
-0.05005327984690666,
-0.04515373706817627,
-0.0159655399620533,
-0.015894701704382896,
0.04573793336749077,
-0.02263263426721096,
-0.04412064701318741,
-0.029717428609728813,
0.027033483609557152,
-0.008307097479701042,
-0.021405573934316635,
-0.06374502927064896,
0.048366740345954895,
0.004510017577558756,
-0.005446961149573326,
0.03423032537102699,
0.04398937523365021,
0.024276314303278923,
0.05903385579586029,
0.012658759020268917,
0.033454399555921555,
-0.04377008602023125,
0.0228415597230196,
-0.04264014586806297,
-0.015302899293601513,
0.005963296629488468,
-0.05251910537481308,
-0.006926726084202528,
-0.016032272949814796,
-0.06699103862047195,
-0.03468391299247742,
-0.0038058001082390547,
0.012895853258669376,
-0.006606335286051035,
-0.005593712907284498,
-0.0034086396917700768,
0.028614621609449387,
-0.04667156934738159,
-0.018875883892178535,
-0.04004521667957306,
-0.031677719205617905,
-0.07486606389284134,
-0.05685403198003769,
0.005800481420010328,
0.024149686098098755,
0.03582940623164177,
0.028213217854499817,
0.01965050958096981,
0.01606995239853859,
0.004489711951464415,
-0.036254364997148514,
0.0169001966714859,
-0.002169699175283313,
-0.01901817135512829,
-0.028482044115662575,
0.030128493905067444,
0.003280127188190818,
0.04347997531294823,
-0.03281799703836441,
0.0384894497692585,
0.0162375345826149,
-0.008761784993112087,
-0.02198190428316593,
0.035164158791303635,
-0.008084497414529324,
-0.0793398842215538,
-0.028999391943216324,
-0.012668230570852757,
-0.025195682421326637,
0.03390676528215408,
-0.02175849862396717,
-0.04108048602938652,
-0.00820232555270195,
0.00920221209526062,
0.0322059690952301,
-0.014910594560205936,
-0.02814043127000332,
0.015301881358027458,
-0.04591315612196922,
0.0374019630253315,
-0.054015856236219406,
0.06924725323915482,
-0.03912411257624626,
-0.009087281301617622,
-0.01807131990790367,
0.013154213316738605,
-0.0476163886487484,
0.04102591425180435,
-0.011811881326138973,
0.0076803420670330524,
-0.010616572573781013,
0.04754623770713806,
-0.021651964634656906,
0.03283481299877167,
-0.009366446174681187,
0.028841115534305573,
-0.038864243775606155,
0.07491302490234375,
-0.030604885891079903,
0.012977956794202328,
-0.02994484454393387,
0.008437051437795162,
-0.05344820395112038,
0.009193096309900284,
-0.015394195914268494,
-0.018215442076325417,
0.044659774750471115,
0.04065152630209923,
0.034898221492767334,
0.023847652599215508,
-0.012853768654167652,
-0.012560789473354816,
0.02279939316213131,
-0.06264855712652206,
-0.029208727180957794,
-0.02109178900718689,
0.0003180356288794428,
-0.01145754475146532,
0.034870464354753494,
0.053399257361888885,
-0.05502505972981453,
-0.06270095705986023,
0.050213441252708435,
0.0058076330460608006,
0.00297291181050241,
0.001946766977198422,
0.032149143517017365,
0.010328201577067375,
0.040073271840810776,
-0.03527515009045601,
-0.01973382756114006,
-0.010130454786121845,
-0.048291370272636414,
0.01958458684384823,
-0.015567272901535034,
0.03788287192583084,
0.0022129856515675783,
-0.03618356212973595,
-0.028310997411608696,
0.07053977996110916,
0.0250821802765131,
0.024077141657471657,
-0.01030337531119585,
-0.029148917645215988,
0.03971460461616516,
0.011027567088603973,
-0.051463134586811066,
0.022963302209973335,
0.02072957158088684,
-0.01764073222875595,
0.08269594609737396,
0.00749449385330081,
0.01189266238361597,
0.04320068657398224,
0.040326885879039764,
-0.019449863582849503,
0.04723110422492027,
-0.038194406777620316,
0.01982714794576168,
0.024819960817694664,
-0.07011696696281433,
-0.009171727113425732,
-0.037497226148843765,
0.07410306483507156,
-0.07187861949205399,
0.039286501705646515,
0.06013816222548485,
0.029708025977015495,
0.015796324238181114,
-0.029153425246477127,
-0.06920760869979858,
0.008414248935878277,
-0.03949819505214691,
0.08334876596927643,
0.0058421180583536625,
-0.04073091596364975,
0.08084866404533386,
0.001150884316302836,
-0.042818691581487656,
0.03027978725731373,
0.024619176983833313,
0.043266721069812775,
0.013570004142820835,
0.0384153388440609,
-0.03554486483335495,
-0.00305846962146461,
-0.062270551919937134,
0.015050355345010757,
-0.02655813656747341,
-0.020233966410160065,
0.036503516137599945,
-0.039522428065538406,
-0.038601797074079514,
0.049879446625709534,
-0.019307173788547516,
-0.026326298713684082,
0.050583433359861374,
-0.05348537862300873,
-0.028895340859889984,
-0.006416322197765112,
-0.0029698496218770742,
-0.03437381610274315,
-0.00018042874580714852,
-0.02837272919714451,
0.004864965099841356,
0.017556319013237953,
-0.00873573124408722,
-0.024396812543272972,
-0.0019067772664129734,
0.04472765326499939,
-0.04381324350833893,
-0.04621684551239014,
0.008044722490012646,
-0.0018947419011965394,
-0.012846304103732109,
0.028430761769413948,
0.007049932144582272,
0.012256043031811714,
0.02036050707101822,
-0.00795159861445427,
0.0361141711473465,
-0.0415048711001873,
0.0012466541957110167,
0.005547638516873121,
0.012354427948594093,
0.026056276634335518,
-0.006923916283994913,
0.05932212620973587,
0.0395108237862587,
0.023580025881528854,
-0.012874693609774113,
-0.0275907963514328,
-0.03663947805762291,
0.026034370064735413,
-0.014923593029379845,
0.008380427956581116,
0.008079142309725285,
-0.038591787219047546,
-0.03409057855606079,
-0.02637498266994953,
-0.039090972393751144,
0.03046722337603569,
-0.03901340812444687,
0.009801623411476612,
0.02695534937083721,
0.004273155238479376,
-0.06953395903110504,
-0.08333141356706619,
-0.011711192317306995,
-0.05274217203259468,
0.0038729228544980288,
0.04598185047507286,
-0.04743695259094238,
0.016674475744366646,
-0.03923911601305008,
-0.04672679305076599,
0.044183749705553055,
0.026712888851761818,
-0.0479501336812973,
0.04798901453614235,
0.04297179728746414,
-0.029766863211989403,
0.011868947185575962,
0.01915707066655159,
-0.059072498232126236,
0.007182668428868055,
0.02319801226258278,
0.015769675374031067,
0.026706501841545105,
0.02556103654205799,
-0.027386918663978577,
-0.025288661941885948,
-0.05903306230902672,
-0.04511957988142967,
-0.055152274668216705,
-0.006238574627786875,
0.07387383282184601
] |
Ayran/DialoGPT-medium-harry-potter-1-through-4-plus-6-e18 | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 12 | null | ---
tags:
- conversational
---
#DialoGPT medium model (Based on Harry Potter 1 through 4 plus 6, 18 epochs) | [
-0.0365067794919014,
0.01275510061532259,
0.0035163320135325193,
0.02053210325539112,
0.018720299005508423,
0.02433137036859989,
-0.004047156777232885,
0.020871173590421677,
-0.014467047527432442,
0.02176743559539318,
0.03861569985747337,
-0.02917957492172718,
0.010484030470252037,
0.0353044755756855,
-0.03146648779511452,
-0.02432042546570301,
-0.03577703237533569,
-0.010408674366772175,
-0.0011099799303337932,
-0.01797344721853733,
0.020746750757098198,
0.025534920394420624,
-0.04453711584210396,
0.03742273896932602,
0.019302548840641975,
0.026579944416880608,
-0.0216376930475235,
0.015812886878848076,
0.03426491469144821,
-0.058362215757369995,
0.0010400520404800773,
-0.056685321033000946,
-0.04430731013417244,
-0.026418592780828476,
-0.02239936962723732,
-0.02454874850809574,
0.012214314192533493,
0.002782027702778578,
-0.005632657092064619,
0.032398249953985214,
-0.016237135976552963,
0.010464800521731377,
-0.0018613330321386456,
-0.06618154048919678,
0.07837431132793427,
0.0007736016414128244,
-0.0389225147664547,
-0.016293840482831,
0.02131587639451027,
-0.04317503422498703,
-0.0393194742500782,
-0.05949028208851814,
-0.050068143755197525,
-0.0049354806542396545,
0.013390419073402882,
-0.034122925251722336,
-0.07046777009963989,
0.0069773271679878235,
0.08597032725811005,
-0.005583854857832193,
-0.0011047133011743426,
0.009025957435369492,
-0.07190309464931488,
0.0005053243949078023,
0.024574032053351402,
-0.08036167919635773,
0.024587523192167282,
-0.035741377621889114,
0.008582878857851028,
-0.027564072981476784,
0.05325549840927124,
-0.04954463243484497,
0.014395486563444138,
-0.07353890687227249,
-0.01539132371544838,
-0.0036843072157353163,
0.058935150504112244,
0.05361045151948929,
-0.05065443739295006,
0.043317146599292755,
0.04286056384444237,
0.024787183851003647,
0.03865046054124832,
-0.03155400976538658,
-0.02868354693055153,
0.030088096857070923,
-0.03278235346078873,
-0.013460960239171982,
0.010792042128741741,
0.04314819350838661,
-0.025970427319407463,
-0.045778099447488785,
-0.052798930555582047,
-0.01659279875457287,
-0.0021605147048830986,
0.06484299153089523,
0.01978163979947567,
-0.028586599975824356,
-0.0026067993603646755,
0.05845379829406738,
0.028301803395152092,
0.051270801573991776,
-0.02896183170378208,
0.031527675688266754,
-0.021783117204904556,
0.019638778641819954,
0.027653556317090988,
-0.022685794159770012,
-0.03278609365224838,
0.03490528091788292,
0.013036188669502735,
-0.030047573149204254,
-0.0332576222717762,
0.045820362865924835,
0.025714410468935966,
0.025456592440605164,
0.03707832098007202,
-0.02581348642706871,
-0.035503894090652466,
-0.05597029998898506,
0.0513601154088974,
-0.005009057931602001,
-0.00987184327095747,
0.003200891660526395,
-0.05110420286655426,
-0.0010090580908581614,
-0.03272870182991028,
-0.030042117461562157,
-0.01004782970994711,
-0.001079282839782536,
0.03845628350973129,
0.043852388858795166,
-0.025823507457971573,
-0.06239866092801094,
0.0176919586956501,
0.05394047126173973,
-0.057209886610507965,
0.009961024858057499,
0.03960244730114937,
0.08782455325126648,
-0.06511157751083374,
-0.03111843764781952,
0.0058860634453594685,
0.013101272284984589,
-0.04024077579379082,
-0.001367978984490037,
-0.0054953936487436295,
-0.015991631895303726,
-0.057228147983551025,
-0.022230062633752823,
0.002059696475043893,
-0.06592836230993271,
-0.007077947724610567,
0.041968658566474915,
-0.008442804217338562,
0.007620997726917267,
-0.036704450845718384,
0.005976455751806498,
-0.01857565902173519,
-0.0320451594889164,
-0.058101214468479156,
0.031561657786369324,
-0.018543705344200134,
-0.01688043400645256,
-0.04466655105352402,
-0.03345111757516861,
0.005678392015397549,
0.06260965764522552,
0.02020351216197014,
-0.02754390612244606,
-0.03254915028810501,
0.048803143203258514,
0.06517186015844345,
0.04677444323897362,
-0.018540404736995697,
0.021176856011152267,
0.033284176141023636,
0.02403160370886326,
-0.026369718834757805,
0.057515937834978104,
0.014502017758786678,
-0.022274024784564972,
-0.03951539471745491,
-0.034771878272295,
0.027810318395495415,
-0.019053656607866287,
0.009493662044405937,
0.028206422924995422,
-0.0267045795917511,
-0.05125368759036064,
0.019090991467237473,
0.05197955295443535,
-0.03429334610700607,
-0.0047567966394126415,
-0.013266388326883316,
-0.018819943070411682,
-0.03181334584951401,
0.03961449861526489,
-0.04337548464536667,
-0.004267261829227209,
-0.01564115472137928,
-0.005605523940175772,
0.012513249181210995,
0.00023505226999986917,
-0.012406202964484692,
0.02970225177705288,
0.005074858199805021,
0.07478499412536621,
-0.035523947328329086,
0.025003673508763313,
-0.01668510213494301,
-0.0006324065616354346,
-0.03574163466691971,
0.03467148169875145,
0.01566477306187153,
0.04777806997299194,
-0.05345163494348526,
-0.06253925710916519,
0.034577127546072006,
0.05836646258831024,
0.016672004014253616,
0.024264588952064514,
-0.014935968443751335,
-0.008550362661480904,
0.04102045297622681,
0.03821645677089691,
-0.04355090856552124,
0.0026021532248705626,
-0.00048142546438612044,
0.03216123953461647,
-0.01063318271189928,
-0.029132667928934097,
-0.041923508048057556,
0.002583516528829932,
-0.03148605301976204,
-0.06779509782791138,
0.04698006436228752,
0.026492921635508537,
-0.02248758263885975,
0.011409158818423748,
-0.01357381884008646,
0.011483300477266312,
0.035334713757038116,
-0.006370842456817627,
0.008651530370116234,
-0.06037186458706856,
0.0060797082260251045,
0.0024153338745236397,
0.0891093760728836,
-0.038797229528427124,
0.01129128597676754,
0.005187587346881628,
0.011879798024892807,
0.03734806180000305,
-0.008822275325655937,
0.03308364003896713,
0.06296646595001221,
0.05684702470898628,
-0.03031482920050621,
0.04120077192783356,
-0.009521004743874073,
0.0314750038087368,
0.04770958796143532,
0.002976709045469761,
0.05277489125728607,
-0.001164902001619339,
0.03430281952023506,
0.04081183299422264,
0.01144682988524437,
-0.02498963661491871,
0.048938244581222534,
0.07462795078754425,
0.021247047930955887,
0.03091520629823208,
0.03649068623781204,
-0.008985561318695545,
0.006415422074496746,
-0.032137785106897354,
-0.010655621066689491,
0.00016040778427850455,
-0.02140217460691929,
0.07339160144329071,
0.004581354558467865,
-0.012033688835799694,
-0.0063086096197366714,
-0.005471633281558752,
-0.016919732093811035,
0.034749291837215424,
-0.031237777322530746,
-0.020867563784122467,
-0.019118644297122955,
-0.00856171827763319,
0.018418606370687485,
-0.05532102286815643,
-0.06852398067712784,
-0.005753287114202976,
-0.04793088138103485,
0.005736177787184715,
-0.09990005195140839,
-0.026778025552630424,
-0.06292827427387238,
-0.015090412460267544,
0.05323484167456627,
0.005122086964547634,
0.016671132296323776,
-0.0018014527158811688,
0.007873651571571827,
-0.02535596489906311,
-0.06328269839286804,
-0.06312213838100433,
-0.02769668959081173,
-0.0029799111653119326,
-0.06894577294588089,
0.034354496747255325,
0.04120111092925072,
0.05411230027675629,
0.012975845485925674,
-0.023108642548322678,
-0.04589240625500679,
-0.012099044397473335,
0.05074243247509003,
0.027780750766396523,
-0.03863846883177757,
-0.025250399485230446,
0.006846684496849775,
0.008052132092416286,
0.0129629485309124,
-0.021527431905269623,
-0.06642600893974304,
0.06792568415403366,
0.019269008189439774,
0.017334256321191788,
0.0011537588434293866,
0.004893410485237837,
-0.045901380479335785,
-0.02246907167136669,
-0.04219570755958557,
-0.04767527058720589,
-0.011067436076700687,
-0.019642772153019905,
-0.06121781840920448,
-0.037042874842882156,
-0.05727796256542206,
0.00441534211859107,
-0.002849981188774109,
-0.008197610266506672,
0.02372882515192032,
0.02402959018945694,
0.049194030463695526,
0.018396252766251564,
-0.018795335665345192,
-0.01713009923696518,
0.030727799981832504,
0.011110738851130009,
-0.03209243342280388,
-0.07824148237705231,
-0.044426240026950836,
0.012549097649753094,
0.022838929668068886,
-0.0001993853657040745,
0.008928358554840088,
0.032464899122714996,
0.04069724678993225,
-0.015497807413339615,
0.021069316193461418,
-0.04332723096013069,
0.010035225190222263,
-0.04601064324378967,
-0.03118494153022766,
-0.03324737772345543,
-0.017282992601394653,
-0.020961133763194084,
-0.0013961526565253735,
0.04624588042497635,
-0.0713602676987648,
-0.03962981700897217,
-0.02021292969584465,
-0.0009841411374509335,
0.041592277586460114,
0.015297637321054935,
-0.06485321372747421,
-0.0048811230808496475,
-0.03837427869439125,
-0.02759390138089657,
-0.006916800979524851,
-0.01704779453575611,
-0.000667820917442441,
0.026619073003530502,
0.04464595019817352,
-0.03993558883666992,
0.05496815964579582,
0.016497595235705376,
0.06281890720129013,
0.06204472482204437,
-0.03100682981312275,
0.03089086525142193,
-0.04365088418126106,
0.04189996421337128,
0.004620914813131094,
-0.03833213075995445,
-0.0538051463663578,
-0.09484360367059708,
-0.04790963605046272,
0.034693650901317596,
0.0012903412571176887,
0.0047537037171423435,
0.05308257043361664,
-0.04526985436677933,
-0.04581359028816223,
0.015874214470386505,
0.03585073724389076,
0.054361291229724884,
-0.03179904446005821,
0.05381156876683235,
-0.0036695932503789663,
-0.0011746027739718556,
-0.054531779140233994,
-0.004762809723615646,
-0.056307852268218994,
-0.032646872103214264,
-0.0026224940083920956,
0.04855823889374733,
0.01891941763460636,
0.07329799979925156,
0.07221946120262146,
0.050416164100170135,
-0.053162120282649994,
0.0663464143872261,
0.07630770653486252,
-0.0073626390658319,
-0.0372939333319664,
-0.012351080775260925,
-0.01597239263355732,
-0.0001361898030154407,
0.004442089237272739,
-0.018088337033987045,
0.021167641505599022,
0.04361014440655708,
-0.004217143170535564,
0.0112112732604146,
0.025176512077450752,
-0.012657886371016502,
0.001142977736890316,
-0.07359552383422852,
-0.0017236617859452963,
-0.0161195769906044,
-0.04443669691681862,
0.053886059671640396,
0.031157316640019417,
0.004414253402501345,
0.057916175574064255,
0.012548776343464851,
-0.01599179022014141,
-0.05073671415448189,
0.040073785930871964,
0.025151919573545456,
-0.04416954517364502,
-0.05594731494784355,
-0.046786993741989136,
0.028815582394599915,
0.04617619514465332,
-0.007516356650739908,
-0.08698854595422745,
0.01949918642640114,
0.05442678555846214,
-0.07166734337806702,
0.05339614301919937,
0.011862398125231266,
0.05485886335372925,
0.007550685666501522,
0.01536600198596716,
0.03153715655207634,
-0.06399275362491608,
0.008683565072715282,
-0.015837745741009712,
0.04656074196100235,
-0.051839202642440796,
-0.05091847479343414,
-0.062327247112989426,
0.04422885552048683,
0.015049317851662636,
0.016998708248138428,
0.0017136660171672702,
-0.04969964548945427,
-0.03471105918288231,
-0.005099602043628693,
0.0220370814204216,
-0.019237879663705826,
0.014575470238924026,
0.011845081113278866,
0.05853426828980446,
-0.06954062730073929,
-0.01139161642640829,
0.01591547764837742,
0.016704274341464043,
0.020750824362039566,
-0.019332243129611015,
-0.052210431545972824,
-0.008857177570462227,
0.028879409655928612,
-0.022075314074754715,
0.016278721392154694,
-0.10571775585412979,
0.024911759421229362,
-0.035893987864255905,
-0.02426379732787609,
0.0652991384267807,
0.05390750989317894,
0.03431006520986557,
0.07772877812385559,
0.008863033726811409,
0.04150594398379326,
-0.017455190420150757,
0.04846646636724472,
-0.0505540631711483,
-0.024517571553587914,
-0.0028272580821067095,
-0.09207908809185028,
-0.036458127200603485,
-0.020288720726966858,
-0.017498351633548737,
-0.035143520683050156,
0.02037033997476101,
-0.0008811213774606586,
-0.016565684229135513,
-0.004551321733742952,
0.0004511316365096718,
0.0383264496922493,
-0.021111859008669853,
-0.033852413296699524,
-0.0023805045057088137,
-0.009382744319736958,
-0.09189047664403915,
-0.051880478858947754,
0.03133700042963028,
-0.03716650232672691,
0.022231940180063248,
-0.019146963953971863,
0.0022427779622375965,
0.05722399055957794,
0.014773815870285034,
-0.016229664906859398,
0.00870784092694521,
0.04304901883006096,
-0.038803160190582275,
-0.01910329796373844,
0.012424483895301819,
-0.001207817462272942,
0.02957729808986187,
-0.03856195509433746,
0.041060060262680054,
0.004765699151903391,
-0.04498527944087982,
-0.03683171048760414,
0.027131417766213417,
0.01065627671778202,
-0.06346744298934937,
-0.005904219578951597,
-0.02193385735154152,
-0.03856449946761131,
0.0011421185918152332,
-0.04578244313597679,
-0.016389217227697372,
-0.004845320712774992,
0.03476845100522041,
0.022971931844949722,
-0.006503154058009386,
-0.033538177609443665,
0.005457942374050617,
-0.0170669574290514,
0.029148999601602554,
-0.0706426128745079,
0.010911340825259686,
-0.028244296088814735,
0.018071547150611877,
-0.034927334636449814,
0.0025848569348454475,
-0.029395002871751785,
0.04481784626841545,
-0.01976998895406723,
-0.004719048272818327,
-0.0017222075257450342,
-0.02174801379442215,
0.009014246985316277,
0.03212922811508179,
0.018034856766462326,
0.014878453686833382,
-0.029632730409502983,
0.0784723237156868,
-0.06334177404642105,
0.017757609486579895,
-0.015908168628811836,
-0.023400185629725456,
-0.006884317379444838,
0.005120016634464264,
-0.0060560861602425575,
-0.045748282223939896,
0.027660030871629715,
0.026860596612095833,
0.014579732902348042,
0.04119696095585823,
-0.006370740942656994,
-0.006691469345241785,
0.0434349924325943,
-0.035272855311632156,
-0.045257534831762314,
0.012633095495402813,
-0.023905383422970772,
0.0052716974169015884,
0.06579571217298508,
0.02622576244175434,
-0.05058225989341736,
-0.031177852302789688,
0.027058085426688194,
0.03535839170217514,
0.010957032442092896,
0.012965306639671326,
0.030479447916150093,
0.05793043226003647,
0.07137815654277802,
-0.009094508364796638,
-0.010752047412097454,
0.02514682710170746,
-0.009621502831578255,
-0.01424443069845438,
0.0059390501119196415,
0.014222188852727413,
0.022645017132163048,
-0.03295459225773811,
-0.005734133534133434,
0.07220929116010666,
-0.0006756005459465086,
0.0026997937820851803,
-0.009227121248841286,
-0.039194293320178986,
0.06116318330168724,
0.027911894023418427,
-0.04277127608656883,
0.006324864458292723,
0.033255401998758316,
-0.038091275840997696,
0.034156810492277145,
-0.020722374320030212,
0.022223282605409622,
0.04321533069014549,
0.026210786774754524,
0.016077078878879547,
0.02624710462987423,
-0.027879517525434494,
0.012362096458673477,
0.028237927705049515,
-0.03666059300303459,
-0.014713961631059647,
-0.04737257957458496,
0.03365746885538101,
-0.04468398168683052,
0.050660718232393265,
0.01665760576725006,
0.025799676775932312,
-0.012855416163802147,
-0.04485994949936867,
-0.01972164213657379,
-0.015593172051012516,
-0.038676898926496506,
0.06720252335071564,
-0.024736721068620682,
-0.047858547419309616,
0.07615622133016586,
0.028128694742918015,
-0.0846777856349945,
0.03561088815331459,
0.03126474842429161,
0.02671043947339058,
0.01648952253162861,
0.04099345579743385,
-0.03844496235251427,
0.008807730861008167,
-0.04152344539761543,
0.004133462440222502,
-0.03248309716582298,
-0.031886179000139236,
-0.019564291462302208,
-0.0243635606020689,
0.009226719848811626,
0.028163554146885872,
-0.033111464232206345,
0.019843166694045067,
0.021234476938843727,
-0.03883979842066765,
-0.0316176563501358,
-0.0064124371856451035,
0.023293688893318176,
-0.0043829940259456635,
-0.011696210131049156,
-0.0047071389853954315,
0.009810627438127995,
0.01791369542479515,
-0.017440782859921455,
-0.05456943437457085,
0.011893944814801216,
-0.01859632506966591,
-0.057351600378751755,
-0.0505683496594429,
0.06136433407664299,
0.02780992165207863,
-0.03713007643818855,
-0.009885765612125397,
0.01642291247844696,
0.025892307981848717,
0.03877466917037964,
-0.009535657241940498,
0.017738180235028267,
-0.07754316180944443,
-0.010267889127135277,
0.035450976341962814,
0.011126543395221233,
-0.009975278750061989,
-0.009038981981575489,
0.023247739300131798,
0.05845516547560692,
0.054399970918893814,
-0.010841096751391888,
-0.038893185555934906,
-0.0318179577589035,
-0.009145677089691162,
-0.04904338717460632,
0.042772967368364334,
0.014955042861402035,
-0.061144281178712845,
-0.03414543718099594,
-0.008727864362299442,
0.00017855259648058563,
0.025291206315159798,
-0.042880598455667496,
0.027128975838422775,
-0.00019546689873095602,
-0.000650075962767005,
-0.04321848601102829,
-0.11132563650608063,
-0.04398195818066597,
-0.009773624129593372,
0.028364548459649086,
0.025282135233283043,
-0.07570337504148483,
0.013886924833059311,
-0.019663307815790176,
-0.014294937252998352,
0.05815199017524719,
0.0008159996359609067,
-0.022589150816202164,
0.0709916204214096,
0.05916908383369446,
-0.04828736186027527,
0.053003404289484024,
0.02378181368112564,
-0.050510939210653305,
0.04956189543008804,
0.013921716250479221,
0.03991948068141937,
-0.002299981191754341,
0.02414965257048607,
-0.005489454139024019,
0.010825772769749165,
-0.01999577507376671,
-0.055368028581142426,
-0.008099821396172047,
0.004021311178803444,
0.04739288613200188
] |
Ayran/DialoGPT-small-gandalf | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 11 | null | ---
tags:
- conversational
---
# Gandalf DialoGPT Model | [
-0.017163848504424095,
0.0021795600187033415,
0.011440247297286987,
0.01132178120315075,
0.026106007397174835,
0.035861168056726456,
-0.004572286736220121,
0.03751932084560394,
-0.01953050307929516,
0.015187175944447517,
0.04805498570203781,
-0.036674171686172485,
0.01627880334854126,
0.0217293668538332,
-0.048482831567525864,
-0.030086493119597435,
-0.03145018592476845,
-0.0021655820310115814,
-0.01820536144077778,
-0.011395975947380066,
0.022034961730241776,
0.017112866044044495,
-0.026750456541776657,
0.037908896803855896,
0.00838717445731163,
0.033688295632600784,
-0.020133713260293007,
0.014926507137715816,
0.030293796211481094,
-0.04023095592856407,
0.010466399602591991,
-0.0418098010122776,
-0.04071292653679848,
-0.025391187518835068,
-0.032120682299137115,
-0.03859025239944458,
0.020807253196835518,
-0.022457441315054893,
-0.00991284754127264,
0.028037790209054947,
-0.03471219539642334,
0.009536211378872395,
0.013369877822697163,
-0.04750451073050499,
0.06808198988437653,
-0.005731177981942892,
-0.033851537853479385,
-0.013815108686685562,
0.022724976763129234,
-0.05116814747452736,
-0.02857588231563568,
-0.04211689531803131,
-0.06863929331302643,
-0.010770642198622227,
0.023468123748898506,
-0.04787203297019005,
-0.0622214674949646,
-0.006596814841032028,
0.11364462226629257,
-0.020599326118826866,
-0.008715827018022537,
0.006867790594696999,
-0.07686246931552887,
0.00554405152797699,
0.019114093855023384,
-0.068796306848526,
0.0239898469299078,
-0.0603778138756752,
0.01779147982597351,
-0.036978740245103836,
0.05466553941369057,
-0.05790677294135094,
0.003169248579069972,
-0.07712902873754501,
-0.030655473470687866,
-0.00651938421651721,
0.053741373121738434,
0.05961144343018532,
-0.039232026785612106,
0.0497949942946434,
0.044482819736003876,
0.020666608586907387,
0.04546405375003815,
-0.008036591112613678,
-0.03428155928850174,
0.03720502927899361,
-0.036023903638124466,
0.00748658599331975,
-0.006978052202612162,
0.03419068455696106,
-0.014066283591091633,
-0.06357923895120621,
-0.028768112882971764,
-0.0025224704295396805,
0.0001466612156946212,
0.04310876503586769,
0.02708965726196766,
-0.028658581897616386,
0.010758772492408752,
0.05607885122299194,
0.0336836501955986,
0.02934064157307148,
-0.027586620301008224,
0.03216248378157616,
-0.010022507049143314,
0.01950649544596672,
0.02778024412691593,
-0.03168556094169617,
-0.039175115525722504,
0.01626596413552761,
0.007411906495690346,
-0.04551655799150467,
-0.03418295830488205,
0.027950644493103027,
0.022582052275538445,
0.009531846269965172,
0.07101644575595856,
-0.02552752196788788,
-0.04067118093371391,
-0.06666725873947144,
0.05854237079620361,
-0.029257265850901604,
-0.01620248146355152,
-0.012508244253695011,
-0.06100282818078995,
0.0009881802834570408,
-0.046767253428697586,
-0.020787587389349937,
-0.0167408250272274,
-0.0010704891756176949,
0.011340294033288956,
0.03512628749012947,
-0.014778804033994675,
-0.0556853823363781,
0.021127978339791298,
0.03722391277551651,
-0.05142851546406746,
0.007787549402564764,
0.025789989158511162,
0.08193804323673248,
-0.0735500156879425,
-0.042736832052469254,
-0.008596844039857388,
0.004856727551668882,
-0.016477374359965324,
-0.019965244457125664,
0.006092175375670195,
-0.005382208153605461,
-0.055558353662490845,
-0.008334358222782612,
0.0019507614197209477,
-0.05729047581553459,
0.008728574961423874,
0.04479605332016945,
0.0026289105881005526,
0.022534819319844246,
-0.03019685484468937,
0.0066859847865998745,
-0.014731115661561489,
-0.03398974612355232,
-0.05524628236889839,
0.041898880153894424,
-0.013082199729979038,
-0.014562459662556648,
-0.049783822149038315,
-0.03745254874229431,
0.007750117219984531,
0.055902544409036636,
0.01847890391945839,
-0.005279777105897665,
-0.04265568405389786,
0.04584595561027527,
0.053107570856809616,
0.041270364075899124,
-0.018774650990962982,
0.016018571332097054,
0.03612707927823067,
0.018245477229356766,
-0.022056210786104202,
0.0737421065568924,
0.014090807177126408,
-0.038500331342220306,
-0.05234059691429138,
-0.02874993160367012,
0.02506723627448082,
-0.021082667633891106,
0.014832447282969952,
0.04529045522212982,
-0.042129576206207275,
-0.032159868627786636,
0.029021069407463074,
0.05528288334608078,
-0.025844573974609375,
0.005641505122184753,
-0.023282967507839203,
-0.018671371042728424,
-0.028171880170702934,
0.018931075930595398,
-0.03976964205503464,
0.003465675748884678,
-0.0272927638143301,
-0.010877087712287903,
0.027756942436099052,
0.00008381167572224513,
-0.006947728805243969,
0.03528092801570892,
0.0024949684739112854,
0.06566072255373001,
-0.024343743920326233,
0.01313464529812336,
-0.03076079487800598,
-0.006441549863666296,
-0.03059295564889908,
0.031280871480703354,
0.026959864422678947,
0.04403753951191902,
-0.037546709179878235,
-0.06390317529439926,
0.030695656314492226,
0.056419435888528824,
0.023190924897789955,
0.021474240347743034,
0.0026271126698702574,
-0.0006380592240020633,
0.03375653177499771,
0.038649801164865494,
-0.03823357820510864,
0.020233480259776115,
0.004230603575706482,
0.03763340041041374,
-0.009811063297092915,
-0.020307818427681923,
-0.0345754474401474,
0.01389873493462801,
-0.030340293422341347,
-0.06082158535718918,
0.045189984142780304,
0.02652347832918167,
-0.00035312731051817536,
0.029869427904486656,
0.005508421454578638,
0.00427817041054368,
0.04747575893998146,
0.0005770859424956143,
-0.006275076884776354,
-0.08622783422470093,
0.0019021957414224744,
0.012657343409955502,
0.10394024103879929,
-0.05284624546766281,
0.018384521827101707,
0.011450781486928463,
0.03184017539024353,
0.022258250042796135,
-0.008107854053378105,
0.032855525612831116,
0.060367684811353683,
0.0357196219265461,
-0.03341773897409439,
0.048240501433610916,
0.01191252563148737,
0.037882816046476364,
0.062318138778209686,
0.00031084101647138596,
0.05875784531235695,
-0.01620345748960972,
0.024330031126737595,
0.03702710568904877,
0.01855284906923771,
-0.020623518154025078,
0.03017471171915531,
0.06599142402410507,
0.011134965345263481,
0.024361280724406242,
0.05626868084073067,
-0.0028788866475224495,
0.0008838807116262615,
-0.04141662269830704,
-0.019122514873743057,
-0.000018188484318670817,
-0.02612452581524849,
0.06874227523803711,
-0.0007347214850597084,
-0.01877213455736637,
-0.004065620247274637,
-0.024114219471812248,
-0.01717054843902588,
0.057239532470703125,
-0.005223844200372696,
-0.014383905567228794,
-0.016057539731264114,
-0.017069410532712936,
0.03156881034374237,
-0.05230062082409859,
-0.05462735891342163,
-0.014311086386442184,
-0.05659009888768196,
0.004043863620609045,
-0.09647700190544128,
-0.024552278220653534,
-0.045359302312135696,
-0.02724379487335682,
0.04897706210613251,
0.0044719562865793705,
0.027262283489108086,
-0.009954920969903469,
0.006977969780564308,
-0.028413593769073486,
-0.06773044914007187,
-0.05009704828262329,
-0.028456008061766624,
-0.016420532017946243,
-0.05144678056240082,
0.03351617977023125,
0.030513446778059006,
0.032074082642793655,
0.007881195284426212,
-0.03140537813305855,
-0.050759658217430115,
-0.012021937407553196,
0.04684118181467056,
0.02464457042515278,
-0.048221368342638016,
-0.031025821343064308,
-0.005413882900029421,
-0.0002623518812470138,
0.006589050870388746,
-0.028815969824790955,
-0.05794807896018028,
0.08431320637464523,
0.05377301201224327,
0.024863097816705704,
0.015016879886388779,
-0.01009493786841631,
-0.04786129668354988,
-0.009901933372020721,
-0.04362621158361435,
-0.033266738057136536,
-0.005184843670576811,
-0.01964491605758667,
-0.0561654157936573,
-0.025611503049731255,
-0.056811898946762085,
-0.014682736247777939,
0.0002393425238551572,
0.013526775874197483,
0.033072929829359055,
0.030206289142370224,
0.02081896923482418,
0.009171723388135433,
-0.03602418676018715,
-0.015179787762463093,
0.03901943936944008,
-0.025179218500852585,
-0.019229840487241745,
-0.05792171135544777,
-0.045398835092782974,
0.025812393054366112,
0.00566004728898406,
0.006456018425524235,
0.00454074889421463,
0.04452468454837799,
0.025460658594965935,
0.0017154592787846923,
0.038585010915994644,
-0.0682285726070404,
0.005904566030949354,
-0.030449891462922096,
-0.020003564655780792,
-0.026762815192341805,
-0.013076402246952057,
-0.01269962266087532,
-0.020490825176239014,
0.05500064045190811,
-0.0888810083270073,
-0.016054676845669746,
-0.02726086601614952,
0.018105288967490196,
0.027929868549108505,
0.0025752221699804068,
-0.062143754214048386,
-0.002700783545151353,
-0.03267233446240425,
-0.01540126372128725,
-0.022761911153793335,
-0.01007208414375782,
0.0028627219144254923,
0.033707067370414734,
0.030291132628917694,
-0.022460805252194405,
0.04458140581846237,
0.014710628427565098,
0.06530588865280151,
0.06365469098091125,
-0.03108861669898033,
0.014906889759004116,
-0.04032938554883003,
0.04109705612063408,
0.004810054786503315,
-0.03711070865392685,
-0.06030657887458801,
-0.09678170830011368,
-0.06030013784766197,
0.03771800547838211,
-0.022698063403367996,
0.02090495638549328,
0.04522323235869408,
-0.03919573873281479,
-0.023103052750229836,
-0.012279273010790348,
0.05155051872134209,
0.04935484752058983,
-0.03847762942314148,
0.06195493042469025,
0.003772205440327525,
0.004564342088997364,
-0.053153686225414276,
-0.010815692134201527,
-0.05913691967725754,
-0.018225660547614098,
0.0010128151625394821,
0.057637933641672134,
0.020132292062044144,
0.05438392609357834,
0.07317033410072327,
0.0406373105943203,
-0.041378628462553024,
0.03306479752063751,
0.08083005994558334,
-0.024880262091755867,
-0.01746533438563347,
-0.0013957599876448512,
-0.01448267512023449,
-0.01856868714094162,
-0.013134290464222431,
-0.027515649795532227,
0.0355847142636776,
0.03291547670960426,
0.00032610108610242605,
0.00038322649197652936,
0.00886736810207367,
-0.026169322431087494,
-0.015791451558470726,
-0.07891365885734558,
-0.00901062786579132,
-0.01162099838256836,
-0.0471746101975441,
0.055392276495695114,
0.0451028011739254,
-0.000550965778529644,
0.05076519772410393,
0.018956350162625313,
-0.020659372210502625,
-0.04311969503760338,
0.03585202991962433,
0.016723450273275375,
-0.0356086902320385,
-0.046372171491384506,
-0.03965972736477852,
0.034784331917762756,
0.05556049942970276,
-0.024363474920392036,
-0.08637744188308716,
0.024801699444651604,
0.048423975706100464,
-0.04760001227259636,
0.050673771649599075,
-0.007630767300724983,
0.06752900779247284,
0.020476529374718666,
0.010147176682949066,
0.04905850812792778,
-0.06219487637281418,
0.03190332651138306,
-0.008785855025053024,
0.04469435662031174,
-0.04790712520480156,
-0.055081937462091446,
-0.05670049041509628,
0.03145484998822212,
0.013602894730865955,
0.026881497353315353,
0.019351627677679062,
-0.04639095440506935,
-0.04558759927749634,
-0.002552954712882638,
0.03369058296084404,
-0.007529489696025848,
0.027603866532444954,
0.01849323697388172,
0.05258147045969963,
-0.05937865376472473,
0.013160026632249355,
0.014513365924358368,
0.03359556943178177,
0.02296317368745804,
-0.02237841486930847,
-0.04899967461824417,
-0.02518530562520027,
0.03746131435036659,
-0.044325705617666245,
-0.006780220661312342,
-0.08151333034038544,
0.014766079373657703,
-0.04298119992017746,
-0.021625934168696404,
0.0777742862701416,
0.06033613532781601,
0.05416003242135048,
0.06365478783845901,
0.011802813969552517,
0.05481124669313431,
-0.0244920551776886,
0.021250426769256592,
-0.04922235757112503,
-0.037339430302381516,
0.0028298310935497284,
-0.08467080444097519,
-0.02281821146607399,
-0.030627992004156113,
-0.04350684955716133,
-0.03960680961608887,
0.001333770458586514,
0.008541880175471306,
-0.004099163692444563,
-0.0035091089084744453,
0.012631233781576157,
0.0260773878544569,
-0.028794661164283752,
-0.040409184992313385,
-0.021187596023082733,
-0.017513731494545937,
-0.08030723035335541,
-0.0485864132642746,
0.021697742864489555,
-0.03464549034833908,
0.0028481949120759964,
-0.009482637979090214,
0.013062204234302044,
0.058520253747701645,
0.015137421898543835,
-0.032543785870075226,
0.01627601683139801,
0.026142099872231483,
-0.03674784675240517,
-0.01803646981716156,
0.01758919283747673,
0.016212696209549904,
0.01898149959743023,
-0.01222584955394268,
0.029507234692573547,
0.01838729716837406,
-0.06579550355672836,
-0.029959654435515404,
0.0495079904794693,
0.018738755956292152,
-0.07247786968946457,
-0.00865072663873434,
-0.027294965460896492,
-0.02609320916235447,
0.012695332989096642,
-0.044423528015613556,
-0.015392156317830086,
-0.009729250334203243,
0.039997994899749756,
0.012327246367931366,
-0.007116125430911779,
-0.015637008473277092,
0.0009184973314404488,
-0.022552913054823875,
0.012461068108677864,
-0.0417623296380043,
0.019212188199162483,
-0.016452709212899208,
0.018059179186820984,
-0.020266590639948845,
0.01559850201010704,
-0.037726979702711105,
0.052990078926086426,
-0.01889815367758274,
-0.002455054083839059,
0.0005114346859045327,
-0.03240590542554855,
-0.0008591003133915365,
0.03902816027402878,
0.0075081512331962585,
0.010459501296281815,
-0.04158303514122963,
0.06363508105278015,
-0.06378550827503204,
0.00708081666380167,
-0.011931867338716984,
-0.02293495647609234,
-0.0211471039801836,
0.012040723115205765,
0.009356845170259476,
-0.0563003346323967,
0.027791574597358704,
0.030528508126735687,
0.012478622607886791,
0.03863140940666199,
-0.007848400622606277,
-0.0005920905969105661,
0.034425560384988785,
-0.044239696115255356,
-0.029154399409890175,
0.001436593011021614,
-0.013642502948641777,
0.019461739808321,
0.06243409961462021,
0.027394654229283333,
-0.06138193979859352,
-0.02731001004576683,
0.023874511942267418,
0.03304155543446541,
0.01810242421925068,
0.016960231587290764,
0.03560284152626991,
0.06165514513850212,
0.0677482932806015,
-0.00009207799303112552,
-0.002680007368326187,
0.0278316717594862,
-0.02357112430036068,
-0.012832914479076862,
0.003283296711742878,
0.007569183129817247,
0.022194290533661842,
-0.024176260456442833,
-0.03524579852819443,
0.08321022242307663,
-0.011537103913724422,
0.006457452662289143,
-0.011936141178011894,
-0.034937381744384766,
0.060579851269721985,
0.024735257029533386,
-0.036328572779893875,
-0.0014138742117211223,
0.04119657352566719,
-0.02837885543704033,
0.030738430097699165,
-0.01173111330717802,
0.015226439572870731,
0.05707518011331558,
0.010722897946834564,
0.013880436308681965,
0.01794273406267166,
-0.01115503255277872,
-0.006848758086562157,
0.017412882298231125,
-0.035880185663700104,
-0.012360837310552597,
-0.03945748507976532,
0.056836456060409546,
-0.04613494500517845,
0.04990693926811218,
0.020329918712377548,
0.035011958330869675,
0.009409035556018353,
-0.05379340797662735,
-0.047681305557489395,
-0.027758168056607246,
-0.043470337986946106,
0.06802067905664444,
-0.012118913233280182,
-0.034648146480321884,
0.0781305804848671,
0.03892121836543083,
-0.08550040423870087,
0.032710764557123184,
0.029971394687891006,
0.036579545587301254,
0.024237459525465965,
0.061655785888433456,
-0.04631546512246132,
0.0001251614885404706,
-0.01938028074800968,
-0.001325693097896874,
-0.03499728813767433,
-0.029751358553767204,
-0.0004970329464413226,
-0.04397517070174217,
-0.0003621923679020256,
0.01809229888021946,
-0.033171288669109344,
0.003114418126642704,
0.008706942200660706,
-0.02331423945724964,
-0.033586326986551285,
0.0021099636796861887,
0.014001402072608471,
-0.016986161470413208,
-0.010193866677582264,
-0.020659489557147026,
0.020726781338453293,
0.02656371518969536,
-0.014558954164385796,
-0.05705752968788147,
0.029001429677009583,
-0.01733272708952427,
-0.06667748093605042,
-0.03353262320160866,
0.06307472288608551,
0.03268587589263916,
-0.014103380031883717,
-0.011427261866629124,
0.02241940051317215,
0.027739256620407104,
0.03045002743601799,
-0.017337024211883545,
-0.0032464349642395973,
-0.08080695569515228,
0.006802122108638287,
0.03236837312579155,
0.01899830251932144,
-0.00392749672755599,
-0.005391208920627832,
0.029037650674581528,
0.07522688060998917,
0.05099745839834213,
-0.001242389203980565,
-0.05799653008580208,
-0.03806990385055542,
-0.004813993815332651,
-0.03181663900613785,
0.05453523248434067,
0.00856193620711565,
-0.05573594942688942,
-0.023360295221209526,
-0.008071714080870152,
0.009729450568556786,
0.036865875124931335,
-0.045413728803396225,
0.03263292461633682,
0.00388110033236444,
-0.004859998356550932,
-0.042998943477869034,
-0.09759993106126785,
-0.034653760492801666,
-0.03525278717279434,
0.04329908639192581,
0.024028295651078224,
-0.05909574404358864,
0.02662236988544464,
-0.039075396955013275,
-0.014069424010813236,
0.05609973520040512,
-0.007454609964042902,
-0.003886138554662466,
0.07166215032339096,
0.06625861674547195,
-0.04051417112350464,
0.049878764897584915,
0.028535395860671997,
-0.04296601191163063,
0.0459042452275753,
0.0004272318910807371,
0.027380062267184258,
0.000048913370847003534,
0.01720082201063633,
-0.008677685633301735,
-0.0027112653478980064,
-0.018527185544371605,
-0.046631988137960434,
0.0014921310357749462,
-0.008932700380682945,
0.05461368337273598
] |
AyushPJ/ai-club-inductions-21-nlp-roBERTa-base-squad-v2 | [
"pytorch",
"roberta",
"question-answering",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | question-answering | {
"architectures": [
"RobertaForQuestionAnswering"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
tags:
- generated_from_trainer
model-index:
- name: ai-club-inductions-21-nlp-roBERTa-base-squad-v2
results: []
---
<!-- 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. -->
# ai-club-inductions-21-nlp-roBERTa-base-squad-v2
This model was trained from scratch on an unknown 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: 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
### Framework versions
- Transformers 4.11.3
- Pytorch 1.7.1+cpu
- Datasets 1.14.0
- Tokenizers 0.10.3
| [
-0.03455235809087753,
-0.022666610777378082,
-0.011897986754775047,
0.030924290418624878,
0.040529459714889526,
0.00833556242287159,
-0.01581529527902603,
0.011384881101548672,
-0.029494309797883034,
0.038732077926397324,
0.03264516219496727,
-0.009810901246964931,
-0.012956755235791206,
0.04639691859483719,
-0.06962546706199646,
-0.04345005750656128,
-0.0013441597111523151,
-0.008257254026830196,
-0.03236163407564163,
-0.020562609657645226,
0.01536899246275425,
-0.010082990862429142,
0.021356971934437752,
0.011184342205524445,
-0.013220350258052349,
-0.00024996287538670003,
-0.00461355596780777,
0.011154698207974434,
0.03242679312825203,
-0.0645722895860672,
0.0271748099476099,
-0.030741222202777863,
-0.03418649733066559,
-0.010195338167250156,
-0.023586343973875046,
-0.011499334126710892,
0.026162661612033844,
0.01716146431863308,
0.042995184659957886,
0.03843800351023674,
0.016246434301137924,
0.020365798845887184,
-0.019521668553352356,
-0.027804289013147354,
0.041429780423641205,
0.0189653467386961,
-0.03623812645673752,
-0.002909788629040122,
0.04185367003083229,
-0.024271151050925255,
-0.06690067052841187,
-0.06056217476725578,
-0.009893961250782013,
0.02567402459681034,
-0.009368541650474072,
-0.012900744564831257,
-0.07864613085985184,
0.009090710431337357,
0.06859812140464783,
-0.06203635036945343,
-0.013187801465392113,
0.013136882334947586,
-0.07197760045528412,
0.022022070363163948,
0.036203861236572266,
-0.03881186619400978,
0.0156328696757555,
-0.039789821952581406,
0.03220824897289276,
-0.008714832365512848,
0.05453112721443176,
-0.0038173573557287455,
-0.0010531294392421842,
-0.07507844269275665,
-0.01745816133916378,
-0.021499231457710266,
0.030723050236701965,
0.059895243495702744,
-0.03474424034357071,
0.04822251945734024,
0.010889597237110138,
-0.002294976729899645,
0.01823144592344761,
-0.02645845152437687,
-0.000523050082847476,
0.049303196370601654,
-0.04161032289266586,
0.029880348592996597,
0.012659097090363503,
0.01702965423464775,
-0.026416681706905365,
-0.02035721205174923,
-0.039089713245630264,
-0.01176509726792574,
0.0006854046951048076,
0.017729854211211205,
0.04788224771618843,
0.03625005483627319,
0.014287489466369152,
0.010344655252993107,
0.053919244557619095,
0.0264439657330513,
-0.031242525205016136,
0.06965600699186325,
0.011142445728182793,
-0.03298787772655487,
-0.01784966140985489,
-0.027494383975863457,
-0.033257387578487396,
0.02186456136405468,
0.03388180211186409,
-0.04939041659235954,
-0.05327402427792549,
0.0320880264043808,
0.021292805671691895,
-0.00024540742742829025,
0.05389966070652008,
-0.03780888393521309,
-0.04835869371891022,
-0.04541798681020737,
0.03430040925741196,
0.015103689394891262,
-0.008640735410153866,
0.009591462090611458,
-0.042078323662281036,
-0.00914236530661583,
-0.04950606822967529,
-0.0542028434574604,
0.011483350768685341,
0.018187476322054863,
-0.00031517702154815197,
0.05073435232043266,
0.0080564608797431,
-0.06206449866294861,
-0.002600337378680706,
0.018770696595311165,
-0.04377855360507965,
0.05200676620006561,
-0.009926529601216316,
0.11264041811227798,
-0.05394260585308075,
-0.05827128887176514,
0.040974147617816925,
0.012001384049654007,
-0.03544391319155693,
-0.02381901815533638,
0.012218481861054897,
-0.07054100930690765,
-0.003091563005000353,
0.0006666406407020986,
0.06867726892232895,
-0.031598519533872604,
-0.03365858271718025,
0.06351388245820999,
0.00009277767094317824,
0.0363149419426918,
-0.05426756292581558,
-0.04754528030753136,
-0.01581844873726368,
-0.018748439848423004,
-0.03405645489692688,
0.06845453381538391,
-0.026019927114248276,
-0.00594712607562542,
-0.02079264260828495,
-0.04374280944466591,
0.005024677608162165,
0.09393859654664993,
-0.012086880393326283,
-0.026220258325338364,
-0.012738685123622417,
0.04184127226471901,
0.04750063270330429,
0.03026130050420761,
-0.0207561906427145,
0.05406911298632622,
0.057179030030965805,
0.05136566609144211,
-0.05057855322957039,
0.026252347975969315,
0.02863214537501335,
-0.048174720257520676,
-0.03182340785861015,
0.031871769577264786,
0.01642909273505211,
-0.03301633149385452,
0.051385749131441116,
0.019275890663266182,
0.004261418711394072,
-0.03583906963467598,
-0.02147332951426506,
0.06257611513137817,
0.020408041775226593,
0.006410662550479174,
0.012384197674691677,
-0.02193867415189743,
-0.025164762511849403,
0.03763854503631592,
-0.011354189366102219,
-0.006150547415018082,
-0.022796383127570152,
-0.032061416655778885,
0.02130262739956379,
0.006215737666934729,
0.01893969252705574,
0.06080010533332825,
-0.014189627952873707,
0.10464723408222198,
-0.027552630752325058,
0.023516712710261345,
-0.03555450215935707,
-0.03733444586396217,
-0.009506426751613617,
0.06513405591249466,
0.0606059767305851,
0.05916444957256317,
0.0009203912341035903,
-0.059053413569927216,
0.04004570096731186,
0.03747280687093735,
0.05371721833944321,
0.011836101301014423,
-0.043832842260599136,
-0.01943502202630043,
-0.012607044540345669,
0.043174464255571365,
-0.024680523201823235,
-0.021861793473362923,
-0.003813023678958416,
0.03865873068571091,
-0.011667145416140556,
0.021889790892601013,
-0.02331150881946087,
0.02637767419219017,
-0.07399643212556839,
-0.04977820813655853,
0.017394982278347015,
0.022638272494077682,
0.005725408438593149,
0.029661783948540688,
-0.010692700743675232,
0.00184449995867908,
0.009915195405483246,
0.03014763444662094,
0.004563826136291027,
-0.019063543528318405,
0.012058265507221222,
0.021029725670814514,
0.052354950457811356,
-0.0331571102142334,
0.041826169937849045,
-0.0260436050593853,
0.02264924719929695,
0.042772166430950165,
-0.040161799639463425,
0.023188630118966103,
0.049954116344451904,
0.03200483322143555,
-0.04236315190792084,
0.0384783074259758,
0.010849307291209698,
0.044667258858680725,
0.028199966996908188,
0.0021957438439130783,
0.04879338666796684,
-0.007773115765303373,
0.059056077152490616,
0.0864265114068985,
0.027180077508091927,
0.03551950678229332,
0.05108378455042839,
0.07050957530736923,
-0.001644184230826795,
-0.00815214216709137,
0.035340815782547,
-0.04438149556517601,
0.02039528079330921,
-0.05245308578014374,
-0.012585515156388283,
-0.02647428959608078,
-0.025668177753686905,
0.07245539873838425,
0.016965031623840332,
-0.021611547097563744,
-0.019589049741625786,
-0.011831386014819145,
-0.015553397126495838,
0.03502000868320465,
0.005311771761626005,
-0.0003496235003694892,
0.0002415065246168524,
0.011633628979325294,
-0.006707317661494017,
-0.07442822307348251,
-0.03433438763022423,
-0.0036484606098383665,
-0.02534662000834942,
-0.03585275635123253,
-0.09104444086551666,
-0.004136763978749514,
-0.047804947942495346,
-0.030115671455860138,
0.023565128445625305,
0.005350362975150347,
-0.002132955240085721,
-0.05200670659542084,
0.01735059730708599,
-0.0412454679608345,
-0.04066728428006172,
-0.027457572519779205,
-0.06253347545862198,
-0.06507117301225662,
-0.06867162138223648,
0.015204004012048244,
0.01985582336783409,
0.03997518867254257,
0.019545283168554306,
0.017513155937194824,
-0.009291594848036766,
-0.02009328082203865,
0.03149440884590149,
0.08179523050785065,
-0.03021300956606865,
-0.05457371845841408,
-0.0027441217098385096,
-0.012608268298208714,
0.01656682789325714,
0.010578709654510021,
-0.04252268001437187,
0.08608949929475784,
0.07174227386713028,
0.00914884265512228,
0.017879793420433998,
0.002470107050612569,
-0.040298234671354294,
-0.03856668248772621,
-0.023334410041570663,
-0.03121315687894821,
0.008792569860816002,
-0.04445141926407814,
-0.019760282710194588,
-0.013567978516221046,
-0.030688639730215073,
0.0239285696297884,
-0.0035893223248422146,
0.015798185020685196,
0.04867735877633095,
0.03479461744427681,
0.008312453515827656,
0.004801162518560886,
-0.02153811790049076,
-0.039697274565696716,
0.03035634383559227,
-0.01561768352985382,
0.011227156035602093,
-0.10351485759019852,
-0.0317327082157135,
0.047785434871912,
0.01671876199543476,
0.013663091696798801,
-0.0028677794616669416,
0.06735478341579437,
0.01034253928810358,
0.008845614269375801,
0.01454255636781454,
-0.029212351888418198,
-0.02785957045853138,
-0.01707589626312256,
-0.006358497776091099,
-0.01590151898562908,
-0.016399549320340157,
-0.005100289359688759,
-0.0015656850300729275,
0.04222266376018524,
-0.053202010691165924,
-0.04364455118775368,
-0.02326059155166149,
0.048164308071136475,
0.05397402495145798,
0.006761637981981039,
-0.0545060932636261,
-0.005563441663980484,
-0.059093818068504333,
-0.018439948558807373,
0.02181793563067913,
0.013333391398191452,
0.01600712165236473,
0.050742074847221375,
0.045987192541360855,
-0.026118764653801918,
0.04335944354534149,
0.06600058078765869,
0.06793031096458435,
0.00972737930715084,
-0.07398328185081482,
0.005152844823896885,
-0.0140822883695364,
0.052239928394556046,
-0.007573391776531935,
-0.02196381613612175,
-0.023504870012402534,
-0.0972687304019928,
-0.023680415004491806,
-0.0061865998432040215,
-0.014385556802153587,
-0.001105759758502245,
0.02382335439324379,
0.00851726159453392,
-0.02200842835009098,
-0.016810491681098938,
0.023548264056444168,
0.03514890745282173,
-0.040309298783540726,
0.05469558387994766,
-0.007107425015419722,
0.020733604207634926,
-0.04420977458357811,
-0.0014579773414880037,
-0.03883841261267662,
-0.04462511092424393,
-0.0006326151778921485,
0.050474029034376144,
0.005549176130443811,
0.06689147651195526,
0.06618542969226837,
0.02118542790412903,
-0.054681941866874695,
0.04071022942662239,
0.06346303969621658,
-0.01943287067115307,
-0.042085178196430206,
-0.006176790688186884,
0.009363827295601368,
-0.014917273074388504,
-0.01988602615892887,
-0.0044004363007843494,
0.012318539433181286,
0.0451851524412632,
0.0008878783555701375,
0.022809673100709915,
0.005334976129233837,
-0.018938779830932617,
-0.02982133999466896,
-0.047858644276857376,
-0.004183633252978325,
0.010181521996855736,
-0.011723240837454796,
0.0028627419378608465,
0.013338631018996239,
0.008523496799170971,
0.043237313628196716,
0.0486619807779789,
-0.032635610550642014,
-0.03321897238492966,
0.02622845023870468,
0.029008083045482635,
-0.029084594920277596,
-0.06859614700078964,
-0.0189960990101099,
0.034874580800533295,
0.04754507541656494,
-0.017081059515476227,
-0.0625704824924469,
-0.00100010447204113,
0.032460767775774,
-0.0562036968767643,
0.05219830572605133,
0.011160580441355705,
0.041834574192762375,
0.03683548420667648,
-0.03954611346125603,
0.02168799750506878,
-0.040661077946424484,
-0.01472149882465601,
-0.00006117184966569766,
0.008847851306200027,
-0.02033957466483116,
-0.05544959381222725,
-0.030961545184254646,
0.03569157421588898,
0.050460923463106155,
0.05564776062965393,
0.0324467234313488,
-0.0203127171844244,
-0.050684068351984024,
0.0242618378251791,
0.0497446209192276,
-0.0323130264878273,
0.014403621666133404,
0.019830383360385895,
0.012515752576291561,
-0.04528786614537239,
-0.06075523421168327,
-0.043441105633974075,
-0.024032438173890114,
0.03194904327392578,
0.00975094549357891,
-0.03727024421095848,
-0.021759148687124252,
0.03033081442117691,
0.005126089323312044,
-0.016261465847492218,
-0.0905771479010582,
0.04508686065673828,
0.011961353942751884,
-0.002122235018759966,
0.05115414783358574,
0.031253632158041,
0.04833810031414032,
0.0685344710946083,
0.037143953144550323,
0.021450437605381012,
-0.02716127224266529,
0.026160012930631638,
-0.04123835638165474,
-0.007754276040941477,
-0.0006677082274109125,
-0.03629852458834648,
-0.007468122988939285,
-0.002524016657844186,
-0.044775087386369705,
-0.04794209823012352,
-0.00304219638928771,
-0.014899525791406631,
0.01345071941614151,
-0.00251964945346117,
-0.008509357459843159,
0.025808313861489296,
-0.009000672958791256,
-0.058089565485715866,
-0.04215293377637863,
-0.02201342210173607,
-0.05418054759502411,
-0.03718496486544609,
0.04283972084522247,
0.010385285131633282,
0.05031312257051468,
0.020149853080511093,
0.032799266278743744,
0.012478219345211983,
-0.008772755041718483,
-0.060032691806554794,
0.0017915063071995974,
-0.0009358712122775614,
-0.0174417681992054,
-0.04146066680550575,
0.024660004302859306,
0.01428468618541956,
0.018754679709672928,
-0.026496585458517075,
0.041933998465538025,
0.032079070806503296,
-0.003669417928904295,
-0.013214752078056335,
0.03545290231704712,
0.017105504870414734,
-0.07861089706420898,
-0.007869548164308071,
-0.004707189276814461,
-0.024754054844379425,
0.026063302531838417,
-0.04463479295372963,
-0.01370487455278635,
-0.00920826755464077,
0.011671398766338825,
0.05096299573779106,
0.003115363186225295,
-0.030323408544063568,
0.0006573285209015012,
-0.033514294773340225,
0.04259490966796875,
-0.06590566784143448,
0.04494069144129753,
-0.04123630374670029,
0.0037389909848570824,
-0.015876922756433487,
0.0012153892312198877,
-0.053760409355163574,
0.031054647639393806,
-0.03734326362609863,
-0.028599081560969353,
-0.008768326602876186,
0.02706332318484783,
-0.02216593734920025,
0.04401509091258049,
-0.009402732364833355,
0.024330975487828255,
-0.03707403689622879,
0.07089496403932571,
-0.027351977303624153,
0.0077711050398647785,
-0.03991669788956642,
0.04038514196872711,
-0.03770963102579117,
0.04106878861784935,
-0.01304679922759533,
0.0008768676780164242,
0.026389067992568016,
0.07497645169496536,
0.041339535266160965,
0.009065069258213043,
-0.02069752663373947,
0.0030459652189165354,
0.02285146526992321,
-0.05127168446779251,
-0.032122477889060974,
-0.000050241476856172085,
-0.010808899998664856,
0.004595729522407055,
0.039267539978027344,
0.06053619831800461,
-0.055130794644355774,
-0.05256977304816246,
0.03525519371032715,
0.011049417778849602,
0.015708306804299355,
-0.0038638771511614323,
0.02954055368900299,
-0.0027178358286619186,
0.05971554294228554,
-0.04307035729289055,
-0.005714768078178167,
-0.026280170306563377,
-0.026425253599882126,
0.03332186117768288,
-0.022453168407082558,
0.03686746954917908,
0.008193610236048698,
-0.04432005062699318,
-0.027812127023935318,
0.0697530061006546,
0.018417727202177048,
0.018950115889310837,
-0.00007598361844429746,
-0.06024043262004852,
0.0328688770532608,
0.001253460650332272,
-0.05859145149588585,
0.017101576551795006,
-0.009556076489388943,
-0.04479273781180382,
0.05819690227508545,
-0.008510990999639034,
-0.0022994275204837322,
0.030736226588487625,
0.037793971598148346,
-0.00785382091999054,
0.055712249130010605,
-0.020015612244606018,
0.019375065341591835,
0.03932406008243561,
-0.06816224753856659,
-0.008996663615107536,
-0.03443315625190735,
0.05079520121216774,
-0.052904486656188965,
0.059545036405324936,
0.058017875999212265,
0.030746709555387497,
0.015809157863259315,
-0.0398506224155426,
-0.051112234592437744,
-0.03242121636867523,
-0.04216008633375168,
0.07438573241233826,
0.0008549208287149668,
-0.055588558316230774,
0.07155422866344452,
0.035808056592941284,
-0.05196665599942207,
0.05469416826963425,
0.03345660865306854,
0.045914944261312485,
0.0375358909368515,
0.05793626233935356,
-0.03438315913081169,
0.023042645305395126,
-0.0337008461356163,
0.0381331741809845,
-0.06273031234741211,
-0.020992981269955635,
0.019441327080130577,
-0.04156455397605896,
-0.007458875421434641,
0.05731900781393051,
-0.0005034079076722264,
0.009243529289960861,
0.05336751043796539,
-0.05368766561150551,
-0.05859274044632912,
-0.010182653553783894,
-0.006196303758770227,
-0.012232429347932339,
0.024791844189167023,
-0.032886769622564316,
0.013182111084461212,
0.02741057425737381,
-0.0012036302359774709,
-0.025279318913817406,
0.021780950948596,
0.015422922559082508,
-0.04229670763015747,
-0.04329444468021393,
0.047167498618364334,
0.007305516395717859,
-0.03287076950073242,
0.047100234776735306,
0.02675110474228859,
0.0181155726313591,
0.014592910185456276,
0.004842883441597223,
0.030447274446487427,
-0.050788234919309616,
0.0041144490242004395,
0.03065606765449047,
-0.012044460512697697,
0.04517647251486778,
0.011562028899788857,
0.0197905320674181,
0.039082881063222885,
0.02903427742421627,
-0.01589164137840271,
-0.015700919553637505,
-0.04480581358075142,
0.032926738262176514,
-0.028444847092032433,
-0.006761455908417702,
0.006038041319698095,
-0.047673195600509644,
-0.0405113510787487,
-0.022553473711013794,
-0.05121161788702011,
0.02362576127052307,
-0.07015766203403473,
0.00955229066312313,
-0.0008283610222861171,
0.01699075847864151,
-0.06016584485769272,
-0.08363251388072968,
0.0051896171644330025,
-0.03737524896860123,
-0.004553773906081915,
0.018832208588719368,
-0.02115127630531788,
0.016642171889543533,
-0.015340031124651432,
-0.047409482300281525,
0.054559770971536636,
0.02104971371591091,
-0.04050904139876366,
0.04574695602059364,
0.04632187262177467,
-0.05519220232963562,
-0.0025046439841389656,
0.02848234958946705,
-0.04383416473865509,
-0.004795135464519262,
0.030055193230509758,
-0.0016022819327190518,
0.03394812345504761,
-0.0011694874847307801,
-0.045534152537584305,
-0.019245393574237823,
-0.056049659848213196,
-0.03434121236205101,
-0.04426830634474754,
0.01770481839776039,
0.052929654717445374
] |
AyushPJ/ai-club-inductions-21-nlp-roBERTa | [
"pytorch",
"roberta",
"question-answering",
"transformers",
"generated_from_trainer",
"autotrain_compatible"
] | question-answering | {
"architectures": [
"RobertaForQuestionAnswering"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
tags:
- generated_from_trainer
model-index:
- name: ai-club-inductions-21-nlp-roBERTa
results: []
---
<!-- 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. -->
# ai-club-inductions-21-nlp-roBERTa
This model was trained from scratch on an unknown 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: 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: 10
### Framework versions
- Transformers 4.11.3
- Pytorch 1.7.1+cpu
- Datasets 1.14.0
- Tokenizers 0.10.3
| [
-0.02864033170044422,
-0.014081289060413837,
-0.009880959056317806,
0.03289592266082764,
0.04152611270546913,
0.003809188725426793,
-0.011745953932404518,
-0.0040899706073105335,
-0.035392556339502335,
0.05008569732308388,
0.026693614199757576,
-0.010325491428375244,
-0.014318493194878101,
0.04923234134912491,
-0.0692882165312767,
-0.040621060878038406,
-0.00741066038608551,
-0.015527401119470596,
-0.028702281415462494,
-0.008573506958782673,
0.012933970429003239,
-0.01005204301327467,
0.013318256475031376,
0.009590720757842064,
-0.023744821548461914,
-0.004277336411178112,
0.00008656100544612855,
0.005846567451953888,
0.025928428396582603,
-0.0624392069876194,
0.02016589231789112,
-0.03870397061109543,
-0.03587518259882927,
-0.004551348742097616,
-0.02316462993621826,
-0.011915047653019428,
0.027882065623998642,
0.018126174807548523,
0.035320356488227844,
0.041225455701351166,
0.015515166334807873,
0.012890912592411041,
-0.006671085488051176,
-0.024316387251019478,
0.03289303928613663,
0.016075730323791504,
-0.04218510910868645,
-0.003001021221280098,
0.037615206092596054,
-0.020700497552752495,
-0.07356361299753189,
-0.05652276799082756,
-0.0057962252758443356,
0.019408760592341423,
-0.015303281135857105,
-0.017575541511178017,
-0.07341496646404266,
0.00025271784397773445,
0.0715305283665657,
-0.06158141419291496,
-0.02183329127728939,
0.005014306399971247,
-0.07881666719913483,
0.027170009911060333,
0.03955918177962303,
-0.03402861952781677,
0.01350752729922533,
-0.04133095592260361,
0.022364417091012,
-0.012049710378050804,
0.043932825326919556,
-0.012664461508393288,
-0.0041656093671917915,
-0.08295869082212448,
-0.018475081771612167,
-0.023906566202640533,
0.03252296894788742,
0.052598774433135986,
-0.03410889580845833,
0.03674349933862686,
0.01982438750565052,
0.0014241494936868548,
0.028322674334049225,
-0.025324538350105286,
0.004310022108256817,
0.055761467665433884,
-0.03466326743364334,
0.021715885028243065,
0.013913794420659542,
0.01425952184945345,
-0.02535066567361355,
-0.030033938586711884,
-0.030215665698051453,
-0.01617768034338951,
-0.002930721268057823,
0.016351502388715744,
0.04436045140028,
0.018253473564982414,
0.02650757133960724,
0.006396372802555561,
0.06156403571367264,
0.022290267050266266,
-0.030553163960576057,
0.06545819342136383,
0.007914948277175426,
-0.036450400948524475,
-0.012564203701913357,
-0.03100009076297283,
-0.03742830082774162,
0.028743719682097435,
0.022330239415168762,
-0.04342557117342949,
-0.05492263659834862,
0.03341636434197426,
0.010885229334235191,
-0.0066415611654520035,
0.055413972586393356,
-0.03947741538286209,
-0.04933163523674011,
-0.053321730345487595,
0.03143857419490814,
0.018063999712467194,
0.0032017489429563284,
0.013897267170250416,
-0.046829115599393845,
0.003056937362998724,
-0.05078223720192909,
-0.05335849151015282,
0.011275792494416237,
0.007202227134257555,
-0.0014987706672400236,
0.042557891458272934,
0.004032634198665619,
-0.061743974685668945,
-0.005831267684698105,
0.02158324606716633,
-0.044201552867889404,
0.047753188759088516,
-0.010686004534363747,
0.11302132159471512,
-0.050442881882190704,
-0.0623406358063221,
0.0367741696536541,
0.011418160982429981,
-0.042382847517728806,
-0.014879027381539345,
0.02000400610268116,
-0.0629410445690155,
-0.0008164385799318552,
0.003728186246007681,
0.059583861380815506,
-0.04635503515601158,
-0.036472856998443604,
0.05521547049283981,
0.005841430276632309,
0.043773502111434937,
-0.051863983273506165,
-0.06000366061925888,
-0.027384543791413307,
-0.017036976292729378,
-0.04234558716416359,
0.05727072060108185,
-0.02728811278939247,
0.011058395728468895,
-0.023422690108418465,
-0.047242745757102966,
0.00779819255694747,
0.08619720488786697,
-0.012808415107429028,
-0.029548583552241325,
-0.015208035707473755,
0.036687497049570084,
0.05445318669080734,
0.033688101917505264,
-0.026633404195308685,
0.054934438318014145,
0.04936344921588898,
0.05350719392299652,
-0.05286755785346031,
0.03302108868956566,
0.016284089535474777,
-0.04670480638742447,
-0.03307382017374039,
0.032053615897893906,
0.021472617983818054,
-0.04338744282722473,
0.04898566007614136,
0.01763998717069626,
-0.00020088777819182724,
-0.038263965398073196,
-0.02654779888689518,
0.06402783840894699,
0.030625242739915848,
0.005094668362289667,
0.011126873083412647,
-0.023734934628009796,
-0.02157769724726677,
0.02918846160173416,
-0.013212474063038826,
-0.0015500127337872982,
-0.018029415979981422,
-0.03411918506026268,
0.024512749165296555,
0.013120545074343681,
0.015191510319709778,
0.06316624581813812,
-0.025501348078250885,
0.09391516447067261,
-0.0331110879778862,
0.022839302197098732,
-0.040539901703596115,
-0.04880330339074135,
-0.004482129123061895,
0.0629364475607872,
0.054298944771289825,
0.057090822607278824,
0.0016823781188577414,
-0.06473491340875626,
0.0392567403614521,
0.04202544316649437,
0.05710296332836151,
0.011126569472253323,
-0.04705069586634636,
-0.025050099939107895,
-0.015444665215909481,
0.046883322298526764,
-0.029873725026845932,
-0.0309853944927454,
-0.0004908309201709926,
0.04120621830224991,
-0.018635820597410202,
0.02127383090555668,
-0.021129101514816284,
0.02235216461122036,
-0.07359518855810165,
-0.046539269387722015,
0.020140351727604866,
0.025929035618901253,
0.01617811992764473,
0.034940991550683975,
-0.015244846232235432,
-0.0025044328067451715,
0.006896733772009611,
0.034288570284843445,
0.0025468957610428333,
-0.019578134641051292,
0.009080661460757256,
0.023472299799323082,
0.04689960554242134,
-0.0394301675260067,
0.04027597978711128,
-0.023731926456093788,
0.0156679917126894,
0.03746834397315979,
-0.04389152675867081,
0.02697455883026123,
0.05406958609819412,
0.03855625167489052,
-0.04949469491839409,
0.03594218194484711,
0.00941990315914154,
0.055740341544151306,
0.030316412448883057,
0.0013522906228899956,
0.04324350878596306,
-0.0041276272386312485,
0.061016734689474106,
0.093423992395401,
0.024653667584061623,
0.03229478746652603,
0.04860245808959007,
0.07318448275327682,
-0.002990392968058586,
-0.017906414344906807,
0.040151819586753845,
-0.04472509026527405,
0.020341163501143456,
-0.0535159632563591,
-0.018789896741509438,
-0.02583608776330948,
-0.02468215674161911,
0.07434865087270737,
0.025645632296800613,
-0.02767549268901348,
-0.014785869047045708,
-0.010886382311582565,
-0.014062978327274323,
0.041651055216789246,
0.016586462035775185,
0.0012765752617269754,
-0.012740117497742176,
0.013955598697066307,
-0.00749704334884882,
-0.07071833312511444,
-0.037445586174726486,
-0.0179898701608181,
-0.02520323544740677,
-0.03896261379122734,
-0.10777512192726135,
0.003285669256001711,
-0.05598314106464386,
-0.028389154002070427,
0.023634720593690872,
0.014417881146073341,
0.0023238356225192547,
-0.05857248976826668,
0.01011410728096962,
-0.043788038194179535,
-0.041787777096033096,
-0.03143427520990372,
-0.05784716457128525,
-0.07070787996053696,
-0.07771699130535126,
0.020915210247039795,
0.01607685163617134,
0.043448545038700104,
0.01718594692647457,
0.013702334836125374,
-0.008190732449293137,
-0.020118465647101402,
0.03219151496887207,
0.0764453113079071,
-0.03243948519229889,
-0.05075749382376671,
0.0038331428077071905,
-0.011167284101247787,
0.015111962333321571,
0.0036710791755467653,
-0.0408015176653862,
0.0877952128648758,
0.07240801304578781,
0.010699275881052017,
0.015691280364990234,
-0.0017874849727377295,
-0.03996536508202553,
-0.04058060050010681,
-0.01995013654232025,
-0.02085590548813343,
0.007614626083523035,
-0.035397861152887344,
-0.02853151597082615,
-0.007918489165604115,
-0.04376409202814102,
0.02262425422668457,
-0.006011574529111385,
0.021343229338526726,
0.04141867533326149,
0.03159021586179733,
0.01705279015004635,
0.007514454890042543,
-0.021469444036483765,
-0.04398872330784798,
0.0422891266644001,
-0.017070047557353973,
0.017808550968766212,
-0.09793175756931305,
-0.02659151516854763,
0.0539381243288517,
0.02380368299782276,
0.010441278107464314,
-0.0052364603616297245,
0.05904002860188484,
0.007983561605215073,
0.0020721920300275087,
0.009298458695411682,
-0.03124811500310898,
-0.015504813753068447,
-0.009813922457396984,
-0.010519920848309994,
-0.022750958800315857,
-0.015121015720069408,
-0.015438893809914589,
-0.014268499799072742,
0.046941306442022324,
-0.05777166411280632,
-0.0454297736287117,
-0.022281493991613388,
0.04149891808629036,
0.05631324276328087,
0.011596131138503551,
-0.06257056444883347,
-0.002729236613959074,
-0.05966039001941681,
-0.005740305874496698,
0.02285047248005867,
0.019296707585453987,
0.019383007660508156,
0.048748500645160675,
0.034528978168964386,
-0.021813467144966125,
0.04316607117652893,
0.053950246423482895,
0.0623960942029953,
0.006796760018914938,
-0.0825662761926651,
0.009021979756653309,
-0.009572275914251804,
0.042894672602415085,
-0.012720570899546146,
-0.009748131968080997,
-0.035285353660583496,
-0.09105841815471649,
-0.01627565175294876,
-0.009507685899734497,
-0.011369114741683006,
0.00625921506434679,
0.017313484102487564,
0.0032210659701377153,
-0.016107778996229172,
-0.015804551541805267,
0.023005882278084755,
0.03510330617427826,
-0.057525403797626495,
0.04826747626066208,
-0.002403207356110215,
0.012318283319473267,
-0.043784599751234055,
0.0006310296012088656,
-0.04914988949894905,
-0.042714230716228485,
-0.004140239208936691,
0.048820920288562775,
0.01458589918911457,
0.06634112447500229,
0.06624854356050491,
0.01294640451669693,
-0.05181225761771202,
0.04101444408297539,
0.06717493385076523,
-0.015381761826574802,
-0.047789301723241806,
-0.004678929224610329,
0.005145126022398472,
-0.012073233723640442,
-0.02520991675555706,
-0.010360307060182095,
0.009626928716897964,
0.05065763741731644,
0.01087320875376463,
0.013533060438930988,
0.00751904584467411,
-0.020348642021417618,
-0.031852006912231445,
-0.05527914687991142,
-0.003741019405424595,
0.007360520306974649,
-0.013203221373260021,
0.004151154775172472,
0.013979008421301842,
0.018992368131875992,
0.038634028285741806,
0.052140045911073685,
-0.02571289613842964,
-0.02138373628258705,
0.029146255925297737,
0.022658392786979675,
-0.030660953372716904,
-0.06791457533836365,
-0.013352192007005215,
0.025529028847813606,
0.060629915446043015,
-0.022827384993433952,
-0.06376034766435623,
-0.0026573361828923225,
0.03424933925271034,
-0.04793950915336609,
0.046596791595220566,
0.012955781072378159,
0.038111284375190735,
0.03966277092695236,
-0.02732149139046669,
0.029251564294099808,
-0.038759924471378326,
-0.004041047766804695,
0.00005537196557270363,
0.006145333871245384,
-0.027316058054566383,
-0.04784289002418518,
-0.03882964327931404,
0.03227382153272629,
0.03261717036366463,
0.05705785006284714,
0.045410335063934326,
-0.028495267033576965,
-0.05520652234554291,
0.013698904775083065,
0.05725867301225662,
-0.025103239342570305,
0.014613468199968338,
0.023524640128016472,
0.016230668872594833,
-0.04255833104252815,
-0.05875123664736748,
-0.03683004155755043,
-0.03202766552567482,
0.029133150354027748,
0.014632998034358025,
-0.042068544775247574,
-0.018541943281888962,
0.03264075517654419,
0.0032920704688876867,
-0.016724206507205963,
-0.08474069088697433,
0.045648880302906036,
0.007109816186130047,
-0.007218094076961279,
0.03881262242794037,
0.032555583864450455,
0.046477336436510086,
0.07556598633527756,
0.03552468493580818,
0.022108718752861023,
-0.026636863127350807,
0.02467842772603035,
-0.05021575838327408,
-0.00738935824483633,
-0.004425328224897385,
-0.030350379645824432,
-0.01317407377064228,
-0.006384370848536491,
-0.05328988656401634,
-0.04622671753168106,
-0.00017127837054431438,
-0.015792541205883026,
0.018618116155266762,
-0.013305503875017166,
-0.005455723498016596,
0.04070185497403145,
-0.012845035642385483,
-0.04896008223295212,
-0.03509550169110298,
-0.03235430642962456,
-0.05551306530833244,
-0.047219209372997284,
0.035361334681510925,
0.01954592578113079,
0.047755658626556396,
0.018868347629904747,
0.025504207238554955,
0.012487505562603474,
0.0016578992363065481,
-0.050748810172080994,
0.004777134861797094,
-0.0045637027360498905,
-0.017117630690336227,
-0.04036138206720352,
0.03085346519947052,
0.012269723229110241,
0.02177831344306469,
-0.033317890018224716,
0.04785889387130737,
0.01938101090490818,
-0.00602009566500783,
-0.014204053208231926,
0.03197327256202698,
0.013066209852695465,
-0.07596845924854279,
-0.003642474766820669,
-0.0032318688463419676,
-0.024822361767292023,
0.03032083995640278,
-0.03641326352953911,
-0.013555005192756653,
-0.013404463417828083,
0.013870012946426868,
0.05190533399581909,
-0.0066529568284749985,
-0.031902704387903214,
-0.004991191904991865,
-0.03609180822968483,
0.04398587718605995,
-0.05596698075532913,
0.054513730108737946,
-0.04268790781497955,
0.001355304615572095,
-0.006510577164590359,
-0.001204265863634646,
-0.060757122933864594,
0.03435031697154045,
-0.033689774572849274,
-0.02730255201458931,
0.003624232253059745,
0.025497745722532272,
-0.018084783107042313,
0.051996733993291855,
-0.013642590492963791,
0.022338224574923515,
-0.030919963493943214,
0.08005698770284653,
-0.031993940472602844,
0.005938686430454254,
-0.03307405486702919,
0.030400177463889122,
-0.0393378846347332,
0.03492310643196106,
-0.013093365356326103,
-0.0009130667895078659,
0.024664005264639854,
0.07621608674526215,
0.03489268943667412,
0.016328372061252594,
-0.012903734110295773,
-0.003397742984816432,
0.020704803988337517,
-0.05349999666213989,
-0.037424053996801376,
-0.013186735101044178,
-0.014634589664638042,
-0.0023029292933642864,
0.045297153294086456,
0.06307808309793472,
-0.050214532762765884,
-0.05621377006173134,
0.03547234833240509,
0.009535569697618484,
0.01480493787676096,
-0.006227659061551094,
0.0375414714217186,
-0.0059781004674732685,
0.05270656570792198,
-0.03460387513041496,
-0.00992925651371479,
-0.02466203272342682,
-0.027610238641500473,
0.03475029766559601,
-0.015055689960718155,
0.03322514891624451,
-0.0016620642272755504,
-0.04287157952785492,
-0.028665026649832726,
0.07081989198923111,
0.02157515101134777,
0.027818981558084488,
0.0032751925755292177,
-0.059048473834991455,
0.026720348745584488,
0.002657524077221751,
-0.0663616806268692,
0.01473093219101429,
-0.005470963194966316,
-0.04008427634835243,
0.05284430831670761,
-0.014313935302197933,
0.004679242614656687,
0.039862263947725296,
0.04414486885070801,
-0.004341166466474533,
0.05340199917554855,
-0.013685365207493305,
0.012351544573903084,
0.03483317047357559,
-0.05762813985347748,
-0.019464323297142982,
-0.03102903813123703,
0.05387052148580551,
-0.04365793988108635,
0.06284545361995697,
0.04564938694238663,
0.031352121382951736,
0.013828524388372898,
-0.03293497860431671,
-0.041850101202726364,
-0.024197135120630264,
-0.040576640516519547,
0.07416350394487381,
0.005802798550575972,
-0.05557512864470482,
0.06957884877920151,
0.0285397469997406,
-0.06346633285284042,
0.05604332685470581,
0.0373828299343586,
0.04039090871810913,
0.03651222214102745,
0.05335265398025513,
-0.022554781287908554,
0.01290921587496996,
-0.03339483216404915,
0.0370052196085453,
-0.054037269204854965,
-0.021060287952423096,
0.012205180712044239,
-0.04523249715566635,
-0.02027174085378647,
0.05572284013032913,
0.0028085741214454174,
0.0001636288216104731,
0.056336063891649246,
-0.054486557841300964,
-0.06650274991989136,
-0.010045130737125874,
-0.003312183078378439,
-0.013490290381014347,
0.021206839010119438,
-0.02711591124534607,
0.011447721160948277,
0.02013860084116459,
-0.0070975301787257195,
-0.018321147188544273,
0.013740860857069492,
0.0208954606205225,
-0.04381949082016945,
-0.048663508147001266,
0.04402013123035431,
0.006568392738699913,
-0.024365639314055443,
0.04388934001326561,
0.02696978487074375,
0.01302972249686718,
0.009704056195914745,
0.0018397143576294184,
0.023132607340812683,
-0.04616314545273781,
0.006929947063326836,
0.026743654161691666,
-0.005066249053925276,
0.050404634326696396,
0.006517850328236818,
0.02304951660335064,
0.04464678093791008,
0.042038626968860626,
-0.013951326720416546,
-0.01660664565861225,
-0.049074988812208176,
0.019480451941490173,
-0.026088669896125793,
-0.00599462678655982,
0.014989934861660004,
-0.04942387714982033,
-0.0414651557803154,
-0.02200825698673725,
-0.06456150859594345,
0.022744420915842056,
-0.07742081582546234,
0.008683271706104279,
-0.005615163594484329,
0.019170230254530907,
-0.05478276312351227,
-0.0863432064652443,
-0.0032815211452543736,
-0.03440861776471138,
-0.006496921181678772,
0.011145434342324734,
-0.01770148240029812,
0.02038346417248249,
-0.019196849316358566,
-0.03834125027060509,
0.05479104816913605,
0.020322328433394432,
-0.0333842933177948,
0.04579116404056549,
0.04711171239614487,
-0.04536561295390129,
0.010212469846010208,
0.03494733199477196,
-0.03595786914229393,
-0.002520865062251687,
0.027081819251179695,
-0.016001183539628983,
0.041973650455474854,
-0.005148630123585463,
-0.03596489131450653,
-0.006974994204938412,
-0.05357133597135544,
-0.029838956892490387,
-0.03957214951515198,
0.011364171281456947,
0.04233338683843613
] |
BSC-LT/roberta-large-bne-capitel-ner | [
"pytorch",
"roberta",
"token-classification",
"es",
"dataset:bne",
"dataset:capitel",
"arxiv:1907.11692",
"arxiv:2107.07253",
"transformers",
"national library of spain",
"spanish",
"bne",
"capitel",
"ner",
"license:apache-2.0",
"autotrain_compatible"
] | token-classification | {
"architectures": [
"RobertaForTokenClassification"
],
"model_type": "roberta",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | ---
language:
- es
license: apache-2.0
tags:
- "national library of spain"
- "spanish"
- "bne"
- "capitel"
- "ner"
datasets:
- "bne"
- "capitel"
metrics:
- "f1"
---
**⚠️NOTICE⚠️: THIS MODEL HAS BEEN MOVED TO THE FOLLOWING URL AND WILL SOON BE REMOVED:** https://huggingface.co/PlanTL-GOB-ES/roberta-large-bne-capitel-ner
# Spanish RoBERTa-large trained on BNE finetuned for CAPITEL Named Entity Recognition (NER) dataset.
RoBERTa-large-bne is a transformer-based masked language model for the Spanish language. It is based on the [RoBERTa](https://arxiv.org/abs/1907.11692) large model and has been pre-trained using the largest Spanish corpus known to date, with a total of 570GB of clean and deduplicated text processed for this work, compiled from the web crawlings performed by the [National Library of Spain (Biblioteca Nacional de España)](http://www.bne.es/en/Inicio/index.html) from 2009 to 2019.
Original pre-trained model can be found here: https://huggingface.co/BSC-TeMU/roberta-large-bne
## Dataset
The dataset used is the one from the [CAPITEL competition at IberLEF 2020](https://sites.google.com/view/capitel2020) (sub-task 1).
## Evaluation and results
F1 Score: 0.8998
For evaluation details visit our [GitHub repository](https://github.com/PlanTL-SANIDAD/lm-spanish).
## Citing
Check out our paper for all the details: https://arxiv.org/abs/2107.07253
```
@misc{gutierrezfandino2021spanish,
title={Spanish Language Models},
author={Asier Gutiérrez-Fandiño and Jordi Armengol-Estapé and Marc Pàmies and Joan Llop-Palao and Joaquín Silveira-Ocampo and Casimiro Pio Carrino and Aitor Gonzalez-Agirre and Carme Armentano-Oller and Carlos Rodriguez-Penagos and Marta Villegas},
year={2021},
eprint={2107.07253},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
``` | [
-0.013140302151441574,
0.008949889801442623,
0.005648141261190176,
0.0642058253288269,
0.03996429964900017,
0.011962760239839554,
-0.02005387842655182,
-0.01629311591386795,
-0.028922246769070625,
0.04286734387278557,
0.008388450369238853,
-0.016061918810009956,
-0.019138608127832413,
0.0508493036031723,
-0.03502777963876724,
0.007650986313819885,
0.005974193103611469,
-0.016601037234067917,
-0.060953475534915924,
-0.024175748229026794,
-0.010897326283156872,
-0.0008201041491702199,
0.0031880789902061224,
0.02307071164250374,
0.0018371382029727101,
0.01712539792060852,
0.019308267161250114,
0.04000009968876839,
0.03154921531677246,
-0.05766196548938751,
-0.017702419310808182,
-0.033624179661273956,
-0.029169246554374695,
-0.007736186031252146,
-0.03573889657855034,
-0.024190383031964302,
0.019932851195335388,
0.006672513205558062,
0.057422082871198654,
0.037490878254175186,
-0.016696952283382416,
0.010874164290726185,
0.004589670337736607,
-0.05862733721733093,
0.028326688334345818,
0.004605843219906092,
-0.07371681183576584,
-0.03691107779741287,
0.027353715151548386,
-0.051437877118587494,
-0.046969544142484665,
-0.08013574779033661,
-0.03216862678527832,
0.028382251039147377,
-0.005910031963139772,
-0.023082183673977852,
-0.039957523345947266,
0.0014030715683475137,
0.08851886540651321,
-0.04313182458281517,
-0.04803318902850151,
0.001776212709955871,
-0.07742384821176529,
-0.000832674908451736,
0.04543758183717728,
-0.02469952218234539,
0.0003019391151610762,
-0.024645579978823662,
0.05857709050178528,
-0.02226797305047512,
0.0452117957174778,
-0.054217591881752014,
-0.00595104368403554,
-0.07932096719741821,
-0.0016808814834803343,
-0.029668500646948814,
0.022464364767074585,
0.0382242314517498,
-0.048279374837875366,
0.049322664737701416,
0.02017803117632866,
0.01666664145886898,
0.009877086617052555,
-0.016661720350384712,
0.004053197335451841,
0.06300241500139236,
-0.04213504493236542,
0.002858454594388604,
0.03774162009358406,
0.043921198695898056,
-0.03281451761722565,
-0.025464190170168877,
-0.01177083421498537,
-0.03195406496524811,
0.005428590811789036,
0.05498189851641655,
0.043347783386707306,
0.0003460695734247565,
0.036371003836393356,
0.015606689266860485,
0.02508634701371193,
0.05416242405772209,
-0.02811424434185028,
0.06819748133420944,
-0.01815454661846161,
-0.029645327478647232,
-0.02457183226943016,
-0.033699795603752136,
-0.02938363328576088,
0.029915062710642815,
0.03041532263159752,
-0.05177571624517441,
-0.03046770580112934,
0.0537320040166378,
0.001741505810059607,
-0.03251493722200394,
0.044803958386182785,
-0.032663922756910324,
-0.056439079344272614,
-0.05752463638782501,
0.062056250870227814,
0.006049143150448799,
0.016416847705841064,
0.03334427997469902,
-0.057483237236738205,
0.001019764575175941,
-0.02731764130294323,
-0.020157521590590477,
0.011513382196426392,
0.01869918406009674,
-0.036781374365091324,
0.01310573797672987,
0.007456029299646616,
-0.07456231117248535,
0.018898487091064453,
0.023381264880299568,
-0.05158193036913872,
0.03989172726869583,
0.03211585059762001,
0.11733794212341309,
-0.03913149982690811,
-0.019574128091335297,
0.00003710506280185655,
0.0124145383015275,
0.0010596851352602243,
-0.006820676848292351,
-0.0018942637834697962,
-0.035692550241947174,
-0.03072693571448326,
-0.010652299970388412,
0.059932347387075424,
-0.07287602126598358,
0.0066529992036521435,
0.06390628963708878,
-0.032042503356933594,
0.039566949009895325,
-0.04838600754737854,
-0.002861638553440571,
0.005579252261668444,
-0.017022784799337387,
-0.010157126933336258,
0.036350738257169724,
0.0018082972383126616,
-0.008417201228439808,
-0.051960479468107224,
-0.04583213850855827,
0.005726635921746492,
0.09630516916513443,
0.009577080607414246,
-0.027508489787578583,
-0.01587085984647274,
0.004193535074591637,
0.05582132190465927,
0.022351371124386787,
-0.026235101744532585,
0.0316888801753521,
0.04170709103345871,
0.03581048920750618,
-0.007802931591868401,
0.041500288993120193,
0.022980688139796257,
-0.025811415165662766,
-0.03986464813351631,
0.04721368849277496,
0.014162187464535236,
-0.04252873733639717,
0.015352501533925533,
0.05117066204547882,
-0.003962020389735699,
-0.018824199214577675,
-0.023580383509397507,
0.06907596439123154,
-0.0006795788649469614,
0.011821343563497066,
0.011391869746148586,
-0.0020888526923954487,
-0.05102256312966347,
0.055727120488882065,
-0.01897265389561653,
0.01779143698513508,
-0.016799068078398705,
-0.02110101468861103,
-0.011667469516396523,
0.023321639746427536,
0.02524595335125923,
0.02736622467637062,
0.008644754998385906,
0.04928795248270035,
-0.03737419471144676,
0.01737283542752266,
-0.05743608623743057,
-0.04225505515933037,
-0.006394050549715757,
0.04832208901643753,
0.0028550694696605206,
0.03156517446041107,
-0.0029802063945680857,
-0.0579129122197628,
0.03932047262787819,
0.06421982496976852,
0.05135110393166542,
0.03088276833295822,
-0.02505139261484146,
0.0004129218577872962,
0.02937861904501915,
0.05266428366303444,
-0.05412077158689499,
-0.047456398606300354,
0.01111634448170662,
0.0599629282951355,
-0.013913520611822605,
0.009601064026355743,
-0.033154021948575974,
0.020193025469779968,
-0.06424801796674728,
-0.0832296833395958,
0.04464593529701233,
0.01880491152405739,
-0.001571359927766025,
0.027522694319486618,
-0.037166204303503036,
-0.0035962529946118593,
0.019140703603625298,
0.016905969008803368,
0.0009146668016910553,
-0.04073052108287811,
0.012573188170790672,
0.008593748323619366,
0.029304858297109604,
-0.061094481498003006,
0.02481171116232872,
-0.002341208513826132,
0.011117829941213131,
0.03317812830209732,
-0.012504663318395615,
0.02108578011393547,
0.04921606183052063,
-0.004443606827408075,
-0.030668718740344048,
0.00745206605643034,
0.012079917825758457,
0.012531851418316364,
0.04946392774581909,
0.014270184561610222,
0.049963563680648804,
-0.00970345176756382,
0.03299356997013092,
0.057817842811346054,
0.014120063744485378,
0.011745227500796318,
0.04137114807963371,
0.06823571771383286,
0.008034631609916687,
-0.02839701436460018,
0.07360438257455826,
-0.020901711657643318,
0.005449190270155668,
-0.028507040813565254,
0.0016126666450873017,
-0.005040578544139862,
-0.014571464620530605,
0.04384349659085274,
0.01734060049057007,
-0.013057554140686989,
0.007552664261311293,
-0.0176535677164793,
0.004514787811785936,
0.06431619077920914,
-0.010770520195364952,
0.009670926257967949,
-0.02202964387834072,
-0.01183075737208128,
0.02293403260409832,
-0.04308110848069191,
-0.05120976269245148,
0.019474666565656662,
-0.028705883771181107,
-0.027031559497117996,
-0.06780561059713364,
-0.028802376240491867,
-0.04597131162881851,
-0.016820106655359268,
0.0362742654979229,
0.03452799841761589,
-0.009302266873419285,
-0.031209995970129967,
-0.01000339537858963,
-0.03380175679922104,
-0.031488921493291855,
-0.04021598398685455,
-0.05106335133314133,
-0.029361039400100708,
-0.07712091505527496,
0.023401673883199692,
0.0433136448264122,
0.040056079626083374,
-0.0013828621013090014,
0.0020651035010814667,
-0.0032859155908226967,
-0.031356390565633774,
0.06175074726343155,
0.049923550337553024,
-0.0020524905994534492,
-0.052877213805913925,
0.004259208682924509,
0.004808363039046526,
0.036422137171030045,
0.005276988726109266,
-0.03629959374666214,
0.05085470527410507,
0.07302258908748627,
0.05016399547457695,
0.00105845439247787,
-0.013197691179811954,
-0.03950614482164383,
-0.04879624769091606,
-0.05038926377892494,
-0.03063773550093174,
0.0014144962187856436,
-0.048886317759752274,
-0.04698583856225014,
0.015130842104554176,
-0.025196906179189682,
0.0045686461962759495,
0.004223158583045006,
-0.018150610849261284,
0.04753315448760986,
0.047346048057079315,
0.033468130975961685,
0.03063943050801754,
-0.043077778071165085,
-0.026486312970519066,
0.06622567027807236,
0.021777821704745293,
-0.0009837900288403034,
-0.057965051382780075,
-0.018865790218114853,
0.043749600648880005,
0.03147951886057854,
0.006203159689903259,
-0.009615445509552956,
0.07789866626262665,
0.013961517252027988,
0.005740346387028694,
0.004695064388215542,
-0.02086316980421543,
-0.05989070236682892,
-0.0021988977678120136,
0.004191303160041571,
-0.05089147016406059,
-0.061152197420597076,
-0.020020894706249237,
-0.002320619532838464,
0.04521339386701584,
-0.05209404230117798,
-0.0533176027238369,
-0.029517047107219696,
0.0065349675714969635,
0.02670283056795597,
-0.0015792674385011196,
-0.036312609910964966,
-0.006026474758982658,
-0.04752790182828903,
-0.040022432804107666,
0.016025623306632042,
-0.010325294919312,
0.012620272114872932,
0.06834614276885986,
0.04026458039879799,
-0.030321452766656876,
0.034546226263046265,
0.020551152527332306,
0.05817925184965134,
0.03512261062860489,
-0.056309014558792114,
0.03667790815234184,
-0.030141247436404228,
-0.009351884946227074,
0.007982227019965649,
-0.016615599393844604,
-0.05490516498684883,
-0.06463281810283661,
0.008700914680957794,
-0.005967218894511461,
-0.01594148762524128,
-0.04766001179814339,
0.04483668506145477,
0.0019021965563297272,
0.01860128343105316,
-0.0057795061729848385,
-0.009452789090573788,
0.024966178461909294,
-0.06860676407814026,
0.07518303394317627,
0.0019925215747207403,
0.008690190501511097,
-0.03540051728487015,
0.014825358055531979,
-0.04858095943927765,
-0.026329444721341133,
0.00933413952589035,
0.06621537357568741,
0.04957481846213341,
0.04982874542474747,
0.0721767395734787,
0.02746044658124447,
-0.028664013370871544,
0.05692369118332863,
0.021046703681349754,
0.002806480275467038,
-0.05002131685614586,
-0.02248026430606842,
-0.03441289812326431,
-0.0602412112057209,
-0.013442457653582096,
-0.027327200397849083,
0.022392267361283302,
0.031865958124399185,
0.025441665202379227,
-0.016068264842033386,
0.008087437599897385,
0.0058403355069458485,
-0.037487223744392395,
-0.06411413103342056,
-0.034680575132369995,
-0.01947133056819439,
-0.013593371957540512,
0.03316448628902435,
0.035292528569698334,
0.0008524284930899739,
0.04446721822023392,
0.07526091486215591,
0.005928062833845615,
-0.029365498572587967,
0.015054021030664444,
0.03730613738298416,
-0.04351825639605522,
-0.047756295651197433,
-0.03577447310090065,
0.07732284814119339,
0.04699646309018135,
0.018805813044309616,
-0.10237700492143631,
0.005652627442032099,
0.049283724278211594,
-0.055425893515348434,
0.058605194091796875,
-0.023654164746403694,
0.042176906019449234,
0.038240235298871994,
-0.023589853197336197,
0.02799370512366295,
-0.025274867191910744,
0.010479976423084736,
-0.018280042335391045,
0.0501563660800457,
-0.01096193678677082,
-0.0499432347714901,
-0.04503491148352623,
0.013776660896837711,
0.022414878010749817,
0.0537564754486084,
0.04178491607308388,
-0.030474331229925156,
-0.0407693088054657,
0.00039377855136990547,
0.05086096376180649,
-0.05691511183977127,
0.008826387114822865,
0.014717167243361473,
0.02645847015082836,
-0.05139687657356262,
-0.044745396822690964,
0.003636803710833192,
-0.01931239292025566,
0.03487175330519676,
0.024421777576208115,
-0.02548188529908657,
-0.06366289407014847,
0.005601325072348118,
-0.0374494343996048,
-0.013614020310342312,
-0.06976770609617233,
0.021354669705033302,
-0.015435549430549145,
-0.003400353481993079,
0.030028626322746277,
0.018832888454198837,
0.03966860845685005,
0.0449223667383194,
-0.009832575917243958,
-0.022435754537582397,
-0.03425322845578194,
0.021501552313566208,
-0.035173624753952026,
-0.014161338098347187,
-0.03909202665090561,
-0.038277216255664825,
-0.011166433803737164,
-0.0420750267803669,
-0.03363994508981705,
-0.045246999710798264,
0.014866757206618786,
0.03268701210618019,
-0.0014586647739633918,
0.004458331502974033,
-0.05250640586018562,
0.0274994894862175,
-0.03356938436627388,
-0.02914642170071602,
-0.0345739983022213,
-0.023305589333176613,
-0.05365042760968208,
-0.04305114597082138,
0.02269022911787033,
0.008495776914060116,
0.031809255480766296,
0.02527063712477684,
0.020646074786782265,
0.005505960900336504,
-0.0011846012203022838,
-0.03214506804943085,
0.022806735709309578,
-0.01353489886969328,
-0.029614225029945374,
-0.022043989971280098,
0.005385433789342642,
0.04311424493789673,
0.05150575563311577,
-0.03432273119688034,
0.027645716443657875,
0.015396003611385822,
-0.00956371333450079,
-0.015054721385240555,
0.024666309356689453,
0.0196694266051054,
-0.06362392008304596,
-0.04412364587187767,
-0.004810514394193888,
-0.03867458924651146,
0.053407054394483566,
-0.03243214637041092,
-0.004978980403393507,
0.030124468728899956,
0.021231304854154587,
0.05037165433168411,
-0.012717906385660172,
-0.023156603798270226,
-0.00006093591946410015,
-0.016419680789113045,
0.02597770094871521,
-0.030850041657686234,
0.06279236823320389,
-0.03648066893219948,
0.034023478627204895,
-0.013509772717952728,
-0.042723964899778366,
-0.04130403324961662,
0.02758757770061493,
-0.015568723902106285,
-0.022449947893619537,
-0.027128806337714195,
0.024770736694335938,
-0.0013101442018523812,
0.02068447694182396,
-0.05193069204688072,
0.013802135363221169,
-0.006784738507121801,
0.07139220833778381,
-0.05880206078290939,
0.005800824612379074,
-0.02642287127673626,
0.0022630987223237753,
-0.02256542071700096,
-0.021440964192152023,
0.00486383493989706,
-0.03756968304514885,
0.02656874991953373,
0.04897589236497879,
0.015588668175041676,
0.012813245877623558,
-0.053901296108961105,
-0.00705702556297183,
0.012096451595425606,
-0.0687166154384613,
-0.025265585631132126,
0.0008507629972882569,
0.030440514907240868,
0.0154146458953619,
0.07737936824560165,
0.05026176571846008,
-0.05624767020344734,
-0.046691253781318665,
0.04213976114988327,
0.01136118546128273,
-0.0056457254104316235,
-0.026603730395436287,
0.03443051129579544,
0.014773322269320488,
0.05151660367846489,
-0.038498654961586,
0.0015667559346184134,
-0.012892096303403378,
-0.013252167031168938,
0.01286487840116024,
0.0035278412979096174,
0.027737921103835106,
0.01725219562649727,
-0.027662493288517,
-0.020933838561177254,
0.07479926943778992,
0.01640058495104313,
-0.008488226681947708,
-0.009706550277769566,
-0.03497599437832832,
-0.0008065320434980094,
0.004504612646996975,
-0.07668779790401459,
-0.000896724930498749,
0.0011784383095800877,
-0.03162277117371559,
0.07079629600048065,
-0.011420848779380322,
0.006835038773715496,
0.05327492579817772,
0.022348342463374138,
-0.02168450318276882,
0.040639519691467285,
-0.015347057953476906,
0.005135528277605772,
0.028257519006729126,
-0.07285206764936447,
-0.00565022137016058,
-0.03229987993836403,
0.06957656145095825,
-0.07371467351913452,
0.05344971641898155,
0.059384290128946304,
0.013351773843169212,
0.01924845762550831,
-0.022544143721461296,
-0.015658225864171982,
-0.03101981431245804,
-0.046482060104608536,
0.07372867316007614,
-0.014202053658664227,
-0.08492687344551086,
0.08607278019189835,
0.053147245198488235,
-0.07330232113599777,
0.042259640991687775,
0.03382234647870064,
0.017675254493951797,
0.026654744520783424,
0.03826378285884857,
-0.06169601157307625,
0.025752557441592216,
-0.047814030200242996,
0.05343140661716461,
-0.022190505638718605,
-0.024193258956074715,
0.028722306713461876,
-0.02626507543027401,
-0.022162137553095818,
0.039116960018873215,
-0.041833166033029556,
-0.001100085792131722,
0.019506100565195084,
-0.06193136051297188,
-0.048746488988399506,
-0.006702973507344723,
0.03222890570759773,
-0.02755775675177574,
-0.006614221725612879,
-0.014997229911386967,
0.026389164850115776,
0.012455836869776249,
-0.010761173442006111,
-0.04330021142959595,
0.0010039316257461905,
0.024246517568826675,
-0.07090591639280319,
-0.03935012221336365,
0.041528962552547455,
0.016940513625741005,
-0.014386686496436596,
0.020575549453496933,
-0.022875415161252022,
0.011768043972551823,
0.018377747386693954,
-0.0004731637891381979,
-0.0003970001416746527,
-0.05230315774679184,
-0.009120382368564606,
0.0021688833367079496,
0.02479829639196396,
0.037910252809524536,
0.0015773017657920718,
0.007294752635061741,
0.051523834466934204,
0.04610253497958183,
-0.00885120127350092,
-0.04413992166519165,
-0.021492617204785347,
0.05027128383517265,
-0.04483082890510559,
0.025998128578066826,
0.00032176790409721434,
-0.02478846348822117,
-0.042603641748428345,
-0.024788830429315567,
-0.007085352670401335,
0.04893979802727699,
-0.050891321152448654,
0.019526323303580284,
0.017487918958067894,
-0.016307303681969643,
-0.03852493688464165,
-0.0994499921798706,
-0.029767604544758797,
-0.007615700829774141,
-0.019299369305372238,
-0.004502738360315561,
-0.023489519953727722,
0.029241636395454407,
-0.01235610619187355,
-0.050080880522727966,
0.03751801326870918,
0.0418873205780983,
-0.04306861385703087,
0.05800551921129227,
0.03846064209938049,
-0.06446841359138489,
-0.0028105322271585464,
0.04274991527199745,
-0.026753496378660202,
0.02813621051609516,
-0.006350362673401833,
0.008885893039405346,
0.035056374967098236,
0.0223510954529047,
-0.024810252711176872,
-0.02079823613166809,
-0.05301636829972267,
-0.03615596145391464,
-0.019320636987686157,
0.004758124705404043,
0.06357302516698837
] |
BSen/wav2vec2-base-timit-demo-colab | [
"pytorch",
"tensorboard",
"wav2vec2",
"automatic-speech-recognition",
"transformers",
"generated_from_trainer",
"license:apache-2.0"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 4 | null | ---
license: apache-2.0
tags:
- generated_from_trainer
model-index:
- name: wav2vec2-base-timit-demo-colab
results: []
---
<!-- 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.4877
- Wer: 0.4895
## 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: 32
- 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: 10
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Wer |
|:-------------:|:-----:|:----:|:---------------:|:------:|
| 3.6615 | 4.0 | 500 | 1.7423 | 1.0723 |
| 0.8519 | 8.0 | 1000 | 0.4877 | 0.4895 |
### Framework versions
- Transformers 4.11.3
- Pytorch 1.10.0+cu111
- Datasets 1.13.3
- Tokenizers 0.10.3
| [
-0.0324067622423172,
-0.012858448550105095,
-0.019763117656111717,
0.023773204535245895,
0.038853537291288376,
0.02334434539079666,
0.00405894685536623,
0.003960238769650459,
-0.033092349767684937,
0.047073546797037125,
0.03590237349271774,
-0.018723880872130394,
-0.0023193489760160446,
0.034507110714912415,
-0.04015258327126503,
-0.06038466840982437,
-0.033324968069791794,
0.006412767339497805,
-0.0171135775744915,
-0.0007320718723349273,
0.00520662497729063,
-0.014616194181144238,
-0.007456487510353327,
0.029556620866060257,
0.008425419218838215,
0.01775480806827545,
-0.0052362228743731976,
0.01286906935274601,
0.005008700769394636,
-0.07077249884605408,
-0.013223274610936642,
-0.04965309053659439,
-0.05143677443265915,
-0.02951262705028057,
-0.011452686972916126,
0.0018470862414687872,
-0.008005314506590366,
0.027623437345027924,
0.04022210091352463,
0.0465724840760231,
0.021305032074451447,
0.02451789565384388,
-0.02858755551278591,
-0.014637278392910957,
0.06164564937353134,
0.0023326685186475515,
-0.03284092992544174,
-0.015360328368842602,
0.034843385219573975,
-0.05240063741803169,
-0.06956803053617477,
-0.0581168457865715,
-0.019886670634150505,
0.040925122797489166,
-0.017990203574299812,
-0.02606778033077717,
-0.06439849734306335,
-0.006861422676593065,
0.06930326670408249,
-0.04885409027338028,
-0.020542213693261147,
0.01586315780878067,
-0.07072139531373978,
0.025804245844483376,
0.021273590624332428,
-0.02841397188603878,
0.01633518747985363,
-0.030887242406606674,
0.049181245267391205,
0.0004354646662250161,
0.04976213723421097,
-0.012932523153722286,
0.013819217681884766,
-0.08130162954330444,
-0.0038525869604200125,
-0.0074814013205468655,
0.025156060233712196,
0.06335234642028809,
-0.032334595918655396,
0.04334365203976631,
0.02812824957072735,
0.009665940888226032,
0.02981305867433548,
-0.020582491531968117,
0.01972123607993126,
0.04530084505677223,
-0.05320751294493675,
0.03224511072039604,
0.004533879924565554,
0.03870154544711113,
-0.027606597170233727,
-0.020584318786859512,
-0.03218507394194603,
-0.039199016988277435,
-0.015537125989794731,
0.03279101476073265,
0.037417974323034286,
0.013551859185099602,
0.020439745858311653,
0.01895689219236374,
0.0333600677549839,
0.029783274978399277,
-0.026608150452375412,
0.060493387281894684,
-0.01643228530883789,
-0.016371548175811768,
-0.00503383157774806,
-0.01806117407977581,
-0.040333718061447144,
0.02196480892598629,
0.036120105534791946,
-0.024844862520694733,
-0.03225149214267731,
0.03335041180253029,
0.003103947499766946,
0.0007842250633984804,
0.044848959892988205,
-0.0347725972533226,
-0.03197246044874191,
-0.018292658030986786,
0.05414162576198578,
0.02706359140574932,
-0.020571047440171242,
-0.0037022095639258623,
-0.05450313910841942,
0.002342608291655779,
-0.02916819415986538,
-0.047786980867385864,
-0.004002496134489775,
0.014139164239168167,
-0.008441067300736904,
0.045840051025152206,
0.03853902220726013,
-0.061919596046209335,
-0.0019682126585394144,
0.011652388609945774,
-0.04563756659626961,
0.02655484527349472,
0.008631409145891666,
0.08662911504507065,
-0.06901855766773224,
-0.06431003659963608,
0.0054037924855947495,
-0.01558735128492117,
-0.002951411297544837,
0.026251720264554024,
0.01334979198873043,
-0.01575060561299324,
-0.006897525861859322,
-0.01217166893184185,
0.03563737869262695,
-0.06979993730783463,
-0.01493039820343256,
0.06635978072881699,
-0.015879657119512558,
0.04279406741261482,
-0.03382081910967827,
-0.017072034999728203,
0.01316955778747797,
-0.01836184598505497,
-0.018620755523443222,
0.044655609875917435,
0.012095608748495579,
-0.01755554787814617,
-0.019259432330727577,
-0.045624636113643646,
-0.011491016484797001,
0.1056739017367363,
0.0018905001925304532,
-0.01849849708378315,
-0.02893572673201561,
0.028382478281855583,
0.043445028364658356,
0.04401630908250809,
-0.039691515266895294,
0.044416289776563644,
0.05155874788761139,
0.02869551070034504,
-0.0363912470638752,
0.05675559863448143,
0.0366862416267395,
-0.037895623594522476,
-0.05038151890039444,
0.016142645850777626,
0.011960011906921864,
-0.07442531734704971,
0.013843738473951817,
0.03764202818274498,
0.021472526714205742,
-0.035814665257930756,
-0.027486369013786316,
0.04482312127947807,
-0.011644166894257069,
-0.0030115603003650904,
0.017112981528043747,
-0.003311521839350462,
-0.03506669029593468,
0.04089794307947159,
-0.03886478766798973,
-0.005770519375801086,
-0.020020965486764908,
-0.01611914299428463,
-0.009670031256973743,
-0.0067534311674535275,
0.034591738134622574,
0.044689957052469254,
-0.019507428631186485,
0.10412663966417313,
-0.04084911569952965,
-0.004368938039988279,
-0.0059755463153123856,
-0.04905620217323303,
0.018672971054911613,
0.07565540820360184,
0.03526860475540161,
0.07599514722824097,
-0.0055805086158216,
-0.040393196046352386,
0.03994246944785118,
0.0806305781006813,
0.05461782217025757,
-0.007601948454976082,
-0.03581205755472183,
-0.011690893210470676,
0.014630005694925785,
0.039942607283592224,
-0.07280775904655457,
-0.017143456265330315,
0.015775324776768684,
0.04006880894303322,
-0.018496692180633545,
0.036314014345407486,
-0.026652736589312553,
0.03698603808879852,
-0.04945783689618111,
-0.07480596005916595,
0.04930373281240463,
0.021051576361060143,
0.0010372918331995606,
0.02065206691622734,
-0.003864466678351164,
0.004122544080018997,
-0.0070738522335886955,
0.017621466889977455,
-0.007158250547945499,
-0.018201639875769615,
0.018559807911515236,
0.02207208052277565,
0.053723983466625214,
-0.07195176929235458,
0.02663603238761425,
-0.03715198114514351,
0.016571983695030212,
0.047873515635728836,
-0.034410905092954636,
0.03200388699769974,
0.046154800802469254,
0.018620694056153297,
-0.025917991995811462,
0.0045632533729076385,
0.005610601045191288,
0.05312678590416908,
0.02843829058110714,
0.01842953823506832,
0.06688929349184036,
0.02810685895383358,
0.035203129053115845,
0.07175254076719284,
0.030928295105695724,
0.029855776578187943,
0.04270221292972565,
0.08456485718488693,
0.015706269070506096,
-0.016435222700238228,
0.05733819305896759,
-0.06204698607325554,
0.027362795546650887,
-0.03524152562022209,
-0.006775622721761465,
-0.039887093007564545,
-0.007735322695225477,
0.026834802702069283,
-0.0024356821086257696,
-0.009688732214272022,
-0.030980706214904785,
-0.020877493545413017,
-0.03365098685026169,
0.025646332651376724,
-0.005558605771511793,
-0.020728634670376778,
-0.0020347959361970425,
0.004880421329289675,
-0.008305171504616737,
-0.07488726824522018,
-0.009423927403986454,
-0.012926293537020683,
-0.027320560067892075,
-0.006645765155553818,
-0.08478528261184692,
-0.018103141337633133,
-0.07247400283813477,
-0.02926109917461872,
0.03757404536008835,
-0.00242973561398685,
0.007464306894689798,
-0.05209530144929886,
-0.0004897149046882987,
-0.051294755190610886,
-0.055763132870197296,
-0.057237159460783005,
-0.06510553508996964,
-0.026004549115896225,
-0.07938916981220245,
0.034794729202985764,
0.051847219467163086,
0.021230196580290794,
0.0012430371716618538,
0.020094379782676697,
-0.002801082795485854,
-0.013362541794776917,
0.046101149171590805,
0.05354602262377739,
-0.027043789625167847,
-0.06717932969331741,
0.028063196688890457,
-0.014317421242594719,
0.0018404991133138537,
0.004687591455876827,
-0.02448670193552971,
0.10139580070972443,
0.04970262572169304,
0.03255297988653183,
0.030321644619107246,
-0.02524639666080475,
-0.05954904854297638,
-0.06005444750189781,
-0.020969370380043983,
-0.052092913538217545,
-0.01768038421869278,
-0.054879818111658096,
-0.021317731589078903,
-0.03775155171751976,
-0.01748906634747982,
0.027524810284376144,
-0.02245527319610119,
-0.015717806294560432,
0.02242298237979412,
0.03969668224453926,
0.013830317184329033,
0.029875939711928368,
-0.015642929822206497,
-0.06104901060461998,
0.0439210869371891,
0.0015099889133125544,
-0.02579161897301674,
-0.08853872120380402,
0.0001875275920610875,
0.014665994793176651,
0.014631119556725025,
0.008809346705675125,
0.006331537384539843,
0.0897451713681221,
0.00012475081894081086,
-0.02796616591513157,
0.02538377232849598,
-0.02131824940443039,
-0.0004951616865582764,
-0.02753622829914093,
-0.003702811896800995,
-0.016234077513217926,
-0.05379101634025574,
0.01617671735584736,
-0.011299594305455685,
0.04038753733038902,
-0.06937817484140396,
-0.052186787128448486,
-0.016533449292182922,
0.02661755308508873,
0.04210643842816353,
0.005650906823575497,
-0.01499867532402277,
-0.018326951190829277,
-0.056593138724565506,
-0.013721105642616749,
0.0371188260614872,
0.017562057822942734,
0.011967652477324009,
0.04848318174481392,
0.015594761818647385,
-0.025507822632789612,
0.04404380917549133,
0.04012222960591316,
0.07618109881877899,
0.040770404040813446,
-0.04357755556702614,
0.012421293184161186,
-0.025773776695132256,
0.018001507967710495,
-0.0275212861597538,
-0.02551242522895336,
-0.03964386507868767,
-0.1077905148267746,
-0.0343000628054142,
0.005780993495136499,
-0.003441396402195096,
-0.011525117792189121,
0.035991135984659195,
0.012307854369282722,
-0.024964304640889168,
0.00911437626928091,
0.021509012207388878,
0.04956325143575668,
-0.033210232853889465,
0.0560574010014534,
-0.009876743890345097,
0.016370927914977074,
-0.06879699975252151,
0.008119003847241402,
-0.031227918341755867,
-0.008117305114865303,
0.0024426765739917755,
0.0444936603307724,
-0.017621925100684166,
0.05378976836800575,
0.08380752801895142,
0.01679464988410473,
-0.04652433469891548,
0.043755244463682175,
0.06389760226011276,
-0.03921790421009064,
-0.046456802636384964,
0.0212387777864933,
-0.010416826233267784,
-0.04340459406375885,
-0.0008766896207816899,
-0.0024247143883258104,
0.03753954544663429,
0.042390353977680206,
-0.014472771435976028,
0.014642708003520966,
0.008188314735889435,
-0.0037707961164414883,
-0.021616365760564804,
-0.05502248927950859,
-0.04362153261899948,
-0.010606995783746243,
-0.04010196030139923,
0.0285729318857193,
0.03460601344704628,
0.01424161996692419,
0.05588415637612343,
0.03287963941693306,
-0.05363176763057709,
-0.027327552437782288,
0.00860795471817255,
0.025400923565030098,
-0.016137976199388504,
-0.08940862119197845,
-0.03733554482460022,
0.04200655594468117,
0.03758089244365692,
-0.01337527297437191,
-0.06947226077318192,
-0.0029553654603660107,
0.04873986914753914,
-0.05384408310055733,
0.05053124949336052,
0.014095021411776543,
0.044890034943819046,
0.051219161599874496,
-0.0012996376026421785,
0.03752364590764046,
-0.02006424404680729,
0.0006293875630944967,
-0.0012908254284411669,
0.022236071527004242,
-0.024211015552282333,
-0.023034173995256424,
-0.06402578949928284,
0.003484262153506279,
0.05914420261979103,
0.04627542942762375,
0.028170492500066757,
-0.03083312138915062,
-0.033126555383205414,
0.01368319895118475,
0.02713228017091751,
-0.04625330865383148,
0.006854773033410311,
0.01297629252076149,
0.025941193103790283,
-0.035975370556116104,
-0.011596404016017914,
-0.017519157379865646,
-0.006336030084639788,
0.01932165026664734,
0.0044228858314454556,
-0.039738841354846954,
-0.038959454745054245,
0.05184514820575714,
0.02608238160610199,
-0.018017027527093887,
-0.08410529792308807,
0.02207089588046074,
-0.009250475093722343,
-0.0050276280380785465,
0.036594975739717484,
0.02335801161825657,
0.030862048268318176,
0.040478743612766266,
0.02739567682147026,
0.02614961937069893,
-0.02387942187488079,
0.02114032953977585,
-0.035757504403591156,
-0.023288168013095856,
0.00013053804286755621,
-0.029230080544948578,
-0.030593106523156166,
-0.007922152057290077,
-0.05941380560398102,
-0.03367404267191887,
-0.011930732987821102,
0.012577787972986698,
-0.008527888916432858,
-0.008370623923838139,
-0.02080211602151394,
0.06655970215797424,
-0.026386380195617676,
-0.016519907861948013,
-0.04482073336839676,
-0.015003257431089878,
-0.06274405121803284,
-0.04249949753284454,
0.03478919342160225,
0.015508284792304039,
0.06499907374382019,
0.02834344655275345,
0.015657801181077957,
0.01964867115020752,
0.006809620186686516,
-0.02303375117480755,
0.0050025684759020805,
0.003788294503465295,
-0.02327847108244896,
-0.004544148221611977,
0.020294947549700737,
0.010228144936263561,
0.009470387361943722,
-0.03791399300098419,
0.02054326795041561,
0.020565468817949295,
-0.013690287247300148,
-0.025781778618693352,
0.001187559450045228,
0.008045158348977566,
-0.0729515552520752,
-0.024924026802182198,
-0.0027178889140486717,
-0.04607740417122841,
0.011568441055715084,
-0.038757264614105225,
-0.01695980504155159,
0.001343937125056982,
0.022860119119286537,
0.04835018515586853,
-0.026201987639069557,
-0.015530536882579327,
0.014798253774642944,
-0.03186103701591492,
0.0018628006801009178,
-0.05681716278195381,
0.04535568132996559,
-0.02800603024661541,
0.0016522472724318504,
-0.029591215774416924,
0.024864083155989647,
-0.05968840792775154,
0.03729439526796341,
-0.01508528832346201,
-0.0014835697365924716,
-0.021826760843396187,
0.04803837835788727,
-0.03137960284948349,
0.024397846311330795,
0.0028739876579493284,
0.0259171761572361,
-0.06138616055250168,
0.05150928720831871,
-0.0302246306091547,
0.02727477066218853,
-0.033968303352594376,
0.002394434530287981,
-0.03528812527656555,
-0.0037360694259405136,
-0.016702353954315186,
-0.02736072987318039,
0.03522762283682823,
0.057691361755132675,
0.055761612951755524,
0.02311032824218273,
-0.021990487352013588,
-0.028721900656819344,
0.034793414175510406,
-0.0417822003364563,
-0.015429629012942314,
-0.005070785991847515,
-0.0074852267280220985,
-0.003376665525138378,
0.03902139887213707,
0.03714517503976822,
-0.055552463978528976,
-0.06336431950330734,
0.0350169837474823,
0.0009278478100895882,
0.016911061480641365,
0.029889777302742004,
0.02811422199010849,
0.032221268862485886,
0.06289594620466232,
-0.01763540878891945,
0.010677301324903965,
-0.007636123336851597,
-0.03315840661525726,
0.03994470462203026,
-0.025366103276610374,
0.03553459048271179,
0.014217824675142765,
-0.03273748606443405,
-0.011596639640629292,
0.044030554592609406,
0.033739086240530014,
0.03831609711050987,
-0.003988957963883877,
-0.038055870682001114,
0.014064555987715721,
-0.005492939613759518,
-0.05654127150774002,
0.028328919783234596,
-0.005269275978207588,
-0.030018581077456474,
0.07401951402425766,
-0.029885420575737953,
0.012337524443864822,
0.040538590401411057,
0.03957956284284592,
-0.016864538192749023,
0.05591884255409241,
-0.030535398051142693,
0.006124246399849653,
0.070587158203125,
-0.06951171904802322,
0.0027545897755771875,
-0.0033869880717247725,
0.07162873446941376,
-0.07311616837978363,
0.025944234803318977,
0.0577675886452198,
-0.0020086595322936773,
0.020569095388054848,
-0.04655126854777336,
-0.03466065227985382,
0.01306956633925438,
-0.04819592460989952,
0.09646909683942795,
0.0024329740554094315,
-0.05995027348399162,
0.04603040590882301,
0.015241274610161781,
-0.06928486377000809,
0.04644489288330078,
0.023379148915410042,
0.03656461089849472,
0.033604711294174194,
0.0485503189265728,
-0.04311307892203331,
0.013913566246628761,
-0.04423854500055313,
0.032457493245601654,
-0.06278199702501297,
-0.002856876701116562,
0.03471909835934639,
-0.03685617819428444,
-0.03576447069644928,
0.039580926299095154,
-0.01612827740609646,
-0.015469353646039963,
0.03908907622098923,
-0.05358625203371048,
-0.03316916897892952,
0.010312764905393124,
0.029193511232733727,
-0.0372486412525177,
0.01546324323862791,
-0.039807818830013275,
-0.008036026731133461,
0.00705922394990921,
0.004467696417123079,
-0.025251153856515884,
-0.011419127695262432,
0.010369103401899338,
-0.041570037603378296,
-0.04906369745731354,
0.032110173255205154,
-0.0165423434227705,
-0.013510802760720253,
0.04678173363208771,
0.016627013683319092,
0.005399902816861868,
0.02554161660373211,
0.010506176389753819,
0.027203062549233437,
-0.035825058817863464,
-0.029698757454752922,
0.0012050886871293187,
-0.0024737073108553886,
0.03505986928939819,
0.01854703016579151,
0.04480902478098869,
0.006289835087954998,
-0.0023605190217494965,
-0.001066729542799294,
-0.0250410083681345,
-0.026173796504735947,
0.017394745722413063,
-0.03534539416432381,
0.006620884872972965,
0.010082782246172428,
-0.04477306455373764,
-0.06414498388767242,
-0.019059699028730392,
-0.023875929415225983,
0.009353222325444221,
-0.06096064671874046,
-0.014216070994734764,
0.052202679216861725,
-0.021629897877573967,
-0.05962080880999565,
-0.0721912607550621,
-0.038101859390735626,
-0.05184823274612427,
0.026130709797143936,
0.032861266285181046,
-0.03517621383070946,
0.04049566760659218,
-0.05046732351183891,
-0.04884869605302811,
0.03858086094260216,
0.021102746948599815,
-0.02909601666033268,
0.03232862800359726,
0.04325982928276062,
-0.05288923904299736,
-0.00043389745405875146,
0.047721147537231445,
-0.04267873242497444,
0.013060991652309895,
0.017276236787438393,
0.02304118312895298,
0.034941114485263824,
0.00413095997646451,
-0.060236651450395584,
-0.0340554341673851,
-0.0601838082075119,
-0.031356386840343475,
-0.04600350931286812,
-0.0010329937795177102,
0.043898239731788635
] |
Babelscape/rebel-large | [
"pytorch",
"safetensors",
"bart",
"text2text-generation",
"en",
"dataset:Babelscape/rebel-dataset",
"transformers",
"seq2seq",
"relation-extraction",
"license:cc-by-nc-sa-4.0",
"model-index",
"autotrain_compatible",
"has_space"
] | text2text-generation | {
"architectures": [
"BartForConditionalGeneration"
],
"model_type": "bart",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 9,458 | null | ---
language:
- en
widget:
- text: "Punta Cana is a resort town in the municipality of Higuey, in La Altagracia Province, the eastern most province of the Dominican Republic"
tags:
- seq2seq
- relation-extraction
datasets:
- Babelscape/rebel-dataset
model-index:
- name: REBEL
results:
- task:
name: Relation Extraction
type: Relation-Extraction
dataset:
name: "CoNLL04"
type: CoNLL04
metrics:
- name: RE+ Macro F1
type: re+ macro f1
value: 76.65
- task:
name: Relation Extraction
type: Relation-Extraction
dataset:
name: "NYT"
type: NYT
metrics:
- name: F1
type: f1
value: 93.4
license: cc-by-nc-sa-4.0
---
[](https://paperswithcode.com/sota/relation-extraction-on-nyt?p=rebel-relation-extraction-by-end-to-end)
[](https://paperswithcode.com/sota/relation-extraction-on-conll04?p=rebel-relation-extraction-by-end-to-end)
[](https://paperswithcode.com/sota/joint-entity-and-relation-extraction-on-3?p=rebel-relation-extraction-by-end-to-end)
[](https://paperswithcode.com/sota/relation-extraction-on-ade-corpus?p=rebel-relation-extraction-by-end-to-end)
[](https://paperswithcode.com/sota/relation-extraction-on-re-tacred?p=rebel-relation-extraction-by-end-to-end)
# REBEL <img src="https://i.ibb.co/qsLzNqS/hf-rebel.png" width="30" alt="hf-rebel" border="0" style="display:inline; white-space:nowrap;">: Relation Extraction By End-to-end Language generation
This is the model card for the Findings of EMNLP 2021 paper [REBEL: Relation Extraction By End-to-end Language generation](https://github.com/Babelscape/rebel/blob/main/docs/EMNLP_2021_REBEL__Camera_Ready_.pdf). We present a new linearization approach and a reframing of Relation Extraction as a seq2seq task. The paper can be found [here](https://github.com/Babelscape/rebel/blob/main/docs/EMNLP_2021_REBEL__Camera_Ready_.pdf). If you use the code, please reference this work in your paper:
@inproceedings{huguet-cabot-navigli-2021-rebel-relation,
title = "{REBEL}: Relation Extraction By End-to-end Language generation",
author = "Huguet Cabot, Pere-Llu{\'\i}s and
Navigli, Roberto",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
month = nov,
year = "2021",
address = "Punta Cana, Dominican Republic",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.findings-emnlp.204",
pages = "2370--2381",
abstract = "Extracting relation triplets from raw text is a crucial task in Information Extraction, enabling multiple applications such as populating or validating knowledge bases, factchecking, and other downstream tasks. However, it usually involves multiple-step pipelines that propagate errors or are limited to a small number of relation types. To overcome these issues, we propose the use of autoregressive seq2seq models. Such models have previously been shown to perform well not only in language generation, but also in NLU tasks such as Entity Linking, thanks to their framing as seq2seq tasks. In this paper, we show how Relation Extraction can be simplified by expressing triplets as a sequence of text and we present REBEL, a seq2seq model based on BART that performs end-to-end relation extraction for more than 200 different relation types. We show our model{'}s flexibility by fine-tuning it on an array of Relation Extraction and Relation Classification benchmarks, with it attaining state-of-the-art performance in most of them.",
}
The original repository for the paper can be found [here](https://github.com/Babelscape/rebel)
Be aware that the inference widget at the right does not output special tokens, which are necessary to distinguish the subject, object and relation types. For a demo of REBEL and its pre-training dataset check the [Spaces demo](https://huggingface.co/spaces/Babelscape/rebel-demo).
## Pipeline usage
```python
from transformers import pipeline
triplet_extractor = pipeline('text2text-generation', model='Babelscape/rebel-large', tokenizer='Babelscape/rebel-large')
# We need to use the tokenizer manually since we need special tokens.
extracted_text = triplet_extractor.tokenizer.batch_decode([triplet_extractor("Punta Cana is a resort town in the municipality of Higuey, in La Altagracia Province, the eastern most province of the Dominican Republic", return_tensors=True, return_text=False)[0]["generated_token_ids"]])
print(extracted_text[0])
# Function to parse the generated text and extract the triplets
def extract_triplets(text):
triplets = []
relation, subject, relation, object_ = '', '', '', ''
text = text.strip()
current = 'x'
for token in text.replace("<s>", "").replace("<pad>", "").replace("</s>", "").split():
if token == "<triplet>":
current = 't'
if relation != '':
triplets.append({'head': subject.strip(), 'type': relation.strip(),'tail': object_.strip()})
relation = ''
subject = ''
elif token == "<subj>":
current = 's'
if relation != '':
triplets.append({'head': subject.strip(), 'type': relation.strip(),'tail': object_.strip()})
object_ = ''
elif token == "<obj>":
current = 'o'
relation = ''
else:
if current == 't':
subject += ' ' + token
elif current == 's':
object_ += ' ' + token
elif current == 'o':
relation += ' ' + token
if subject != '' and relation != '' and object_ != '':
triplets.append({'head': subject.strip(), 'type': relation.strip(),'tail': object_.strip()})
return triplets
extracted_triplets = extract_triplets(extracted_text[0])
print(extracted_triplets)
```
## Model and Tokenizer using transformers
```python
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
def extract_triplets(text):
triplets = []
relation, subject, relation, object_ = '', '', '', ''
text = text.strip()
current = 'x'
for token in text.replace("<s>", "").replace("<pad>", "").replace("</s>", "").split():
if token == "<triplet>":
current = 't'
if relation != '':
triplets.append({'head': subject.strip(), 'type': relation.strip(),'tail': object_.strip()})
relation = ''
subject = ''
elif token == "<subj>":
current = 's'
if relation != '':
triplets.append({'head': subject.strip(), 'type': relation.strip(),'tail': object_.strip()})
object_ = ''
elif token == "<obj>":
current = 'o'
relation = ''
else:
if current == 't':
subject += ' ' + token
elif current == 's':
object_ += ' ' + token
elif current == 'o':
relation += ' ' + token
if subject != '' and relation != '' and object_ != '':
triplets.append({'head': subject.strip(), 'type': relation.strip(),'tail': object_.strip()})
return triplets
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Babelscape/rebel-large")
model = AutoModelForSeq2SeqLM.from_pretrained("Babelscape/rebel-large")
gen_kwargs = {
"max_length": 256,
"length_penalty": 0,
"num_beams": 3,
"num_return_sequences": 3,
}
# Text to extract triplets from
text = 'Punta Cana is a resort town in the municipality of Higüey, in La Altagracia Province, the easternmost province of the Dominican Republic.'
# Tokenizer text
model_inputs = tokenizer(text, max_length=256, padding=True, truncation=True, return_tensors = 'pt')
# Generate
generated_tokens = model.generate(
model_inputs["input_ids"].to(model.device),
attention_mask=model_inputs["attention_mask"].to(model.device),
**gen_kwargs,
)
# Extract text
decoded_preds = tokenizer.batch_decode(generated_tokens, skip_special_tokens=False)
# Extract triplets
for idx, sentence in enumerate(decoded_preds):
print(f'Prediction triplets sentence {idx}')
print(extract_triplets(sentence))
``` | [
-0.010500592179596424,
-0.03242766112089157,
-0.013916089199483395,
0.04477895051240921,
0.054918136447668076,
0.02090439945459366,
-0.01986108534038067,
0.010226966813206673,
-0.04634961858391762,
0.04872405156493187,
-0.008534769527614117,
-0.0161061342805624,
0.012008367106318474,
0.017415212467312813,
-0.02950301766395569,
-0.03467277064919472,
-0.007440813817083836,
0.0012039446737617254,
-0.064708411693573,
-0.00838247500360012,
0.01440986804664135,
0.017246991395950317,
0.007687711622565985,
0.0327753871679306,
-0.008547637611627579,
0.02752932719886303,
0.02066492661833763,
0.0006426640902645886,
0.033072177320718765,
-0.062350694090127945,
-0.01321228314191103,
-0.03597739338874817,
-0.011553746648132801,
-0.030255969613790512,
-0.035465169697999954,
-0.018619339913129807,
0.011408450081944466,
-0.022987116128206253,
0.008966702967882156,
0.0667731836438179,
-0.011421357281506062,
0.053281866014003754,
-0.0008897128864191473,
-0.03956048563122749,
0.03263809531927109,
0.021523384377360344,
-0.04196326807141304,
-0.023175423964858055,
0.020642034709453583,
-0.015169032849371433,
-0.08624505251646042,
-0.07430870085954666,
-0.027632122859358788,
0.003858433337882161,
-0.025092242285609245,
-0.014771545305848122,
-0.07335007935762405,
0.01864347793161869,
0.04721180349588394,
-0.060310058295726776,
-0.04119213670492172,
-0.0010379141895100474,
-0.08197557926177979,
-0.00472403597086668,
0.03006068617105484,
-0.03654634580016136,
-0.003442924004048109,
-0.027857350185513496,
0.01477847620844841,
-0.016391286626458168,
0.043103430420160294,
-0.03318561613559723,
0.01051262766122818,
-0.08388632535934448,
-0.019727274775505066,
-0.0029597317334264517,
0.025924518704414368,
0.035713762044906616,
-0.02857201360166073,
0.020852865651249886,
0.04232335463166237,
-0.021881716325879097,
0.023793430998921394,
-0.02409939281642437,
-0.0064607528038322926,
0.034851301461458206,
-0.028743812814354897,
-0.011389483697712421,
0.02457411028444767,
0.04269514977931976,
-0.031064804643392563,
-0.01175974402576685,
0.014334308914840221,
-0.03394525498151779,
0.008132110349833965,
0.041924308985471725,
0.05321134254336357,
-0.011173618026077747,
0.05721147358417511,
0.010940427891910076,
0.0071981665678322315,
0.037723977118730545,
-0.0296623557806015,
0.04683508723974228,
-0.011692234314978123,
-0.019089648500084877,
-0.004160499200224876,
-0.023972658440470695,
-0.0426611565053463,
0.015241854824125767,
0.025866657495498657,
-0.05169796571135521,
-0.05273710936307907,
0.027795515954494476,
0.00331646460108459,
-0.021074144169688225,
0.02612316980957985,
-0.04753856733441353,
-0.034899234771728516,
-0.056586410850286484,
0.05035582184791565,
0.03214623034000397,
-0.027246015146374702,
0.003780847182497382,
-0.05907605588436127,
-0.005595802329480648,
-0.07115482538938522,
-0.010851369239389896,
-0.025034872815012932,
0.01119720283895731,
0.011999985203146935,
0.035093192011117935,
0.022871458902955055,
-0.07001602649688721,
0.011202785186469555,
0.0019833522383123636,
-0.05443912371993065,
0.025989238172769547,
0.026041734963655472,
0.09072943031787872,
-0.06505837291479111,
-0.046386513859033585,
0.007817266508936882,
0.004946182947605848,
-0.008891867473721504,
0.0013760300353169441,
-0.002305870410054922,
-0.038285695016384125,
-0.024066414684057236,
-0.026657268404960632,
0.05256534740328789,
-0.06751096248626709,
0.006518544163554907,
0.026620643213391304,
-0.007205297239124775,
0.031680069863796234,
-0.021298212930560112,
-0.013581532984972,
-0.009995732456445694,
-0.018260285258293152,
-0.005958655849099159,
0.04536353051662445,
-0.004507969133555889,
-0.020170753821730614,
-0.052664853632450104,
-0.02576962113380432,
-0.03781752288341522,
0.08025489002466202,
-0.011616243049502373,
-0.007948928512632847,
-0.04531290754675865,
0.03311726450920105,
0.04133688285946846,
0.004509474616497755,
0.014795280992984772,
0.035228148102760315,
0.046573810279369354,
0.06288673728704453,
-0.009611253626644611,
0.055372245609760284,
-0.0014414992183446884,
-0.04419207200407982,
-0.05837520956993103,
0.01690850779414177,
0.03720857575535774,
-0.035430531948804855,
0.04041890427470207,
0.05254286155104637,
0.02288047783076763,
-0.02335953153669834,
0.009081833995878696,
0.04056273773312569,
-0.006376953795552254,
0.018388781696558,
-0.024134835228323936,
-0.010618495754897594,
-0.044378865510225296,
0.03730703890323639,
-0.036762870848178864,
0.012175600044429302,
-0.005901554599404335,
-0.02917851321399212,
0.007542773615568876,
0.02449476718902588,
0.019115041941404343,
0.02220079116523266,
-0.009750407189130783,
0.07749735563993454,
-0.015527615323662758,
0.006588938646018505,
-0.05125607177615166,
-0.06552491337060928,
0.004659564699977636,
0.039684098213911057,
0.012745046056807041,
0.04606166109442711,
-0.008059515617787838,
-0.02010807767510414,
0.012200902216136456,
0.04510527476668358,
0.015570494346320629,
0.05682140216231346,
-0.03106512315571308,
0.02702033519744873,
0.02851274237036705,
0.023759955540299416,
-0.040851350873708725,
-0.03145600110292435,
-0.0025300343986600637,
0.05437866970896721,
-0.06199805065989494,
-0.0008534467779099941,
-0.00690089538693428,
0.035333067178726196,
-0.06391194462776184,
-0.05880109965801239,
0.05478968471288681,
0.048540759831666946,
-0.0003332673804834485,
0.03381292521953583,
-0.019591670483350754,
0.01289940346032381,
0.016487257555127144,
0.023406697437167168,
0.0010668439790606499,
-0.020613932982087135,
0.006102581508457661,
-0.011483334004878998,
0.04532288387417793,
-0.05962787941098213,
0.019646504893898964,
-0.0023483308032155037,
0.013206111267209053,
0.05699346959590912,
-0.025248652324080467,
-0.0027416583616286516,
0.03841716796159744,
0.014602204784750938,
-0.05760204419493675,
-0.006114189513027668,
0.019090965390205383,
0.00042005357681773603,
0.025143444538116455,
-0.007682614028453827,
0.06866946071386337,
-0.010680380277335644,
0.043742597103118896,
0.10705527663230896,
0.033061519265174866,
-0.02157364971935749,
0.032710298895835876,
0.05153486505150795,
-0.001504397252574563,
-0.017734749242663383,
0.051165372133255005,
-0.02655625343322754,
0.022550242021679878,
-0.05970947444438934,
0.0023881294764578342,
-0.014978877268731594,
-0.03015449084341526,
0.024325063452124596,
0.00852381531149149,
-0.01979508064687252,
0.01812082715332508,
-0.0358181856572628,
0.006222298834472895,
0.03300833702087402,
-0.016033295542001724,
-0.00877052266150713,
0.02138718031346798,
-0.019706057384610176,
0.017496909946203232,
-0.03154453635215759,
-0.025699367746710777,
-0.0198996439576149,
-0.019815146923065186,
-0.023820815607905388,
-0.07471206039190292,
-0.021415702998638153,
-0.06062875688076019,
0.0011935982620343566,
0.04319492354989052,
0.0031062860507518053,
0.007597228512167931,
-0.030635105445981026,
0.007157525047659874,
-0.04800574854016304,
-0.03798721730709076,
-0.03654855117201805,
-0.03300541639328003,
-0.03576193004846573,
-0.06561366468667984,
0.022880613803863525,
0.020587461069226265,
0.03591194003820419,
0.01853838749229908,
0.011758511886000633,
-0.025855544954538345,
-0.025056464597582817,
0.019092928618192673,
0.05798064544796944,
-0.014890152961015701,
-0.028054477646946907,
0.019546957686543465,
0.0082331458106637,
0.012915074825286865,
-0.008012687787413597,
-0.03652431443333626,
0.07488492876291275,
0.09473279863595963,
0.04986320063471794,
0.037696100771427155,
0.0007227605092339218,
-0.04684501141309738,
-0.027535343542695045,
-0.029559047892689705,
-0.043687477707862854,
-0.01872986927628517,
-0.03858745098114014,
-0.048067521303892136,
0.005016343668103218,
-0.02738317847251892,
-0.005176405888050795,
0.024968987330794334,
-0.00024821609258651733,
0.07291515171527863,
0.03015647456049919,
0.05197359248995781,
0.0619904100894928,
-0.03281679376959801,
-0.037003472447395325,
0.07511083036661148,
0.021943166851997375,
0.019944405183196068,
-0.051556218415498734,
-0.024465644732117653,
0.06196807324886322,
0.003362945979461074,
0.024276766926050186,
-0.015280600637197495,
0.07183269411325455,
0.021279705688357353,
-0.01385266799479723,
0.02875996194779873,
-0.01625385880470276,
-0.05786297842860222,
0.0018492209492251277,
-0.010375370271503925,
-0.04193231835961342,
-0.0364716574549675,
-0.0303201824426651,
-0.011369278654456139,
0.058921605348587036,
-0.033998433500528336,
-0.05218900367617607,
0.008332822471857071,
0.020686643198132515,
0.018561266362667084,
0.03254849091172218,
-0.058741167187690735,
-0.028328174725174904,
-0.06063668057322502,
-0.01038864254951477,
0.01201796717941761,
-0.00992074515670538,
-0.011893066577613354,
0.05980151519179344,
0.02238135226070881,
-0.022697487846016884,
0.03383026272058487,
0.02278219908475876,
0.038406290113925934,
-0.0023187140468508005,
-0.040412113070487976,
0.009515260346233845,
-0.01266116090118885,
-0.011993126012384892,
0.01512832846492529,
-0.00318274088203907,
-0.06498485803604126,
-0.06001293286681175,
-0.013505621813237667,
0.015379165299236774,
0.001206653076224029,
-0.01688627153635025,
0.03089449740946293,
-0.003786672605201602,
-0.007947873324155807,
0.005142388865351677,
0.010581505484879017,
0.04103221371769905,
-0.0548575296998024,
0.048825621604919434,
-0.014092647470533848,
0.015699585899710655,
-0.08468049019575119,
0.031842831522226334,
-0.0017306338995695114,
-0.00521982554346323,
0.003516080556437373,
0.057551030069589615,
-0.0029626896139234304,
0.022511983290314674,
0.053567130118608475,
0.004830181133002043,
-0.023469513282179832,
0.04112611338496208,
0.025640200823545456,
-0.05044693872332573,
-0.08077581971883774,
0.0003574649745132774,
-0.022231899201869965,
-0.012297507375478745,
0.02393936924636364,
-0.03871852532029152,
0.02200724184513092,
0.027977902442216873,
0.014971434138715267,
-0.006124199368059635,
0.007733258418738842,
-0.03229042887687683,
-0.05207674577832222,
-0.037716615945100784,
-0.02686930075287819,
0.006548835430294275,
-0.014435607008635998,
-0.0017971673514693975,
0.07138683646917343,
0.02274247258901596,
0.07433874160051346,
0.03944753482937813,
-0.02587258256971836,
-0.06374175101518631,
0.02948705665767193,
0.032645177096128464,
-0.05222069472074509,
-0.06445229053497314,
-0.04930219426751137,
0.04945167154073715,
0.012673944234848022,
-0.0100249033421278,
-0.0997527465224266,
0.030836058780550957,
0.0661969929933548,
-0.03374683856964111,
0.045979093760252,
0.007016508374363184,
0.07051405310630798,
0.03228389844298363,
0.003708562580868602,
0.04386503994464874,
-0.05505300685763359,
0.02893899567425251,
-0.01685740426182747,
0.06040538102388382,
-0.013815844431519508,
-0.025049708783626556,
-0.03334113582968712,
0.038382239639759064,
0.018843868747353554,
0.051528122276067734,
0.012162595987319946,
-0.042021043598651886,
-0.056050729006528854,
-0.014723735861480236,
0.0474911704659462,
-0.049474626779556274,
-0.018793802708387375,
0.022570880129933357,
0.018720261752605438,
-0.0649498775601387,
-0.04465300962328911,
0.006123324390500784,
0.01271876785904169,
0.04999293014407158,
0.00016883843636605889,
-0.04970620945096016,
-0.051330991089344025,
0.00886950921267271,
-0.01911860518157482,
-0.018383381888270378,
-0.08627023547887802,
0.018668675795197487,
-0.023550428450107574,
0.03556755185127258,
0.047793734818696976,
0.03882746770977974,
0.04117260128259659,
0.045700669288635254,
0.013509691692888737,
0.02021670527756214,
-0.04452798515558243,
0.0521426796913147,
-0.03609178587794304,
-0.008703037165105343,
0.018853018060326576,
-0.04603378847241402,
-0.03438146784901619,
-0.060931459069252014,
-0.028670083731412888,
-0.03799603134393692,
-0.02453078329563141,
0.059986043721437454,
0.01877848617732525,
0.004105258267372847,
-0.034165967255830765,
0.0418519452214241,
0.010864184238016605,
-0.027618519961833954,
-0.02783021330833435,
-0.022482803091406822,
-0.0812561884522438,
-0.05746695026755333,
-0.007291574031114578,
0.006150369066745043,
0.03593159094452858,
-0.007946019992232323,
0.024721574038267136,
0.018471959978342056,
0.019183702766895294,
-0.032872896641492844,
0.02554955706000328,
0.003440183587372303,
-0.03606852889060974,
-0.0459909550845623,
0.0022086037788540125,
0.022234318777918816,
0.05883951112627983,
-0.033687058836221695,
0.025576865300536156,
0.026444360613822937,
-0.05858394876122475,
-0.014442079700529575,
0.027745187282562256,
0.01721624657511711,
-0.07492570579051971,
-0.010947344824671745,
-0.00782052706927061,
-0.017623746767640114,
0.06286120414733887,
-0.034704532474279404,
-0.03230973705649376,
0.004258882720023394,
0.013739215210080147,
0.027718396857380867,
-0.0076240478083491325,
-0.00958289299160242,
0.029435327276587486,
0.00022993652964942157,
0.029719293117523193,
-0.05980081483721733,
0.058353494852781296,
-0.021731814369559288,
0.0008203492034226656,
-0.008105488494038582,
-0.02002444863319397,
-0.0623486302793026,
0.058541975915431976,
-0.01587246172130108,
-0.03812934458255768,
-0.016894498839974403,
0.03109046071767807,
-0.010281942784786224,
0.03674491494894028,
-0.01428249105811119,
-0.007802705280482769,
-0.007379311602562666,
0.048469655215740204,
-0.055259931832551956,
-0.004711392801254988,
-0.02827838435769081,
0.007323843892663717,
-0.05219913646578789,
0.01573842018842697,
-0.014071355573832989,
-0.06639377027750015,
0.035877928137779236,
0.03950095176696777,
0.030400576069951057,
0.03280384838581085,
-0.038209497928619385,
0.013671842403709888,
-0.0004017288738396019,
-0.04990829527378082,
-0.02171645499765873,
-0.005356035195291042,
0.008626958355307579,
0.008309590630233288,
0.04475988820195198,
0.07129412144422531,
-0.042218390852212906,
-0.04701334983110428,
0.04880515858530998,
0.018227923661470413,
-0.0047266921028494835,
-0.0336432009935379,
0.02017039991915226,
0.0314575619995594,
0.04295272380113602,
-0.04395014047622681,
0.016698352992534637,
-0.01588987372815609,
-0.04819796606898308,
0.02286481112241745,
-0.004522835370153189,
0.009169138967990875,
0.005362094845622778,
-0.03601003810763359,
-0.017650427296757698,
0.08731655031442642,
0.019370337948203087,
0.014572237618267536,
-0.030955202877521515,
-0.006999980192631483,
0.011579831130802631,
-0.013307186774909496,
-0.05074593797326088,
0.017082298174500465,
0.010838456451892853,
-0.05240872874855995,
0.08263743668794632,
-0.02218089997768402,
0.007891323417425156,
0.038878876715898514,
0.023493900895118713,
-0.017241090536117554,
0.01802767440676689,
0.005976154934614897,
0.03143961727619171,
0.037023499608039856,
-0.08202674239873886,
-0.0008984493906609714,
-0.021868515759706497,
0.05284823849797249,
-0.08074960112571716,
0.041479360312223434,
0.04693015664815903,
0.0036988595966249704,
0.01669401116669178,
0.000650415604468435,
-0.03851330280303955,
0.021191315725445747,
-0.05754344165325165,
0.06493605673313141,
-0.00478086294606328,
-0.06694475561380386,
0.07743723690509796,
0.018146496266126633,
-0.07943989336490631,
0.01628846302628517,
0.022609442472457886,
0.022615035995841026,
0.03138240799307823,
0.03879814222455025,
-0.08163758367300034,
0.011355999857187271,
-0.025692937895655632,
0.03985242545604706,
-0.03202035278081894,
-0.01111095305532217,
-0.001847891602665186,
-0.026024846360087395,
-0.018516162410378456,
0.04355267062783241,
-0.027760770171880722,
-0.018004074692726135,
0.004087141249328852,
-0.046766411513090134,
-0.0682954266667366,
-0.00012630342098418623,
0.03636520355939865,
-0.03025251068174839,
-0.033656880259513855,
-0.041985515505075455,
0.034843336790800095,
0.01441765297204256,
0.015445682220160961,
-0.04613282158970833,
-0.030911242589354515,
0.026369089260697365,
-0.08940297365188599,
-0.0235610194504261,
0.02870096266269684,
0.004247650504112244,
-0.006832409650087357,
0.010964293032884598,
0.01558208279311657,
0.007276878692209721,
0.046183306723833084,
-0.021897146478295326,
0.012775208801031113,
-0.05887744203209877,
0.006996882148087025,
0.04077308624982834,
0.007832101546227932,
0.024519529193639755,
-0.026065824553370476,
0.046892862766981125,
0.027200577780604362,
0.04945164918899536,
-0.00663268007338047,
-0.028405338525772095,
-0.0073882779106497765,
0.020556824281811714,
-0.06375503540039062,
0.0272452961653471,
0.012004440650343895,
-0.06291711330413818,
-0.03424987196922302,
-0.02115260623395443,
0.0026878812350332737,
-0.006261808797717094,
-0.04726995900273323,
0.017955126240849495,
0.017500678077340126,
-0.005018134601414204,
-0.034270044416189194,
-0.09346360713243484,
-0.03046153113245964,
-0.0539560429751873,
0.009266751818358898,
0.031396251171827316,
-0.05545510724186897,
0.006991942413151264,
-0.04821770638227463,
-0.06808971613645554,
0.02433736063539982,
0.0038708460051566362,
-0.0382033996284008,
0.05169214308261871,
0.06443087756633759,
-0.029904725030064583,
0.036559320986270905,
0.038906440138816833,
-0.025665590539574623,
0.03913644328713417,
-0.0005363889504224062,
0.006569849327206612,
0.03064209409058094,
0.018857425078749657,
-0.032800666987895966,
-0.04806502163410187,
-0.057505931705236435,
-0.02307434193789959,
-0.03571529686450958,
0.00005260802572593093,
0.02728641964495182
] |
Babysittingyoda/DialoGPT-small-familyguy | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 13 | null | ---
tags:
- conversational
---
#A Peter DialoGPT Model | [
-0.036111779510974884,
0.03164803609251976,
0.015021933242678642,
0.01589340716600418,
0.015772666782140732,
0.017661171033978462,
0.0038279264699667692,
0.0286259762942791,
-0.014450727961957455,
0.017371106892824173,
0.03454577550292015,
-0.03121502697467804,
0.00861534383147955,
0.03184342756867409,
-0.028634749352931976,
-0.029257362708449364,
-0.03593601658940315,
0.00484117865562439,
-0.027186691761016846,
-0.020073994994163513,
0.03133999928832054,
0.0050162444822490215,
-0.03262585401535034,
0.027564335614442825,
-0.005784128792583942,
0.03232590854167938,
-0.0033842953853309155,
0.012266358360648155,
0.018222806975245476,
-0.03371233865618706,
0.005153158213943243,
-0.03678276017308235,
-0.01988350600004196,
-0.022222500294446945,
-0.026286056265234947,
-0.04289718717336655,
0.0200957078486681,
-0.02127702906727791,
-0.002558377804234624,
0.03915790840983391,
-0.0268758125603199,
-0.0013673037756234407,
-0.00052897963905707,
-0.038177620619535446,
0.06797821819782257,
-0.0066917636431753635,
-0.04775918275117874,
-0.023494161665439606,
0.025116851553320885,
-0.028438134118914604,
-0.05429482460021973,
-0.07422278821468353,
-0.06049787998199463,
-0.02216228097677231,
0.012383700348436832,
-0.06197122484445572,
-0.06357908993959427,
-0.0025072188582271338,
0.10047482699155807,
-0.010195805691182613,
-0.002138042589649558,
0.009618953801691532,
-0.07624806463718414,
0.008765717968344688,
0.023310182616114616,
-0.08059326559305191,
0.019963562488555908,
-0.047225985676050186,
0.021884240210056305,
-0.029538162052631378,
0.05291133001446724,
-0.05242350697517395,
0.02239483967423439,
-0.07882773131132126,
-0.0073875924572348595,
0.006820415146648884,
0.04779602959752083,
0.052492085844278336,
-0.035167962312698364,
0.05503077432513237,
0.03438177332282066,
0.01268318947404623,
0.06615129113197327,
0.004661120939999819,
-0.037406012415885925,
0.04865671694278717,
-0.04260799661278725,
0.013403985649347305,
0.0006716170464642346,
0.027448076754808426,
-0.021433638408780098,
-0.06081732362508774,
-0.03395665064454079,
-0.008661641739308834,
0.017388908192515373,
0.03641854226589203,
0.01785748265683651,
-0.027469806373119354,
0.02380065619945526,
0.03582444041967392,
0.02290230430662632,
0.04535456746816635,
-0.025758270174264908,
0.04044555872678757,
0.0008029929012991488,
0.030366284772753716,
0.031019054353237152,
-0.020370367914438248,
-0.05475028231739998,
0.01991967484354973,
0.012600943446159363,
-0.048622388392686844,
-0.027901075780391693,
0.04797227680683136,
0.009710892103612423,
0.015458955429494381,
0.06612534821033478,
-0.032637275755405426,
-0.024170098826289177,
-0.06232118234038353,
0.044562868773937225,
-0.009678344242274761,
-0.010759394615888596,
0.005351741798222065,
-0.047951240092515945,
-0.004446327220648527,
-0.05109709873795509,
-0.011955859139561653,
-0.010448007844388485,
0.0014156389515846968,
0.025179821997880936,
0.015667254105210304,
-0.0221572145819664,
-0.06039348617196083,
0.006468318402767181,
0.03719056397676468,
-0.06446754932403564,
0.005753833334892988,
0.04473799467086792,
0.08514616638422012,
-0.08225502818822861,
-0.028782689943909645,
-0.011982802301645279,
0.013609311543405056,
-0.031103964895009995,
-0.018962781876325607,
0.01035219244658947,
-0.007066172547638416,
-0.03812164440751076,
-0.008271845057606697,
0.027091341093182564,
-0.03596678376197815,
-0.003133968682959676,
0.044249773025512695,
0.011654820293188095,
0.027303775772452354,
-0.03382572904229164,
0.004520393908023834,
-0.004515363834798336,
-0.041379962116479874,
-0.06962020695209503,
0.04935864731669426,
-0.03749649226665497,
-0.04553522914648056,
-0.04378360137343407,
-0.02312849462032318,
0.011726045049726963,
0.062332816421985626,
0.017563333734869957,
-0.021109536290168762,
-0.03298212215304375,
0.025266675278544426,
0.0565352737903595,
0.05303121358156204,
-0.02746126428246498,
0.033548589795827866,
0.05323437973856926,
0.008494256995618343,
-0.041140228509902954,
0.07234939932823181,
0.0014236491406336427,
-0.02224079519510269,
-0.055477324873209,
-0.0031265835277736187,
0.03941235691308975,
-0.009736395440995693,
0.028809860348701477,
0.03900178521871567,
-0.023149413987994194,
-0.04212186112999916,
0.0031332767102867365,
0.04375850036740303,
-0.028100697323679924,
-0.007779830135405064,
-0.024974774569272995,
-0.02751094661653042,
-0.018825333565473557,
0.026409124955534935,
-0.04638398438692093,
0.005540051497519016,
-0.03144940361380577,
-0.0056392233818769455,
0.04088149592280388,
-0.008833619765937328,
0.012555144727230072,
0.05369510129094124,
-0.021083392202854156,
0.059010233730077744,
-0.03890121728181839,
0.020008079707622528,
-0.04084426537156105,
-0.013740022666752338,
-0.026334306225180626,
0.03473009914159775,
0.012913231737911701,
0.03389628231525421,
-0.03869699686765671,
-0.048353251069784164,
0.04351178556680679,
0.05071120336651802,
0.03198455274105072,
0.032374851405620575,
-0.022840186953544617,
-0.0034214232582598925,
0.038154393434524536,
0.03484468534588814,
-0.0398920401930809,
0.007471616379916668,
-0.0005371847073547542,
0.033714521676301956,
-0.018201375380158424,
-0.01922210305929184,
-0.04659028351306915,
0.014202716760337353,
-0.03376438841223717,
-0.058146193623542786,
0.03722395747900009,
0.03335578739643097,
-0.012319948524236679,
0.02733738161623478,
-0.009876965545117855,
-0.008022456429898739,
0.036519698798656464,
0.007054733112454414,
-0.0029155609663575888,
-0.08007878810167313,
0.012461556121706963,
0.034006040543317795,
0.09276078641414642,
-0.04662967845797539,
0.0093590272590518,
0.023029750213027,
0.021982574835419655,
0.017824212089180946,
-0.02524583972990513,
0.043534208089113235,
0.057873524725437164,
0.060451485216617584,
-0.03353385627269745,
0.03444145247340202,
-0.0005773482844233513,
0.021094856783747673,
0.05342675745487213,
-0.019241003319621086,
0.06466452032327652,
-0.018923429772257805,
0.02638990618288517,
0.05341513454914093,
0.021821439266204834,
-0.018181288614869118,
0.024004196748137474,
0.05785036459565163,
0.0011457218788564205,
0.02447725459933281,
0.04026906564831734,
0.0009835031814873219,
0.007163072936236858,
-0.045979924499988556,
-0.011077851057052612,
-0.0014099465915933251,
-0.028666500002145767,
0.06986917555332184,
0.0005307964747771621,
-0.0006758541567251086,
0.000642576371319592,
-0.010780547745525837,
0.003498435951769352,
0.05612889304757118,
-0.00537648843601346,
-0.016860859468579292,
0.013925938867032528,
-0.017458174377679825,
0.01404091902077198,
-0.041989266872406006,
-0.0349726527929306,
-0.024355022236704826,
-0.0580434575676918,
0.000595252902712673,
-0.09901075065135956,
-0.04743131995201111,
-0.07984588295221329,
-0.013247436843812466,
0.05409255623817444,
0.01773916929960251,
0.02345793880522251,
-0.00010184394341195002,
0.00320033123716712,
-0.00763397803530097,
-0.04544391855597496,
-0.05557924509048462,
-0.01619137078523636,
-0.017440177500247955,
-0.04845992475748062,
0.020890289917588234,
0.04617580398917198,
0.025413082912564278,
0.0006063780747354031,
-0.020206840708851814,
-0.043891966342926025,
-0.021758439019322395,
0.03763430565595627,
0.01595480740070343,
-0.04429793357849121,
-0.04293109476566315,
0.0134982168674469,
0.006613436620682478,
-0.016026124358177185,
-0.016898244619369507,
-0.054881252348423004,
0.06805714219808578,
0.049380943179130554,
0.007028837688267231,
0.025806816294789314,
-0.02145828865468502,
-0.032025232911109924,
-0.0095789460465312,
-0.060063865035772324,
-0.04462335258722305,
0.00005196989877731539,
-0.017599640414118767,
-0.05178646370768547,
-0.029316898435354233,
-0.048669956624507904,
0.003758097067475319,
-0.0004335749545134604,
-0.001985610229894519,
0.02599550224840641,
0.021794700995087624,
0.03595918044447899,
0.02143036760389805,
-0.02238365076482296,
-0.02662605419754982,
0.03670225292444229,
-0.022177282720804214,
-0.019698498770594597,
-0.0660519003868103,
-0.04589277133345604,
0.029238319024443626,
-0.004497773479670286,
0.005329787265509367,
-0.03629639744758606,
0.02777479588985443,
0.03946659713983536,
0.012978178448975086,
0.031787171959877014,
-0.062429532408714294,
0.0010964487446472049,
-0.05230240523815155,
-0.027689607813954353,
-0.051183175295591354,
-0.02940237708389759,
-0.02065075747668743,
-0.007337222341448069,
0.03840397670865059,
-0.09576757997274399,
-0.03356732428073883,
-0.036205537617206573,
0.014552712440490723,
0.048499587923288345,
0.0178242065012455,
-0.056294579058885574,
0.005911204963922501,
-0.045009009540081024,
-0.0108763687312603,
-0.010106690227985382,
-0.01102065946906805,
0.017086418345570564,
0.022373249754309654,
0.007967475801706314,
-0.016894325613975525,
0.05348634719848633,
0.014305624179542065,
0.07763513922691345,
0.05999108776450157,
-0.020783966407179832,
0.0356692299246788,
-0.03949926048517227,
0.033124446868896484,
-0.014841138385236263,
-0.03537542745471001,
-0.04878697171807289,
-0.11672130227088928,
-0.04669257253408432,
0.031987886875867844,
-0.030605141073465347,
0.0006482515018433332,
0.03622717037796974,
-0.06156017631292343,
0.0008581432630307972,
0.01483297348022461,
0.03593314811587334,
0.041904788464307785,
-0.03434658795595169,
0.06878949701786041,
0.009213077835738659,
0.018541133031249046,
-0.047065578401088715,
-0.0200045183300972,
-0.051439493894577026,
-0.0014470176538452506,
0.00436494080349803,
0.05495794489979744,
0.0029495868366211653,
0.06295868754386902,
0.07225332409143448,
0.04101332649588585,
-0.032583873718976974,
0.034925349056720734,
0.07380470633506775,
-0.040070757269859314,
-0.035134896636009216,
-0.010868499986827374,
-0.016853410750627518,
-0.020507674664258957,
0.0016476311720907688,
-0.030037496238946915,
0.051636952906847,
0.029836546629667282,
-0.01770728826522827,
0.01891731284558773,
0.016461241990327835,
-0.030254684388637543,
-0.026182880625128746,
-0.06882103532552719,
-0.01622079871594906,
-0.009966590441763401,
-0.012069311924278736,
0.044659022241830826,
0.05268685892224312,
0.010743573307991028,
0.059251993894577026,
0.013980298303067684,
-0.015993859618902206,
-0.055341824889183044,
0.04533178359270096,
0.023067433387041092,
-0.03220239281654358,
-0.047949206084012985,
-0.042463190853595734,
0.04155736416578293,
0.05214843526482582,
-0.028606638312339783,
-0.08750038594007492,
0.027760306373238564,
0.0519891232252121,
-0.032043032348155975,
0.0654221624135971,
-0.004643904976546764,
0.049807045608758926,
0.0339009165763855,
0.012388461269438267,
0.04032319784164429,
-0.07161515951156616,
0.01584349013864994,
-0.014574187807738781,
0.02926417626440525,
-0.05869084596633911,
-0.054290905594825745,
-0.052372388541698456,
0.03733593970537186,
0.016473842784762383,
0.024667806923389435,
0.0180235356092453,
-0.046563465148210526,
-0.0378454253077507,
0.0002615331904962659,
0.0418759360909462,
-0.014785031788051128,
0.021747417747974396,
0.023351004347205162,
0.04591069370508194,
-0.05725276842713356,
-0.006840893533080816,
0.02546643652021885,
0.015383071266114712,
0.023261215537786484,
-0.02534777671098709,
-0.03963200002908707,
-0.005876693408936262,
0.023732097819447517,
-0.0449431911110878,
-0.031228046864271164,
-0.08739522844552994,
0.021201277151703835,
-0.024787288159132004,
-0.03604355826973915,
0.06992421299219131,
0.07833372801542282,
0.05770212784409523,
0.07031233608722687,
-0.01749023236334324,
0.043980859220027924,
-0.03415156528353691,
0.019040370360016823,
-0.028557591140270233,
-0.03919178992509842,
-0.00020174507517367601,
-0.07553153485059738,
-0.026645787060260773,
-0.04471384361386299,
-0.050782449543476105,
-0.03024841658771038,
0.0028378902934491634,
0.005704519804567099,
-0.0033866981975734234,
-0.01419835165143013,
0.01742234267294407,
0.019559698179364204,
-0.027853215113282204,
-0.030116818845272064,
-0.004601223394274712,
-0.029038578271865845,
-0.0739070400595665,
-0.06627576053142548,
0.018718844279646873,
-0.020997533574700356,
0.015170625410974026,
0.004155352246016264,
0.022582020610570908,
0.04092651605606079,
0.013019150123000145,
-0.011567478999495506,
0.020702285692095757,
0.042864322662353516,
-0.02997387759387493,
-0.015944262966513634,
0.01569831185042858,
0.025871658697724342,
0.012055282481014729,
-0.02612779662013054,
0.048984594643116,
0.0088082579895854,
-0.05073098838329315,
-0.022899193689227104,
0.0361991822719574,
0.007080520503222942,
-0.07816272974014282,
-0.004931492265313864,
-0.04511488229036331,
-0.029858307912945747,
0.004229323472827673,
-0.05051383376121521,
-0.024479012936353683,
-0.02122688852250576,
0.04459017142653465,
0.02448851242661476,
0.005761981941759586,
-0.022759748622775078,
0.005287273786962032,
-0.006203237920999527,
0.014864104799926281,
-0.06622539460659027,
0.030052483081817627,
-0.027759915217757225,
0.02197369746863842,
-0.015225031413137913,
0.017456410452723503,
-0.03792819753289223,
0.0458531454205513,
-0.0197462048381567,
-0.007325415499508381,
0.005829062778502703,
-0.02436213754117489,
0.0025402014143764973,
0.043997425585985184,
0.019824916496872902,
0.01527684461325407,
-0.027764825150370598,
0.06665487587451935,
-0.04915175586938858,
0.0002602158929221332,
-0.010883497074246407,
-0.013981448486447334,
-0.023621302098035812,
0.008266204036772251,
0.002952879760414362,
-0.052781857550144196,
0.02483515441417694,
0.032345376908779144,
0.016238950192928314,
0.031057532876729965,
-0.004627948626875877,
-0.0035586568992584944,
0.028461750596761703,
-0.04872869700193405,
-0.03188418596982956,
-0.0008872754988260567,
-0.0025114738382399082,
0.035196203738451004,
0.05431044474244118,
0.025932973250746727,
-0.06033334136009216,
-0.02579895779490471,
0.020497171208262444,
0.030969904735684395,
0.023018410429358482,
0.0010870198020711541,
0.045766379684209824,
0.05245853215456009,
0.061109673231840134,
-0.006338014733046293,
-0.0024251719005405903,
0.022265877574682236,
-0.020993227139115334,
-0.023476630449295044,
0.0033914088271558285,
0.015120207332074642,
0.013094776310026646,
-0.027700619772076607,
-0.029680760577321053,
0.06924376636743546,
-0.015290869399905205,
-0.0009278367506340146,
-0.021960949525237083,
-0.03795836120843887,
0.058261338621377945,
0.009037356823682785,
-0.026456762105226517,
-0.013568030670285225,
0.03897975757718086,
-0.023036662489175797,
0.027726246044039726,
-0.022530097514390945,
0.005890890955924988,
0.061981409788131714,
0.02599177323281765,
0.017052404582500458,
-0.0018972690450027585,
-0.017347998917102814,
-0.005486864130944014,
0.018996892496943474,
-0.0365474708378315,
-0.011777578853070736,
-0.038449808955192566,
0.06417901813983917,
-0.03994491323828697,
0.062408216297626495,
0.03280322626233101,
0.04973413050174713,
0.019633445888757706,
-0.049228765070438385,
-0.030849212780594826,
-0.018385324627161026,
-0.037757210433483124,
0.061664897948503494,
-0.0008042859262786806,
-0.035726398229599,
0.05352496728301048,
0.022148746997117996,
-0.07788213342428207,
0.035739149898290634,
0.05199384689331055,
0.05278800427913666,
0.029069704934954643,
0.03801722452044487,
-0.05905504524707794,
0.012194733135402203,
-0.015761034563183784,
0.015197940170764923,
-0.03725344315171242,
-0.0003650271100923419,
-0.030156591907143593,
-0.03892761468887329,
-0.006190519779920578,
0.04240760579705238,
-0.021040307357907295,
0.0010411639232188463,
0.018173374235630035,
-0.016565365716814995,
-0.06639158725738525,
0.003805361222475767,
0.029566021636128426,
-0.008811159059405327,
-0.02439170703291893,
-0.03474981710314751,
0.01563599705696106,
0.028102902695536613,
-0.0013160721864551306,
-0.04850210249423981,
0.019808512181043625,
-0.014752660878002644,
-0.04524819925427437,
-0.050081972032785416,
0.07037196308374405,
0.016032716259360313,
-0.003290170803666115,
0.007855754345655441,
0.030330996960401535,
0.017940789461135864,
0.032132405787706375,
-0.011961067095398903,
-0.0008349709678441286,
-0.057653605937957764,
0.0017481170361861587,
0.028394091874361038,
0.01481300313025713,
0.011977165006101131,
-0.013174592517316341,
0.030696509405970573,
0.08307169377803802,
0.049506980925798416,
0.0009246545378118753,
-0.051569804549217224,
-0.034177545458078384,
-0.009971112944185734,
-0.04335114359855652,
0.030526654794812202,
0.01360677182674408,
-0.06616590172052383,
-0.028608929365873337,
-0.021840179339051247,
0.011079104617238045,
0.03276859596371651,
-0.04724804684519768,
0.027872294187545776,
0.03348385542631149,
0.004399040713906288,
-0.044035766273736954,
-0.10287726670503616,
-0.04666743054986,
-0.02424631081521511,
0.0282116811722517,
0.030188845470547676,
-0.05870535969734192,
0.019480036571621895,
-0.037074729800224304,
0.004158623516559601,
0.051005344837903976,
-0.011161532253026962,
-0.016212426126003265,
0.06431467831134796,
0.06498968601226807,
-0.03088243678212166,
0.0640486404299736,
0.022859672084450722,
-0.036978039890527725,
0.05601520463824272,
0.011501683853566647,
0.019420938566327095,
0.012780789285898209,
0.02360408939421177,
-0.018786761909723282,
-0.009526832960546017,
-0.007341436110436916,
-0.03521428257226944,
0.0029827426187694073,
0.0026167593896389008,
0.04802831634879112
] |
Bagus/wav2vec2-large-xlsr-bahasa-indonesia | [
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"el",
"dataset:common_voice_id_6.1",
"transformers",
"audio",
"speech",
"bahasa-indonesia",
"license:apache-2.0"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 12 | null | ---
language: el
datasets:
- common_voice_id_6.1
tags:
- audio
- automatic-speech-recognition
- speech
- bahasa-indonesia
license: apache-2.0
---
Dataset used for training:
- Name: Common Voice
- Language: Indonesian [id]
- Version: 6.1
Test WER: 19.3 %
Contact:
bagus@ep.its.ac.id | [
-0.033216796815395355,
-0.014584439806640148,
-0.02048506960272789,
0.017797116190195084,
0.06048831716179848,
0.016769198700785637,
0.0005904000718146563,
-0.01211559772491455,
-0.0044015138410031796,
0.055244963616132736,
0.01902417466044426,
-0.03392527252435684,
0.020525313913822174,
0.028939418494701385,
-0.04664516821503639,
-0.018004754558205605,
-0.015667550265789032,
0.005309212952852249,
-0.04702308773994446,
-0.004575477447360754,
0.015635766088962555,
0.02426944486796856,
-0.012037225998938084,
0.03293641656637192,
-0.0034665358252823353,
0.023792624473571777,
-0.021387562155723572,
0.01441435981541872,
0.034078601747751236,
-0.04324938729405403,
0.012787229381501675,
-0.03641529381275177,
-0.03370540589094162,
-0.05066395178437233,
-0.03036789782345295,
-0.005118294153362513,
0.016848158091306686,
0.041980016976594925,
0.034325145184993744,
0.02790265716612339,
-0.03861835226416588,
0.018038896843791008,
0.00441649230197072,
-0.03268266096711159,
0.01729162596166134,
-0.008249912410974503,
-0.017759738489985466,
-0.02144748345017433,
-0.00855241809040308,
-0.028245586901903152,
-0.04675279185175896,
-0.07674840092658997,
-0.019071757793426514,
-0.0059546721167862415,
-0.00242029526270926,
-0.03158879280090332,
-0.043539196252822876,
-0.0382559597492218,
0.06304626166820526,
-0.04205714911222458,
-0.019791265949606895,
0.01786915771663189,
-0.09034356474876404,
0.0016747392946854234,
0.016928397119045258,
-0.08416156470775604,
0.03415226191282272,
-0.07040362060070038,
0.014240146614611149,
-0.03188835456967354,
0.05715671554207802,
-0.02714785747230053,
-0.0033545391634106636,
-0.0813978761434555,
-0.008285635150969028,
-0.027204308658838272,
0.03885987773537636,
0.05216802656650543,
-0.020655693486332893,
0.07457023113965988,
0.003534862305969,
0.020993700250983238,
0.04137023538351059,
-0.02302580140531063,
0.017313320189714432,
0.04060143604874611,
-0.034474972635507584,
0.013016173616051674,
0.018600786104798317,
0.027966521680355072,
-0.026582853868603706,
-0.03555786982178688,
0.008259317837655544,
-0.04441659525036812,
0.006559078581631184,
0.021129829809069633,
0.02747340500354767,
-0.020153583958745003,
0.05717044696211815,
0.010570724494755268,
0.0366152860224247,
0.044358640909194946,
-0.03977241367101669,
0.05761447921395302,
-0.011471688747406006,
0.00691003305837512,
-0.02229176089167595,
-0.04350855574011803,
-0.05333304405212402,
0.022780757397413254,
0.0465882271528244,
-0.06008482351899147,
-0.03635036200284958,
0.025378776714205742,
0.006560519337654114,
-0.0434223935008049,
0.0573653019964695,
-0.05413627251982689,
-0.033183835446834564,
-0.051585305482149124,
0.05273446813225746,
-0.004648205358535051,
0.016153402626514435,
0.017136288806796074,
-0.04110584408044815,
0.029059315100312233,
-0.04011337831616402,
-0.027821198105812073,
0.018779415637254715,
-0.021641375496983528,
0.0075725382193923,
0.050645798444747925,
-0.03074030764400959,
-0.054301194846630096,
-0.006529034581035376,
0.005686001852154732,
-0.06386350095272064,
0.004847933538258076,
0.006417728960514069,
0.06828735768795013,
-0.0702359676361084,
-0.03776232525706291,
0.0010265664895996451,
0.0119509631767869,
-0.003496910445392132,
0.03811788186430931,
0.031344879418611526,
-0.007757213432341814,
-0.03409093618392944,
-0.02383670210838318,
0.05726894736289978,
-0.06589633971452713,
-0.013118655420839787,
0.07561751455068588,
-0.025629352778196335,
0.03794015571475029,
0.005788448266685009,
-0.0017291925614699721,
0.02081439457833767,
0.0037741062697023153,
-0.00926023256033659,
0.04169994965195656,
-0.0035265041515231133,
-0.027082320302724838,
-0.04032299295067787,
-0.04387437924742699,
-0.01907161809504032,
0.0795987918972969,
0.028555646538734436,
-0.001541286357678473,
-0.028176477178931236,
0.026973266154527664,
0.05117814615368843,
0.018756236881017685,
-0.038750696927309036,
0.030764056369662285,
0.07831311970949173,
0.05212131887674332,
-0.012991556897759438,
0.07876584678888321,
0.005113758612424135,
-0.01651575416326523,
-0.0286529753357172,
0.011463366448879242,
0.024954797700047493,
-0.013282268308103085,
-0.012070812284946442,
0.043090205639600754,
0.0025308867916464806,
-0.03464178740978241,
-0.02647905796766281,
0.045866966247558594,
-0.028446784242987633,
-0.019231200218200684,
0.0010337624698877335,
-0.013406223617494106,
-0.04970740154385567,
0.02595333196222782,
-0.033727653324604034,
0.013042609207332134,
-0.028927139937877655,
0.000570807431358844,
-0.0020537518430501223,
0.04799405857920647,
0.015962721779942513,
0.03453068062663078,
-0.01401605922728777,
0.06982322037220001,
-0.04541836306452751,
-0.005121646448969841,
-0.029821213334798813,
-0.0320904478430748,
-0.019129831343889236,
0.040399130433797836,
0.022984443232417107,
0.07491246610879898,
-0.014118790626525879,
-0.04464186355471611,
0.04928141459822655,
0.0736037939786911,
0.07266815751791,
0.023432910442352295,
-0.033871639519929886,
-0.00023962529667187482,
0.03479524329304695,
0.053642649203538895,
-0.06747102737426758,
-0.009583761915564537,
0.018075238913297653,
0.04169465973973274,
-0.004018897656351328,
-0.0029042500536888838,
-0.00938208308070898,
0.027064213529229164,
-0.03902443125844002,
-0.06087793782353401,
0.03499402105808258,
-0.00047941115917637944,
0.01318392064422369,
0.027579212561249733,
-0.03531847894191742,
-0.005933916196227074,
0.05883489176630974,
0.01854199357330799,
0.02392989955842495,
-0.033302102237939835,
0.01958940550684929,
-0.006375785917043686,
0.059992287307977676,
-0.065855972468853,
0.047899357974529266,
-0.011117230169475079,
0.016155218705534935,
0.02169961668550968,
-0.018918590620160103,
0.05061021447181702,
0.01890166848897934,
-0.002919253194704652,
-0.0233908761292696,
0.04153990000486374,
-0.0017169439233839512,
0.03717267885804176,
0.053821999579668045,
0.02548247203230858,
0.06687405705451965,
-0.018589919432997704,
0.05336476489901543,
0.07692858576774597,
0.022474827244877815,
0.021125609055161476,
0.02176951803267002,
0.0650995746254921,
0.011612807400524616,
-0.006530823651701212,
0.06086506322026253,
-0.03955075889825821,
0.020440416410565376,
-0.04546026140451431,
0.009768941439688206,
-0.0199155043810606,
0.008511226624250412,
0.047008004039525986,
-0.016361180692911148,
-0.010459263809025288,
0.005194867495447397,
-0.02340097725391388,
-0.002804103773087263,
0.04182237759232521,
-0.013344653882086277,
-0.0260271318256855,
0.000026158759283134714,
-0.00717307161539793,
0.021503668278455734,
-0.07598672062158585,
-0.01727067492902279,
0.0005673520499840379,
-0.059614188969135284,
0.009330235421657562,
-0.057303428649902344,
-0.025240730494260788,
-0.05926657095551491,
-0.034467291086912155,
0.03132966533303261,
0.0472450815141201,
0.010291452519595623,
-0.015315288677811623,
-0.002819214016199112,
-0.034238457679748535,
-0.042756177484989166,
-0.04671138897538185,
-0.035839758813381195,
-0.0023437573108822107,
-0.06458324193954468,
0.02879023738205433,
0.02777835540473461,
0.053914789110422134,
-0.008905841037631035,
-0.015131037682294846,
-0.035304635763168335,
-0.035416245460510254,
0.041963838040828705,
0.05788972228765488,
-0.052098553627729416,
-0.053911034017801285,
0.03557202219963074,
-0.022744925692677498,
0.0059585971757769585,
-0.023023847490549088,
-0.034736476838588715,
0.08789734542369843,
0.04179484024643898,
0.014093887060880661,
-0.00035599348484538496,
-0.009774180129170418,
-0.058444421738386154,
-0.053686853498220444,
-0.017601555213332176,
-0.04637374356389046,
-0.02692560851573944,
-0.00881508644670248,
-0.05116671323776245,
-0.026617011055350304,
-0.035286664962768555,
-0.019970348104834557,
0.018249746412038803,
0.02214246429502964,
0.048418864607810974,
0.0520564466714859,
0.024889908730983734,
0.035048678517341614,
-0.016020197421312332,
-0.011625446379184723,
0.06607411801815033,
0.027117133140563965,
-0.0039423261769115925,
-0.06931900978088379,
-0.03567766025662422,
0.027098553255200386,
0.02811192348599434,
-0.006868619006127119,
-0.00012016748951282352,
0.08374679833650589,
-0.0020901146344840527,
-0.001217754208482802,
0.019951971247792244,
-0.026442620903253555,
-0.025892354547977448,
-0.011892835609614849,
-0.009732638485729694,
-0.021310312673449516,
-0.08199509978294373,
0.02025376632809639,
-0.003946617245674133,
0.06905551254749298,
-0.07666366547346115,
-0.023748524487018585,
-0.027441659942269325,
0.03000604547560215,
0.024232735857367516,
-0.013865676708519459,
-0.019284680485725403,
0.007903884164988995,
-0.0460536815226078,
-0.035425130277872086,
0.003629058599472046,
-0.0025971585419028997,
0.01739567331969738,
0.059177521616220474,
-0.0013728117337450385,
-0.012860305607318878,
0.05077654868364334,
0.022643640637397766,
0.06513284891843796,
0.0405244454741478,
-0.04888712242245674,
-0.0012508032377809286,
-0.022765398025512695,
0.018781330436468124,
-0.025166040286421776,
-0.03956861048936844,
-0.04252073913812637,
-0.08575502783060074,
-0.028763726353645325,
0.004063373431563377,
-0.047866690903902054,
-0.03474178910255432,
0.05998494476079941,
0.019692109897732735,
0.022907767444849014,
-0.001274284441024065,
0.010131320916116238,
0.0177829060703516,
-0.020302927121520042,
0.030415913090109825,
-0.03523779287934303,
0.049388669431209564,
-0.0654175654053688,
-0.01016224641352892,
-0.027286123484373093,
-0.040876440703868866,
0.002010056748986244,
0.06028686463832855,
0.01829330250620842,
0.04608215391635895,
0.06719019263982773,
0.006848672404885292,
-0.024439092725515366,
0.05219598859548569,
0.04206126928329468,
-0.029805991798639297,
-0.0609782338142395,
0.010051841847598553,
-0.020402230322360992,
-0.04517654329538345,
0.018629034981131554,
-0.067301906645298,
0.046019941568374634,
0.03274679556488991,
-0.014811082743108273,
-0.016827402636408806,
0.016912803053855896,
-0.01881393790245056,
-0.032454051077365875,
-0.040907103568315506,
-0.04127983748912811,
0.02145301178097725,
-0.017351362854242325,
0.05113893747329712,
0.006461240351200104,
0.02127344347536564,
0.06309501826763153,
0.048019491136074066,
-0.04962708428502083,
-0.028194056823849678,
0.03344260901212692,
0.04031120985746384,
-0.022873664274811745,
-0.06480090320110321,
-0.041223689913749695,
0.040513403713703156,
0.02370193414390087,
0.0008614542311988771,
-0.07154818624258041,
0.01775399036705494,
0.04938403517007828,
-0.03410964459180832,
0.057220086455345154,
-0.03257375955581665,
0.03833421692252159,
0.06289287656545639,
0.004740983247756958,
0.006130988243967295,
-0.01918991096317768,
-0.002222717273980379,
-0.012215635739266872,
0.020541055127978325,
-0.03134128078818321,
-0.033281344920396805,
-0.06432101130485535,
0.026559628546237946,
0.03689407557249069,
0.006225407589226961,
0.021019915118813515,
-0.024776631966233253,
-0.046237219125032425,
0.00046268425649031997,
0.03171004727482796,
-0.018473556265234947,
0.007417092565447092,
0.021958474069833755,
0.04803363233804703,
-0.011485508643090725,
-0.0043518734164536,
-0.0005399355432018638,
-0.0008762775105424225,
0.033828143030405045,
0.01383478194475174,
-0.048946235328912735,
-0.02557496540248394,
0.020401690155267715,
-0.008062716573476791,
-0.05769144743680954,
-0.09040051698684692,
0.023115817457437515,
-0.019396955147385597,
-0.038719721138477325,
0.05450371652841568,
0.03838435560464859,
0.05190913379192352,
0.050475895404815674,
0.001232366543263197,
0.029703598469495773,
-0.03919944539666176,
0.05307484790682793,
-0.02352278307080269,
-0.03257983922958374,
-0.019509587436914444,
-0.03503110632300377,
-0.027442442253232002,
-0.019191550090909004,
-0.020203085616230965,
-0.028130343183875084,
-0.0033046924509108067,
0.03263114392757416,
-0.029020795598626137,
-0.007450766395777464,
-0.008628780022263527,
0.03765709698200226,
-0.03538878634572029,
-0.031456343829631805,
-0.0006329062744043767,
-0.007250579539686441,
-0.08009796589612961,
-0.05037938430905342,
0.03173388913273811,
0.005690170451998711,
0.016216343268752098,
0.012045454233884811,
0.03719477728009224,
0.026142681017518044,
-0.0028744640294462442,
-0.006515707820653915,
0.012722584418952465,
-0.0001635321241337806,
-0.06663306802511215,
-0.026881122961640358,
0.020313013345003128,
0.015319296158850193,
0.05644688382744789,
-0.004764782264828682,
0.032822657376527786,
0.002309895819053054,
-0.03807554021477699,
-0.008724487386643887,
0.02377215214073658,
0.04717160761356354,
-0.06631550937891006,
-0.03724442049860954,
-0.014359130524098873,
-0.0325889065861702,
0.01748443953692913,
-0.02051701582968235,
-0.012365073896944523,
0.02724701724946499,
0.023503730073571205,
0.04845171049237251,
0.0014192697126418352,
-0.043410319834947586,
0.004780014045536518,
0.0032275603152811527,
0.0029012395534664392,
-0.042987674474716187,
0.051848262548446655,
-0.02669009193778038,
0.014170617796480656,
-0.001737866667099297,
0.008174260146915913,
-0.06927156448364258,
0.04611121118068695,
-0.003552207490429282,
-0.020776359364390373,
-0.021582381799817085,
0.0035960711538791656,
-0.011052854359149933,
0.041506312787532806,
-0.009097160771489143,
0.023109296336770058,
-0.037880249321460724,
0.06273593753576279,
-0.015351061709225178,
0.018671322613954544,
-0.003934763837605715,
-0.006367735099047422,
-0.04093658924102783,
-0.02399875409901142,
-0.003971694968640804,
-0.038462717086076736,
0.03978891298174858,
0.02277616783976555,
0.0460917204618454,
0.014153734780848026,
-0.020253272727131844,
-0.02228607051074505,
0.012332982383668423,
-0.059170015156269073,
-0.01969592645764351,
0.023006200790405273,
0.06572467088699341,
0.005476616322994232,
0.05754765868186951,
0.025533106178045273,
-0.05543866381049156,
-0.05678926035761833,
0.03525682911276817,
0.008739189244806767,
0.016597066074609756,
0.01823287084698677,
0.033949267119169235,
0.04400818794965744,
0.056011442095041275,
-0.012824447825551033,
-0.008150957524776459,
-0.029154310002923012,
-0.010797386057674885,
0.005801747087389231,
-0.0158400796353817,
-0.0047872732393443584,
-0.0037301669362932444,
-0.03931983932852745,
-0.039392996579408646,
0.047325823456048965,
0.0034695249050855637,
0.03655106946825981,
-0.0398474782705307,
-0.06794064491987228,
0.009997917339205742,
-0.00802129227668047,
-0.03445092961192131,
0.012985541485249996,
-0.00395989092066884,
-0.047763511538505554,
0.07858787477016449,
-0.00449397461488843,
0.015760866925120354,
0.046521708369255066,
0.008781727403402328,
-0.024607118219137192,
0.04261477664113045,
-0.023622628301382065,
-0.019544454291462898,
0.03410366177558899,
-0.05559682101011276,
-0.01208262424916029,
-0.0349002406001091,
0.05615423247218132,
-0.06605134159326553,
0.04404906928539276,
0.04448510706424713,
0.027103634551167488,
0.047082237899303436,
-0.036271702498197556,
-0.04291170462965965,
0.0197107195854187,
-0.03439070284366608,
0.06080757454037666,
0.006844962015748024,
-0.053975120186805725,
0.052678730338811874,
0.036605872213840485,
-0.10861825942993164,
0.04992813244462013,
0.029346220195293427,
0.032400667667388916,
0.03466149792075157,
0.0322282612323761,
-0.047742217779159546,
0.021351417526602745,
-0.051518432796001434,
0.032109636813402176,
-0.06664726883172989,
0.008380946703255177,
-0.007876710034906864,
-0.0545680932700634,
-0.016197364777326584,
0.013517149724066257,
-0.015484090894460678,
-0.014855594374239445,
-0.001875451416708529,
-0.05701185762882233,
-0.08098426461219788,
0.003990163095295429,
0.035942673683166504,
-0.0456402525305748,
-0.012448233552277088,
-0.021962657570838928,
-0.0004906659596599638,
0.017781874164938927,
0.008782686665654182,
-0.027698859572410583,
-0.011272641830146313,
0.01122741773724556,
-0.04093044623732567,
-0.03982623293995857,
0.052510444074869156,
0.03311093896627426,
-0.05253142863512039,
0.019905706867575645,
0.0023499915841966867,
0.020068934187293053,
0.018928997218608856,
-0.0021767059806734324,
0.027797946706414223,
-0.09135432541370392,
-0.02524224855005741,
-0.006700265686959028,
0.013557467609643936,
0.02683507464826107,
0.0003469010698609054,
0.0439419187605381,
0.06272226572036743,
0.017569033429026604,
0.031241513788700104,
-0.020638179033994675,
-0.04238557443022728,
0.03555998578667641,
-0.044339947402477264,
0.0327974408864975,
-0.00029792607529088855,
-0.04672596976161003,
-0.012918470427393913,
-0.007719628047198057,
-0.017262235283851624,
0.04675421863794327,
-0.06818083673715591,
0.021623220294713974,
0.019524870440363884,
-0.0320291742682457,
-0.04011678695678711,
-0.07273771613836288,
-0.03224197402596474,
-0.03838597983121872,
0.0322888158261776,
0.007035437040030956,
-0.02103048376739025,
-0.00039996730629354715,
-0.039100367575883865,
-0.0485251322388649,
0.0066365827806293964,
0.012294073589146137,
-0.044284578412771225,
0.04443349316716194,
0.06499741226434708,
-0.045650824904441833,
0.025577817112207413,
0.02334570325911045,
-0.027616187930107117,
0.06271731853485107,
0.0107237808406353,
0.020448962226510048,
0.034980226308107376,
0.024366138502955437,
-0.025421898812055588,
-0.014919698238372803,
-0.06081611290574074,
-0.028202993795275688,
-0.022163476794958115,
0.019287031143903732,
0.04738769680261612
] |
Bagus/wav2vec2-xlsr-japanese-speech-emotion-recognition | [
"pytorch",
"wav2vec2",
"audio-classification",
"ja",
"dataset:jtes",
"transformers",
"audio",
"speech",
"speech-emotion-recognition",
"has_space"
] | audio-classification | {
"architectures": [
"HubertForSequenceClassification"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 26 | null | ---
language: ja
datasets:
- jtes
tags:
- audio
- audio-classification
- speech
- speech-emotion-recognition
---
This is for (private) DEMO only. | [
-0.04115305840969086,
-0.01297744270414114,
-0.0016235909424722195,
0.02663354203104973,
0.0676797553896904,
0.024844540283083916,
0.013219201937317848,
-0.015505552291870117,
-0.03526631370186806,
0.05942654609680176,
0.0187111534178257,
-0.04917192831635475,
0.024974865838885307,
0.05422858148813248,
-0.04220139607787132,
-0.015040487051010132,
-0.02779603935778141,
-0.02186502516269684,
-0.037864815443754196,
0.003882999299094081,
0.00655844621360302,
0.028849774971604347,
-0.002831041580066085,
0.048171401023864746,
-0.014555773697793484,
0.011780568398535252,
-0.005732952617108822,
-0.0027553478721529245,
0.02936170995235443,
-0.020943548530340195,
-0.018101055175065994,
-0.0389072559773922,
-0.05025725066661835,
-0.024802235886454582,
-0.03400248661637306,
-0.018536189571022987,
0.019900325685739517,
0.012326937168836594,
0.01755029894411564,
0.02239978313446045,
-0.0042124115861952305,
0.004265040624886751,
-0.005292796995490789,
-0.012486311607062817,
0.019140906631946564,
-0.005743250250816345,
-0.014463141560554504,
-0.046526093035936356,
-0.003296175040304661,
-0.02093723602592945,
-0.046348266303539276,
-0.0816563069820404,
-0.005862770136445761,
-0.004188696388155222,
-0.002069386187940836,
-0.03740110993385315,
-0.0424514040350914,
-0.009070651605725288,
0.06656229496002197,
-0.03345350921154022,
-0.015393821522593498,
0.012485172599554062,
-0.08062005788087845,
0.0227651409804821,
0.01508251205086708,
-0.07742811739444733,
0.013738260604441166,
-0.03378383815288544,
0.004263682756572962,
-0.012700844556093216,
0.026332782581448555,
-0.03582045063376427,
0.025697404518723488,
-0.07417308539152145,
-0.02491593174636364,
-0.037845488637685776,
0.059875767678022385,
0.05609560012817383,
-0.03926535323262215,
0.0645025447010994,
0.02106284908950329,
0.021578332409262657,
0.03583715483546257,
-0.007206995505839586,
0.0014400971122086048,
0.048938632011413574,
-0.03295408561825752,
0.005234923213720322,
0.0263543538749218,
0.019489526748657227,
-0.02748296782374382,
-0.0359242707490921,
-0.03292488679289818,
-0.037274278700351715,
-0.014818880707025528,
0.05243240296840668,
0.04645712301135063,
-0.03138941153883934,
0.05585015192627907,
0.025068361312150955,
0.027167242020368576,
0.02751767262816429,
-0.025490963831543922,
0.05644337832927704,
-0.006944671273231506,
-0.01641748659312725,
-0.002440496813505888,
-0.023317178711295128,
-0.03829281032085419,
0.012041172944009304,
0.022962983697652817,
-0.03796442970633507,
-0.03786372393369675,
0.05386709049344063,
0.0035634103696793318,
-0.039648864418268204,
0.04446612671017647,
-0.023000145331025124,
0.00006264868716243654,
-0.039788730442523956,
0.06371677666902542,
0.014531968161463737,
-0.011180934496223927,
-0.0002946958411484957,
-0.06718233227729797,
0.04100160300731659,
-0.045176275074481964,
-0.020693587139248848,
0.014813699759542942,
-0.002859054831787944,
0.01813100464642048,
0.04344071075320244,
-0.004870815668255091,
-0.05011880025267601,
0.015315808355808258,
0.004351416137069464,
-0.06317973136901855,
0.011646716855466366,
0.024767566472291946,
0.09718722850084305,
-0.03743002563714981,
-0.05462438613176346,
0.007905789650976658,
0.0034795021638274193,
-0.02069404348731041,
0.023115482181310654,
-0.0069658211432397366,
-0.030471649020910263,
-0.04272141680121422,
-0.05399378016591072,
0.03260495141148567,
-0.06923598796129227,
-0.01738637126982212,
0.07225314527750015,
-0.004744439851492643,
0.039775457233190536,
-0.01587691344320774,
-0.011422859504818916,
-0.0043640234507620335,
-0.02142821066081524,
-0.031247278675436974,
0.02188801020383835,
-0.006194683723151684,
-0.01861635409295559,
-0.03289826214313507,
-0.04828541725873947,
-0.011776400730013847,
0.07261434942483902,
0.015943357720971107,
-0.0012456815456971526,
-0.0447506457567215,
0.015946699306368828,
0.045369599014520645,
0.016708094626665115,
-0.020330164581537247,
0.008397499099373817,
0.04871873930096626,
0.040556780993938446,
-0.005727472249418497,
0.08711956441402435,
0.008052367717027664,
-0.03234443441033363,
-0.041384778916835785,
-0.005486801266670227,
0.05458559840917587,
-0.03908499330282211,
-0.022505098953843117,
0.03361152857542038,
-0.005135593935847282,
-0.017885835841298103,
-0.021727360785007477,
0.06262169033288956,
-0.0012284747790545225,
-0.014934815466403961,
0.005008853040635586,
-0.011074540205299854,
-0.04552309215068817,
0.043831367045640945,
-0.025129254907369614,
0.0046073333360254765,
-0.020583625882864,
-0.006348867900669575,
0.03463505581021309,
0.028400924056768417,
0.014786825515329838,
0.01728866435587406,
0.0001288093044422567,
0.07232224196195602,
-0.04257145896553993,
-0.005148992873728275,
-0.029918937012553215,
-0.052366457879543304,
-0.007160136941820383,
0.06153341382741928,
0.03851349279284477,
0.05579684302210808,
-0.033277478069067,
-0.06598637998104095,
0.02372906729578972,
0.08174709230661392,
0.06691643595695496,
0.029673272743821144,
-0.04108628258109093,
-0.0030957094859331846,
0.04771806672215462,
0.05281279608607292,
-0.06764333695173264,
-0.01901833526790142,
0.0477006621658802,
0.032955318689346313,
-0.01037297211587429,
0.0069409506395459175,
-0.01764383353292942,
0.031053464859724045,
-0.027499781921505928,
-0.11959979683160782,
0.02504386380314827,
0.020898109301924706,
0.0012415838427841663,
0.016351763159036636,
-0.01314429473131895,
0.014244853518903255,
0.02757064625620842,
-0.011362984776496887,
0.0113888680934906,
-0.043547432869672775,
0.02231140434741974,
0.0030168720986694098,
0.07219092547893524,
-0.04966706037521362,
0.014932967722415924,
0.01762315444648266,
0.007464936934411526,
0.02832413837313652,
-0.027988115325570107,
0.04121257737278938,
0.016580427065491676,
0.02010798454284668,
-0.037180110812187195,
0.0149465873837471,
0.023407191038131714,
0.044375546276569366,
0.05360008776187897,
-0.00973321869969368,
0.06942982226610184,
-0.002164046512916684,
0.04777033254504204,
0.07181693613529205,
0.019538283348083496,
0.024941682815551758,
0.041638683527708054,
0.055486712604761124,
-0.0037637667264789343,
0.0034526344388723373,
0.08424187451601028,
-0.011535260826349258,
0.010488050989806652,
-0.017707178369164467,
-0.003599784104153514,
0.0023536107037216425,
0.0001795075659174472,
0.013259058818221092,
-0.014539501629769802,
-0.0292596984654665,
-0.015140075236558914,
-0.009803537279367447,
-0.001067274366505444,
0.05042701214551926,
0.005023876670747995,
-0.024045458063483238,
0.008544514887034893,
-0.024943778291344643,
0.03576510027050972,
-0.06029805913567543,
-0.050031695514917374,
-0.013085447251796722,
-0.034065090119838715,
-0.00299897906370461,
-0.07233376801013947,
-0.03933439403772354,
-0.09239689260721207,
-0.003858148120343685,
0.05886389687657356,
0.026890330016613007,
0.0211942195892334,
-0.048468850553035736,
0.009829666465520859,
-0.04404647275805473,
-0.030295487493276596,
-0.03767988830804825,
-0.0349084697663784,
-0.02313821390271187,
-0.06123153865337372,
0.04548664018511772,
0.051132507622241974,
0.04601120203733444,
0.01720244064927101,
-0.0003386360185686499,
-0.033961404114961624,
-0.056017324328422546,
0.04396858811378479,
0.03600861132144928,
-0.02663293108344078,
-0.042691756039857864,
0.022458359599113464,
-0.004789481870830059,
-0.011837790720164776,
-0.00011365721729816869,
-0.039112385362386703,
0.08388809114694595,
0.03297944739460945,
0.022519545629620552,
-0.0013707717880606651,
0.016921909525990486,
-0.043656401336193085,
-0.051045652478933334,
-0.027898550033569336,
-0.04166428744792938,
-0.008439771831035614,
-0.02921328693628311,
-0.03299082815647125,
-0.04575490579009056,
-0.026609180495142937,
0.01300821267068386,
-0.01496125664561987,
0.019790757447481155,
0.028153985738754272,
0.03928912803530693,
0.014488349668681622,
0.028161652386188507,
-0.03988897055387497,
-0.005759312305599451,
0.06764090806245804,
-0.006720351986587048,
-0.006206668447703123,
-0.06621397286653519,
-0.03759333863854408,
0.043278709053993225,
0.012289135716855526,
-0.01964787393808365,
0.004150321241468191,
0.09415947645902634,
0.028018685057759285,
-0.010202525183558464,
0.024486327543854713,
-0.0434839129447937,
-0.018687911331653595,
-0.018461287021636963,
-0.027062462642788887,
-0.02551616169512272,
-0.07664690166711807,
0.024953728541731834,
0.003893666435033083,
0.05209481343626976,
-0.08340021222829819,
-0.03417692705988884,
-0.027063755318522453,
0.01869175210595131,
0.03727458417415619,
-0.026447752490639687,
-0.016661161556839943,
0.00880451500415802,
-0.05380295217037201,
-0.034209515899419785,
0.009610130451619625,
-0.0013010137481614947,
0.03461288660764694,
0.03567129001021385,
-0.010604734532535076,
-0.015160336159169674,
0.06455828994512558,
0.040287770330905914,
0.05488131195306778,
0.04991447180509567,
-0.00693129189312458,
0.011465911753475666,
-0.027498813346028328,
0.02586038038134575,
-0.016749396920204163,
-0.048315975815057755,
-0.05271477997303009,
-0.08591453731060028,
-0.010423669591546059,
0.02245890162885189,
-0.020583704113960266,
0.01028147991746664,
0.04205330088734627,
0.001641145790927112,
0.016368985176086426,
-0.021535303443670273,
0.024333711713552475,
0.03338496759533882,
-0.031736914068460464,
0.04490017145872116,
-0.01557187270373106,
0.02392279915511608,
-0.07837268710136414,
-0.000023998216420295648,
-0.03228224813938141,
-0.018060876056551933,
-0.02113380655646324,
0.05905216187238693,
0.018586648628115654,
0.038616836071014404,
0.07983358204364777,
0.02285728044807911,
-0.049793995916843414,
0.05258520692586899,
0.0503404401242733,
-0.022823190316557884,
-0.04562839865684509,
0.004344287794083357,
0.004291333258152008,
-0.01304255798459053,
-0.011362818069756031,
-0.022475799545645714,
0.009665695019066334,
0.04683076962828636,
-0.025329621508717537,
-0.014014504849910736,
0.008236465975642204,
-0.032339002937078476,
-0.010530604049563408,
-0.056400928646326065,
-0.039887674152851105,
0.012949531897902489,
-0.01651819236576557,
0.015982607379555702,
0.02862722799181938,
0.021096251904964447,
0.049798496067523956,
0.03346669301390648,
-0.05182758346199989,
-0.032811202108860016,
0.026115799322724342,
0.02847045101225376,
-0.07525089383125305,
-0.09001001715660095,
-0.03966669365763664,
0.03979508951306343,
0.026959864422678947,
0.006336204241961241,
-0.07116248458623886,
0.016371184960007668,
0.03404393419623375,
-0.04600076749920845,
0.06908056885004044,
-0.007171951234340668,
0.05502196401357651,
0.053188733756542206,
0.00045073399087414145,
0.028757452964782715,
-0.01964103989303112,
0.006973570212721825,
-0.0009441631264053285,
0.006499661132693291,
-0.044565822929143906,
-0.019469525665044785,
-0.06959296017885208,
0.01104335393756628,
0.0171589944511652,
0.018457826226949692,
0.04118970409035683,
-0.0312645249068737,
-0.049950044602155685,
-0.008996058255434036,
0.035005077719688416,
-0.04617989435791969,
0.036216672509908676,
0.036187976598739624,
0.048592712730169296,
-0.028637144714593887,
-0.015974778681993484,
-0.009713592939078808,
0.040225911885499954,
0.026187077164649963,
0.007052153814584017,
-0.03841962665319443,
-0.026412425562739372,
0.035077109932899475,
-0.01848192885518074,
-0.0420822836458683,
-0.09693755209445953,
0.03643305227160454,
-0.01657550223171711,
-0.024455126374959946,
0.06977489590644836,
0.03136890381574631,
0.05000923201441765,
0.035883549600839615,
-0.005769322160631418,
0.033895500004291534,
-0.04053046554327011,
0.037796441465616226,
-0.028464846312999725,
-0.011937154456973076,
-0.010321887210011482,
-0.019807390868663788,
-0.03799566626548767,
-0.015003715641796589,
-0.04551545903086662,
-0.028596792370080948,
0.012822683900594711,
0.024853531271219254,
-0.025851568207144737,
-0.019773179665207863,
-0.02167341113090515,
0.016794918105006218,
-0.03774605318903923,
-0.037473853677511215,
0.001242078491486609,
-0.03290770947933197,
-0.08868198096752167,
-0.03335306793451309,
0.04495508223772049,
-0.01714601181447506,
0.0045153554528951645,
0.011093325912952423,
0.023644713684916496,
0.0462694987654686,
-0.010533340275287628,
-0.012200933881103992,
0.005984419025480747,
0.03358539566397667,
-0.03249559924006462,
-0.030378561466932297,
-0.0025444349739700556,
0.015087408944964409,
0.032051268965005875,
-0.01890888437628746,
0.020391877740621567,
-0.005815333221107721,
-0.04565245658159256,
-0.005483156070113182,
-0.0027643574867397547,
0.029684975743293762,
-0.06919420510530472,
-0.05461287498474121,
-0.02185402810573578,
-0.043247707188129425,
0.00668984092772007,
-0.027847779914736748,
-0.032215651124715805,
0.045402850955724716,
0.03592381626367569,
0.03274143487215042,
0.00025142516824416816,
-0.048723362386226654,
0.023283952847123146,
-0.03133896738290787,
0.009623498655855656,
-0.052987370640039444,
0.04303302988409996,
-0.03761184960603714,
0.003046642290428281,
0.008360274136066437,
0.005043254233896732,
-0.042464014142751694,
0.04204718768596649,
0.0000057018773986783344,
-0.02953975275158882,
-0.009397780522704124,
0.007658748421818018,
0.008358951658010483,
0.05144725367426872,
0.01974007673561573,
0.010233800858259201,
-0.05246899276971817,
0.05134305730462074,
-0.03688150644302368,
0.036159902811050415,
0.00072502251714468,
-0.022046631202101707,
-0.03958749398589134,
-0.023452315479516983,
0.011538987047970295,
-0.03765532374382019,
0.02156427875161171,
0.044285550713539124,
0.0384611077606678,
0.0397573858499527,
-0.039464421570301056,
-0.00706904474645853,
0.024298574775457382,
-0.050377827137708664,
-0.016015654429793358,
-0.012709995731711388,
0.04335964471101761,
0.0054039014503359795,
0.0483824722468853,
0.030121924355626106,
-0.02769492007791996,
-0.04406837746500969,
0.025349436327815056,
0.018922587856650352,
0.006857558619230986,
-0.011367719620466232,
0.027747532352805138,
0.042986948043107986,
0.04920326545834541,
-0.03058641031384468,
-0.005847310181707144,
-0.0016984808025881648,
-0.007204335182905197,
-0.004191621672362089,
-0.015542800538241863,
-0.015138533897697926,
0.002854955615475774,
-0.04297727346420288,
-0.015982627868652344,
0.050545815378427505,
0.03415486216545105,
0.05455441400408745,
-0.009401325136423111,
-0.04004548490047455,
0.021252505481243134,
0.004108927212655544,
-0.06736265867948532,
-0.00313544156961143,
0.025683751329779625,
-0.026612231507897377,
0.060665957629680634,
-0.03831503167748451,
0.023382660001516342,
0.028741244226694107,
0.01841418445110321,
-0.011644727550446987,
0.043134015053510666,
-0.007103800307959318,
-0.011096400208771229,
0.042405057698488235,
-0.053166430443525314,
-0.0114972535520792,
-0.04894941672682762,
0.07173771411180496,
-0.054710496217012405,
0.04306744411587715,
0.0252552293241024,
0.009201767854392529,
0.03381246328353882,
-0.04763001948595047,
-0.03266249969601631,
0.030539970844984055,
-0.035523608326911926,
0.051887255162000656,
0.014898106455802917,
-0.08522027730941772,
0.037944044917821884,
0.01844153366982937,
-0.09823775291442871,
0.018464380875229836,
0.02546965703368187,
0.02335783652961254,
0.008047000505030155,
0.0421333909034729,
-0.024308742955327034,
0.015462715178728104,
-0.04984692111611366,
0.025721032172441483,
-0.0642506554722786,
0.0035553225316107273,
-0.016080396249890327,
-0.05536072328686714,
-0.02148854173719883,
0.005999602377414703,
-0.032291095703840256,
0.0005983150331303477,
0.00854208879172802,
-0.042189765721559525,
-0.05747227743268013,
0.007061997428536415,
0.0178192351013422,
-0.02516823075711727,
0.022262323647737503,
-0.06416327506303787,
0.0018020167481154203,
0.05360851436853409,
-0.008066479116678238,
-0.019655395299196243,
-0.006511298473924398,
0.002972362097352743,
-0.05646418407559395,
-0.05436509847640991,
0.06969086080789566,
0.02542836032807827,
-0.04593180865049362,
0.021257812157273293,
0.004484852310270071,
0.008248343132436275,
0.027958812192082405,
-0.006357240956276655,
0.03700942173600197,
-0.06528465449810028,
-0.023009339347481728,
-0.0006332110497169197,
0.022287879139184952,
0.004775832407176495,
-0.019721023738384247,
0.03915945813059807,
0.05947856977581978,
0.02954247035086155,
0.007067012134939432,
-0.027783043682575226,
-0.045053187757730484,
0.04264150932431221,
-0.06294725090265274,
0.0510711595416069,
0.019921770319342613,
-0.04580099135637283,
-0.040901754051446915,
-0.009650587104260921,
-0.006874412298202515,
0.029707247391343117,
-0.036709874868392944,
0.017072295770049095,
0.030439045280218124,
-0.02566075325012207,
-0.03234437480568886,
-0.08688019216060638,
-0.020167039707303047,
-0.027640966698527336,
0.04523308947682381,
0.029680149629712105,
-0.046796154230833054,
0.02446891739964485,
-0.034909434616565704,
-0.05265238136053085,
0.059721529483795166,
0.0005494999350048602,
-0.028867404907941818,
0.04837649315595627,
0.07397472858428955,
-0.04410392418503761,
0.014598337933421135,
0.050455596297979355,
-0.039816904813051224,
0.04213528707623482,
0.0076628029346466064,
0.035362306982278824,
0.02738356962800026,
0.04537425562739372,
-0.010910053737461567,
-0.01862630806863308,
-0.04528389498591423,
-0.021304277703166008,
-0.021662691608071327,
-0.0030612077098339796,
0.06363934278488159
] |
BaptisteDoyen/camembert-base-xnli | [
"pytorch",
"tf",
"camembert",
"text-classification",
"fr",
"dataset:xnli",
"transformers",
"zero-shot-classification",
"xnli",
"nli",
"license:mit",
"has_space"
] | zero-shot-classification | {
"architectures": [
"CamembertForSequenceClassification"
],
"model_type": "camembert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 405,474 | 2021-03-24T16:43:34Z | ---
language:
- fr
thumbnail:
tags:
- zero-shot-classification
- xnli
- nli
- fr
license: mit
pipeline_tag: zero-shot-classification
datasets:
- xnli
metrics:
- accuracy
---
# camembert-base-xnli
## Model description
Camembert-base model fine-tuned on french part of XNLI dataset. <br>
One of the few Zero-Shot classification model working on French 🇫🇷
## Intended uses & limitations
#### How to use
Two different usages :
- As a Zero-Shot sequence classifier :
```python
classifier = pipeline("zero-shot-classification",
model="BaptisteDoyen/camembert-base-xnli")
sequence = "L'équipe de France joue aujourd'hui au Parc des Princes"
candidate_labels = ["sport","politique","science"]
hypothesis_template = "Ce texte parle de {}."
classifier(sequence, candidate_labels, hypothesis_template=hypothesis_template)
# outputs :
# {'sequence': "L'équipe de France joue aujourd'hui au Parc des Princes",
# 'labels': ['sport', 'politique', 'science'],
# 'scores': [0.8595073223114014, 0.10821866989135742, 0.0322740375995636]}
```
- As a premise/hypothesis checker : <br>
The idea is here to compute a probability of the form \\( P(premise|hypothesis ) \\)
```python
# load model and tokenizer
nli_model = AutoModelForSequenceClassification.from_pretrained("BaptisteDoyen/camembert-base-xnli")
tokenizer = AutoTokenizer.from_pretrained("BaptisteDoyen/camembert-base-xnli")
# sequences
premise = "le score pour les bleus est élevé"
hypothesis = "L'équipe de France a fait un bon match"
# tokenize and run through model
x = tokenizer.encode(premise, hypothesis, return_tensors='pt')
logits = nli_model(x)[0]
# we throw away "neutral" (dim 1) and take the probability of
# "entailment" (0) as the probability of the label being true
entail_contradiction_logits = logits[:,::2]
probs = entail_contradiction_logits.softmax(dim=1)
prob_label_is_true = probs[:,0]
prob_label_is_true[0].tolist() * 100
# outputs
# 86.40775084495544
```
## Training data
Training data is the french fold of the [XNLI](https://research.fb.com/publications/xnli-evaluating-cross-lingual-sentence-representations/) dataset released in 2018 by Facebook. <br>
Available with great ease using the ```datasets``` library :
```python
from datasets import load_dataset
dataset = load_dataset('xnli', 'fr')
```
## Training/Fine-Tuning procedure
Training procedure is here pretty basic and was performed on the cloud using a single GPU. <br>
Main training parameters :
- ```lr = 2e-5``` with ```lr_scheduler_type = "linear"```
- ```num_train_epochs = 4```
- ```batch_size = 12``` (limited by GPU-memory)
- ```weight_decay = 0.01```
- ```metric_for_best_model = "eval_accuracy"```
## Eval results
We obtain the following results on ```validation``` and ```test``` sets:
| Set | Accuracy |
| ---------- |-------------|
| validation | 81.4 |
| test | 81.7 |
| [
-0.02432314306497574,
-0.014132813550531864,
0.009933752939105034,
0.04409412667155266,
0.039495185017585754,
0.014269725419580936,
-0.010511870495975018,
-0.004505624063313007,
-0.03510694205760956,
0.058593299239873886,
0.0022852891124784946,
-0.0061280191875994205,
-0.017499880865216255,
0.034024596214294434,
-0.02591858059167862,
-0.024783143773674965,
-0.017644003033638,
-0.02786405384540558,
-0.021391231566667557,
-0.0031009833328425884,
0.0036559293512254953,
-0.004907520487904549,
0.013316718861460686,
0.022193636745214462,
-0.016593225300312042,
0.018976356834173203,
-0.028528885915875435,
0.05154599994421005,
0.0514494962990284,
-0.07178008556365967,
0.004770571365952492,
-0.017377683892846107,
-0.024010367691516876,
-0.02851886674761772,
-0.009326565079391003,
-0.0068137263879179955,
-0.004964377731084824,
0.00453061331063509,
0.024005824699997902,
0.06550692021846771,
0.008666367270052433,
0.013974308036267757,
-0.03303207457065582,
0.003092210739850998,
0.054796334356069565,
0.027555879205465317,
-0.037094276398420334,
-0.015183495357632637,
0.040220506489276886,
-0.01489715464413166,
-0.0691104456782341,
-0.0495392382144928,
-0.022921444848179817,
0.029633166268467903,
-0.04506916180253029,
-0.03351546823978424,
-0.06439957022666931,
0.027649138122797012,
0.061868540942668915,
-0.026334770023822784,
-0.021567178890109062,
0.007078141905367374,
-0.08165144920349121,
0.02574904076755047,
0.016759460791945457,
-0.0515766441822052,
-0.0016603759722784162,
-0.05153585597872734,
0.008784575387835503,
-0.006127432454377413,
0.04029339924454689,
-0.020602289587259293,
0.013011964969336987,
-0.05414518713951111,
-0.0043802508153021336,
-0.020822972059249878,
0.028856929391622543,
0.04470014199614525,
-0.03380044922232628,
0.024741053581237793,
0.023099573329091072,
-0.00488812243565917,
0.049075897783041,
-0.011201865039765835,
-0.027211492881178856,
0.05589553713798523,
-0.05688010901212692,
-0.021682357415556908,
0.03884068503975868,
0.005454920697957277,
-0.05158529058098793,
-0.043545741587877274,
0.012334911152720451,
-0.019986430183053017,
-0.008996603079140186,
0.03882471099495888,
0.0411023311316967,
-0.017310911789536476,
0.04853885993361473,
0.024676688015460968,
-0.0006471154629252851,
0.03884027525782585,
0.007914128713309765,
0.06630881875753403,
-0.03026893176138401,
-0.012881464324891567,
0.0025253132916986942,
-0.058712005615234375,
-0.022123467177152634,
0.014536691829562187,
-0.00041798598249442875,
0.0021345154382288456,
-0.015937797725200653,
0.06230015680193901,
0.028977930545806885,
-0.0005480251275002956,
0.04703032970428467,
-0.036023762077093124,
-0.03313984349370003,
-0.0732579380273819,
-0.0019311161013320088,
-0.010212737135589123,
-0.021962711587548256,
0.030804403126239777,
-0.040255818516016006,
-0.003509382251650095,
-0.04480435326695442,
-0.05172937735915184,
-0.012950904667377472,
0.01713375933468342,
-0.02790563926100731,
0.028966212645173073,
0.013426878489553928,
-0.030949847772717476,
0.016530755907297134,
0.014175388030707836,
-0.04792626574635506,
0.05219178646802902,
0.022146232426166534,
0.1229376420378685,
-0.06059673801064491,
-0.05553095415234566,
0.03263586387038231,
0.012849628925323486,
-0.05166231840848923,
0.006163688842207193,
-0.019609229639172554,
-0.05847737938165665,
-0.015254326164722443,
0.0017314578872174025,
0.057064179331064224,
-0.04948686063289642,
0.009062022902071476,
0.0495135672390461,
-0.010788613930344582,
0.030061157420277596,
-0.07253513485193253,
-0.03183145821094513,
-0.008170656859874725,
0.0061322469264268875,
-0.028821328654885292,
0.025702543556690216,
-0.025268204510211945,
-0.0276884026825428,
-0.05874260514974594,
-0.056872133165597916,
-0.005070837680250406,
0.07064872980117798,
-0.025471359491348267,
-0.018707992509007454,
-0.02137904055416584,
0.008113180287182331,
0.024051662534475327,
0.02070111408829689,
-0.04372774809598923,
0.06069709733128548,
0.08165501803159714,
0.02038704790174961,
-0.037381235510110855,
0.09422492980957031,
0.030012397095561028,
-0.023664576932787895,
-0.05850224569439888,
0.01803014799952507,
0.010112179443240166,
-0.03581519424915314,
0.019981371238827705,
0.020924711599946022,
0.002724486868828535,
-0.04584652557969093,
-0.0014128072652965784,
0.051788944751024246,
0.003928935620933771,
0.0009093999397009611,
0.002103368751704693,
0.0008437474025413394,
-0.017417507246136665,
0.04679884389042854,
-0.0068313973024487495,
0.01590905338525772,
-0.029014071449637413,
-0.03512750566005707,
-0.007105641532689333,
0.04421457648277283,
0.05417616665363312,
0.023867202922701836,
-0.005846386309713125,
0.11269545555114746,
-0.025085974484682083,
0.004596081096678972,
-0.024907834827899933,
-0.030749967321753502,
-0.0015159978065639734,
0.0609934963285923,
0.023894285783171654,
0.05285629257559776,
-0.0023174460511654615,
-0.067232646048069,
0.05272071436047554,
0.0761556476354599,
0.04504068195819855,
0.014706370420753956,
-0.05247301980853081,
-0.004731982946395874,
0.03304528072476387,
0.03497755900025368,
-0.03657430410385132,
-0.04670572653412819,
0.025075459852814674,
0.03597288206219673,
-0.019558735191822052,
-0.012491618283092976,
-0.02641945891082287,
0.007538209669291973,
-0.01671297661960125,
-0.049010977149009705,
0.009054847992956638,
0.05281159281730652,
0.044238798320293427,
0.03247282654047012,
0.00013919245975557715,
-0.01666455715894699,
0.014473811723291874,
0.004806801211088896,
0.006206412333995104,
-0.06991773843765259,
0.021707409992814064,
0.010519923642277718,
0.025797436013817787,
-0.042571522295475006,
0.0428527370095253,
-0.007802608888596296,
0.0031942406203597784,
0.03753390908241272,
-0.0322413444519043,
0.032595470547676086,
0.060587938874959946,
0.022452805191278458,
-0.03170430287718773,
-0.011845389381051064,
0.0032067925203591585,
0.02917538583278656,
0.05281515046954155,
-0.010645134374499321,
0.06342440098524094,
-0.027383089065551758,
0.0518704429268837,
0.08883071690797806,
0.0368659645318985,
-0.00012777734082192183,
0.019840341061353683,
0.051129501312971115,
-0.009020274505019188,
-0.015750236809253693,
0.04006371274590492,
-0.04774060100317001,
0.04412078112363815,
-0.04354311153292656,
0.018333928659558296,
0.018125152215361595,
-0.0007117154309526086,
0.038938943296670914,
0.019501876085996628,
-0.030119888484477997,
0.008955505676567554,
-0.023316361010074615,
-0.019113905727863312,
0.024365799501538277,
-0.024356599897146225,
-0.012202520854771137,
0.009008482098579407,
0.0000340124788635876,
0.03480537608265877,
-0.023142637684941292,
-0.034345727413892746,
-0.001901579787954688,
-0.011938026174902916,
-0.018488403409719467,
-0.07081500440835953,
-0.01111454889178276,
-0.0692039206624031,
0.008688213303685188,
0.0424007885158062,
0.018857119604945183,
-0.012366731651127338,
-0.029798343777656555,
0.04942665249109268,
-0.012988436967134476,
-0.028265871107578278,
-0.02691507898271084,
-0.06035570427775383,
-0.023421604186296463,
-0.07705825567245483,
0.0420062318444252,
0.01335553266108036,
0.011452608741819859,
0.0186211708933115,
0.022913556545972824,
-0.005893288645893335,
-0.03475935012102127,
0.038156550377607346,
0.038396503776311874,
-0.011947966180741787,
-0.0490117110311985,
0.02934553474187851,
-0.02678344026207924,
0.007780344225466251,
-0.035207703709602356,
-0.059675149619579315,
0.06660793721675873,
0.0629081204533577,
-0.013693733140826225,
0.010756011120975018,
0.005738941486924887,
-0.049789056181907654,
-0.04133901000022888,
-0.014831051230430603,
-0.020881343632936478,
-0.0120122404769063,
-0.015721481293439865,
-0.0037059776950627565,
-0.024851884692907333,
-0.051291801035404205,
0.007053923327475786,
0.010046122595667839,
-0.007883372716605663,
0.029406893998384476,
0.01294686272740364,
0.005997727159410715,
0.03897443041205406,
-0.0398588553071022,
-0.04209906607866287,
0.07553423196077347,
0.021019043400883675,
-0.010453872382640839,
-0.0947868600487709,
-0.024118127301335335,
0.05179264768958092,
0.014425958506762981,
0.023014899343252182,
-0.018107520416378975,
0.09413158893585205,
0.022707493975758553,
-0.012724851258099079,
0.012321848422288895,
-0.021996302530169487,
-0.03909551352262497,
0.012933628633618355,
-0.0014443483669310808,
-0.01514487061649561,
-0.05635068565607071,
-0.039505358785390854,
0.01826673187315464,
0.03095218352973461,
-0.06000305339694023,
-0.0531187541782856,
0.0008396473713219166,
0.0337255485355854,
0.012504232116043568,
0.0013193523045629263,
-0.04856676235795021,
0.0065357377752661705,
-0.06906622648239136,
-0.01808238960802555,
0.0027265152893960476,
0.015837926417589188,
0.014153305441141129,
0.023274406790733337,
0.028995484113693237,
-0.010470195673406124,
0.02929178811609745,
0.04674812778830528,
0.05632270872592926,
0.02556632272899151,
-0.05239308252930641,
0.02294410951435566,
0.006395372562110424,
0.0168768297880888,
-0.033656131476163864,
-0.005160219967365265,
-0.03430117294192314,
-0.09043421596288681,
-0.026060348376631737,
0.005908309947699308,
-0.006880404893308878,
0.00018046522745862603,
0.02564580738544464,
-0.009660162962973118,
-0.008933275938034058,
0.010687445290386677,
0.029248889535665512,
0.045172132551670074,
-0.07017742842435837,
0.06018361821770668,
-0.03511617332696915,
0.055424176156520844,
-0.025092193856835365,
0.03466389700770378,
-0.03874712064862251,
-0.031438566744327545,
0.0012356691295281053,
0.038858044892549515,
-0.005695936270058155,
0.04032548516988754,
0.06899160146713257,
0.01012085098773241,
-0.033223237842321396,
0.04840036481618881,
0.024343105033040047,
-0.04356439411640167,
-0.049135223031044006,
0.00031688984017819166,
0.03366176038980484,
-0.012007170356810093,
0.0366157703101635,
-0.023166196420788765,
0.01306850090622902,
0.0070741730742156506,
-0.0330592542886734,
0.00270635518245399,
-0.01148391142487526,
-0.004489454906433821,
-0.04986289143562317,
-0.0343024916946888,
-0.01174299605190754,
0.015201639384031296,
-0.020834168419241905,
0.020892789587378502,
0.051452428102493286,
-0.0007680139387957752,
0.040639545768499374,
0.03107115626335144,
-0.035847559571266174,
-0.040659185498952866,
0.009946157224476337,
0.028040384873747826,
-0.017822768539190292,
-0.07631706446409225,
-0.018008440732955933,
0.030020756646990776,
0.03867911174893379,
-0.021565552800893784,
-0.06945586204528809,
-0.014035538770258427,
0.055630773305892944,
-0.0407308004796505,
0.07749397307634354,
0.011099250987172127,
0.023546934127807617,
0.055585309863090515,
-0.05114042013883591,
0.0344729907810688,
0.005251449998468161,
-0.004226866643875837,
-0.0007677841349504888,
0.022472985088825226,
-0.011676104739308357,
-0.02028762921690941,
-0.061989523470401764,
0.04387819021940231,
0.0108558414503932,
0.03663051128387451,
0.012777823023498058,
-0.022138750180602074,
-0.07992532849311829,
-0.006531949620693922,
0.036175768822431564,
-0.048057764768600464,
0.007874643430113792,
0.03276749700307846,
0.022257693111896515,
-0.050172194838523865,
-0.0302642360329628,
-0.005310357548296452,
0.00033643245114944875,
0.03863220289349556,
0.005923825316131115,
-0.029805339872837067,
-0.028025085106492043,
0.007653709501028061,
-0.02993309684097767,
-0.007530446629971266,
-0.10306623578071594,
0.023172013461589813,
-0.013469206169247627,
-0.03423464670777321,
0.0704386979341507,
0.04808938503265381,
0.025220384821295738,
0.048529185354709625,
0.010455780662596226,
0.00646689860150218,
-0.010422722436487675,
0.05950130522251129,
-0.030556276440620422,
-0.02797626331448555,
-0.030642591416835785,
-0.062481075525283813,
-0.019090862944722176,
-0.023750100284814835,
-0.026017799973487854,
-0.028914177790284157,
-0.01587744802236557,
-0.0067342487163841724,
-0.007269126828759909,
-0.008448166772723198,
-0.04423772543668747,
0.05044553801417351,
-0.037336599081754684,
-0.04325041174888611,
-0.03208816796541214,
-0.04416709393262863,
-0.08089816570281982,
-0.0509352833032608,
0.028565647080540657,
0.01730010285973549,
0.036011576652526855,
0.013975478708744049,
-0.004805296193808317,
0.027555733919143677,
-0.022691309452056885,
-0.012993235141038895,
0.040372200310230255,
-0.0024367060977965593,
-0.006260949186980724,
-0.040891945362091064,
0.0036783062387257814,
0.001849806634709239,
0.0446053221821785,
-0.032085269689559937,
0.026478895917534828,
0.03612183779478073,
-0.04262903332710266,
-0.009868064895272255,
0.028826097026467323,
-0.019951321184635162,
-0.046827543526887894,
-0.04870253801345825,
-0.017425304278731346,
-0.04237118363380432,
0.0398452952504158,
-0.011529671028256416,
-0.013619680888950825,
-0.012006149627268314,
0.013469070196151733,
0.02175576239824295,
-0.025458434596657753,
-0.005598794668912888,
0.04663730412721634,
-0.023409957066178322,
0.008233385160565376,
-0.05846315622329712,
0.061494626104831696,
-0.04017995670437813,
-0.009129440411925316,
-0.009773760102689266,
-0.0038703957106918097,
-0.045748770236968994,
0.03121800534427166,
-0.009811858646571636,
-0.06587870419025421,
-0.02032184973359108,
0.0044975923374295235,
-0.024189304560422897,
0.059246741235256195,
0.005071542225778103,
0.015392920933663845,
-0.023846833035349846,
0.03534364327788353,
-0.06381700932979584,
0.005551472771912813,
-0.025512998923659325,
0.02230800874531269,
-0.031222058460116386,
-0.018389509990811348,
-0.020147360861301422,
-0.04937539994716644,
0.0394805483520031,
0.02239709161221981,
0.0414305217564106,
0.022832360118627548,
0.01776104047894478,
0.01730976812541485,
0.03943365439772606,
-0.07054873555898666,
-0.030925512313842773,
-0.010829277336597443,
-0.0009024959290400147,
-0.02080785296857357,
0.042748499661684036,
0.012576716020703316,
-0.05671404302120209,
-0.05709701403975487,
0.05585113540291786,
0.027929626405239105,
-0.023015839979052544,
-0.006733283866196871,
0.04086434841156006,
0.024113694205880165,
0.003651025239378214,
-0.03149862959980965,
-0.02491234615445137,
-0.021243810653686523,
-0.03640374541282654,
0.003340319497510791,
0.013319249264895916,
0.04598858952522278,
0.022783808410167694,
-0.03159288689494133,
-0.020771408453583717,
0.09172047674655914,
0.03706485033035278,
0.010055165737867355,
-0.01494397409260273,
-0.024883363395929337,
0.013374816626310349,
0.04145592451095581,
-0.05861963704228401,
-0.002483486430719495,
-0.012657754123210907,
-0.029852526262402534,
0.08294861018657684,
-0.021364709362387657,
0.019905628636479378,
0.0895235538482666,
0.017606355249881744,
-0.0037893536500632763,
0.047323644161224365,
-0.0313020758330822,
0.00845429114997387,
0.04630136862397194,
-0.05149275064468384,
0.019740622490644455,
-0.005422278307378292,
0.06787652522325516,
-0.01995941624045372,
0.06571276485919952,
0.04397638142108917,
0.018782852217555046,
0.017638785764575005,
-0.0071929702535271645,
-0.05781836062669754,
0.02150840498507023,
-0.03301554173231125,
0.08803585916757584,
0.020072346553206444,
-0.06345193833112717,
0.05233945697546005,
0.02870936505496502,
-0.06878785789012909,
0.06463993340730667,
0.06253883242607117,
0.0354335755109787,
0.028346972540020943,
0.0174502395093441,
-0.074366994202137,
0.004348366986960173,
-0.02057182788848877,
0.030810467898845673,
-0.04311428219079971,
-0.002869234187528491,
0.018913082778453827,
-0.054796312004327774,
0.004029600881040096,
0.033062972128391266,
0.005760378669947386,
-0.017750253900885582,
0.03710155561566353,
-0.035080451518297195,
-0.05556517839431763,
0.0070443227887153625,
0.026121962815523148,
-0.011185664683580399,
0.019684456288814545,
-0.04250654950737953,
0.00359332119114697,
0.0012907841010019183,
-0.02024075761437416,
-0.021266456693410873,
-0.012442703358829021,
0.01053488440811634,
-0.06813940405845642,
-0.02909090183675289,
0.02677028253674507,
0.012418756261467934,
-0.0023074927739799023,
0.028230909258127213,
0.02954380214214325,
0.0255416426807642,
0.03003806620836258,
0.004241233225911856,
0.005888388026505709,
-0.060031987726688385,
-0.0050062937662005424,
0.05539510399103165,
0.0052657281048595905,
0.02177136205136776,
-0.02261541783809662,
0.045594677329063416,
0.04723993316292763,
0.025864632800221443,
-0.005296357441693544,
-0.016677796840667725,
-0.018106242641806602,
-0.0019152768654748797,
-0.02512657642364502,
0.0003377439279574901,
0.03504157066345215,
-0.0483565516769886,
-0.03451351821422577,
-0.017091182991862297,
-0.04141539707779884,
0.028650926426053047,
-0.054785341024398804,
-0.001752351294271648,
0.030046146363019943,
-0.016554273664951324,
-0.057400185614824295,
-0.10405325889587402,
-0.05564416944980621,
-0.04637864604592323,
0.024975204840302467,
0.015793584287166595,
-0.03187841549515724,
0.014632517471909523,
-0.03933161869645119,
-0.03931514918804169,
0.045795053243637085,
0.014020700938999653,
-0.046278707683086395,
0.07447425276041031,
0.036475639790296555,
-0.03980960696935654,
0.027890371158719063,
0.03110470436513424,
-0.05155520141124725,
0.02178640104830265,
0.0362425372004509,
0.020528871566057205,
0.03386550024151802,
0.012717586010694504,
-0.03760351240634918,
-0.016069259494543076,
-0.061049338430166245,
-0.035355094820261,
-0.0567643977701664,
-0.01174211036413908,
0.05681421607732773
] |
Batsy24/DialoGPT-medium-Twilight_BellaBot | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 8 | null | ---
tags:
- conversational
---
# Bella Swan DialoGPT model | [
-0.05652390047907829,
0.016988415271043777,
0.013422401621937752,
0.01829984225332737,
-0.0032349908724427223,
0.015877991914749146,
0.005312751047313213,
0.029053859412670135,
-0.02306198701262474,
0.021632535383105278,
0.03333413973450661,
-0.04433472827076912,
0.019134104251861572,
0.03805621340870857,
-0.026609200984239578,
-0.027109267190098763,
-0.027013644576072693,
-0.014214370399713516,
-0.023293040692806244,
-0.014729239977896214,
0.033450253307819366,
0.01225750707089901,
-0.0179449412971735,
0.04190240427851677,
0.014291800558567047,
0.0280295480042696,
-0.0215156227350235,
0.011544020846486092,
0.025746766477823257,
-0.0385625883936882,
0.010568559169769287,
-0.060860250145196915,
-0.04604493826627731,
-0.022229351103305817,
-0.01633116602897644,
-0.03951996564865112,
0.01289323065429926,
-0.028869012370705605,
-0.005788315087556839,
0.020010169595479965,
-0.017554251477122307,
-0.009897660464048386,
0.005994945764541626,
-0.02805638685822487,
0.07981538772583008,
-0.004902264103293419,
-0.04824884608387947,
-0.01495297346264124,
0.012827606871724129,
-0.04266423359513283,
-0.05468902736902237,
-0.06408874690532684,
-0.03443602845072746,
-0.02492639236152172,
0.001288709114305675,
-0.050328001379966736,
-0.08133519440889359,
-0.011517491191625595,
0.0900464802980423,
-0.02328397147357464,
-0.019838230684399605,
0.004597352351993322,
-0.07645435631275177,
0.019898036494851112,
0.030234355479478836,
-0.06313520669937134,
0.026714198291301727,
-0.03699488565325737,
0.018325893208384514,
-0.026886316016316414,
0.06555585563182831,
-0.04787762835621834,
0.007869788445532322,
-0.06683266162872314,
-0.0071542938239872456,
-0.004036047030240297,
0.041165951639413834,
0.06224730238318443,
-0.04718571901321411,
0.06979431957006454,
0.0550244115293026,
0.00693155825138092,
0.059088025242090225,
-0.0025963999796658754,
-0.02694595791399479,
0.06540128588676453,
-0.0774693638086319,
0.000557157676666975,
-0.008731751702725887,
0.031698908656835556,
-0.029448671266436577,
-0.054658569395542145,
-0.018285952508449554,
-0.0036881600972265005,
0.001338123925961554,
0.047276243567466736,
0.019274987280368805,
-0.041234467178583145,
0.02355864644050598,
0.03236554190516472,
0.01606287620961666,
0.016066016629338264,
-0.03159770369529724,
0.03626372665166855,
-0.007727842777967453,
0.012067167088389397,
0.020722156390547752,
-0.024590665474534035,
-0.03347690775990486,
0.015152296051383018,
-0.0024113431572914124,
-0.043392207473516464,
-0.026803547516465187,
0.03356073424220085,
0.015341953374445438,
-0.0116090914234519,
0.04945306107401848,
-0.03712073341012001,
-0.03499186038970947,
-0.06136460229754448,
0.05568670108914375,
-0.0005153962993063033,
0.003174306359142065,
-0.01755148358643055,
-0.04792935028672218,
0.001926626544445753,
-0.03554593399167061,
-0.02562374249100685,
-0.018476461991667747,
0.004700412508100271,
0.007596026174724102,
0.016266940161585808,
-0.01873614825308323,
-0.05076262354850769,
0.0010117683559656143,
0.03151461482048035,
-0.08361737430095673,
0.013035322539508343,
0.03285180777311325,
0.09079289436340332,
-0.07129214704036713,
-0.031507182866334915,
-0.007553603034466505,
0.005562690086662769,
-0.04216930642724037,
0.013080376200377941,
-0.0019237459637224674,
-0.007505724672228098,
-0.04778853431344032,
-0.021185563877224922,
0.013675966300070286,
-0.05277377367019653,
-0.008077279664576054,
0.02682647481560707,
0.025659728795289993,
0.01851845160126686,
-0.028436293825507164,
-0.010576837696135044,
-0.01922239176928997,
-0.03523232415318489,
-0.03299582004547119,
0.02708497829735279,
-0.027430906891822815,
-0.03833707422018051,
-0.04292045906186104,
-0.022287270054221153,
0.013130870647728443,
0.07794485241174698,
0.00690577132627368,
-0.0017557762330397964,
-0.032334376126527786,
0.028060436248779297,
0.05572056025266647,
0.039520759135484695,
-0.02174188755452633,
0.030004817992448807,
0.05059715360403061,
0.019931165501475334,
-0.026537317782640457,
0.06716063618659973,
0.008338160812854767,
-0.03830503299832344,
-0.0327354334294796,
-0.02132171206176281,
0.03494572639465332,
0.004303082823753357,
0.02262285351753235,
0.05252654850482941,
-0.0404251404106617,
-0.03680169954895973,
0.01045701652765274,
0.06854888796806335,
-0.0162959024310112,
0.0018614864675328135,
-0.037960249930620193,
-0.0270873811095953,
-0.04831179976463318,
0.01918599009513855,
-0.04260310158133507,
-0.007739956025034189,
-0.0252362173050642,
-0.014835314825177193,
0.020462920889258385,
-0.016812078654766083,
0.003215671982616186,
0.0559624582529068,
-0.019916443154215813,
0.06213952600955963,
-0.020046651363372803,
0.027952956035733223,
-0.03606821969151497,
-0.03155287727713585,
-0.01773080788552761,
0.03496836498379707,
0.018910923972725868,
0.04494588077068329,
-0.04314301535487175,
-0.03983144089579582,
0.035427384078502655,
0.04836907237768173,
0.05246420204639435,
0.030155576765537262,
-0.029340162873268127,
-0.00028656606446020305,
0.02974661998450756,
0.039082787930965424,
-0.042685627937316895,
0.011708793230354786,
0.011699365451931953,
0.01725473441183567,
-0.032111700624227524,
-0.016753504052758217,
-0.026278195902705193,
0.01362804789096117,
-0.03282035142183304,
-0.06318502873182297,
0.04412798956036568,
0.03812071308493614,
0.0012641892535611987,
0.04010405018925667,
-0.0070420498959720135,
0.001201602746732533,
0.03015090338885784,
0.002283542649820447,
-0.0304090715944767,
-0.0797102227807045,
-0.0011617811396718025,
0.03513393551111221,
0.09054014831781387,
-0.06063090264797211,
0.021020131185650826,
0.014177145436406136,
0.03520436957478523,
0.029980598017573357,
-0.014062218368053436,
0.03574119135737419,
0.03559810295701027,
0.052848439663648605,
-0.026116259396076202,
0.03649437427520752,
-0.007903915829956532,
0.023907890543341637,
0.04859917610883713,
-0.0004194573557469994,
0.05561194568872452,
-0.017946315929293633,
0.02543305605649948,
0.07245644927024841,
0.008737219497561455,
-0.016222089529037476,
0.045862480998039246,
0.08154265582561493,
-0.014422565698623657,
0.020227113738656044,
0.04572980850934982,
-0.01716696098446846,
-0.003931153565645218,
-0.05591178312897682,
-0.011373918503522873,
0.004841719288378954,
-0.018999911844730377,
0.06923065334558487,
-0.004424978047609329,
-0.01112520694732666,
-0.0038507310673594475,
-0.008776040747761726,
-0.0002841745736077428,
0.04559842869639397,
0.002714085392653942,
-0.01234805304557085,
0.0088767996057868,
-0.01011207140982151,
0.029146168380975723,
-0.042698297649621964,
-0.030916275456547737,
-0.023546995595097542,
-0.06670024245977402,
-0.008852144703269005,
-0.08974745869636536,
-0.03238460794091225,
-0.053984884172677994,
-0.030726123601198196,
0.04179151728749275,
0.015222995541989803,
0.03442582115530968,
-0.005498392973095179,
0.004500265698879957,
-0.027302391827106476,
-0.04303878918290138,
-0.06494143605232239,
-0.03787940740585327,
-0.02264423482120037,
-0.04542591795325279,
0.04063158482313156,
0.02323104441165924,
0.04820594936609268,
-0.000579006620682776,
-0.029100077226758003,
-0.059153299778699875,
-0.021899960935115814,
0.0421871691942215,
0.013559464365243912,
-0.04141949117183685,
-0.038114361464977264,
0.0021328877191990614,
0.007020597346127033,
0.009495771490037441,
-0.03877536207437515,
-0.042168792337179184,
0.0715872049331665,
0.040045395493507385,
0.016247514635324478,
0.016209324821829796,
-0.008268175646662712,
-0.018315648660063744,
-0.008814099244773388,
-0.05205704644322395,
-0.03123965673148632,
-0.008413251489400864,
-0.016682233661413193,
-0.05230337381362915,
-0.01893329992890358,
-0.038379523903131485,
-0.003447946161031723,
-0.000019247809177613817,
0.002412343630567193,
0.01984209008514881,
0.023878833279013634,
0.00999475084245205,
0.01898166909813881,
-0.020985424518585205,
-0.026451697573065758,
0.03659915551543236,
-0.015642939135432243,
-0.0079916687682271,
-0.08531878888607025,
-0.026260942220687866,
0.030379246920347214,
-0.0009624706581234932,
-0.020064702257514,
-0.01544135995209217,
0.04228731989860535,
0.022441430017352104,
-0.01488982792943716,
0.02120838314294815,
-0.060461558401584625,
0.001172119751572609,
-0.0363028421998024,
-0.011582506820559502,
-0.036983758211135864,
-0.011725063435733318,
-0.013417753390967846,
-0.014253675006330013,
0.040535181760787964,
-0.08872384577989578,
-0.03719237819314003,
-0.0229706559330225,
0.007308347150683403,
0.04467499256134033,
0.01991700753569603,
-0.044906262308359146,
-0.006630058400332928,
-0.03650958091020584,
-0.029327580705285072,
0.00009608238178770989,
-0.004054396413266659,
0.009387188591063023,
0.02761107310652733,
0.03603532165288925,
-0.04565376788377762,
0.03346596285700798,
0.023142345249652863,
0.04635792225599289,
0.04596022889018059,
-0.03532757982611656,
0.01610589399933815,
-0.05299331620335579,
0.038499440997838974,
0.0030431810300797224,
-0.04253683611750603,
-0.05930732935667038,
-0.10718609392642975,
-0.05000294744968414,
0.032123394310474396,
-0.014913743361830711,
0.0181801225990057,
0.027929313480854034,
-0.050295691937208176,
-0.004713411442935467,
-0.005023084115236998,
0.03331652656197548,
0.05497360974550247,
-0.03136143460869789,
0.07677590847015381,
0.008485951460897923,
0.006372394040226936,
-0.05717560648918152,
0.016697349026799202,
-0.05254374071955681,
-0.022575251758098602,
0.007020086515694857,
0.040166355669498444,
0.017678555101156235,
0.07360207289457321,
0.07593787461519241,
0.03445038944482803,
-0.060100533068180084,
0.06781288981437683,
0.08177417516708374,
-0.024677835404872894,
-0.026851613074541092,
-0.0024986485950648785,
-0.00825213547796011,
-0.01341046579182148,
-0.012452338822185993,
-0.03887731209397316,
0.0234525129199028,
0.016607332974672318,
-0.0014906853903084993,
0.0028908606618642807,
0.031374379992485046,
-0.02831335924565792,
-0.023341480642557144,
-0.06661264598369598,
0.003256905358284712,
-0.004838087130337954,
-0.03063216060400009,
0.058171048760414124,
0.042779311537742615,
0.011940797790884972,
0.0629015639424324,
0.0384572297334671,
-0.02053409069776535,
-0.05111446604132652,
0.03720840439200401,
0.036203689873218536,
-0.03591817989945412,
-0.06275936216115952,
-0.059275224804878235,
0.028043212369084358,
0.054868217557668686,
-0.027102820575237274,
-0.08338809758424759,
0.016162041574716568,
0.04305274784564972,
-0.05774723365902901,
0.05519038811326027,
-0.006660348270088434,
0.04882819578051567,
0.022920813411474228,
0.017213039100170135,
0.02668246068060398,
-0.07068904489278793,
0.016799811273813248,
-0.03534305468201637,
0.030291235074400902,
-0.047227006405591965,
-0.04859508201479912,
-0.050035495311021805,
0.04818873852491379,
0.009356250055134296,
0.03037191368639469,
0.04450010135769844,
-0.05395202338695526,
-0.0549737885594368,
-0.006103373132646084,
0.04312155023217201,
-0.015843378379940987,
0.008314356207847595,
0.021047212183475494,
0.03966853395104408,
-0.0447375662624836,
0.012807019054889679,
0.012981956824660301,
0.019834594801068306,
0.010010062716901302,
-0.008948242291808128,
-0.04818199947476387,
0.001470307121053338,
0.04721980169415474,
-0.03404470160603523,
-0.02047986164689064,
-0.0866360142827034,
0.0246626865118742,
-0.03381948173046112,
-0.0215678121894598,
0.05683765932917595,
0.06334619969129562,
0.0674886554479599,
0.07256431132555008,
-0.0066926018334925175,
0.05029795318841934,
-0.02229711040854454,
0.014870751649141312,
-0.05021415278315544,
-0.04186014086008072,
-0.006147513631731272,
-0.07768617570400238,
-0.027636678889393806,
-0.03759785741567612,
-0.049379609525203705,
-0.036267369985580444,
0.004033789504319429,
-0.0022869445383548737,
-0.00756043242290616,
-0.002308115130290389,
0.00295906700193882,
0.018975384533405304,
-0.01662404276430607,
-0.03248600661754608,
-0.007064348552376032,
-0.015196386724710464,
-0.07944894582033157,
-0.04700865224003792,
0.018207285553216934,
-0.01029227301478386,
0.0035638283006846905,
-0.0003565357765182853,
0.027228856459259987,
0.04305008798837662,
-0.007207388989627361,
-0.024791020900011063,
0.00005283240170683712,
0.04342947155237198,
-0.045082978904247284,
-0.010471286252140999,
0.0071660908870399,
0.012292873114347458,
0.028256762772798538,
-0.027658987790346146,
0.03776353597640991,
-0.010118355043232441,
-0.05763034150004387,
-0.030064323917031288,
0.03491465747356415,
0.006958869751542807,
-0.07532531768083572,
0.0023782451171427965,
-0.013447878882288933,
-0.022045431658625603,
0.023880276829004288,
-0.04289336875081062,
-0.03307245671749115,
-0.03167407959699631,
0.025731569156050682,
0.025561228394508362,
0.003605887060984969,
-0.03175138682126999,
-0.0027483494486659765,
-0.025957776233553886,
0.02596740424633026,
-0.05647480860352516,
0.029719356447458267,
-0.022392453625798225,
0.019285695627331734,
-0.004842098336666822,
0.021987171843647957,
-0.04504124075174332,
0.05203309282660484,
-0.03948843851685524,
-0.006993816699832678,
0.013245577923953533,
-0.015341658145189285,
-0.009667327627539635,
0.0444507859647274,
0.020396577194333076,
-0.026094967499375343,
-0.038928065448999405,
0.06893698126077652,
-0.04188966378569603,
0.014842291362583637,
-0.006092876195907593,
-0.01834011822938919,
-0.030184073373675346,
0.00485419575124979,
-0.003945251926779747,
-0.0468323640525341,
0.03004818595945835,
0.026383496820926666,
0.020789988338947296,
0.049454379826784134,
-0.000606773653998971,
0.009564453735947609,
0.021165283396840096,
-0.049997784197330475,
-0.041190631687641144,
-0.006755207199603319,
0.02025074139237404,
0.032310791313648224,
0.06916852295398712,
0.014271917752921581,
-0.0654313862323761,
-0.019144585356116295,
0.0342862531542778,
0.02521849051117897,
0.016968395560979843,
0.01352593582123518,
0.045488130301237106,
0.05770234763622284,
0.04808759316802025,
-0.016743779182434082,
0.0024188049137592316,
0.00022879954485688359,
-0.020889289677143097,
-0.026529312133789062,
-0.0039434838108718395,
0.014971813187003136,
0.0009349932661280036,
-0.028994467109441757,
-0.02520538866519928,
0.07097966969013214,
-0.0020998353138566017,
0.0064277565106749535,
-0.020438821986317635,
-0.04074544087052345,
0.057520028203725815,
-0.012096351943910122,
-0.04126925766468048,
-0.01055193692445755,
0.04000161960721016,
-0.023255495354533195,
0.017748070880770683,
-0.036405473947525024,
0.0069208452478051186,
0.0552600622177124,
0.018983127549290657,
-0.0074076345190405846,
0.004139327444136143,
-0.009065204299986362,
-0.008450018242001534,
0.016327694058418274,
-0.03748625889420509,
-0.015407267026603222,
-0.03841404616832733,
0.062111057341098785,
-0.0563989132642746,
0.0737692341208458,
0.04672904312610626,
0.03907870873808861,
0.03703512251377106,
-0.04903385788202286,
-0.03240206837654114,
-0.02451782301068306,
-0.03738973289728165,
0.06075545772910118,
-0.011046608909964561,
-0.04654102399945259,
0.0695796012878418,
0.042441412806510925,
-0.07831934094429016,
0.05028267577290535,
0.039362840354442596,
0.04408517852425575,
0.02757260575890541,
0.051847752183675766,
-0.036783020943403244,
0.029845520853996277,
-0.013275404460728168,
0.00343265850096941,
-0.032634492963552475,
-0.01728246361017227,
0.004590888042002916,
-0.06302515417337418,
-0.004708390682935715,
0.038102488964796066,
-0.02182300202548504,
0.003610986052080989,
0.011600617319345474,
-0.019510900601744652,
-0.04789859801530838,
0.002566055627539754,
0.028067700564861298,
0.002067301422357559,
-0.005119479261338711,
-0.0005480468389578164,
0.04723845422267914,
0.0459500327706337,
0.007314135320484638,
-0.06371431052684784,
0.015180807560682297,
-0.026621617376804352,
-0.06267610937356949,
-0.05214248597621918,
0.04571656882762909,
0.025660380721092224,
0.003446015063673258,
-0.009634305723011494,
0.03436972200870514,
0.00991336815059185,
0.027516750618815422,
-0.016474101692438126,
0.002611632226034999,
-0.06858551502227783,
0.0007395230932161212,
0.034640781581401825,
0.022129567340016365,
0.021606536582112312,
-0.015099020674824715,
0.025318237021565437,
0.06604795157909393,
0.05041409656405449,
0.007203405257314444,
-0.044331178069114685,
-0.02109660767018795,
-0.010752675123512745,
-0.03233810141682625,
0.04739775508642197,
0.0009150775731541216,
-0.06896530091762543,
-0.03343220800161362,
-0.01935209333896637,
0.016443096101284027,
0.031106257811188698,
-0.048122357577085495,
0.009999663569033146,
0.03519023582339287,
-0.0032424700912088156,
-0.03488331660628319,
-0.0994456335902214,
-0.03916396200656891,
-0.030403049662709236,
0.027608754113316536,
0.024632947519421577,
-0.06761444360017776,
0.012081875465810299,
-0.036483313888311386,
-0.007031427230685949,
0.04956665262579918,
-0.012142064981162548,
-0.009175931103527546,
0.07418566197156906,
0.056282248347997665,
-0.04218744486570358,
0.042898863554000854,
0.030214359983801842,
-0.033631034195423126,
0.03208378702402115,
0.010164830833673477,
0.04104038327932358,
0.011134279891848564,
0.033426377922296524,
-0.010736050084233284,
-0.00651963334530592,
0.014953462406992912,
-0.029535261914134026,
0.00020350835984572768,
-0.008404131047427654,
0.0449003241956234
] |
Batsy24/DialoGPT-small-Twilight_EdBot | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | 2021-08-26T19:47:43Z | ---
tags:
- conversational
---
# Twilight Edward DialoGPT Model | [
-0.031777627766132355,
0.02548781968653202,
0.004613311495631933,
0.020761625841259956,
0.004049879498779774,
0.01645183563232422,
0.0004574389895424247,
0.024089476093649864,
-0.030741088092327118,
0.020437531173229218,
0.03451504558324814,
-0.03968954086303711,
0.02342875860631466,
0.027438564226031303,
-0.02856663428246975,
-0.029991546645760536,
-0.04294790327548981,
-0.008692638017237186,
-0.00831676833331585,
-0.00420885905623436,
0.0316607728600502,
0.030314940959215164,
-0.013078441843390465,
0.024561269208788872,
-0.0005837504286319017,
0.03976229578256607,
-0.023557651787996292,
0.018082765862345695,
0.02140536531805992,
-0.04052910581231117,
0.020592911168932915,
-0.05667414516210556,
-0.0509047694504261,
-0.02637128159403801,
-0.018783042207360268,
-0.022092366591095924,
0.011701547540724277,
-0.020948583260178566,
0.003924014512449503,
0.008492664434015751,
-0.019345451146364212,
-0.004948544781655073,
0.004574968479573727,
-0.03572982922196388,
0.08212611824274063,
-0.0016699975822120905,
-0.057222455739974976,
-0.0035833390429615974,
0.021618492901325226,
-0.024903791025280952,
-0.054724693298339844,
-0.054096419364213943,
-0.03177831321954727,
-0.015723712742328644,
0.020418306812644005,
-0.043801214545965195,
-0.08110543340444565,
-0.007708802353590727,
0.09238630533218384,
-0.022722279652953148,
-0.011354664340615273,
0.013599610887467861,
-0.07165107131004333,
0.010763044469058514,
0.032425686717033386,
-0.06548496335744858,
0.021242519840598106,
-0.041657954454422,
0.020892005413770676,
-0.021642837673425674,
0.06117802858352661,
-0.05187166482210159,
0.00898861512541771,
-0.07489003241062164,
-0.009929396212100983,
-0.003002774901688099,
0.051190752536058426,
0.05253257229924202,
-0.04549916833639145,
0.06362804025411606,
0.030906518921256065,
0.0055255708284676075,
0.04086734727025032,
-0.005902085453271866,
-0.026725949719548225,
0.0626852735877037,
-0.07629750669002533,
0.003221277380362153,
-0.01345597580075264,
0.027039784938097,
-0.04673337563872337,
-0.05984565243124962,
-0.014393704012036324,
-0.021879451349377632,
0.0027992723044008017,
0.049107301980257034,
0.027517782524228096,
-0.03736970201134682,
0.022695116698741913,
0.04105762764811516,
0.012309340760111809,
0.029840907081961632,
-0.023112647235393524,
0.03221263363957405,
-0.018040955066680908,
0.017343712970614433,
0.03346875309944153,
-0.017129095271229744,
-0.027452019974589348,
0.0324939526617527,
0.005665241274982691,
-0.021692033857107162,
-0.023513225838541985,
0.03824007511138916,
0.025858579203486443,
0.009654025547206402,
0.036594998091459274,
-0.04634806141257286,
-0.035469528287649155,
-0.050541579723358154,
0.04194890335202217,
0.0007776131969876587,
0.005749433301389217,
-0.013083051890134811,
-0.06524375081062317,
-0.0005842520040459931,
-0.03457910940051079,
-0.023455634713172913,
-0.016104094684123993,
-0.006344685330986977,
0.013059242628514767,
0.02707475610077381,
-0.014774041250348091,
-0.05075005814433098,
0.011089745908975601,
0.05486772581934929,
-0.07516556233167648,
0.008027520030736923,
0.046550095081329346,
0.09316501021385193,
-0.07693860679864883,
-0.023096289485692978,
0.00040286534931510687,
0.015844618901610374,
-0.04469030350446701,
0.010974899865686893,
0.005157988518476486,
-0.006123844068497419,
-0.05194101855158806,
-0.008382298052310944,
-0.003851627465337515,
-0.06350253522396088,
-0.004700556397438049,
0.03280054032802582,
0.027747076004743576,
0.01470832247287035,
-0.031821832060813904,
-0.014064829796552658,
-0.015648366883397102,
-0.049819640815258026,
-0.04545724764466286,
0.030926771461963654,
-0.015751199796795845,
-0.02096112072467804,
-0.037296127527952194,
-0.013137943111360073,
0.013338903896510601,
0.08569832891225815,
0.005616983398795128,
-0.015126064419746399,
-0.036598581820726395,
0.030162205919623375,
0.05735223367810249,
0.04847927391529083,
-0.020581187680363655,
0.0201114509254694,
0.04908790439367294,
0.017771370708942413,
-0.027081314474344254,
0.047317977994680405,
0.012919018976390362,
-0.039570607244968414,
-0.0335310734808445,
-0.023042727261781693,
0.023288387805223465,
-0.015436788089573383,
0.01140041183680296,
0.05272166058421135,
-0.02700933814048767,
-0.04715917259454727,
0.014921743422746658,
0.055486008524894714,
-0.0175461508333683,
-0.009335293434560299,
-0.03430776298046112,
-0.021852832287549973,
-0.03515477478504181,
0.023953814059495926,
-0.036354564130306244,
-0.014455295167863369,
-0.025969455018639565,
-0.01049407571554184,
0.02330743707716465,
-0.018305737525224686,
0.003933704923838377,
0.057416461408138275,
-0.01499342080205679,
0.06482405215501785,
-0.02155284956097603,
0.03373349830508232,
-0.04417448863387108,
-0.017396792769432068,
-0.00829249620437622,
0.022420374676585197,
0.03356027603149414,
0.04443671181797981,
-0.05194021388888359,
-0.05084666982293129,
0.034652017056941986,
0.057331476360559464,
0.04694990813732147,
0.01980084367096424,
-0.02700437232851982,
-0.007673359010368586,
0.027056949213147163,
0.044270191341638565,
-0.026508670300245285,
0.008721522055566311,
0.021420614793896675,
0.021664796397089958,
-0.008722644299268723,
-0.019996775314211845,
-0.039224907755851746,
0.016693977639079094,
-0.04510796070098877,
-0.0642554834485054,
0.050736717879772186,
0.032000619918107986,
0.0037356640677899122,
0.04273836314678192,
-0.008782868273556232,
0.022161535918712616,
0.021961722522974014,
0.0020949114114046097,
-0.00704476423561573,
-0.06578059494495392,
-0.005895799025893211,
0.0346984826028347,
0.08930059522390366,
-0.05666813626885414,
0.02922612428665161,
0.019348999485373497,
0.039629384875297546,
0.03848500922322273,
-0.012425543740391731,
0.05371757969260216,
0.03851620480418205,
0.0548190101981163,
-0.02709806337952614,
0.03823859244585037,
-0.014415714889764786,
0.02780868299305439,
0.05200069397687912,
-0.002197559457272291,
0.057665806263685226,
-0.010958465747535229,
0.025519194081425667,
0.0713600292801857,
0.013563599437475204,
-0.016790518537163734,
0.042452335357666016,
0.07043339312076569,
0.006857025902718306,
0.01335472334176302,
0.040399421006441116,
-0.013232959434390068,
0.002436668612062931,
-0.05008014664053917,
-0.0024947163183242083,
-0.003997184801846743,
-0.016989655792713165,
0.08533517271280289,
-0.019457487389445305,
-0.005500252824276686,
0.003495421027764678,
-0.013073069043457508,
-0.014318427070975304,
0.037015993148088455,
0.0022744459565728903,
-0.021749306470155716,
-0.006926778703927994,
-0.0119992196559906,
0.013013011775910854,
-0.059494294226169586,
-0.03293154388666153,
-0.01781153306365013,
-0.056799113750457764,
-0.017480062320828438,
-0.09515366703271866,
-0.04887817054986954,
-0.04758039116859436,
-0.02218063361942768,
0.048066191375255585,
0.0036804850678890944,
0.0324949249625206,
0.0006402246654033661,
0.003605087287724018,
-0.03026118502020836,
-0.05499639734625816,
-0.069430410861969,
-0.03359835222363472,
-0.012948219664394855,
-0.04496357589960098,
0.05951032415032387,
0.027142785489559174,
0.04944156855344772,
-0.006285649724304676,
-0.02477295882999897,
-0.04533753544092178,
-0.03695034980773926,
0.042150527238845825,
0.015502803958952427,
-0.04068857803940773,
-0.04540502652525902,
-0.010754937306046486,
0.005410065874457359,
0.022450093179941177,
-0.03995714709162712,
-0.044082287698984146,
0.0939614325761795,
0.047435663640499115,
0.02011953480541706,
0.024696029722690582,
-0.0012924810871481895,
-0.027139153331518173,
-0.023351259529590607,
-0.05332330986857414,
-0.03655790165066719,
-0.015835322439670563,
-0.019258994609117508,
-0.044190626591444016,
-0.04238160699605942,
-0.044427335262298584,
-0.011387920007109642,
0.0013621285324916244,
-0.0019447698723524809,
0.013260466046631336,
0.019943011924624443,
0.013357385993003845,
0.004445955622941256,
-0.02081834152340889,
-0.03216838464140892,
0.03434376046061516,
-0.010871192440390587,
-0.013471306301653385,
-0.07964426279067993,
-0.03470425307750702,
0.01632922887802124,
0.0068754032254219055,
-0.004231540486216545,
-0.02170647494494915,
0.03607620671391487,
0.03436839208006859,
0.0001496909389970824,
0.028409428894519806,
-0.05087441951036453,
-0.004761345684528351,
-0.036769576370716095,
-0.018466152250766754,
-0.029443465173244476,
-0.008315946906805038,
-0.02240690588951111,
-0.021277418360114098,
0.03818286210298538,
-0.08963126689195633,
-0.04154983535408974,
-0.0308942049741745,
0.010927604511380196,
0.06007369980216026,
0.008829876780509949,
-0.0419972762465477,
-0.011057764291763306,
-0.03979730233550072,
-0.02077510394155979,
0.005943139083683491,
-0.001161683350801468,
0.0025951447896659374,
0.02690158784389496,
0.039397697895765305,
-0.04202999547123909,
0.037422195076942444,
0.023661673069000244,
0.049425046890974045,
0.05996278300881386,
-0.03383035212755203,
0.015362382866442204,
-0.042371004819869995,
0.0258462056517601,
0.00757155055180192,
-0.03240513429045677,
-0.04862086474895477,
-0.10496305674314499,
-0.045794688165187836,
0.02785298600792885,
-0.015037081204354763,
0.009269892238080502,
0.036190230399370193,
-0.03914797306060791,
-0.019536510109901428,
-0.001252140966244042,
0.042961377650499344,
0.0503043569624424,
-0.044430576264858246,
0.05841036140918732,
0.012394764460623264,
0.01137340534478426,
-0.06368182599544525,
0.002191123552620411,
-0.049255989491939545,
-0.024213021621108055,
-0.0006799947004765272,
0.033245909959077835,
0.00845025759190321,
0.06598003208637238,
0.07414210587739944,
0.043118298053741455,
-0.055246155709028244,
0.05108368769288063,
0.07387813180685043,
-0.010718300007283688,
-0.05241039767861366,
-0.0026244327891618013,
-0.01036216039210558,
-0.0013388050720095634,
-0.011086431331932545,
-0.0244462788105011,
0.032477885484695435,
0.01489934977144003,
0.002578838961198926,
0.00888059101998806,
0.022874072194099426,
-0.022884512320160866,
-0.026685450226068497,
-0.06972714513540268,
-0.009208817034959793,
-0.008998584933578968,
-0.032126206904649734,
0.04668957740068436,
0.05182162672281265,
0.02328910306096077,
0.06102988123893738,
0.027195792645215988,
-0.016463402658700943,
-0.056865986436605453,
0.03938675671815872,
0.01995995081961155,
-0.03903977572917938,
-0.05667969956994057,
-0.0545983649790287,
0.023483160883188248,
0.05113207921385765,
-0.008976290002465248,
-0.08045487105846405,
0.026737559586763382,
0.035463206470012665,
-0.05754479765892029,
0.047387637197971344,
0.007918390445411205,
0.056302741169929504,
0.029271142557263374,
0.02289395034313202,
0.019927319139242172,
-0.07282944768667221,
0.0065927826799452305,
-0.028439601883292198,
0.02991790883243084,
-0.051821038126945496,
-0.05234922096133232,
-0.05691409483551979,
0.05331837758421898,
0.023151477798819542,
0.03180418536067009,
0.022266807034611702,
-0.05884866416454315,
-0.04935864359140396,
-0.0038563916459679604,
0.03643514961004257,
-0.014303515665233135,
0.002300606109201908,
0.023915305733680725,
0.05263061076402664,
-0.04853222519159317,
0.019317125901579857,
0.006956568919122219,
0.019963253289461136,
0.017823880538344383,
-0.012985099107027054,
-0.04397735372185707,
0.0028017035219818354,
0.04173089563846588,
-0.023134170100092888,
-0.018248381093144417,
-0.08324509859085083,
0.012152748182415962,
-0.03500455990433693,
-0.012302068993449211,
0.05727579817175865,
0.051347892731428146,
0.06428622454404831,
0.06902424991130829,
-0.008595826104283333,
0.0583663284778595,
-0.01656307838857174,
0.021571779623627663,
-0.049173902720212936,
-0.03008149191737175,
-0.004301977809518576,
-0.09809055179357529,
-0.031208287924528122,
-0.027862153947353363,
-0.04170532524585724,
-0.031140871345996857,
-0.004576542414724827,
-0.009630495682358742,
-0.0001452683354727924,
-0.007787199690937996,
0.006789275910705328,
0.013687836937606335,
-0.027407249435782433,
-0.035000983625650406,
-0.005763087421655655,
-0.022371215745806694,
-0.06629357486963272,
-0.06062556803226471,
0.007325510028749704,
-0.010465472936630249,
0.013878416270017624,
0.005820923950523138,
0.029792340472340584,
0.04488764703273773,
-0.0019992596935480833,
-0.01653321459889412,
-0.001025774166919291,
0.05013003945350647,
-0.04136298969388008,
-0.01396284718066454,
0.003204772714525461,
0.019031919538974762,
0.02455115132033825,
-0.033201828598976135,
0.042675938457250595,
-0.004843634553253651,
-0.051059234887361526,
-0.029826700687408447,
0.03368283808231354,
0.002334360731765628,
-0.0857279971241951,
-0.010593372397124767,
-0.02538539282977581,
-0.028439970687031746,
0.004384220577776432,
-0.032347481697797775,
-0.03245721012353897,
-0.031176961958408356,
0.03156192600727081,
0.022272946313023567,
0.013122566975653172,
-0.017389273270964622,
0.01047640759497881,
-0.023273736238479614,
0.024828298017382622,
-0.07283860445022583,
0.004057933576405048,
-0.022466715425252914,
0.030328601598739624,
-0.010379264131188393,
0.03552988916635513,
-0.036910563707351685,
0.06120080128312111,
-0.03022591397166252,
-0.006454401183873415,
0.00741465762257576,
-0.004978765733540058,
-0.015368390828371048,
0.04808421805500984,
0.009144353680312634,
0.0007064228411763906,
-0.027413757517933846,
0.08368633687496185,
-0.04726916179060936,
0.026664623990654945,
-0.027823569253087044,
-0.011577419005334377,
-0.030150478705763817,
0.00788166094571352,
-0.007690747734159231,
-0.04507589340209961,
0.022763865068554878,
0.034999001771211624,
-0.00748536828905344,
0.03563666716217995,
-0.002939726924523711,
0.0005297665484249592,
0.023830097168684006,
-0.052879758179187775,
-0.03516180068254471,
-0.001626452780328691,
-0.0011279055615887046,
0.03290398791432381,
0.06332951039075851,
0.00870500598102808,
-0.04389031603932381,
-0.026584839448332787,
0.04804809018969536,
0.01848153956234455,
0.014834201894700527,
-0.002926754532381892,
0.031226957216858864,
0.05823654308915138,
0.05594329908490181,
-0.016109250485897064,
0.016983700916171074,
0.00667569600045681,
-0.022946268320083618,
-0.031893014907836914,
-0.001138881198130548,
0.013246842660009861,
0.009669614024460316,
-0.03339812532067299,
-0.028406038880348206,
0.0785927101969719,
-0.0009837009711191058,
0.014646499417722225,
-0.016771487891674042,
-0.03212609142065048,
0.07276386767625809,
-0.005763303488492966,
-0.028336361050605774,
-0.010364791378378868,
0.04877682030200958,
-0.03449414297938347,
0.017155228182673454,
-0.03877932205796242,
0.010745282284915447,
0.058254800736904144,
0.007238860707730055,
-0.009504432789981365,
0.012053113430738449,
-0.018315322697162628,
-0.0016090802382677794,
0.018273301422595978,
-0.04374938830733299,
-0.03075505793094635,
-0.04572038725018501,
0.062493935227394104,
-0.04455498978495598,
0.0742596983909607,
0.03845170885324478,
0.02330547757446766,
0.030176065862178802,
-0.05039837956428528,
-0.028019679710268974,
-0.015190481208264828,
-0.04274778813123703,
0.0660756528377533,
-0.009765111841261387,
-0.04270539805293083,
0.06596070528030396,
0.02621639147400856,
-0.07044811546802521,
0.04092914238572121,
0.03594261780381203,
0.03873637691140175,
0.021840164437890053,
0.0691027045249939,
-0.03972359001636505,
0.008740203455090523,
-0.014345602132380009,
0.010057461448013783,
-0.03505009412765503,
-0.016412178054451942,
-0.006182870827615261,
-0.05900375545024872,
-0.0022046046797186136,
0.02715304121375084,
-0.028016887605190277,
-0.004773539956659079,
0.012264176271855831,
-0.026016060262918472,
-0.03698636591434479,
-0.004642010200768709,
0.020853469148278236,
0.005771077703684568,
-0.006951876915991306,
-0.013445304706692696,
0.04289434105157852,
0.03294778987765312,
-0.010531410574913025,
-0.07039082050323486,
0.022572316229343414,
-0.031481366604566574,
-0.06307743489742279,
-0.05614425241947174,
0.059235259890556335,
0.023341163992881775,
-0.0011223794426769018,
-0.0148405060172081,
0.022749565541744232,
0.017481235787272453,
0.04171973466873169,
-0.011036116629838943,
-0.002428547479212284,
-0.06317681819200516,
0.00007087689300533384,
0.03611299395561218,
0.02757694013416767,
-0.0028606182895600796,
-0.016433317214250565,
0.030416453257203102,
0.052885543555021286,
0.04799064248800278,
-0.00837611686438322,
-0.05286891385912895,
-0.029634393751621246,
-0.020572688430547714,
-0.032600462436676025,
0.0512659028172493,
0.0016974399331957102,
-0.06797563284635544,
-0.04193871095776558,
-0.017509691417217255,
-0.0024700418580323458,
0.03167805075645447,
-0.04780546948313713,
0.012894341722130775,
0.02650897391140461,
-0.015611625276505947,
-0.04083923622965813,
-0.09224346280097961,
-0.03239821642637253,
-0.013109409250319004,
0.024888476356863976,
0.0343514047563076,
-0.06221482902765274,
0.01135153230279684,
-0.02982121892273426,
-0.026054318994283676,
0.05097302794456482,
-0.009307990781962872,
-0.02812293730676174,
0.08213993906974792,
0.05872273072600365,
-0.038427576422691345,
0.04399026930332184,
0.01875612884759903,
-0.04848955571651459,
0.04290526360273361,
0.008150577545166016,
0.04509412497282028,
-0.005072384607046843,
0.014680922031402588,
-0.006023161578923464,
-0.003402968868613243,
0.00931641086935997,
-0.04343768581748009,
-0.00659050652757287,
-0.009701075963675976,
0.042454347014427185
] |
BatuhanYilmaz/dummy-model | [
"tf",
"camembert",
"fill-mask",
"transformers",
"generated_from_keras_callback",
"license:mit",
"autotrain_compatible"
] | fill-mask | {
"architectures": [
"CamembertForMaskedLM"
],
"model_type": "camembert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 6 | null | ---
license: mit
tags:
- generated_from_keras_callback
model-index:
- name: dummy-model
results: []
---
<!-- This model card has been generated automatically according to the information Keras had access to. You should
probably proofread and complete it, then remove this comment. -->
# dummy-model
This model is a fine-tuned version of [camembert-base](https://huggingface.co/camembert-base) on an unknown dataset.
It achieves the following results on the evaluation set:
## 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:
- optimizer: None
- training_precision: float32
### Training results
### Framework versions
- Transformers 4.15.0
- TensorFlow 2.7.0
- Datasets 1.17.0
- Tokenizers 0.10.3
| [
-0.060626763850450516,
-0.006557994522154331,
0.0003560581535566598,
0.03280690684914589,
0.027389459311962128,
0.022150754928588867,
-0.009804321452975273,
0.005338778719305992,
-0.03328477591276169,
0.04638205096125603,
0.01552434079349041,
-0.023666584864258766,
0.013863984495401382,
0.03065256029367447,
-0.03597696125507355,
-0.011085913516581059,
-0.013884092681109905,
-0.008605430833995342,
-0.021903490647673607,
0.002491879044100642,
0.017600195482373238,
0.0070453002117574215,
-0.006286419928073883,
0.01830626092851162,
-0.017686134204268456,
0.00028159961220808327,
0.0018214865121990442,
0.02827928401529789,
0.02413318119943142,
-0.0894295945763588,
-0.003050750819966197,
-0.06589757651090622,
-0.04937040060758591,
-0.02351132594048977,
-0.007728452794253826,
0.012770000845193863,
0.0025272611528635025,
0.004753068555146456,
0.024609211832284927,
0.033961083739995956,
-0.007968302816152573,
0.030065955594182014,
-0.030964333564043045,
-0.02513030916452408,
0.048472173511981964,
0.006691372953355312,
-0.05973203480243683,
-0.017610762268304825,
0.044408902525901794,
-0.025012237951159477,
-0.07052210718393326,
-0.05395566672086716,
-0.03352689370512962,
0.019472794607281685,
-0.025599591434001923,
-0.009909959509968758,
-0.04958358779549599,
-0.011740274727344513,
0.06423399597406387,
-0.027825679630041122,
-0.0378643237054348,
0.023001963272690773,
-0.08257292211055756,
0.019159778952598572,
0.04275523126125336,
-0.018389878794550896,
0.0025535065215080976,
-0.028252650052309036,
0.04424828290939331,
-0.01998773030936718,
0.05030285567045212,
-0.015061688609421253,
-0.011432823725044727,
-0.08179342746734619,
-0.01503659412264824,
-0.017369382083415985,
0.03789382055401802,
0.060575295239686966,
-0.029497237876057625,
0.0466795451939106,
0.02986522763967514,
-0.013530773110687733,
0.05086306482553482,
-0.008201357908546925,
-0.03871408849954605,
0.027434393763542175,
-0.05423750355839729,
0.00253107282333076,
0.014796794392168522,
0.02298601344227791,
-0.04160579293966293,
-0.025182699784636497,
-0.029568085446953773,
-0.0368439145386219,
-0.024613898247480392,
0.015385914593935013,
0.06734651327133179,
-0.0012720517115667462,
0.024490803480148315,
0.03117428533732891,
0.02809358760714531,
0.017842259258031845,
-0.016911625862121582,
0.06606335937976837,
0.018583448603749275,
-0.027978643774986267,
-0.019464876502752304,
-0.01994573324918747,
-0.03364214673638344,
0.022993555292487144,
0.013403610326349735,
-0.02449847385287285,
-0.0407625213265419,
0.03901396319270134,
-0.00796141941100359,
-0.011764155700802803,
0.06408155709505081,
-0.02187884785234928,
-0.03768207132816315,
-0.03716277703642845,
0.04118022322654724,
0.008080778643488884,
-0.022113414481282234,
-0.00020218580903019756,
-0.043679337948560715,
0.004464009311050177,
-0.025568868964910507,
-0.05125277861952782,
0.00455310195684433,
0.01634630374610424,
-0.004689739551395178,
0.06564554572105408,
0.021472381427884102,
-0.07066115736961365,
0.0016954430611804128,
0.023376574739813805,
-0.02006068453192711,
0.047972194850444794,
0.008887623436748981,
0.11652198433876038,
-0.06899308413267136,
-0.05728754773736,
0.02590874955058098,
-0.00031819759169593453,
-0.02750503271818161,
0.0060490770265460014,
0.017803771421313286,
-0.03968960791826248,
-0.019156089052557945,
-0.005718907341361046,
0.030623413622379303,
-0.06427155435085297,
-0.0073924739845097065,
0.044668953865766525,
0.014479436911642551,
0.037477757781744,
-0.06488478928804398,
-0.03920479118824005,
-0.010776369832456112,
0.012182275764644146,
-0.014909944497048855,
0.02665841393172741,
-0.010931095108389854,
0.007693984545767307,
-0.027181414887309074,
-0.042717766016721725,
0.00755101814866066,
0.07277335971593857,
-0.01902238093316555,
-0.022622035816311836,
-0.028912527486681938,
0.03955391049385071,
0.03172549605369568,
0.03584977984428406,
-0.040070924907922745,
0.047095831483602524,
0.05616309121251106,
0.03307465463876724,
-0.006070042494684458,
0.04027832671999931,
0.008308075368404388,
-0.034133024513721466,
-0.038400691002607346,
0.016598667949438095,
0.020894715562462807,
-0.05353884771466255,
0.010807564482092857,
0.016031809151172638,
0.006489436607807875,
-0.05280085280537605,
-0.023967627435922623,
0.04709507152438164,
0.0064345370046794415,
-0.005781493149697781,
0.0133522292599082,
-0.00672968290746212,
-0.0356285497546196,
0.03388042002916336,
-0.02161029540002346,
-0.00017141444550361484,
-0.025734486058354378,
-0.023982686921954155,
0.02556140534579754,
0.01928957924246788,
0.05442207679152489,
0.054665908217430115,
-0.00390833942219615,
0.08639845252037048,
-0.029109565541148186,
0.017780069261789322,
-0.01624591276049614,
-0.05298362672328949,
0.009077241644263268,
0.0619390644133091,
0.052268315106630325,
0.022586053237318993,
-0.011933970265090466,
-0.06434483826160431,
0.04088757187128067,
0.07233420014381409,
0.025659635663032532,
0.02148878015577793,
-0.03296196088194847,
-0.01013412605971098,
0.045566122978925705,
0.05779676511883736,
-0.05798041820526123,
-0.025547413155436516,
0.02305939421057701,
0.04173491522669792,
-0.03023936226963997,
0.019081924110651016,
-0.003139065345749259,
0.035647694021463394,
-0.04447484388947487,
-0.09206471592187881,
0.04348667338490486,
0.035542793571949005,
-0.0005983719020150602,
0.023519601672887802,
0.022732773795723915,
0.006498495116829872,
0.010602901689708233,
0.007153144106268883,
-0.0059464904479682446,
-0.044223617762327194,
0.013953078538179398,
0.0204617939889431,
0.051743991672992706,
-0.05646561086177826,
0.04424900561571121,
0.002251293743029237,
0.011566132307052612,
0.04179501533508301,
-0.04626858979463577,
0.026981782168149948,
0.041301947087049484,
0.022258618846535683,
-0.0258309505879879,
0.006396081764250994,
0.020675092935562134,
0.04749266058206558,
0.03856948763132095,
0.010477063246071339,
0.06029011681675911,
-0.011181268841028214,
0.04690895229578018,
0.07056543976068497,
0.026624135673046112,
0.04383472725749016,
0.02634439617395401,
0.08321159332990646,
-0.0013220567489042878,
-0.004256277810782194,
0.05728711560368538,
-0.056988634169101715,
0.012711338698863983,
-0.053088489919900894,
0.003394407220184803,
-0.018532980233430862,
-0.008691463619470596,
0.05012502521276474,
0.005659413989633322,
-0.021191731095314026,
-0.0018575299764052033,
-0.01786879077553749,
-0.026776159182190895,
0.03137199208140373,
0.006818633992224932,
-0.0028995934408158064,
0.0011625171173363924,
0.0013996342895552516,
-0.01300903782248497,
-0.07293199747800827,
-0.030346568673849106,
-0.022323688492178917,
-0.043424203991889954,
-0.011900074779987335,
-0.08520875871181488,
-0.01528779324144125,
-0.05345749109983444,
-0.01783333346247673,
0.015682654455304146,
0.0022927685640752316,
-0.007762028835713863,
-0.04110458493232727,
0.039393357932567596,
-0.04967118427157402,
-0.05638634413480759,
-0.06196286156773567,
-0.04482775181531906,
-0.035492606461048126,
-0.08167383819818497,
0.049199070781469345,
0.007626524660736322,
0.008059731684625149,
0.014251520857214928,
0.0015175578882917762,
-0.02161354571580887,
-0.009378726594150066,
0.04081657901406288,
0.053558316081762314,
-0.033531468361616135,
-0.03563360124826431,
0.016666650772094727,
-0.015512908808887005,
0.016768578439950943,
-0.027372678741812706,
-0.03477530553936958,
0.11089707911014557,
0.06249105557799339,
-0.0011521680280566216,
0.021400749683380127,
-0.0007179738604463637,
-0.06099006533622742,
-0.045324042439460754,
-0.013086646795272827,
-0.03207121789455414,
-0.011479227803647518,
-0.04570213705301285,
-0.030648598447442055,
-0.022637808695435524,
-0.04183681681752205,
-0.009621690958738327,
-0.0011991920182481408,
0.015513919293880463,
0.023386875167489052,
0.0441647544503212,
0.009728017263114452,
0.012932268902659416,
-0.021867530420422554,
-0.049485526978969574,
0.05726400017738342,
-0.0036959608551114798,
0.0032139457762241364,
-0.0688222274184227,
-0.02469804510474205,
0.03902098163962364,
0.018871396780014038,
0.006811215542256832,
-0.00850214995443821,
0.0578746572136879,
-0.015218643471598625,
-0.014823474921286106,
0.016338970512151718,
-0.024652360007166862,
-0.025623491033911705,
0.03701847046613693,
0.0033348712604492903,
-0.013515223748981953,
-0.05511251837015152,
-0.0228534284979105,
0.01107593160122633,
0.048388831317424774,
-0.06227501481771469,
-0.05332392826676369,
-0.026731986552476883,
0.03804503381252289,
0.06794727593660355,
-0.0026072568725794554,
-0.03638420253992081,
-0.01409265585243702,
-0.036126647144556046,
-0.026386436074972153,
0.03705177083611488,
0.01493456307798624,
0.02308414690196514,
0.04560801014304161,
0.021949883550405502,
-0.036090485751628876,
0.045296549797058105,
0.06387479603290558,
0.06074745953083038,
0.017264774069190025,
-0.052899252623319626,
0.015038426965475082,
-0.014797165989875793,
0.014009073376655579,
0.0020603740122169256,
-0.01800042763352394,
-0.03528015315532684,
-0.09108530730009079,
-0.034291159361600876,
0.006539465393871069,
-0.01636541448533535,
-0.008092178031802177,
0.05249056592583656,
-0.01064225286245346,
-0.027330927550792694,
-0.0037714235950261354,
0.019487276673316956,
0.0480956956744194,
-0.035957738757133484,
0.0499839261174202,
0.00020764565852005035,
0.031615257263183594,
-0.050099194049835205,
0.01616305112838745,
-0.009937948547303677,
-0.03822731599211693,
-0.013259220868349075,
0.07922426611185074,
-0.0025141392834484577,
0.06465965509414673,
0.11085295677185059,
0.022228820249438286,
-0.046659935265779495,
0.04337389022111893,
0.06033371388912201,
-0.037071648985147476,
-0.03404020518064499,
-0.004181696102023125,
0.00040398089913651347,
-0.01966799981892109,
-0.01753881387412548,
-0.007693519350141287,
0.043351978063583374,
0.039479438215494156,
-0.005766722373664379,
0.03641359508037567,
-0.0014241969911381602,
-0.019470185041427612,
-0.0326688289642334,
-0.06316062062978745,
-0.03713703155517578,
0.008595197461545467,
-0.04344673827290535,
0.008964010514318943,
0.042250461876392365,
0.00785103254020214,
0.061298951506614685,
0.02172931842505932,
-0.030921390280127525,
-0.05391388759016991,
0.01239765714854002,
0.02831740491092205,
-0.030545104295015335,
-0.08376849442720413,
-0.03832906484603882,
0.028933202847838402,
0.03426925837993622,
-0.015692858025431633,
-0.05590427294373512,
0.0012629643315449357,
0.047178275883197784,
-0.03194365277886391,
0.061786819249391556,
-0.014951780438423157,
0.03636641800403595,
0.05173142999410629,
-0.01902610808610916,
0.031228940933942795,
-0.021669860929250717,
0.00026405960670672357,
-0.003946694545447826,
0.02437007986009121,
-0.015314638614654541,
-0.03832072764635086,
-0.0571177713572979,
0.012411311268806458,
0.029201865196228027,
0.03806686773896217,
0.033184729516506195,
-0.03191176429390907,
-0.06734748929738998,
0.017745008692145348,
0.04198917746543884,
-0.05500373989343643,
-0.0019818181172013283,
0.03904077038168907,
0.03908071294426918,
-0.05758492276072502,
-0.04022551700472832,
-0.05173170566558838,
-0.019873134791851044,
0.006514982786029577,
-0.0026237438432872295,
-0.04364079236984253,
-0.03223716467618942,
0.018201803788542747,
0.0009760966058820486,
-0.008755660615861416,
-0.08618638664484024,
0.03654338791966438,
-0.0062119849026203156,
-0.014221100136637688,
0.05888677388429642,
0.04016130417585373,
0.03336884453892708,
0.061423081904649734,
0.007970212958753109,
0.012213611975312233,
-0.024176515638828278,
0.04909719154238701,
-0.0400763675570488,
-0.033531513065099716,
0.00843080971390009,
-0.05055621266365051,
-0.029181117191910744,
-0.02900806814432144,
-0.03887591138482094,
-0.055474501103162766,
-0.004926836583763361,
0.021372785791754723,
0.0038786064833402634,
0.0019910132978111506,
-0.006055266596376896,
0.0401519238948822,
-0.03503616526722908,
-0.04443332552909851,
-0.032253365963697433,
-0.03835024684667587,
-0.06782751530408859,
-0.046009328216314316,
0.026694979518651962,
-0.0023767186794430017,
0.03096286579966545,
0.008374149911105633,
0.01866510882973671,
0.01394932996481657,
-0.010107684880495071,
-0.026284419000148773,
0.027065999805927277,
0.001472953474149108,
-0.007024104241281748,
-0.03231102228164673,
0.018264027312397957,
0.022721242159605026,
0.0497564822435379,
-0.03678906708955765,
0.023761572316288948,
0.02453230321407318,
-0.015548374503850937,
-0.0041230530478060246,
0.02731989324092865,
0.0038712676614522934,
-0.060362979769706726,
-0.02437344565987587,
-0.003206564811989665,
-0.03745317831635475,
0.03552434593439102,
-0.017635948956012726,
-0.03755969926714897,
-0.015090690925717354,
0.010860759764909744,
0.03838559612631798,
0.0013371458044275641,
-0.022917799651622772,
0.036294035613536835,
-0.03373408317565918,
0.013538611121475697,
-0.056731656193733215,
0.0629768967628479,
-0.05494147539138794,
0.013104545883834362,
-0.015264804475009441,
0.014805225655436516,
-0.050096165388822556,
0.045851074159145355,
0.0010857757879421115,
-0.036513008177280426,
-0.01837199740111828,
0.02890182100236416,
-0.03993171080946922,
0.04177934676408768,
-0.009361060336232185,
0.013291229493916035,
-0.028593292459845543,
0.08444169908761978,
-0.02922951802611351,
0.007243636064231396,
-0.036493148654699326,
0.02862834744155407,
-0.04527520015835762,
0.001919772825203836,
0.00491364998742938,
-0.02545120380818844,
0.018092038109898567,
0.04768477380275726,
0.03488272801041603,
0.010422354564070702,
-0.01018325425684452,
-0.010461840778589249,
0.029749048873782158,
-0.0534479059278965,
-0.011298955418169498,
-0.012215686962008476,
0.010438882745802402,
0.009786834940314293,
0.06706880778074265,
0.04057031869888306,
-0.044002801179885864,
-0.065283864736557,
0.04786115512251854,
0.007596865762025118,
-0.015935422852635384,
0.01648838259279728,
0.03866472467780113,
0.03889677673578262,
0.03499389439821243,
-0.03130624070763588,
-0.00970379263162613,
-0.011414576321840286,
-0.048752620816230774,
0.009170452132821083,
-0.01102665439248085,
0.02293132245540619,
-0.014141884632408619,
-0.03150408715009689,
-0.016609827056527138,
0.07431532442569733,
0.030235858634114265,
0.02498387172818184,
-0.02337665855884552,
-0.053541939705610275,
0.021784279495477676,
0.021913420408964157,
-0.04330440238118172,
-0.004151137080043554,
0.02400360442698002,
-0.026499371975660324,
0.06530369073152542,
-0.011054369620978832,
0.020433982834219933,
0.06346970796585083,
0.03523445874452591,
-0.032443732023239136,
0.05000516399741173,
-0.012629413045942783,
0.004309146665036678,
0.04751638323068619,
-0.04208077862858772,
-0.025387469679117203,
-0.025027470663189888,
0.07469186186790466,
-0.05840092897415161,
0.05017567798495293,
0.04402181878685951,
-0.011076131835579872,
0.010290217585861683,
-0.03374800458550453,
-0.06278940290212631,
0.01906871423125267,
-0.05057177692651749,
0.07757767289876938,
0.0029375459998846054,
-0.0582120418548584,
0.04284906014800072,
0.01632295921444893,
-0.07128489017486572,
0.0542081855237484,
0.03407550975680351,
0.039581049233675,
0.012882648967206478,
0.02947833016514778,
-0.05595836043357849,
0.020018022507429123,
-0.04088997840881348,
0.03927035257220268,
-0.05534236505627632,
-0.009643231518566608,
0.04063434898853302,
-0.039701662957668304,
-0.0342068150639534,
0.02064770646393299,
-0.007797897327691317,
-0.018722204491496086,
0.03722898289561272,
-0.042741090059280396,
-0.028243007138371468,
0.008509105071425438,
0.005449743941426277,
-0.014347090385854244,
0.01585160568356514,
-0.047184620052576065,
0.0009793227072805166,
0.01639794372022152,
-0.012985008768737316,
-0.012805379927158356,
-0.00011343164078425616,
0.0402233749628067,
-0.04560265317559242,
-0.05248628929257393,
0.03791069984436035,
0.0037393851671367884,
-0.020249798893928528,
0.028909124433994293,
0.023154212161898613,
0.023756474256515503,
0.021150242537260056,
0.014338032342493534,
0.0027851450722664595,
-0.028653156012296677,
-0.025905754417181015,
0.025504814460873604,
-0.013935891911387444,
0.041824597865343094,
0.0017437099013477564,
0.03878121078014374,
0.037298738956451416,
0.026542596518993378,
-0.017788784578442574,
-0.01929481327533722,
-0.035345401614904404,
0.0139369647949934,
-0.03139926493167877,
0.003274188144132495,
-0.007408153731375933,
-0.047227971255779266,
-0.05311330780386925,
0.001064873649738729,
-0.04628540575504303,
0.018467368558049202,
-0.06708512455224991,
0.011315344832837582,
0.03480964154005051,
-0.007238507736474276,
-0.059282418340444565,
-0.09664842486381531,
-0.023854287341237068,
-0.04298604652285576,
-0.007371789310127497,
0.02058001421391964,
-0.04047190397977829,
0.030884433537721634,
-0.054065607488155365,
-0.037812307476997375,
0.06535311788320541,
0.02229876071214676,
-0.023392895236611366,
0.051699232310056686,
0.022515013813972473,
-0.037871114909648895,
-0.0018417446408420801,
0.034853119403123856,
-0.03491982817649841,
0.008976031094789505,
0.011325987055897713,
0.02093827724456787,
0.036011554300785065,
-0.0102006196975708,
-0.05013364180922508,
-0.013628115877509117,
-0.08127816021442413,
-0.04543544352054596,
-0.05549497529864311,
0.015706399455666542,
0.0631357803940773
] |
Baybars/wav2vec2-xls-r-1b-turkish | [
"pytorch",
"tensorboard",
"wav2vec2",
"automatic-speech-recognition",
"tr",
"dataset:common_voice",
"transformers",
"common_voice",
"generated_from_trainer"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 13 | null | ---
language:
- tr
tags:
- automatic-speech-recognition
- common_voice
- generated_from_trainer
datasets:
- common_voice
model-index:
- name: ''
results: []
---
<!-- 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. -->
#
This model is a fine-tuned version of [./checkpoint-10500](https://huggingface.co/./checkpoint-10500) on the COMMON_VOICE - TR dataset.
It achieves the following results on the evaluation set:
- Loss: 0.7540
- Wer: 0.4647
- Cer: 0.1318
## 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.0002
- train_batch_size: 32
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.999,0.9999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 120.0
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Cer | Validation Loss | Wer |
|:-------------:|:------:|:-----:|:------:|:---------------:|:------:|
| 1.0779 | 4.59 | 500 | 0.2354 | 0.8260 | 0.7395 |
| 0.7573 | 9.17 | 1000 | 0.2100 | 0.7544 | 0.6960 |
| 0.8225 | 13.76 | 1500 | 0.2021 | 0.6867 | 0.6672 |
| 0.621 | 18.35 | 2000 | 0.1874 | 0.6824 | 0.6209 |
| 0.6362 | 22.94 | 2500 | 0.1904 | 0.6712 | 0.6286 |
| 0.624 | 27.52 | 3000 | 0.1820 | 0.6940 | 0.6116 |
| 0.4781 | 32.11 | 3500 | 0.1735 | 0.6966 | 0.5989 |
| 0.5685 | 36.7 | 4000 | 0.1769 | 0.6742 | 0.5971 |
| 0.4384 | 41.28 | 4500 | 0.1767 | 0.6904 | 0.5999 |
| 0.5509 | 45.87 | 5000 | 0.1692 | 0.6734 | 0.5641 |
| 0.3665 | 50.46 | 5500 | 0.1680 | 0.7018 | 0.5662 |
| 0.3914 | 55.05 | 6000 | 0.1631 | 0.7121 | 0.5552 |
| 0.2467 | 59.63 | 6500 | 0.1563 | 0.6657 | 0.5374 |
| 0.2576 | 64.22 | 7000 | 0.1554 | 0.6920 | 0.5316 |
| 0.2711 | 68.81 | 7500 | 0.1495 | 0.6900 | 0.5176 |
| 0.2626 | 73.39 | 8000 | 0.1454 | 0.6843 | 0.5043 |
| 0.1377 | 77.98 | 8500 | 0.1470 | 0.7383 | 0.5101 |
| 0.2005 | 82.57 | 9000 | 0.1430 | 0.7228 | 0.5045 |
| 0.1355 | 87.16 | 9500 | 0.1375 | 0.7231 | 0.4869 |
| 0.0431 | 91.74 | 10000 | 0.1350 | 0.7397 | 0.4749 |
| 0.0586 | 96.33 | 10500 | 0.1339 | 0.7360 | 0.4754 |
| 0.0896 | 100.92 | 11000 | 0.7187 | 0.4885 | 0.1398 |
| 0.183 | 105.5 | 11500 | 0.7310 | 0.4838 | 0.1392 |
| 0.0963 | 110.09 | 12000 | 0.7643 | 0.4759 | 0.1362 |
| 0.0437 | 114.68 | 12500 | 0.7525 | 0.4641 | 0.1328 |
| 0.1122 | 119.27 | 13000 | 0.7535 | 0.4651 | 0.1317 |
### Framework versions
- Transformers 4.17.0.dev0
- Pytorch 1.10.2+cu102
- Datasets 1.18.2.dev0
- Tokenizers 0.11.0
| [
-0.02517840266227722,
-0.002014386234804988,
-0.005102722905576229,
0.041968587785959244,
0.05318162962794304,
0.022293945774435997,
0.0012194797163829207,
-0.013768802396953106,
-0.036466121673583984,
0.05553101375699043,
0.012516127899289131,
-0.04639177396893501,
0.0100634153932333,
0.02861757203936577,
-0.02477341704070568,
-0.047441039234399796,
-0.029276428744196892,
-0.006220236420631409,
-0.037457313388586044,
-0.005751434713602066,
0.009403401985764503,
0.023434778675436974,
-0.020644279196858406,
0.018984174355864525,
-0.008768516592681408,
0.029462222009897232,
-0.009954930283129215,
0.005321466363966465,
0.01804867573082447,
-0.05882132425904274,
0.0007939254282973707,
-0.0484163835644722,
-0.04529609531164169,
-0.025686977431178093,
-0.00832563079893589,
0.015670599415898323,
0.006735555361956358,
0.016464650630950928,
0.03468601033091545,
0.0625404566526413,
-0.004687374923378229,
0.02625899389386177,
-0.009955720975995064,
-0.01649496704339981,
0.03826765716075897,
-0.012730737216770649,
-0.029541809111833572,
-0.020393429324030876,
0.022687746211886406,
-0.023089462891221046,
-0.048429813235998154,
-0.04080938547849655,
0.0036034281365573406,
0.010152658447623253,
-0.014260931871831417,
-0.027706831693649292,
-0.060611795634031296,
-0.0129332160577178,
0.08080470561981201,
-0.03462125360965729,
-0.037613850086927414,
0.031175125390291214,
-0.05627327412366867,
0.008634998463094234,
0.03394109755754471,
-0.06586552411317825,
0.017816275358200073,
-0.06249513849616051,
0.01794425956904888,
-0.02011147141456604,
0.054117750376462936,
-0.015384792350232601,
0.009425980970263481,
-0.09176306426525116,
-0.0015383275458589196,
-0.007625742815434933,
0.04709737375378609,
0.05176839232444763,
-0.029026763513684273,
0.05349435657262802,
0.016770921647548676,
0.0003856017719954252,
0.047669295221567154,
-0.013626663014292717,
0.025013087317347527,
0.03404439613223076,
-0.038251206278800964,
0.010885248892009258,
0.02657085843384266,
0.03573678806424141,
-0.03286750987172127,
-0.03548187389969826,
-0.0267889816313982,
-0.04621481895446777,
-0.012799320742487907,
0.04208299145102501,
0.048244211822748184,
-0.019362233579158783,
0.05003654211759567,
0.004912598058581352,
0.022969767451286316,
0.038142651319503784,
-0.02730543352663517,
0.061632219702005386,
-0.04186439514160156,
0.004084296524524689,
-0.024518899619579315,
-0.026333125308156013,
-0.034842249006032944,
0.024885470047593117,
0.03305285423994064,
-0.04037659615278244,
-0.03358549624681473,
0.04580816999077797,
0.014170875772833824,
-0.029486440122127533,
0.055429454892873764,
-0.041931819170713425,
-0.03995250537991524,
-0.04200571030378342,
0.03821510076522827,
0.030781880021095276,
-0.0028047405648976564,
0.0160895474255085,
-0.050177838653326035,
0.015139153227210045,
-0.027675354853272438,
-0.03622409701347351,
0.025658322498202324,
-0.01108655147254467,
0.004162076860666275,
0.05519088730216026,
-0.005814277101308107,
-0.058256909251213074,
-0.00975309032946825,
0.0027682508807629347,
-0.04679606482386589,
0.021796662360429764,
0.002134821144863963,
0.08539921045303345,
-0.059514984488487244,
-0.07135602831840515,
0.020246535539627075,
0.005641055293381214,
-0.016347942873835564,
0.03192206844687462,
0.03793136775493622,
-0.004865317139774561,
-0.01923428662121296,
0.008278055116534233,
0.06116439774632454,
-0.07094795256853104,
-0.011500407010316849,
0.06332127749919891,
-0.007559023331850767,
0.03919670730829239,
-0.03138704225420952,
-0.027716809883713722,
0.02664738893508911,
-0.026805562898516655,
-0.00678376154974103,
0.0199029128998518,
-0.01831907406449318,
-0.01955040916800499,
-0.04017985239624977,
-0.04240011051297188,
0.010446624830365181,
0.05248627811670303,
-0.005395531188696623,
-0.01343489158898592,
-0.026526158675551414,
0.020518241450190544,
0.0419282540678978,
0.04918881133198738,
-0.04879051446914673,
0.037363503128290176,
0.05851422995328903,
0.04319421201944351,
-0.03083341009914875,
0.06453368067741394,
0.009142410941421986,
-0.024090852588415146,
-0.038550253957509995,
0.03586938604712486,
-0.004365163389593363,
-0.03726465255022049,
0.00006132885027909651,
0.022680973634123802,
-0.005978940520435572,
-0.05852513760328293,
-0.03787805885076523,
0.04949851334095001,
-0.009172556921839714,
-0.009861615486443043,
-0.0008173153619281948,
-0.017486602067947388,
-0.029197510331869125,
0.038940176367759705,
-0.011889376677572727,
0.015723640099167824,
-0.03016955964267254,
-0.034612469375133514,
0.00861783791333437,
0.021228253841400146,
0.022480377927422523,
0.07169298827648163,
-0.013505338691174984,
0.0764065608382225,
-0.04053391516208649,
0.026901062577962875,
-0.037105295807123184,
-0.04751398041844368,
0.0060373698361217976,
0.0527532659471035,
0.0470411591231823,
0.065260149538517,
0.0008727422682568431,
-0.05875943973660469,
0.025875868275761604,
0.07883726060390472,
0.0647934153676033,
-0.0016371363308280706,
-0.041087087243795395,
-0.009753487072885036,
0.030683070421218872,
0.058943260461091995,
-0.0673343688249588,
-0.030556809157133102,
0.009952105581760406,
0.03701853007078171,
-0.014870856888592243,
0.012981164269149303,
-0.0235021710395813,
0.05502864718437195,
-0.06102299317717552,
-0.06790731847286224,
0.06517308950424194,
0.024680892005562782,
-0.001304788631387055,
0.03566507250070572,
-0.010435334406793118,
0.011670623905956745,
0.03558025136590004,
0.0072865174151957035,
0.007726771291345358,
-0.040913958102464676,
0.01585467718541622,
0.01549466885626316,
0.033710747957229614,
-0.059553153812885284,
0.04764716699719429,
-0.0094435540959239,
0.007003899198025465,
0.034674860537052155,
-0.04372099041938782,
0.03473259136080742,
0.03734706714749336,
0.021940182894468307,
-0.05462857335805893,
0.007462982553988695,
0.0067180488258600235,
0.04676199331879616,
0.039234910160303116,
-0.0068777757696807384,
0.06359158456325531,
0.006120358593761921,
0.03687477111816406,
0.07331213355064392,
0.030335217714309692,
0.004755600355565548,
0.01846938580274582,
0.06043809652328491,
0.016114715486764908,
-0.01521524041891098,
0.06693322211503983,
-0.052135054022073746,
0.01834358461201191,
-0.04628384858369827,
0.009419940412044525,
0.0016514152521267533,
-0.00019187065481673926,
0.01820145547389984,
0.011733566410839558,
-0.02296171709895134,
-0.0003145687223877758,
-0.03779524937272072,
-0.02266852930188179,
0.021018128842115402,
-0.008035245351493359,
-0.028586966916918755,
-0.006322615314275026,
-0.016917970031499863,
0.0036830080207437277,
-0.07834324985742569,
-0.03053477592766285,
-0.01677572913467884,
-0.047412142157554626,
-0.001417825580574572,
-0.08079122751951218,
-0.018146252259612083,
-0.06579318642616272,
-0.008350028656423092,
0.0215256679803133,
0.011102442629635334,
0.0024173881392925978,
-0.04319239407777786,
0.012466191314160824,
-0.05194000154733658,
-0.02432532235980034,
-0.05642271041870117,
-0.03235568851232529,
-0.03455400466918945,
-0.0683838501572609,
0.03457852825522423,
0.03156843036413193,
0.029211753979325294,
-0.002084014704450965,
-0.004185361322015524,
-0.022602882236242294,
-0.029572516679763794,
0.049312103539705276,
0.04828162491321564,
-0.04733186215162277,
-0.049953997135162354,
0.0373385064303875,
-0.04180365055799484,
0.01917455345392227,
-0.007599069736897945,
-0.020993150770664215,
0.09264720976352692,
0.059455107897520065,
0.010536502115428448,
0.029269184917211533,
-0.029009118676185608,
-0.05568069964647293,
-0.0528947077691555,
-0.034463390707969666,
-0.04384441301226616,
-0.015279287472367287,
-0.038942597806453705,
-0.04660006985068321,
-0.012327872216701508,
-0.03088766522705555,
0.00036799319786950946,
-0.005864228121936321,
0.0019155832706019282,
0.04297245293855667,
0.019679298624396324,
0.022213784977793694,
0.027127549052238464,
-0.0269344300031662,
-0.04367716237902641,
0.0764622688293457,
0.015420776791870594,
0.008383987471461296,
-0.08025993406772614,
-0.021834608167409897,
0.024706602096557617,
0.023011190816760063,
-0.000718332186806947,
-0.008540659211575985,
0.0782027468085289,
-0.010242831893265247,
0.00004466468089958653,
0.020172281190752983,
-0.027997607365250587,
-0.026957053691148758,
-0.006984569597989321,
-0.0032122156117111444,
-0.014184457249939442,
-0.05551012232899666,
-0.01074546854943037,
0.0010497194016352296,
0.056205540895462036,
-0.06236693635582924,
-0.04254269599914551,
-0.01943923905491829,
0.04103231430053711,
0.03607943654060364,
-0.018750490620732307,
-0.03623924404382706,
-0.012789236381649971,
-0.05029924586415291,
-0.015328176319599152,
0.025723470374941826,
0.01645706593990326,
0.030420515686273575,
0.04149818792939186,
0.00161195348482579,
-0.01809220388531685,
0.03975652903318405,
0.04399523884057999,
0.050747986882925034,
0.02443290315568447,
-0.05090813711285591,
0.0004504905373323709,
-0.028050418943166733,
0.022204389795660973,
-0.010946493595838547,
-0.02071213349699974,
-0.03679181635379791,
-0.10054463893175125,
-0.025711340829730034,
0.017778778448700905,
-0.0064974636770784855,
0.002985680941492319,
0.04026943817734718,
0.0008709258981980383,
0.007930636405944824,
-0.0022941487841308117,
0.013717282563447952,
0.0322696752846241,
-0.052026357501745224,
0.030813496559858322,
-0.016775745898485184,
0.03476531058549881,
-0.065052829682827,
0.018511928617954254,
-0.03809897601604462,
-0.0342387892305851,
0.007895386777818203,
0.06516902148723602,
-0.0020682786125689745,
0.06686633825302124,
0.07783839106559753,
0.026320524513721466,
-0.050631552934646606,
0.025666149333119392,
0.061198681592941284,
-0.03598220646381378,
-0.049144089221954346,
0.020939135923981667,
0.0006650224095210433,
-0.024248898029327393,
-0.006389931309968233,
-0.02491540089249611,
0.042776335030794144,
0.059386756271123886,
-0.016065267845988274,
0.006224234122782946,
0.009912354871630669,
-0.020358862355351448,
-0.017830880358815193,
-0.05369244143366814,
-0.040752261877059937,
-0.0044567338190972805,
-0.01576892100274563,
0.050134915858507156,
0.021305227652192116,
0.005798408295959234,
0.060312893241643906,
0.04431576281785965,
-0.0412619411945343,
-0.021113306283950806,
0.03825940564274788,
0.024556584656238556,
-0.032409410923719406,
-0.055577974766492844,
-0.02216406539082527,
0.04622996971011162,
0.03253740444779396,
-0.013110904023051262,
-0.06858237087726593,
0.004249082412570715,
0.06996054947376251,
-0.015360639430582523,
0.05796466022729874,
-0.02806755341589451,
0.030892468988895416,
0.0592823401093483,
-0.0033829431049525738,
0.047130800783634186,
-0.02410723641514778,
0.008539619855582714,
-0.0020980651024729013,
0.014515644870698452,
-0.004863022826611996,
-0.040482424199581146,
-0.06616094708442688,
0.02446739934384823,
0.04486894980072975,
0.022001193836331367,
0.05751637741923332,
-0.03133542463183403,
-0.030637064948678017,
0.006186098325997591,
0.02646767906844616,
-0.0425821878015995,
0.01749376393854618,
0.028412673622369766,
0.04608164355158806,
-0.026016294956207275,
-0.01321248896420002,
-0.02892150543630123,
-0.010207097046077251,
0.040226757526397705,
-0.007682723458856344,
-0.05148807540535927,
-0.022662842646241188,
0.04291856288909912,
-0.009813250042498112,
-0.02859385684132576,
-0.06905578821897507,
0.0324605293571949,
-0.016336141154170036,
-0.014762588776648045,
0.046785976737737656,
0.013895213603973389,
0.04680916294455528,
0.06480450928211212,
0.01480545662343502,
0.018379872664809227,
-0.04412062093615532,
0.05677992105484009,
-0.04304132238030434,
-0.031576771289110184,
-0.016340069472789764,
-0.037758078426122665,
-0.010355621576309204,
-0.036011531949043274,
-0.03265662118792534,
-0.04314086586236954,
-0.01767541840672493,
0.04535987973213196,
-0.02470262534916401,
-0.006054465193301439,
-0.004017667844891548,
0.031091539189219475,
-0.031945355236530304,
-0.04114224389195442,
-0.011220700107514858,
-0.031697966158390045,
-0.057336531579494476,
-0.06330938637256622,
0.044020090252161026,
-0.015413320623338223,
0.03326946869492531,
0.026447175070643425,
0.010057076811790466,
0.028606735169887543,
0.0034102799836546183,
0.001152069540694356,
0.03492948040366173,
-0.008964433334767818,
-0.048394825309515,
-0.041106365621089935,
0.03605109825730324,
0.010598542168736458,
0.047160983085632324,
-0.023076171055436134,
0.034188974648714066,
0.0232656579464674,
-0.03936620429158211,
-0.013334364630281925,
0.020414117723703384,
0.03394290432333946,
-0.07402978837490082,
-0.047755226492881775,
-0.013993998058140278,
-0.05600224435329437,
0.016448775306344032,
-0.02809242717921734,
-0.01059254165738821,
0.013865740969777107,
0.015587649308145046,
0.04788151755928993,
-0.014290928840637207,
-0.035148926079273224,
0.01537685003131628,
-0.012165472842752934,
0.008553805761039257,
-0.04294323921203613,
0.051882945001125336,
-0.04144538938999176,
0.023276202380657196,
-0.014776607975363731,
0.013940934091806412,
-0.04492270573973656,
0.04054110497236252,
-0.01667075976729393,
-0.007946416735649109,
0.0026771246921271086,
0.042964573949575424,
-0.016502579674124718,
0.0264015831053257,
-0.023880867287516594,
0.02938108704984188,
-0.04116323962807655,
0.08238087594509125,
-0.02887299656867981,
0.023484831675887108,
-0.022844824939966202,
0.004574711434543133,
-0.008573743514716625,
0.010357910767197609,
-0.0008466054568998516,
-0.031496692448854446,
0.034706730395555496,
0.055308856070041656,
0.047663088887929916,
0.028946762904524803,
-0.019016049802303314,
-0.012776844203472137,
0.01971176080405712,
-0.0382608100771904,
-0.02275257185101509,
0.00774782570078969,
0.029454316943883896,
-0.0010676495730876923,
0.05014961212873459,
0.030970599502325058,
-0.05572086200118065,
-0.08002515882253647,
0.03632388636469841,
0.0035030124709010124,
0.011860295198857784,
0.033410411328077316,
0.04332941398024559,
0.032305650413036346,
0.04888235405087471,
-0.0116127273067832,
0.00649386877194047,
-0.02267693541944027,
-0.03160100802779198,
0.029399948194622993,
-0.011009481735527515,
0.02400500886142254,
0.005575588438659906,
-0.030818123370409012,
-0.033713407814502716,
0.03790777921676636,
-0.0007944981916807592,
0.02333487570285797,
-0.03746778890490532,
-0.052747201174497604,
0.012314203195273876,
-0.016159849241375923,
-0.04717221111059189,
0.012477081269025803,
-0.013396350666880608,
-0.012892358005046844,
0.06307206302881241,
-0.020500918850302696,
0.013622824102640152,
0.056167636066675186,
0.030917996540665627,
-0.012571636587381363,
0.06616850197315216,
-0.004046316724270582,
-0.004692306276410818,
0.0507129430770874,
-0.06973275542259216,
-0.012494671158492565,
-0.052883170545101166,
0.07504501938819885,
-0.05137380585074425,
0.030695375055074692,
0.0498470775783062,
0.024729914963245392,
0.03183267265558243,
-0.022220343351364136,
-0.05356680974364281,
0.011941826902329922,
-0.03262205421924591,
0.06790336221456528,
0.03170491382479668,
-0.05396018922328949,
0.05733413249254227,
0.018177228048443794,
-0.09893957525491714,
0.04338603839278221,
0.03449089825153351,
0.031275976449251175,
0.030683210119605064,
0.040871914476156235,
-0.05145712569355965,
-0.000938807032071054,
-0.0375954732298851,
0.041136734187603,
-0.055145300924777985,
-0.007662941701710224,
0.023850351572036743,
-0.03451056778430939,
-0.019423866644501686,
0.030599068850278854,
-0.009492529556155205,
-0.02788381464779377,
0.04530925676226616,
-0.06143111363053322,
-0.03838036581873894,
0.0008019955130293965,
0.02301112748682499,
-0.04494218900799751,
0.012482148595154285,
-0.04553858935832977,
0.023072531446814537,
0.010429064743220806,
-0.004480270203202963,
-0.020973362028598785,
-0.014763476327061653,
0.01590530201792717,
-0.0648963674902916,
-0.06365657597780228,
0.04092201218008995,
0.0003827059699688107,
-0.02733590267598629,
0.03228220343589783,
0.025762706995010376,
0.011957854963839054,
0.024342326447367668,
-0.0031283332500606775,
0.020113566890358925,
-0.05436299368739128,
-0.02500881999731064,
-0.010170773603022099,
0.01553700864315033,
0.024192461743950844,
-0.001017269678413868,
0.046892184764146805,
0.04814635217189789,
-0.005885234568268061,
-0.003977743908762932,
-0.0338563546538353,
-0.041244134306907654,
0.03449631854891777,
-0.0250990092754364,
0.003019750816747546,
-0.002921717707067728,
-0.04802423343062401,
-0.02135433442890644,
-0.02311570942401886,
-0.019167549908161163,
0.03203948959708214,
-0.06977657973766327,
0.004916603211313486,
0.046294182538986206,
-0.03729424253106117,
-0.057222817093133926,
-0.10262083262205124,
-0.025762921199202538,
-0.05156320333480835,
0.021061889827251434,
0.030903693288564682,
-0.03690303489565849,
0.02088102698326111,
-0.04984968155622482,
-0.04096592962741852,
0.0376359298825264,
0.026132237166166306,
-0.028945745900273323,
0.03990752995014191,
0.04095115885138512,
-0.06154331564903259,
0.0289933942258358,
0.04220820963382721,
-0.03615624085068703,
0.024049842730164528,
0.02060018666088581,
0.01448508258908987,
0.029907556250691414,
0.02881121262907982,
-0.03915382921695709,
-0.010769089683890343,
-0.06902369856834412,
-0.045372460037469864,
-0.04325956106185913,
0.008524242788553238,
0.039713095873594284
] |
Baybars/wav2vec2-xls-r-300m-cv8-turkish | [
"pytorch",
"wav2vec2",
"automatic-speech-recognition",
"tr",
"dataset:common_voice",
"transformers",
"common_voice",
"generated_from_trainer",
"hf-asr-leaderboard",
"robust-speech-event",
"license:apache-2.0"
] | automatic-speech-recognition | {
"architectures": [
"Wav2Vec2ForCTC"
],
"model_type": "wav2vec2",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 5 | null | ---
language:
- tr
license: apache-2.0
tags:
- automatic-speech-recognition
- common_voice
- generated_from_trainer
- hf-asr-leaderboard
- robust-speech-event
- tr
datasets:
- common_voice
model-index:
- name: ''
results: []
---
<!-- 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. -->
#
This model is a fine-tuned version of [facebook/wav2vec2-xls-r-300m](https://huggingface.co/facebook/wav2vec2-xls-r-300m) on the COMMON_VOICE - TR dataset.
It achieves the following results on the evaluation set:
- Loss: 0.4164
- Wer: 0.3098
- Cer: 0.0764
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Language Model
N-gram language model is trained by [mpoyraz](https://huggingface.co/mpoyraz/wav2vec2-xls-r-300m-cv7-turkish) on a Turkish Wikipedia articles using KenLM and [ngram-lm-wiki](https://github.com/mpoyraz/ngram-lm-wiki) repo was used to generate arpa LM and convert it into binary format.
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0005
- train_batch_size: 64
- 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: 500
- num_epochs: 100.0
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Wer | Cer |
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|
| 0.6356 | 9.09 | 500 | 0.5055 | 0.5536 | 0.1381 |
| 0.3847 | 18.18 | 1000 | 0.4002 | 0.4247 | 0.1065 |
| 0.3377 | 27.27 | 1500 | 0.4193 | 0.4167 | 0.1078 |
| 0.2175 | 36.36 | 2000 | 0.4351 | 0.3861 | 0.0974 |
| 0.2074 | 45.45 | 2500 | 0.3962 | 0.3622 | 0.0916 |
| 0.159 | 54.55 | 3000 | 0.4062 | 0.3526 | 0.0888 |
| 0.1882 | 63.64 | 3500 | 0.3991 | 0.3445 | 0.0850 |
| 0.1766 | 72.73 | 4000 | 0.4214 | 0.3396 | 0.0847 |
| 0.116 | 81.82 | 4500 | 0.4182 | 0.3265 | 0.0812 |
| 0.0718 | 90.91 | 5000 | 0.4259 | 0.3191 | 0.0781 |
| 0.019 | 100.0 | 5500 | 0.4164 | 0.3098 | 0.0764 |
## Evaluation Commands
Please install [unicode_tr](https://pypi.org/project/unicode_tr/) package before running evaluation. It is used for Turkish text processing.
1. To evaluate on `mozilla-foundation/common_voice_7_0` with split `test`
```bash
python eval.py --model_id Baybars/wav2vec2-xls-r-300m-cv8-turkish --dataset mozilla-foundation/common_voice_8_0 --config tr --split test
```
2. To evaluate on `speech-recognition-community-v2/dev_data`
```bash
python eval.py --model_id Baybars/wav2vec2-xls-r-300m-cv8-turkish --dataset speech-recognition-community-v2/dev_data --config tr --split validation --chunk_length_s 5.0 --stride_length_s 1.0
```
### Framework versions
- Transformers 4.17.0.dev0
- Pytorch 1.10.2+cu102
- Datasets 1.18.2.dev0
- Tokenizers 0.11.0
| [
-0.0211473498493433,
-0.00024660993949510157,
-0.024652250111103058,
0.060456231236457825,
0.04609803482890129,
0.03227173909544945,
-0.000568919291254133,
-0.007305052597075701,
-0.044426657259464264,
0.0740593746304512,
0.02549871616065502,
-0.03200352564454079,
-0.0011801455402746797,
0.01575963944196701,
-0.04290946200489998,
-0.03610619157552719,
-0.02580803819000721,
0.004575592931360006,
-0.04038190469145775,
-0.021005965769290924,
-0.015112885273993015,
0.01522570475935936,
-0.024478457868099213,
0.021799873560667038,
0.004367651883512735,
0.024055426940321922,
-0.026552114635705948,
0.019154319539666176,
0.002609178191050887,
-0.05688970535993576,
0.008326523005962372,
-0.05182058364152908,
-0.04071362689137459,
-0.010546036064624786,
-0.013029570691287518,
0.007337329909205437,
0.004163946025073528,
0.008390665985643864,
0.040187280625104904,
0.05349975451827049,
-0.023928670212626457,
0.017039833590388298,
0.004266147501766682,
-0.032999247312545776,
0.029395783320069313,
0.0053138742223382,
-0.045456793159246445,
-0.028364306315779686,
0.040901221334934235,
-0.05803878605365753,
-0.041682858020067215,
-0.041448500007390976,
-0.018279436975717545,
0.02334328554570675,
-0.02567903883755207,
-0.042178697884082794,
-0.043107517063617706,
-0.016687199473381042,
0.07459225505590439,
-0.04349367320537567,
-0.0363970585167408,
0.024407770484685898,
-0.059723567217588425,
0.012775719165802002,
0.031211022287607193,
-0.051605578511953354,
0.017971361055970192,
-0.04828636348247528,
0.041110869497060776,
-0.033142365515232086,
0.04754497855901718,
-0.018056895583868027,
0.007785238325595856,
-0.09747396409511566,
-0.013412702828645706,
0.012549816630780697,
0.03550487384200096,
0.07130509614944458,
-0.04586764797568321,
0.07171694934368134,
0.01876930519938469,
0.00843766238540411,
0.0401754230260849,
-0.024601556360721588,
0.024474995210766792,
0.0645609200000763,
-0.04830201715230942,
0.017471393570303917,
0.005797298159450293,
0.02597152069211006,
-0.025093436241149902,
-0.025916773825883865,
-0.010021201334893703,
-0.03787460923194885,
-0.03038867749273777,
0.042355429381132126,
0.03386222571134567,
-0.013558902777731419,
0.037760376930236816,
0.018553880974650383,
0.022495437413454056,
0.021252844482660294,
-0.03679099678993225,
0.05322134494781494,
-0.03258764371275902,
-0.00944144930690527,
-0.008650696836411953,
-0.03542710095643997,
-0.03374488651752472,
0.022654717788100243,
0.017910776659846306,
-0.05229905620217323,
-0.05994463339447975,
0.03571021556854248,
-0.00038318734732456505,
-0.04089011251926422,
0.044848985970020294,
-0.037629134953022,
-0.02852068841457367,
-0.026888832449913025,
0.033352043479681015,
0.010546255856752396,
0.00369936297647655,
0.0010446463711559772,
-0.05453934147953987,
0.01944540999829769,
-0.03507351875305176,
-0.04380610212683678,
0.01996089704334736,
0.0014442316023632884,
-0.009988554753363132,
0.044510938227176666,
0.03612428903579712,
-0.06287968158721924,
-0.010250929743051529,
0.0006186655955389142,
-0.05540456250309944,
0.01822206936776638,
0.01607252098619938,
0.07074951380491257,
-0.054958391934633255,
-0.06140231713652611,
0.00896216556429863,
0.020604588091373444,
-0.019103558734059334,
0.0171662624925375,
0.040740154683589935,
0.006128191482275724,
-0.037829648703336716,
0.0008061036351136863,
0.05056656897068024,
-0.0675610899925232,
-0.0010653083445504308,
0.06885932385921478,
-0.0167755838483572,
0.051294732838869095,
-0.025904158130288124,
-0.004877655766904354,
0.01215363573282957,
-0.009613443166017532,
-0.012085122987627983,
0.027644628658890724,
0.00013016164302825928,
-0.023151636123657227,
-0.03989313915371895,
-0.03954777494072914,
-0.005040640477091074,
0.07002351433038712,
-0.009778334759175777,
-0.005440888460725546,
-0.03501021862030029,
0.024133726954460144,
0.06312789767980576,
0.009120874106884003,
-0.05504237115383148,
0.035933781415224075,
0.06432633101940155,
0.04947097599506378,
-0.028148997575044632,
0.06120334938168526,
0.0037056803703308105,
-0.02486998215317726,
-0.03228352963924408,
0.024091320112347603,
0.01818670891225338,
-0.043184053152799606,
-0.0052333371713757515,
0.05304539203643799,
0.013209661468863487,
-0.027411475777626038,
-0.04390903562307358,
0.07463419437408447,
-0.01122112013399601,
-0.0038079300429672003,
0.008185787126421928,
-0.011435226537287235,
-0.0537143349647522,
0.030735846608877182,
-0.03944011777639389,
0.01220722496509552,
-0.010455985553562641,
-0.02933039329946041,
0.00451224111020565,
0.036439381539821625,
0.03614194691181183,
0.05538911372423172,
0.006414338015019894,
0.0850750282406807,
-0.04011242836713791,
0.016525771468877792,
-0.034413594752550125,
-0.04813763499259949,
-0.013868279755115509,
0.050014693289995193,
0.03625532239675522,
0.07496421784162521,
0.004566294141113758,
-0.05509644001722336,
0.032200343906879425,
0.08890804648399353,
0.0608559250831604,
0.019398191943764687,
-0.026946866884827614,
-0.01757148467004299,
0.0388215146958828,
0.052311766892671585,
-0.05574977025389671,
-0.05570993572473526,
0.0037037984002381563,
0.05036744847893715,
-0.01606256514787674,
0.016205791383981705,
-0.021829523146152496,
0.0502408929169178,
-0.03363936394453049,
-0.07489322870969772,
0.05241188034415245,
0.030969442799687386,
-0.000701682292856276,
0.02972826175391674,
-0.014194434508681297,
0.008268062025308609,
0.02033201977610588,
0.004717374686151743,
-0.0023551764898002148,
-0.03499297797679901,
-0.003703378839418292,
0.017197050154209137,
0.060052596032619476,
-0.038493562489748,
0.03672461956739426,
-0.009427176788449287,
-0.002379216020926833,
0.027569428086280823,
-0.03776324912905693,
0.042234331369400024,
0.021599024534225464,
0.006517332978546619,
-0.040715064853429794,
0.0131275849416852,
0.007549828849732876,
0.046090684831142426,
0.040463242679834366,
0.013979055918753147,
0.05401621758937836,
0.03568478673696518,
0.05530066415667534,
0.07608936727046967,
0.03301886469125748,
0.0062873647548258305,
0.03250893950462341,
0.07305151969194412,
0.0019561266526579857,
-0.017077919095754623,
0.0777541920542717,
-0.04903683438897133,
0.0031199073418974876,
-0.03892756626009941,
0.018751833587884903,
-0.002727517858147621,
0.003426632843911648,
0.02449130453169346,
0.006308052688837051,
-0.0018158662132918835,
0.01208508387207985,
-0.046429142355918884,
-0.024740343913435936,
0.0461362786591053,
-0.02416263520717621,
-0.016835084185004234,
-0.023918474093079567,
-0.01683025248348713,
0.013048202730715275,
-0.06652769446372986,
-0.030125746503472328,
-0.0004217147652525455,
-0.028833113610744476,
-0.004393221344798803,
-0.08070352673530579,
-0.025287950411438942,
-0.057003822177648544,
-0.013441530987620354,
0.02027728781104088,
0.017531417310237885,
0.01226932555437088,
-0.03748650848865509,
-0.004041666630655527,
-0.034329287707805634,
-0.046811215579509735,
-0.054770100861787796,
-0.036271195858716965,
-0.0356123261153698,
-0.05268528312444687,
0.026866674423217773,
0.027116436511278152,
0.032535504549741745,
0.004559545777738094,
0.00042834828491322696,
-0.04128327593207359,
-0.03396030142903328,
0.040918365120887756,
0.042592767626047134,
-0.03719409555196762,
-0.054489705711603165,
0.028094640001654625,
-0.03568977862596512,
0.015542285516858101,
-0.009032410569489002,
-0.03422632813453674,
0.07600291073322296,
0.06518833339214325,
0.030684931203722954,
0.0242695864289999,
-0.020344426855444908,
-0.055230047553777695,
-0.05667776241898537,
-0.03441881760954857,
-0.027658969163894653,
-0.007582372985780239,
-0.03677333518862724,
-0.04519352316856384,
-0.012445149943232536,
-0.019160540774464607,
-0.0012031684163957834,
-0.0181711595505476,
-0.0015512177487835288,
0.04545816779136658,
0.03406861051917076,
0.03266656771302223,
0.02848067693412304,
-0.016276739537715912,
-0.04500781372189522,
0.09007415175437927,
0.02647511661052704,
0.00806941743940115,
-0.05942023545503616,
-0.027765603736042976,
0.0305780041962862,
0.03574194759130478,
-0.009014485403895378,
-0.010160751640796661,
0.0797414630651474,
-0.003702630056068301,
-0.0007129394798539579,
0.01100170612335205,
-0.037717729806900024,
-0.04012896120548248,
-0.01804654486477375,
-0.017289316281676292,
-0.01663973182439804,
-0.06874613463878632,
0.005555704701691866,
-0.005096605513244867,
0.06783775240182877,
-0.07498800754547119,
-0.03290749341249466,
-0.02256845124065876,
0.04479879140853882,
0.02260766178369522,
0.0023702317848801613,
-0.030000774189829826,
0.012268015183508396,
-0.06791770458221436,
-0.016057291999459267,
0.023378947749733925,
0.0270533487200737,
0.030419928953051567,
0.06067807972431183,
0.02238861843943596,
-0.022214261814951897,
0.05170576274394989,
0.02787872962653637,
0.06029747799038887,
0.021551938727498055,
-0.045449383556842804,
0.029384134337306023,
-0.033818114548921585,
0.028474999591708183,
-0.0037948419339954853,
-0.03332597017288208,
-0.04264827072620392,
-0.08495793491601944,
-0.008657898753881454,
0.0015998826129361987,
-0.007849998772144318,
-0.013304644264280796,
0.03815783932805061,
-0.01215552631765604,
-0.013540646992623806,
0.009034047834575176,
0.02109549008309841,
0.022131003439426422,
-0.05751661956310272,
0.029814526438713074,
-0.01394692063331604,
0.03729436546564102,
-0.08439409732818604,
0.0019713344518095255,
-0.009550762362778187,
-0.04029891639947891,
0.01302312221378088,
0.07393354177474976,
0.023041589185595512,
0.035606760531663895,
0.08022452145814896,
0.029890820384025574,
-0.04134301468729973,
0.046541497111320496,
0.05028176307678223,
-0.024320343509316444,
-0.04335496947169304,
-0.0006661670631729066,
-0.0033743027597665787,
-0.040538594126701355,
-0.01957925409078598,
-0.026263318955898285,
0.05078016221523285,
0.0379890538752079,
-0.01153225265443325,
0.002119713230058551,
0.030644970014691353,
-0.023060234263539314,
-0.01635393127799034,
-0.07189405709505081,
-0.036023445427417755,
-0.006116810720413923,
-0.03740164637565613,
0.03214146941900253,
0.02948344312608242,
-0.001368654309771955,
0.055257365107536316,
0.04373098909854889,
-0.04794451594352722,
-0.030726445838809013,
0.029242660850286484,
0.03244638815522194,
-0.03473103418946266,
-0.04076824337244034,
-0.02268349379301071,
0.042661380022764206,
0.04531411454081535,
-0.013738896697759628,
-0.09264246374368668,
-0.021812425926327705,
0.03078986518085003,
-0.029151026159524918,
0.04839226230978966,
0.009708747267723083,
0.02743651159107685,
0.03616958484053612,
-0.015866143628954887,
0.045697711408138275,
-0.030372491106390953,
0.027483703568577766,
-0.01579219289124012,
0.01868130825459957,
-0.022889213636517525,
-0.01777494139969349,
-0.050828300416469574,
0.011236894875764847,
0.016995754092931747,
0.033321741968393326,
0.06362533569335938,
-0.019380683079361916,
-0.039535634219646454,
0.01541490014642477,
0.02462214231491089,
-0.04012249782681465,
0.017641855403780937,
0.022500449791550636,
0.03544563427567482,
-0.039577800780534744,
-0.01296524703502655,
-0.017807718366384506,
-0.0002994661044795066,
0.01844148524105549,
-0.004746262915432453,
-0.03668730705976486,
-0.03254040703177452,
0.01826080121099949,
-0.012381274253129959,
-0.015657102689146996,
-0.09605784714221954,
0.025305848568677902,
-0.0038327667862176895,
-0.013869261369109154,
0.03126779943704605,
0.024312462657690048,
0.03785977512598038,
0.039527811110019684,
0.015525788068771362,
0.015049992129206657,
-0.03314191848039627,
0.029270121827721596,
-0.02674693986773491,
-0.01656666398048401,
-0.0047212028875947,
-0.03617296740412712,
0.0042166332714259624,
-0.05132167786359787,
-0.031611498445272446,
-0.05438855662941933,
0.007803796324878931,
0.04706569388508797,
-0.024434659630060196,
-0.0006774734356440604,
-0.015760786831378937,
0.05217757076025009,
-0.05213598534464836,
-0.050552740693092346,
-0.022609233856201172,
-0.03593701869249344,
-0.05681764334440231,
-0.03673948720097542,
0.024358924478292465,
-0.012487426400184631,
0.03329986706376076,
0.01897868700325489,
0.005502020940184593,
0.00859094224870205,
-0.025016464293003082,
-0.009169725701212883,
0.036340534687042236,
-0.016824491322040558,
-0.02383389323949814,
-0.0397091880440712,
0.024120723828673363,
0.007918347604572773,
0.045170675963163376,
-0.017611298710107803,
0.023926759138703346,
0.03333468735218048,
-0.04129571095108986,
-0.0068909483961761,
0.02120187133550644,
0.027647461742162704,
-0.05571401119232178,
-0.05602969601750374,
-0.008018004707992077,
-0.0552629679441452,
0.02646518126130104,
-0.01925519108772278,
-0.008062654174864292,
-0.007392482832074165,
0.011609810404479504,
0.0312776118516922,
-0.007824948988854885,
-0.040481217205524445,
0.017659546807408333,
-0.025739964097738266,
0.01610613986849785,
-0.04878630489110947,
0.0532800629734993,
-0.02512114867568016,
-0.009236904792487621,
-0.014059791341423988,
0.0037169805727899075,
-0.049801379442214966,
0.029851147904992104,
-0.006782036740332842,
-0.00995305459946394,
-0.002107020700350404,
0.039054326713085175,
-0.02389691211283207,
0.014797684736549854,
-0.023710664361715317,
0.00878998450934887,
-0.054453086107969284,
0.06752431392669678,
-0.04545586183667183,
0.01205470785498619,
-0.038790326565504074,
0.007167933974415064,
-0.04582693427801132,
-0.002020058687776327,
-0.024581728503108025,
-0.04954850673675537,
0.027969254180788994,
0.05243910849094391,
0.038905031979084015,
0.05721665173768997,
-0.02210305631160736,
0.0014342620270326734,
0.0161810964345932,
-0.032932721078395844,
-0.0033351313322782516,
0.00790169183164835,
0.026656918227672577,
0.009661850519478321,
0.05910501256585121,
0.0324317030608654,
-0.06420902907848358,
-0.07284187525510788,
0.02523920312523842,
-0.010220447555184364,
0.0035224640741944313,
0.019657675176858902,
0.022152185440063477,
0.034858278930187225,
0.06925856322050095,
-0.02659669890999794,
0.002019202336668968,
-0.025535134598612785,
-0.033631592988967896,
0.04037297144532204,
-0.008819308131933212,
0.006712739355862141,
0.00639701820909977,
-0.03673630580306053,
-0.0361282154917717,
0.049707114696502686,
0.008890518918633461,
0.016075514256954193,
-0.022983301430940628,
-0.051977891474962234,
0.0015532380202785134,
-0.012086069211363792,
-0.06909438222646713,
0.01900256611406803,
-0.014891735278069973,
-0.031321436166763306,
0.08157341182231903,
-0.01188990194350481,
0.016846610233187675,
0.0535423718392849,
0.031180158257484436,
-0.0295212734490633,
0.061511795967817307,
-0.0022432729601860046,
-0.01638093963265419,
0.042166367173194885,
-0.05479682609438896,
-0.02094046212732792,
-0.017533667385578156,
0.07468570023775101,
-0.052799902856349945,
0.03353244066238403,
0.047232113778591156,
0.01327527966350317,
0.037201009690761566,
-0.030448639765381813,
-0.03959003835916519,
0.0229388065636158,
-0.027671150863170624,
0.1026763841509819,
0.023368362337350845,
-0.03253072500228882,
0.03552613407373428,
0.027293233200907707,
-0.09411027282476425,
0.03384924679994583,
0.038100890815258026,
0.033501919358968735,
0.01005642767995596,
0.044873956590890884,
-0.056662607938051224,
0.013812508434057236,
-0.026191577315330505,
0.02029905468225479,
-0.050729840993881226,
0.00020427240815479308,
0.021913904696702957,
-0.05177520960569382,
-0.009327460080385208,
0.023097272962331772,
-0.03761795908212662,
-0.030686356127262115,
0.031066806986927986,
-0.05596566200256348,
-0.03962945193052292,
-0.008074546232819557,
0.018592266365885735,
-0.05244928225874901,
0.013607116416096687,
-0.03794550895690918,
0.010382307693362236,
0.021718060597777367,
0.003914564847946167,
-0.02093493565917015,
-0.002660719444975257,
0.01997888833284378,
-0.05995726212859154,
-0.0555545836687088,
0.040374867618083954,
0.015527097508311272,
-0.018404169008135796,
0.029863551259040833,
0.0006828629411756992,
0.007521785795688629,
0.03739853948354721,
-0.004842337220907211,
0.0202502328902483,
-0.06489269435405731,
-0.008531257510185242,
0.009366974234580994,
0.004217352718114853,
0.02627277374267578,
-0.0068443878553807735,
0.034819282591342926,
0.05065822973847389,
0.012385109439492226,
0.008060863241553307,
-0.04836196452379227,
-0.021964142099022865,
0.034962259232997894,
-0.035147447139024734,
0.01569373346865177,
0.004316108766943216,
-0.05403440073132515,
-0.043435536324977875,
-0.02561214752495289,
-0.013159113936126232,
0.02271532267332077,
-0.05733618140220642,
-0.0092207295820117,
0.017314059659838676,
-0.023891553282737732,
-0.040955137461423874,
-0.073849618434906,
-0.02716509997844696,
-0.03388935327529907,
0.042280107736587524,
0.015262122265994549,
-0.036069247871637344,
0.015511857345700264,
-0.040937114506959915,
-0.056375160813331604,
0.026832878589630127,
0.002304155845195055,
-0.03672381117939949,
0.053765807300806046,
0.029243268072605133,
-0.06343362480401993,
0.02759651467204094,
0.07215537875890732,
-0.027958698570728302,
0.02441808581352234,
0.03265085816383362,
0.008431516587734222,
0.028407489880919456,
0.01682424545288086,
-0.04573820158839226,
-0.019094793125987053,
-0.08338333666324615,
-0.04880661144852638,
-0.03507005795836449,
-0.008026360534131527,
0.057007621973752975
] |
BeIR/query-gen-msmarco-t5-base-v1 | [
"pytorch",
"jax",
"t5",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"T5ForConditionalGeneration"
],
"model_type": "t5",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": true,
"length_penalty": 2,
"max_length": 200,
"min_length": 30,
"no_repeat_ngram_size": 3,
"num_beams": 4,
"prefix": "summarize: "
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to German: "
},
"translation_en_to_fr": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to French: "
},
"translation_en_to_ro": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to Romanian: "
}
}
} | 1,816 | null | # Query Generation
This model is the t5-base model from [docTTTTTquery](https://github.com/castorini/docTTTTTquery).
The T5-base model was trained on the [MS MARCO Passage Dataset](https://github.com/microsoft/MSMARCO-Passage-Ranking), which consists of about 500k real search queries from Bing together with the relevant passage.
The model can be used for query generation to learn semantic search models without requiring annotated training data: [Synthetic Query Generation](https://github.com/UKPLab/sentence-transformers/tree/master/examples/unsupervised_learning/query_generation).
## Usage
```python
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained('model-name')
model = T5ForConditionalGeneration.from_pretrained('model-name')
para = "Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects."
input_ids = tokenizer.encode(para, return_tensors='pt')
outputs = model.generate(
input_ids=input_ids,
max_length=64,
do_sample=True,
top_p=0.95,
num_return_sequences=3)
print("Paragraph:")
print(para)
print("\nGenerated Queries:")
for i in range(len(outputs)):
query = tokenizer.decode(outputs[i], skip_special_tokens=True)
print(f'{i + 1}: {query}')
``` | [
0.006665314547717571,
-0.024771330878138542,
-0.015181586146354675,
0.07506373524665833,
0.022244613617658615,
0.03187179937958717,
-0.020792517811059952,
0.018398651853203773,
-0.03758012130856514,
0.03154726326465607,
0.010181964375078678,
-0.001217871205881238,
-0.01004168763756752,
0.048574525862932205,
-0.04256580024957657,
-0.05062130466103554,
-0.017904359847307205,
-0.017104102298617363,
-0.03060079924762249,
-0.009518470615148544,
0.010781528428196907,
0.007565824780613184,
0.006768105085939169,
0.000011300346159259789,
-0.00940822996199131,
0.031101251021027565,
-0.013350809924304485,
0.03699156269431114,
0.004727710969746113,
-0.07018476724624634,
0.013685135170817375,
-0.007030564825981855,
-0.015015545301139355,
-0.0023704045452177525,
-0.008280390873551369,
0.021282624453306198,
0.0011860213708132505,
0.011668073013424873,
0.018046922981739044,
0.03896382078528404,
-0.009749156422913074,
0.006640239618718624,
0.011648418381810188,
-0.030275622382760048,
0.05610545724630356,
-0.0034522786736488342,
-0.030386773869395256,
-0.013448660261929035,
0.03232703357934952,
-0.0235077403485775,
-0.05945076048374176,
-0.09294603019952774,
-0.026022477075457573,
0.023698674514889717,
-0.031246058642864227,
-0.0207762960344553,
-0.06613107770681381,
-0.015848716720938683,
0.06874291598796844,
-0.05226500332355499,
-0.020593002438545227,
0.015366225503385067,
-0.06514163315296173,
0.02376398630440235,
0.018763728439807892,
-0.030064105987548828,
0.007685298565775156,
-0.041269902139902115,
0.00032746882061474025,
-0.019640017300844193,
0.043012410402297974,
-0.04258100688457489,
0.014116967096924782,
-0.1100582629442215,
0.021200386807322502,
-0.005931408144533634,
0.031630419194698334,
0.02062036283314228,
-0.022803429514169693,
0.042372968047857285,
0.018900718539953232,
0.0041740466840565205,
0.025400394573807716,
0.0038156115915626287,
-0.021043455228209496,
0.05280519276857376,
-0.03558076173067093,
-0.013733145780861378,
-0.012766840867698193,
0.02828839048743248,
-0.03884994611144066,
-0.04266950860619545,
-0.028330044820904732,
-0.025654898956418037,
0.0048673502169549465,
0.02451264299452305,
0.027711914852261543,
-0.0010330466320738196,
0.02056174725294113,
0.003919696435332298,
0.027378493919968605,
0.04131360724568367,
0.0037390657234936953,
0.04998942092061043,
-0.004032403230667114,
0.007001846097409725,
0.006757093593478203,
-0.03535355255007744,
-0.02619355544447899,
0.04053041338920593,
0.010766220279037952,
-0.0682121217250824,
-0.04110409691929817,
0.04341110959649086,
0.05856693536043167,
-0.006114436779171228,
0.056676071137189865,
-0.02702382579445839,
-0.05316045880317688,
-0.03441331163048744,
0.07133200019598007,
0.00041747622890397906,
0.0062795341946184635,
-0.015393869020044804,
-0.05254309996962547,
0.03900044038891792,
-0.06601273268461227,
-0.03939621150493622,
-0.006845437455922365,
0.04218045622110367,
-0.009947031736373901,
0.02497435174882412,
0.02959570661187172,
-0.05132189765572548,
0.010325292125344276,
0.014232005923986435,
-0.07656697183847427,
0.040967538952827454,
0.025759845972061157,
0.11906372010707855,
-0.06953764706850052,
-0.048063963651657104,
0.033024970442056656,
0.028400912880897522,
-0.025669004768133163,
0.003535263938829303,
-0.01794399879872799,
-0.028145458549261093,
-0.011998864822089672,
0.01204419881105423,
0.08018545806407928,
-0.0452258326113224,
0.016006138175725937,
0.02407383732497692,
0.0049403090961277485,
0.03808736428618431,
-0.04800359159708023,
0.004171732347458601,
0.005655431188642979,
0.013082718476653099,
-0.05999099835753441,
0.03473750129342079,
-0.010574840940535069,
0.01248171553015709,
-0.029452303424477577,
-0.033492010086774826,
0.02180388756096363,
0.0902106985449791,
-0.004981794394552708,
-0.03084026277065277,
-0.04336544871330261,
0.0009833246003836393,
0.039561688899993896,
0.06137959286570549,
-0.01811319962143898,
0.04142938181757927,
0.05400196090340614,
0.022521791979670525,
-0.023706629872322083,
0.02906040847301483,
0.0009966787183657289,
-0.034353211522102356,
-0.01457373145967722,
0.023367399349808693,
-0.005553480237722397,
-0.026928313076496124,
0.036291882395744324,
0.023675071075558662,
-0.04505091533064842,
-0.018881315365433693,
0.005028638988733292,
0.06520863622426987,
-0.022913802415132523,
-0.0007046443643048406,
-0.020503101870417595,
0.007561898324638605,
-0.009906861931085587,
0.04932022839784622,
-0.0285258200019598,
0.02291661500930786,
-0.011782203800976276,
-0.03757340461015701,
0.026852650567889214,
0.014896205626428127,
0.030808400362730026,
0.0480150505900383,
0.00021548153017647564,
0.09367236495018005,
-0.049391970038414,
-0.0032174664083868265,
-0.03909147530794144,
-0.0330553762614727,
0.010345647111535072,
0.039216719567775726,
0.00026656509726308286,
0.03297793120145798,
0.022786986082792282,
-0.02871323935687542,
0.027013568207621574,
0.05056486651301384,
0.04981948435306549,
0.03283131495118141,
-0.02752137929201126,
0.004669775255024433,
0.040035348385572433,
0.09146203845739365,
-0.02855813130736351,
-0.01572813093662262,
0.00536302849650383,
0.01637699455022812,
-0.038603343069553375,
0.012300345115363598,
0.011691289953887463,
0.01572520099580288,
-0.06279126554727554,
-0.06866130232810974,
0.059186212718486786,
0.024508044123649597,
0.02528170309960842,
0.040824390947818756,
-0.009528006426990032,
0.008731336332857609,
0.040761176496744156,
0.01102865394204855,
-0.008373529650270939,
-0.0480065681040287,
-0.00012185353261884302,
0.005511372350156307,
0.030050037428736687,
-0.0662262886762619,
0.03171375021338463,
-0.013287743553519249,
0.004246511496603489,
0.06011715531349182,
-0.022752558812499046,
0.006930106319487095,
0.0291108600795269,
0.003581021912395954,
-0.015185404568910599,
0.0204602237790823,
0.001592627726495266,
0.022577859461307526,
0.07926017791032791,
-0.0014704050263389945,
0.0253022201359272,
0.00018403212015982717,
0.02849632315337658,
0.10259260982275009,
0.015778588131070137,
0.0007146461866796017,
0.025355909019708633,
0.05926135927438736,
0.011088155210018158,
0.0004325485788285732,
0.04902954027056694,
-0.07263308763504028,
0.04727280139923096,
-0.04628673195838928,
0.005434523802250624,
-0.020033959299325943,
-0.02242145501077175,
0.05167079344391823,
0.037052929401397705,
-0.05651969090104103,
0.031713373959064484,
-0.028864556923508644,
-0.015380831435322762,
0.010120860300958157,
-0.019175568595528603,
0.006345225963741541,
-0.011645765975117683,
-0.017113203182816505,
0.012584519572556019,
-0.06885553151369095,
-0.05060982704162598,
-0.024883072823286057,
-0.019357021898031235,
0.017805423587560654,
-0.07373242825269699,
-0.0392787903547287,
-0.08262442797422409,
-0.02926517091691494,
0.061867065727710724,
0.02074071206152439,
-0.0034875653218477964,
-0.02009757235646248,
0.016421828418970108,
-0.022615887224674225,
-0.021186040714383125,
-0.06939166784286499,
-0.0477752685546875,
-0.04114455729722977,
-0.07620493322610855,
0.04417817294597626,
0.006908041890710592,
0.03306767717003822,
0.0031783990561962128,
-0.008581539615988731,
-0.05757895112037659,
-0.006259413436055183,
0.049865663051605225,
-0.01186859980225563,
-0.03685883805155754,
-0.04316319152712822,
0.03825078904628754,
-0.01189581397920847,
0.026387222111225128,
-0.010796192102134228,
-0.036992624402046204,
0.1028553918004036,
0.0790073573589325,
0.02585686556994915,
0.009837615303695202,
-0.03722233697772026,
-0.03902662545442581,
-0.040374014526605606,
-0.04018314182758331,
-0.03790781646966934,
-0.029769377782940865,
-0.02187846228480339,
-0.04366939142346382,
0.010529530234634876,
-0.013498587533831596,
-0.029031289741396904,
-0.007754944264888763,
0.01673787087202072,
0.047188106924295425,
0.05900977551937103,
0.034461405128240585,
0.013554531149566174,
-0.04679664969444275,
-0.022959817200899124,
0.044845253229141235,
0.02473069168627262,
0.02183346077799797,
-0.07143200933933258,
-0.043998416513204575,
0.04519431293010712,
0.0008981739520095289,
0.022436371073126793,
-0.0194217711687088,
0.06072481349110603,
0.012299325317144394,
0.0049805366434156895,
0.013211452402174473,
0.005073223728686571,
-0.015657830983400345,
0.006639457773417234,
-0.0155583955347538,
-0.054872289299964905,
-0.03391948342323303,
-0.051571108400821686,
-0.007524005137383938,
0.04759954288601875,
-0.05796203762292862,
-0.05116085708141327,
-0.013198080472648144,
0.027940554544329643,
0.029404090717434883,
0.024260681122541428,
-0.0366804338991642,
0.015173961408436298,
-0.06802064925432205,
-0.04186953976750374,
0.030665198341012,
0.015030995942652225,
0.008029182441532612,
0.02612273395061493,
0.03103259764611721,
-0.010394342243671417,
0.01863224245607853,
0.03044307604432106,
0.0194783266633749,
0.021342886611819267,
-0.0408056415617466,
0.00625081779435277,
-0.012287969700992107,
0.02633470855653286,
-0.00496945483610034,
-0.014557568356394768,
-0.06227250397205353,
-0.09068254381418228,
-0.029452571645379066,
0.023929134011268616,
-0.020411904901266098,
-0.010980622842907906,
0.04274703189730644,
-0.01822434552013874,
-0.02988535910844803,
0.0048669734969735146,
0.010407134890556335,
0.05718432366847992,
-0.06551682949066162,
0.03820990025997162,
-0.010756461881101131,
0.04279417544603348,
-0.035478927195072174,
0.007022583391517401,
-0.0251359473913908,
0.001817408949136734,
0.008737926371395588,
0.050732359290122986,
0.02108820527791977,
0.08369605988264084,
0.07131592929363251,
0.03371373564004898,
-0.03915508836507797,
0.05560903251171112,
0.05697479099035263,
-0.019603723660111427,
-0.031186390668153763,
0.0039526959881186485,
-0.011550234630703926,
-0.02961423620581627,
0.015736205503344536,
-0.035997919738292694,
0.021558526903390884,
0.04253929853439331,
-0.010162588208913803,
-0.01872650533914566,
-0.0009119735332205892,
-0.03666252642869949,
-0.021060049533843994,
-0.03423409163951874,
-0.02284848317503929,
-0.030545592308044434,
-0.030520658940076828,
0.025720568373799324,
0.05751904845237732,
0.0233976561576128,
0.05893712490797043,
0.04814480245113373,
-0.022257603704929352,
-0.024289187043905258,
0.02539042755961418,
0.046984534710645676,
-0.0641339123249054,
-0.06181713193655014,
-0.045740555971860886,
0.043741364032030106,
0.0430959016084671,
-0.0023999852128326893,
-0.10075422376394272,
0.042809538543224335,
0.01945336163043976,
-0.01459106057882309,
0.06430862843990326,
-0.026135478168725967,
0.0027031409554183483,
0.05599736422300339,
0.006531733553856611,
0.015131604857742786,
-0.036507174372673035,
0.017467573285102844,
-0.020654797554016113,
0.0590684674680233,
-0.028695352375507355,
-0.03816640004515648,
-0.05850091576576233,
0.0491945818066597,
0.026837553828954697,
0.04793378710746765,
0.03836796432733536,
-0.017956579104065895,
-0.07296231389045715,
0.022377334535121918,
0.004749368876218796,
-0.05096997320652008,
0.04263180494308472,
0.01110093668103218,
0.027694640681147575,
-0.07060828804969788,
-0.036327674984931946,
0.010584460571408272,
0.005255491007119417,
0.026128998026251793,
0.011430551297962666,
-0.03267041966319084,
-0.05100163817405701,
0.0192639771848917,
-0.029184767976403236,
-0.03040858544409275,
-0.07289858162403107,
0.029465215280652046,
0.008477495983242989,
-0.02811410464346409,
0.0532604455947876,
0.06311462819576263,
0.018986450508236885,
0.04671323299407959,
-0.023622415959835052,
0.03400935232639313,
-0.0267620999366045,
0.027449846267700195,
-0.0297177005559206,
-0.005308076273649931,
-0.012260490097105503,
-0.06270189583301544,
-0.00011783571972046047,
-0.058882635086774826,
-0.045893386006355286,
-0.049325767904520035,
-0.0428345613181591,
0.022540483623743057,
-0.029532629996538162,
0.014728263020515442,
0.0005656577413901687,
0.023452702909708023,
-0.03866284340620041,
-0.02699560485780239,
-0.05029858276247978,
-0.02267773449420929,
-0.07071714103221893,
-0.018097329884767532,
0.009335924871265888,
0.023154309019446373,
0.047895051538944244,
0.00643074419349432,
0.012688901275396347,
0.0005874849739484489,
-0.00619095703586936,
-0.023844990879297256,
0.04562996327877045,
0.006036675069481134,
-0.035999130457639694,
-0.053268592804670334,
0.00009544768545310944,
0.00116608920507133,
-0.0023125153966248035,
-0.015538063831627369,
0.01090390793979168,
0.04306155815720558,
-0.0005002287798561156,
-0.024563126266002655,
0.02309991978108883,
0.003154842648655176,
-0.07686106860637665,
-0.030523095279932022,
0.0031761955469846725,
-0.032438088208436966,
0.041294608265161514,
0.006296887528151274,
-0.042434804141521454,
-0.02398083545267582,
0.022320961579680443,
0.05112042278051376,
0.009814571589231491,
-0.04224337637424469,
0.004374316893517971,
-0.027756942436099052,
0.024198753759264946,
-0.04956411197781563,
0.04704810678958893,
-0.04102045297622681,
-0.004233148414641619,
-0.025869298726320267,
-0.01335776224732399,
-0.044627975672483444,
0.05464830622076988,
-0.013178440742194653,
-0.004499297123402357,
-0.008101889863610268,
0.027295809239149094,
-0.03851084038615227,
0.02408156730234623,
-0.02585916966199875,
0.01057481113821268,
-0.025653153657913208,
0.05541092902421951,
-0.06218293681740761,
0.007121904753148556,
-0.051308922469615936,
-0.0019687439780682325,
-0.03361830860376358,
0.001751890406012535,
-0.017867788672447205,
-0.013573585078120232,
0.04290132224559784,
0.027059108018875122,
0.03570546954870224,
0.03932272270321846,
-0.01047571562230587,
0.0008880220702849329,
0.0041347043588757515,
-0.07747957110404968,
-0.02472797781229019,
-0.029308732599020004,
0.019035112112760544,
-0.011696848087012768,
0.06064249947667122,
0.041384778916835785,
-0.038742776960134506,
-0.01672753505408764,
0.04500582814216614,
-0.0028825183399021626,
0.011696044355630875,
0.025724519044160843,
-0.007205157075077295,
0.02159809321165085,
0.01223138626664877,
-0.040046922862529755,
0.00017704082711134106,
-0.00006218001362867653,
-0.022968757897615433,
0.002880300395190716,
-0.005285601131618023,
0.014779621735215187,
0.011003080755472183,
-0.022127987816929817,
-0.031008068472146988,
0.037112075835466385,
0.014453642070293427,
-0.0005600351723842323,
0.0045417239889502525,
-0.03236376866698265,
0.02747303433716297,
0.023986389860510826,
-0.0364440456032753,
-0.0016576817724853754,
-0.0015503738541156054,
-0.028999021276831627,
0.05025246739387512,
-0.01864861324429512,
-0.028664322569966316,
0.029710907489061356,
0.007164227310568094,
-0.015460933558642864,
0.05148082599043846,
-0.045942436903715134,
0.029586780816316605,
0.05180693790316582,
-0.037330497056245804,
-0.0004456278693396598,
-0.03358931839466095,
0.055541276931762695,
-0.06006183102726936,
0.016994953155517578,
0.04546036943793297,
0.024245617911219597,
-0.01026515755802393,
-0.018686052411794662,
-0.03900802135467529,
0.012959939427673817,
-0.05243982374668121,
0.07734682410955429,
0.0030656266026198864,
-0.07219384610652924,
0.08998673409223557,
0.05895214527845383,
-0.0688166618347168,
0.04384852200746536,
0.05866279453039169,
0.038720738142728806,
0.047761980444192886,
0.051684457808732986,
-0.05853153392672539,
-0.006991584785282612,
-0.026834340766072273,
0.017925957217812538,
-0.04451671615242958,
-0.01901533640921116,
0.011257462203502655,
-0.038873352110385895,
0.000010432507224322762,
0.021369606256484985,
-0.009059904143214226,
-0.01786252111196518,
0.036556947976350784,
-0.0618799552321434,
-0.012332161888480186,
-0.02910342812538147,
0.00803946703672409,
-0.04809122532606125,
-0.00012707638961728662,
-0.026665832847356796,
0.027023836970329285,
0.013710925355553627,
-0.006427402142435312,
-0.028434718027710915,
0.007859494537115097,
-0.014402682892978191,
-0.0530172735452652,
-0.07016627490520477,
0.012541362084448338,
0.01645226776599884,
-0.03616034984588623,
0.018971379846334457,
-0.01631852053105831,
0.030980469658970833,
0.024950534105300903,
-0.0067320214584469795,
0.0243406742811203,
-0.049596529453992844,
0.02433759532868862,
0.020816294476389885,
0.0022108000703155994,
0.04648204520344734,
-0.016745291650295258,
0.035363614559173584,
0.03687594085931778,
0.021587995812296867,
-0.03842770308256149,
-0.03054932691156864,
-0.016359612345695496,
0.04218427091836929,
-0.033420629799366,
0.03708350285887718,
-0.01063420157879591,
-0.04277006909251213,
-0.014044727198779583,
-0.03479037433862686,
-0.017237571999430656,
0.03741498291492462,
-0.052769239991903305,
-0.003947446588426828,
0.05745012313127518,
-0.027500620111823082,
-0.04471563547849655,
-0.06297168135643005,
-0.02471119724214077,
-0.06036922335624695,
0.006292484700679779,
0.01726536452770233,
-0.0407843291759491,
-0.007841392420232296,
-0.06481128185987473,
-0.04802917316555977,
0.04346756264567375,
0.026900654658675194,
-0.037543363869190216,
0.027925025671720505,
0.030032014474272728,
-0.026725471019744873,
0.02130645141005516,
0.00240375311113894,
-0.033194661140441895,
0.002740434603765607,
-0.0017252039397135377,
0.03235829249024391,
0.04250039905309677,
0.047097548842430115,
-0.045159779489040375,
-0.022155271843075752,
-0.05200860649347305,
-0.05391639471054077,
-0.02004408650100231,
-0.01013258472084999,
0.07418598234653473
] |
BeIR/query-gen-msmarco-t5-large-v1 | [
"pytorch",
"jax",
"t5",
"text2text-generation",
"transformers",
"autotrain_compatible"
] | text2text-generation | {
"architectures": [
"T5ForConditionalGeneration"
],
"model_type": "t5",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": true,
"length_penalty": 2,
"max_length": 200,
"min_length": 30,
"no_repeat_ngram_size": 3,
"num_beams": 4,
"prefix": "summarize: "
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to German: "
},
"translation_en_to_fr": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to French: "
},
"translation_en_to_ro": {
"early_stopping": true,
"max_length": 300,
"num_beams": 4,
"prefix": "translate English to Romanian: "
}
}
} | 1,225 | null | # Query Generation
This model is the t5-base model from [docTTTTTquery](https://github.com/castorini/docTTTTTquery).
The T5-base model was trained on the [MS MARCO Passage Dataset](https://github.com/microsoft/MSMARCO-Passage-Ranking), which consists of about 500k real search queries from Bing together with the relevant passage.
The model can be used for query generation to learn semantic search models without requiring annotated training data: [Synthetic Query Generation](https://github.com/UKPLab/sentence-transformers/tree/master/examples/unsupervised_learning/query_generation).
## Usage
```python
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained('model-name')
model = T5ForConditionalGeneration.from_pretrained('model-name')
para = "Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects."
input_ids = tokenizer.encode(para, return_tensors='pt')
outputs = model.generate(
input_ids=input_ids,
max_length=64,
do_sample=True,
top_p=0.95,
num_return_sequences=3)
print("Paragraph:")
print(para)
print("\nGenerated Queries:")
for i in range(len(outputs)):
query = tokenizer.decode(outputs[i], skip_special_tokens=True)
print(f'{i + 1}: {query}')
``` | [
0.006665314547717571,
-0.024771330878138542,
-0.015181586146354675,
0.07506373524665833,
0.022244613617658615,
0.03187179937958717,
-0.020792517811059952,
0.018398651853203773,
-0.03758012130856514,
0.03154726326465607,
0.010181964375078678,
-0.001217871205881238,
-0.01004168763756752,
0.048574525862932205,
-0.04256580024957657,
-0.05062130466103554,
-0.017904359847307205,
-0.017104102298617363,
-0.03060079924762249,
-0.009518470615148544,
0.010781528428196907,
0.007565824780613184,
0.006768105085939169,
0.000011300346159259789,
-0.00940822996199131,
0.031101251021027565,
-0.013350809924304485,
0.03699156269431114,
0.004727710969746113,
-0.07018476724624634,
0.013685135170817375,
-0.007030564825981855,
-0.015015545301139355,
-0.0023704045452177525,
-0.008280390873551369,
0.021282624453306198,
0.0011860213708132505,
0.011668073013424873,
0.018046922981739044,
0.03896382078528404,
-0.009749156422913074,
0.006640239618718624,
0.011648418381810188,
-0.030275622382760048,
0.05610545724630356,
-0.0034522786736488342,
-0.030386773869395256,
-0.013448660261929035,
0.03232703357934952,
-0.0235077403485775,
-0.05945076048374176,
-0.09294603019952774,
-0.026022477075457573,
0.023698674514889717,
-0.031246058642864227,
-0.0207762960344553,
-0.06613107770681381,
-0.015848716720938683,
0.06874291598796844,
-0.05226500332355499,
-0.020593002438545227,
0.015366225503385067,
-0.06514163315296173,
0.02376398630440235,
0.018763728439807892,
-0.030064105987548828,
0.007685298565775156,
-0.041269902139902115,
0.00032746882061474025,
-0.019640017300844193,
0.043012410402297974,
-0.04258100688457489,
0.014116967096924782,
-0.1100582629442215,
0.021200386807322502,
-0.005931408144533634,
0.031630419194698334,
0.02062036283314228,
-0.022803429514169693,
0.042372968047857285,
0.018900718539953232,
0.0041740466840565205,
0.025400394573807716,
0.0038156115915626287,
-0.021043455228209496,
0.05280519276857376,
-0.03558076173067093,
-0.013733145780861378,
-0.012766840867698193,
0.02828839048743248,
-0.03884994611144066,
-0.04266950860619545,
-0.028330044820904732,
-0.025654898956418037,
0.0048673502169549465,
0.02451264299452305,
0.027711914852261543,
-0.0010330466320738196,
0.02056174725294113,
0.003919696435332298,
0.027378493919968605,
0.04131360724568367,
0.0037390657234936953,
0.04998942092061043,
-0.004032403230667114,
0.007001846097409725,
0.006757093593478203,
-0.03535355255007744,
-0.02619355544447899,
0.04053041338920593,
0.010766220279037952,
-0.0682121217250824,
-0.04110409691929817,
0.04341110959649086,
0.05856693536043167,
-0.006114436779171228,
0.056676071137189865,
-0.02702382579445839,
-0.05316045880317688,
-0.03441331163048744,
0.07133200019598007,
0.00041747622890397906,
0.0062795341946184635,
-0.015393869020044804,
-0.05254309996962547,
0.03900044038891792,
-0.06601273268461227,
-0.03939621150493622,
-0.006845437455922365,
0.04218045622110367,
-0.009947031736373901,
0.02497435174882412,
0.02959570661187172,
-0.05132189765572548,
0.010325292125344276,
0.014232005923986435,
-0.07656697183847427,
0.040967538952827454,
0.025759845972061157,
0.11906372010707855,
-0.06953764706850052,
-0.048063963651657104,
0.033024970442056656,
0.028400912880897522,
-0.025669004768133163,
0.003535263938829303,
-0.01794399879872799,
-0.028145458549261093,
-0.011998864822089672,
0.01204419881105423,
0.08018545806407928,
-0.0452258326113224,
0.016006138175725937,
0.02407383732497692,
0.0049403090961277485,
0.03808736428618431,
-0.04800359159708023,
0.004171732347458601,
0.005655431188642979,
0.013082718476653099,
-0.05999099835753441,
0.03473750129342079,
-0.010574840940535069,
0.01248171553015709,
-0.029452303424477577,
-0.033492010086774826,
0.02180388756096363,
0.0902106985449791,
-0.004981794394552708,
-0.03084026277065277,
-0.04336544871330261,
0.0009833246003836393,
0.039561688899993896,
0.06137959286570549,
-0.01811319962143898,
0.04142938181757927,
0.05400196090340614,
0.022521791979670525,
-0.023706629872322083,
0.02906040847301483,
0.0009966787183657289,
-0.034353211522102356,
-0.01457373145967722,
0.023367399349808693,
-0.005553480237722397,
-0.026928313076496124,
0.036291882395744324,
0.023675071075558662,
-0.04505091533064842,
-0.018881315365433693,
0.005028638988733292,
0.06520863622426987,
-0.022913802415132523,
-0.0007046443643048406,
-0.020503101870417595,
0.007561898324638605,
-0.009906861931085587,
0.04932022839784622,
-0.0285258200019598,
0.02291661500930786,
-0.011782203800976276,
-0.03757340461015701,
0.026852650567889214,
0.014896205626428127,
0.030808400362730026,
0.0480150505900383,
0.00021548153017647564,
0.09367236495018005,
-0.049391970038414,
-0.0032174664083868265,
-0.03909147530794144,
-0.0330553762614727,
0.010345647111535072,
0.039216719567775726,
0.00026656509726308286,
0.03297793120145798,
0.022786986082792282,
-0.02871323935687542,
0.027013568207621574,
0.05056486651301384,
0.04981948435306549,
0.03283131495118141,
-0.02752137929201126,
0.004669775255024433,
0.040035348385572433,
0.09146203845739365,
-0.02855813130736351,
-0.01572813093662262,
0.00536302849650383,
0.01637699455022812,
-0.038603343069553375,
0.012300345115363598,
0.011691289953887463,
0.01572520099580288,
-0.06279126554727554,
-0.06866130232810974,
0.059186212718486786,
0.024508044123649597,
0.02528170309960842,
0.040824390947818756,
-0.009528006426990032,
0.008731336332857609,
0.040761176496744156,
0.01102865394204855,
-0.008373529650270939,
-0.0480065681040287,
-0.00012185353261884302,
0.005511372350156307,
0.030050037428736687,
-0.0662262886762619,
0.03171375021338463,
-0.013287743553519249,
0.004246511496603489,
0.06011715531349182,
-0.022752558812499046,
0.006930106319487095,
0.0291108600795269,
0.003581021912395954,
-0.015185404568910599,
0.0204602237790823,
0.001592627726495266,
0.022577859461307526,
0.07926017791032791,
-0.0014704050263389945,
0.0253022201359272,
0.00018403212015982717,
0.02849632315337658,
0.10259260982275009,
0.015778588131070137,
0.0007146461866796017,
0.025355909019708633,
0.05926135927438736,
0.011088155210018158,
0.0004325485788285732,
0.04902954027056694,
-0.07263308763504028,
0.04727280139923096,
-0.04628673195838928,
0.005434523802250624,
-0.020033959299325943,
-0.02242145501077175,
0.05167079344391823,
0.037052929401397705,
-0.05651969090104103,
0.031713373959064484,
-0.028864556923508644,
-0.015380831435322762,
0.010120860300958157,
-0.019175568595528603,
0.006345225963741541,
-0.011645765975117683,
-0.017113203182816505,
0.012584519572556019,
-0.06885553151369095,
-0.05060982704162598,
-0.024883072823286057,
-0.019357021898031235,
0.017805423587560654,
-0.07373242825269699,
-0.0392787903547287,
-0.08262442797422409,
-0.02926517091691494,
0.061867065727710724,
0.02074071206152439,
-0.0034875653218477964,
-0.02009757235646248,
0.016421828418970108,
-0.022615887224674225,
-0.021186040714383125,
-0.06939166784286499,
-0.0477752685546875,
-0.04114455729722977,
-0.07620493322610855,
0.04417817294597626,
0.006908041890710592,
0.03306767717003822,
0.0031783990561962128,
-0.008581539615988731,
-0.05757895112037659,
-0.006259413436055183,
0.049865663051605225,
-0.01186859980225563,
-0.03685883805155754,
-0.04316319152712822,
0.03825078904628754,
-0.01189581397920847,
0.026387222111225128,
-0.010796192102134228,
-0.036992624402046204,
0.1028553918004036,
0.0790073573589325,
0.02585686556994915,
0.009837615303695202,
-0.03722233697772026,
-0.03902662545442581,
-0.040374014526605606,
-0.04018314182758331,
-0.03790781646966934,
-0.029769377782940865,
-0.02187846228480339,
-0.04366939142346382,
0.010529530234634876,
-0.013498587533831596,
-0.029031289741396904,
-0.007754944264888763,
0.01673787087202072,
0.047188106924295425,
0.05900977551937103,
0.034461405128240585,
0.013554531149566174,
-0.04679664969444275,
-0.022959817200899124,
0.044845253229141235,
0.02473069168627262,
0.02183346077799797,
-0.07143200933933258,
-0.043998416513204575,
0.04519431293010712,
0.0008981739520095289,
0.022436371073126793,
-0.0194217711687088,
0.06072481349110603,
0.012299325317144394,
0.0049805366434156895,
0.013211452402174473,
0.005073223728686571,
-0.015657830983400345,
0.006639457773417234,
-0.0155583955347538,
-0.054872289299964905,
-0.03391948342323303,
-0.051571108400821686,
-0.007524005137383938,
0.04759954288601875,
-0.05796203762292862,
-0.05116085708141327,
-0.013198080472648144,
0.027940554544329643,
0.029404090717434883,
0.024260681122541428,
-0.0366804338991642,
0.015173961408436298,
-0.06802064925432205,
-0.04186953976750374,
0.030665198341012,
0.015030995942652225,
0.008029182441532612,
0.02612273395061493,
0.03103259764611721,
-0.010394342243671417,
0.01863224245607853,
0.03044307604432106,
0.0194783266633749,
0.021342886611819267,
-0.0408056415617466,
0.00625081779435277,
-0.012287969700992107,
0.02633470855653286,
-0.00496945483610034,
-0.014557568356394768,
-0.06227250397205353,
-0.09068254381418228,
-0.029452571645379066,
0.023929134011268616,
-0.020411904901266098,
-0.010980622842907906,
0.04274703189730644,
-0.01822434552013874,
-0.02988535910844803,
0.0048669734969735146,
0.010407134890556335,
0.05718432366847992,
-0.06551682949066162,
0.03820990025997162,
-0.010756461881101131,
0.04279417544603348,
-0.035478927195072174,
0.007022583391517401,
-0.0251359473913908,
0.001817408949136734,
0.008737926371395588,
0.050732359290122986,
0.02108820527791977,
0.08369605988264084,
0.07131592929363251,
0.03371373564004898,
-0.03915508836507797,
0.05560903251171112,
0.05697479099035263,
-0.019603723660111427,
-0.031186390668153763,
0.0039526959881186485,
-0.011550234630703926,
-0.02961423620581627,
0.015736205503344536,
-0.035997919738292694,
0.021558526903390884,
0.04253929853439331,
-0.010162588208913803,
-0.01872650533914566,
-0.0009119735332205892,
-0.03666252642869949,
-0.021060049533843994,
-0.03423409163951874,
-0.02284848317503929,
-0.030545592308044434,
-0.030520658940076828,
0.025720568373799324,
0.05751904845237732,
0.0233976561576128,
0.05893712490797043,
0.04814480245113373,
-0.022257603704929352,
-0.024289187043905258,
0.02539042755961418,
0.046984534710645676,
-0.0641339123249054,
-0.06181713193655014,
-0.045740555971860886,
0.043741364032030106,
0.0430959016084671,
-0.0023999852128326893,
-0.10075422376394272,
0.042809538543224335,
0.01945336163043976,
-0.01459106057882309,
0.06430862843990326,
-0.026135478168725967,
0.0027031409554183483,
0.05599736422300339,
0.006531733553856611,
0.015131604857742786,
-0.036507174372673035,
0.017467573285102844,
-0.020654797554016113,
0.0590684674680233,
-0.028695352375507355,
-0.03816640004515648,
-0.05850091576576233,
0.0491945818066597,
0.026837553828954697,
0.04793378710746765,
0.03836796432733536,
-0.017956579104065895,
-0.07296231389045715,
0.022377334535121918,
0.004749368876218796,
-0.05096997320652008,
0.04263180494308472,
0.01110093668103218,
0.027694640681147575,
-0.07060828804969788,
-0.036327674984931946,
0.010584460571408272,
0.005255491007119417,
0.026128998026251793,
0.011430551297962666,
-0.03267041966319084,
-0.05100163817405701,
0.0192639771848917,
-0.029184767976403236,
-0.03040858544409275,
-0.07289858162403107,
0.029465215280652046,
0.008477495983242989,
-0.02811410464346409,
0.0532604455947876,
0.06311462819576263,
0.018986450508236885,
0.04671323299407959,
-0.023622415959835052,
0.03400935232639313,
-0.0267620999366045,
0.027449846267700195,
-0.0297177005559206,
-0.005308076273649931,
-0.012260490097105503,
-0.06270189583301544,
-0.00011783571972046047,
-0.058882635086774826,
-0.045893386006355286,
-0.049325767904520035,
-0.0428345613181591,
0.022540483623743057,
-0.029532629996538162,
0.014728263020515442,
0.0005656577413901687,
0.023452702909708023,
-0.03866284340620041,
-0.02699560485780239,
-0.05029858276247978,
-0.02267773449420929,
-0.07071714103221893,
-0.018097329884767532,
0.009335924871265888,
0.023154309019446373,
0.047895051538944244,
0.00643074419349432,
0.012688901275396347,
0.0005874849739484489,
-0.00619095703586936,
-0.023844990879297256,
0.04562996327877045,
0.006036675069481134,
-0.035999130457639694,
-0.053268592804670334,
0.00009544768545310944,
0.00116608920507133,
-0.0023125153966248035,
-0.015538063831627369,
0.01090390793979168,
0.04306155815720558,
-0.0005002287798561156,
-0.024563126266002655,
0.02309991978108883,
0.003154842648655176,
-0.07686106860637665,
-0.030523095279932022,
0.0031761955469846725,
-0.032438088208436966,
0.041294608265161514,
0.006296887528151274,
-0.042434804141521454,
-0.02398083545267582,
0.022320961579680443,
0.05112042278051376,
0.009814571589231491,
-0.04224337637424469,
0.004374316893517971,
-0.027756942436099052,
0.024198753759264946,
-0.04956411197781563,
0.04704810678958893,
-0.04102045297622681,
-0.004233148414641619,
-0.025869298726320267,
-0.01335776224732399,
-0.044627975672483444,
0.05464830622076988,
-0.013178440742194653,
-0.004499297123402357,
-0.008101889863610268,
0.027295809239149094,
-0.03851084038615227,
0.02408156730234623,
-0.02585916966199875,
0.01057481113821268,
-0.025653153657913208,
0.05541092902421951,
-0.06218293681740761,
0.007121904753148556,
-0.051308922469615936,
-0.0019687439780682325,
-0.03361830860376358,
0.001751890406012535,
-0.017867788672447205,
-0.013573585078120232,
0.04290132224559784,
0.027059108018875122,
0.03570546954870224,
0.03932272270321846,
-0.01047571562230587,
0.0008880220702849329,
0.0041347043588757515,
-0.07747957110404968,
-0.02472797781229019,
-0.029308732599020004,
0.019035112112760544,
-0.011696848087012768,
0.06064249947667122,
0.041384778916835785,
-0.038742776960134506,
-0.01672753505408764,
0.04500582814216614,
-0.0028825183399021626,
0.011696044355630875,
0.025724519044160843,
-0.007205157075077295,
0.02159809321165085,
0.01223138626664877,
-0.040046922862529755,
0.00017704082711134106,
-0.00006218001362867653,
-0.022968757897615433,
0.002880300395190716,
-0.005285601131618023,
0.014779621735215187,
0.011003080755472183,
-0.022127987816929817,
-0.031008068472146988,
0.037112075835466385,
0.014453642070293427,
-0.0005600351723842323,
0.0045417239889502525,
-0.03236376866698265,
0.02747303433716297,
0.023986389860510826,
-0.0364440456032753,
-0.0016576817724853754,
-0.0015503738541156054,
-0.028999021276831627,
0.05025246739387512,
-0.01864861324429512,
-0.028664322569966316,
0.029710907489061356,
0.007164227310568094,
-0.015460933558642864,
0.05148082599043846,
-0.045942436903715134,
0.029586780816316605,
0.05180693790316582,
-0.037330497056245804,
-0.0004456278693396598,
-0.03358931839466095,
0.055541276931762695,
-0.06006183102726936,
0.016994953155517578,
0.04546036943793297,
0.024245617911219597,
-0.01026515755802393,
-0.018686052411794662,
-0.03900802135467529,
0.012959939427673817,
-0.05243982374668121,
0.07734682410955429,
0.0030656266026198864,
-0.07219384610652924,
0.08998673409223557,
0.05895214527845383,
-0.0688166618347168,
0.04384852200746536,
0.05866279453039169,
0.038720738142728806,
0.047761980444192886,
0.051684457808732986,
-0.05853153392672539,
-0.006991584785282612,
-0.026834340766072273,
0.017925957217812538,
-0.04451671615242958,
-0.01901533640921116,
0.011257462203502655,
-0.038873352110385895,
0.000010432507224322762,
0.021369606256484985,
-0.009059904143214226,
-0.01786252111196518,
0.036556947976350784,
-0.0618799552321434,
-0.012332161888480186,
-0.02910342812538147,
0.00803946703672409,
-0.04809122532606125,
-0.00012707638961728662,
-0.026665832847356796,
0.027023836970329285,
0.013710925355553627,
-0.006427402142435312,
-0.028434718027710915,
0.007859494537115097,
-0.014402682892978191,
-0.0530172735452652,
-0.07016627490520477,
0.012541362084448338,
0.01645226776599884,
-0.03616034984588623,
0.018971379846334457,
-0.01631852053105831,
0.030980469658970833,
0.024950534105300903,
-0.0067320214584469795,
0.0243406742811203,
-0.049596529453992844,
0.02433759532868862,
0.020816294476389885,
0.0022108000703155994,
0.04648204520344734,
-0.016745291650295258,
0.035363614559173584,
0.03687594085931778,
0.021587995812296867,
-0.03842770308256149,
-0.03054932691156864,
-0.016359612345695496,
0.04218427091836929,
-0.033420629799366,
0.03708350285887718,
-0.01063420157879591,
-0.04277006909251213,
-0.014044727198779583,
-0.03479037433862686,
-0.017237571999430656,
0.03741498291492462,
-0.052769239991903305,
-0.003947446588426828,
0.05745012313127518,
-0.027500620111823082,
-0.04471563547849655,
-0.06297168135643005,
-0.02471119724214077,
-0.06036922335624695,
0.006292484700679779,
0.01726536452770233,
-0.0407843291759491,
-0.007841392420232296,
-0.06481128185987473,
-0.04802917316555977,
0.04346756264567375,
0.026900654658675194,
-0.037543363869190216,
0.027925025671720505,
0.030032014474272728,
-0.026725471019744873,
0.02130645141005516,
0.00240375311113894,
-0.033194661140441895,
0.002740434603765607,
-0.0017252039397135377,
0.03235829249024391,
0.04250039905309677,
0.047097548842430115,
-0.045159779489040375,
-0.022155271843075752,
-0.05200860649347305,
-0.05391639471054077,
-0.02004408650100231,
-0.01013258472084999,
0.07418598234653473
] |
BeIR/sparta-msmarco-distilbert-base-v1 | [
"pytorch",
"distilbert",
"feature-extraction",
"arxiv:2009.13013",
"arxiv:2104.08663",
"transformers"
] | feature-extraction | {
"architectures": [
"DistilBertModel"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 106 | null | # SPARTA
Re-Implementation of [SPARTA: Efficient Open-Domain Question Answering via Sparse Transformer Matching Retrieval](https://arxiv.org/abs/2009.13013). It is the re-implementation we used for [BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Models](https://arxiv.org/abs/2104.08663).
Also have a look at our BEIR repository: https://github.com/UKPLab/beir
Have a look at https://github.com/nreimers/beir-sparta for the training and inference code of this SPARTA model
| [
-0.01208326406776905,
-0.010308091528713703,
-0.025207336992025375,
0.04378091171383858,
0.02080470882356167,
0.016092728823423386,
-0.009890414774417877,
0.013769061304628849,
-0.05994081124663353,
0.0436457134783268,
0.02226351387798786,
0.011137934401631355,
0.008531155996024609,
0.025958800688385963,
-0.06675945222377777,
-0.0538846030831337,
-0.01197825651615858,
-0.004653688054531813,
-0.04204704612493515,
0.014190115965902805,
-0.015642894431948662,
-0.004678403493016958,
0.033494897186756134,
0.030746372416615486,
-0.022738119587302208,
0.006382001098245382,
-0.047446660697460175,
0.011467075906693935,
0.06753535568714142,
-0.07763424515724182,
0.010697783902287483,
-0.05451219528913498,
-0.0384366437792778,
-0.022425135597586632,
-0.0041951644234359264,
-0.0038299928419291973,
0.0243338942527771,
-0.033079843968153,
0.03428974002599716,
0.04652010649442673,
-0.020755402743816376,
0.02117144875228405,
0.019941948354244232,
-0.04476861655712128,
0.029512625187635422,
-0.0156662929803133,
-0.02783127687871456,
-0.02986849844455719,
0.046418704092502594,
-0.02517777495086193,
-0.047225888818502426,
-0.08932099491357803,
-0.04617617279291153,
0.016809623688459396,
0.00017893769836518914,
-0.0443001314997673,
-0.019000409170985222,
-0.029337279498577118,
0.05583819001913071,
-0.04095502570271492,
-0.03772159293293953,
0.0076995850540697575,
-0.029475491493940353,
0.01029868796467781,
0.0479414202272892,
-0.02182159386575222,
0.04061628878116608,
-0.03059362806379795,
0.007669688202440739,
-0.02372996136546135,
0.054809000343084335,
-0.04683009162545204,
0.002715492155402899,
-0.08447622507810593,
-0.0011617783457040787,
-0.024234293028712273,
0.023672858253121376,
0.04246554523706436,
-0.024792594835162163,
0.07461675256490707,
0.012900121510028839,
-0.0014481532853096724,
0.02453966811299324,
-0.02805786021053791,
0.03473205119371414,
0.05924876779317856,
-0.0232436154037714,
-0.000038049860449973494,
-0.03223364055156708,
0.031136179342865944,
-0.030705463141202927,
-0.03395233675837517,
-0.005021799821406603,
-0.0025324192829430103,
0.0058565642684698105,
0.03496488928794861,
0.030581122264266014,
-0.00750777730718255,
0.014374717138707638,
0.018346911296248436,
0.0484582781791687,
0.01474226638674736,
0.004047198686748743,
0.057007577270269394,
0.02341560833156109,
-0.0171740110963583,
-0.031056540086865425,
-0.015503944829106331,
-0.03914851322770119,
0.01697777956724167,
0.03518255054950714,
-0.053450580686330795,
0.010387297719717026,
0.016475344076752663,
0.017970984801650047,
0.012023748829960823,
0.05976010113954544,
-0.00544812623411417,
-0.028834430500864983,
-0.05540642887353897,
0.033996012061834335,
0.0017283532069996,
0.0024900774005800486,
-0.0075326706282794476,
-0.026402849704027176,
0.02176220528781414,
-0.05236494913697243,
-0.02093377150595188,
0.012220674194395542,
0.014543943107128143,
0.04141486808657646,
0.014394277706742287,
0.05128888785839081,
-0.0828031674027443,
0.036869291216135025,
0.0274049025028944,
-0.061525892466306686,
0.027174098417162895,
0.032629214227199554,
0.11263328045606613,
-0.06382784992456436,
-0.04421864077448845,
0.011718311347067356,
-0.0071073356084525585,
-0.005260164849460125,
0.005810476839542389,
0.00011199960863450542,
-0.05937894806265831,
-0.0261322483420372,
0.010507361963391304,
0.03450112044811249,
-0.06370123475790024,
0.004448771011084318,
0.02171708643436432,
-0.023951249197125435,
0.03582822531461716,
-0.05110137164592743,
-0.009603670798242092,
-0.03873436525464058,
0.021157819777727127,
-0.05129966884851456,
0.06539765000343323,
-0.06102045997977257,
0.012042532674968243,
-0.04747501015663147,
-0.004386523738503456,
-0.009403550997376442,
0.12744365632534027,
0.008065178990364075,
-0.028271380811929703,
-0.02363014779984951,
0.009195930324494839,
0.03832615166902542,
0.05081387609243393,
-0.01312207244336605,
0.052787236869335175,
0.02339598350226879,
-0.00017291674157604575,
-0.009890147484838963,
0.0749640092253685,
0.027693169191479683,
-0.046649396419525146,
-0.012274481356143951,
-0.0053953323513269424,
-0.002716398099437356,
-0.024263501167297363,
0.00691099651157856,
0.06061863526701927,
-0.03259715437889099,
-0.025112245231866837,
-0.050602883100509644,
0.04694675654172897,
-0.019513849169015884,
-0.0068728080950677395,
0.035791944712400436,
-0.008587010204792023,
-0.03781972825527191,
0.05627226084470749,
-0.008935160003602505,
-0.0031603649258613586,
0.003750330302864313,
-0.009409996680915356,
0.010402911342680454,
0.009006340987980366,
0.01901271753013134,
0.04356187954545021,
-0.01174143049865961,
0.10270805656909943,
-0.02899259887635708,
0.00379026192240417,
-0.0378342904150486,
-0.035425081849098206,
-0.015344131737947464,
0.0539255365729332,
0.028574569150805473,
0.02042490988969803,
0.009376668371260166,
-0.04601030424237251,
0.028905481100082397,
0.05881616100668907,
0.06498134136199951,
0.029507888481020927,
-0.03934736177325249,
0.007217640522867441,
0.01970832236111164,
0.0651845782995224,
-0.043119922280311584,
-0.015076352283358574,
-0.006407119333744049,
0.04706272482872009,
-0.012506409548223019,
0.005430398974567652,
-0.013234876096248627,
0.017510244622826576,
-0.025579402223229408,
-0.059506021440029144,
0.022263556718826294,
0.05106756091117859,
0.005640251561999321,
0.019916869699954987,
-0.027778366580605507,
-0.007559909485280514,
0.02507954277098179,
0.019949370995163918,
-0.017898093909025192,
-0.06188458576798439,
0.005331274121999741,
0.03399598225951195,
0.04762716591358185,
-0.06282968074083328,
0.03070891462266445,
0.008043354377150536,
-0.012029201723635197,
0.020791713148355484,
-0.022495731711387634,
0.02055884152650833,
0.07339935004711151,
0.03677399829030037,
-0.007117425091564655,
0.0351092703640461,
0.02095937542617321,
0.029878074303269386,
0.07153073698282242,
0.013849081471562386,
0.048368025571107864,
0.014597177505493164,
0.015438606031239033,
0.061224315315485,
0.02410263568162918,
0.02367956005036831,
0.03485890105366707,
0.0887032002210617,
-0.03482968732714653,
-0.015785671770572662,
0.051880717277526855,
-0.05244259908795357,
0.009641824290156364,
-0.02493799477815628,
-0.010119294747710228,
0.0037500187754631042,
-0.021587911993265152,
0.08611077070236206,
0.009220059961080551,
0.0017121321288868785,
-0.007761969231069088,
-0.01781940460205078,
-0.017240047454833984,
0.0363382026553154,
-0.03899675980210304,
0.016302691772580147,
-0.01120916660875082,
-0.006941166706383228,
0.01510221790522337,
-0.06778065115213394,
-0.05068093165755272,
-0.0031001546885818243,
-0.012818492949008942,
-0.007240056060254574,
-0.06856243312358856,
0.0033266323152929544,
-0.06338507682085037,
-0.052362363785505295,
0.06593549251556396,
0.01549010630697012,
0.03450275585055351,
-0.01005391962826252,
0.008655650541186333,
-0.025684932246804237,
-0.030782122164964676,
-0.06639066338539124,
-0.04981917887926102,
-0.014822292141616344,
-0.0693502351641655,
0.04842904582619667,
0.01941903680562973,
0.03293541073799133,
-0.0002934710355475545,
-0.012700741179287434,
-0.042845528572797775,
-0.019521791487932205,
0.052483443170785904,
0.034614209085702896,
-0.030301200225949287,
-0.04808327555656433,
0.0195920467376709,
-0.02096865139901638,
0.022544747218489647,
-0.010091271251440048,
-0.02996538020670414,
0.10904551297426224,
0.06006188318133354,
0.03867807239294052,
0.004586044233292341,
-0.0018850991036742926,
-0.045735232532024384,
-0.03142493590712547,
-0.018175270408391953,
-0.02548244222998619,
0.012860347516834736,
-0.06316165626049042,
-0.023748965933918953,
-0.0046069687232375145,
-0.02609877847135067,
-0.018874390050768852,
-0.007880892604589462,
-0.019374264404177666,
0.06901112198829651,
0.060750532895326614,
0.016754183918237686,
0.04490391165018082,
-0.040167197585105896,
-0.0353538915514946,
0.04353058338165283,
0.0038370105903595686,
0.01725814677774906,
-0.052760377526283264,
-0.055599063634872437,
0.035752199590206146,
0.023316707462072372,
0.027994588017463684,
-0.01352632325142622,
0.050048068165779114,
0.010473113507032394,
-0.03269755095243454,
0.02002502605319023,
-0.0067528425715863705,
-0.018105506896972656,
0.03790292888879776,
-0.009059259667992592,
-0.035120125859975815,
-0.041449591517448425,
-0.03396870940923691,
-0.029455801472067833,
0.030768543481826782,
-0.0555419847369194,
-0.05162280425429344,
-0.026197321712970734,
0.031882788985967636,
-0.009877066127955914,
0.029607461765408516,
-0.04030592739582062,
0.0239776149392128,
-0.05483996495604515,
-0.06442297995090485,
0.03458298742771149,
0.0015320350648835301,
-0.006302555091679096,
0.05408516526222229,
0.01199396699666977,
0.01754166930913925,
0.03612648323178291,
0.016514500603079796,
0.045452482998371124,
0.017722615972161293,
-0.07152292877435684,
-0.0018407406751066446,
-0.018900137394666672,
0.028875891119241714,
0.0107514513656497,
-0.03198684751987457,
-0.06016067788004875,
-0.06619679927825928,
-0.03518691286444664,
0.021784663200378418,
-0.01911652274429798,
-0.003800678765401244,
0.029603412374854088,
0.0017894742777571082,
-0.02715993858873844,
-0.042533230036497116,
0.029895327985286713,
0.05627954751253128,
-0.04356618598103523,
0.05333595722913742,
-0.011715139262378216,
0.028728116303682327,
-0.023176023736596107,
0.03273387625813484,
-0.04146268963813782,
-0.011565573513507843,
0.0347844697535038,
0.0450034961104393,
0.029386235401034355,
0.06220484524965286,
0.0653340071439743,
0.02038259617984295,
-0.037159401923418045,
0.01554569136351347,
0.03806188330054283,
-0.018342845141887665,
-0.0202496200799942,
-0.04423970356583595,
-0.015398683957755566,
-0.017428554594516754,
-0.018191847950220108,
-0.01286987867206335,
0.04371139779686928,
0.037482574582099915,
-0.023522228002548218,
-0.006275552324950695,
-0.009061990305781364,
0.005579379852861166,
-0.017699003219604492,
-0.03572653606534004,
0.0003467710630502552,
-0.008838054724037647,
-0.0025226806756109,
0.021554503589868546,
0.043551087379455566,
0.00879870168864727,
0.044415321201086044,
0.01813407801091671,
0.002749883569777012,
-0.04909979924559593,
0.04298361390829086,
0.026468031108379364,
-0.0756811574101448,
-0.08388017117977142,
-0.048815157264471054,
0.052251800894737244,
0.029531192034482956,
-0.0022718010004609823,
-0.08667265623807907,
0.03317248448729515,
0.037364475429058075,
-0.04604421183466911,
0.06256003677845001,
-0.017422063276171684,
0.009485757909715176,
0.060030482709407806,
-0.0366683229804039,
0.044442784041166306,
-0.05759189650416374,
0.014005521312355995,
0.0076552690006792545,
0.042652428150177,
-0.018731392920017242,
-0.03262331336736679,
-0.04405766725540161,
0.04776069149374962,
0.033526044338941574,
0.04726075753569603,
0.054426178336143494,
-0.02941766567528248,
-0.046123821288347244,
-0.019841313362121582,
0.04476909711956978,
-0.019050423055887222,
0.014302724972367287,
0.06425818800926208,
0.04298800975084305,
-0.04729032516479492,
-0.06867096573114395,
-0.008395892567932606,
0.002758187474682927,
0.029072217643260956,
-0.03660226985812187,
-0.013126883655786514,
-0.07747095823287964,
0.03906970098614693,
-0.019657285884022713,
-0.018179647624492645,
-0.08237821608781815,
0.05691530555486679,
0.001683208392933011,
-0.04655487835407257,
0.05878094211220741,
0.0590030811727047,
0.003350680461153388,
0.06825405359268188,
-0.010333221405744553,
0.014321750961244106,
-0.03019687533378601,
0.053104523569345474,
-0.03803092613816261,
-0.0293774101883173,
-0.0013158773072063923,
-0.043145567178726196,
0.021931713446974754,
-0.020438406616449356,
-0.03093527816236019,
-0.050620436668395996,
-0.05137794837355614,
0.0015855428064242005,
0.004248094744980335,
0.024749141186475754,
-0.029447712004184723,
0.04296358302235603,
-0.008488351479172707,
-0.029004178941249847,
-0.03985203430056572,
-0.010581916198134422,
-0.061853375285863876,
-0.02087411656975746,
0.0332382470369339,
-0.015713566914200783,
0.01046124566346407,
0.01845138892531395,
0.02891373075544834,
0.007903904654085636,
0.006344624329358339,
-0.035945676267147064,
0.008810429833829403,
-0.01163259893655777,
-0.05350009724497795,
-0.04059833288192749,
0.024361805990338326,
-0.011541066691279411,
0.02676030807197094,
-0.018402377143502235,
0.01205815002322197,
0.01401797216385603,
-0.006719173863530159,
-0.032166458666324615,
0.03597947582602501,
0.035169344395399094,
-0.07406874746084213,
-0.04088602215051651,
-0.01774497888982296,
-0.032925836741924286,
0.051740869879722595,
-0.026142863556742668,
-0.048138927668333054,
-0.003068015445023775,
0.02681341953575611,
0.05600055307149887,
0.01792525313794613,
-0.030603546649217606,
0.02612653188407421,
-0.017121292650699615,
0.04949142783880234,
-0.0299279373139143,
0.02114732749760151,
-0.024121398106217384,
0.022216295823454857,
0.005385583732277155,
-0.005573989357799292,
-0.05699076130986214,
0.06323929876089096,
0.005072081461548805,
-0.009322627447545528,
-0.040294259786605835,
-0.004902794491499662,
-0.022514859214425087,
0.017727194353938103,
0.03266555443406105,
-0.003509026952087879,
-0.03704594075679779,
0.05290989577770233,
-0.07662711292505264,
0.004869871772825718,
-0.03190886601805687,
0.015416616573929787,
-0.06462371349334717,
-0.006075724493712187,
-0.030926236882805824,
-0.023471064865589142,
0.007094765082001686,
0.024959884583950043,
0.030800169333815575,
0.029203195124864578,
-0.009655198082327843,
-0.00477861613035202,
0.01849493384361267,
-0.05790654569864273,
-0.007777043152600527,
0.008802047930657864,
-0.003697111736983061,
-0.008482217788696289,
0.06069152429699898,
0.040854454040527344,
-0.05457327887415886,
-0.0567328967154026,
0.037275996059179306,
0.020311735570430756,
0.02097616158425808,
0.006130850408226252,
0.008358358405530453,
0.02500659041106701,
0.028575606644153595,
-0.03414606302976608,
0.004941503517329693,
-0.021998733282089233,
-0.0420365110039711,
-0.013177788816392422,
-0.02728758566081524,
-0.0007328282226808369,
0.01593611016869545,
-0.019518842920660973,
-0.0502871498465538,
0.05442966893315315,
0.044588375836610794,
0.04388109967112541,
0.005709424614906311,
-0.025318754836916924,
0.026798594743013382,
0.006292447447776794,
-0.040657270699739456,
0.007822277024388313,
0.007098600268363953,
-0.034912943840026855,
0.0635206550359726,
-0.007452532183378935,
0.0004950154107064009,
0.0024158658925443888,
0.03741944581270218,
-0.032128408551216125,
0.0533587783575058,
-0.036576371639966965,
0.005362945143133402,
0.05620291456580162,
-0.04840153455734253,
0.0030023460276424885,
-0.020158972591161728,
0.04858040064573288,
-0.030407240614295006,
0.06727363169193268,
0.016413167119026184,
0.007126263342797756,
0.022172190248966217,
-0.06758125871419907,
-0.030174357816576958,
0.02510831132531166,
-0.02587127313017845,
0.06509210914373398,
-0.030937757343053818,
-0.07394233345985413,
0.055997464805841446,
0.041232846677303314,
-0.07448553293943405,
0.039754245430231094,
0.0174723993986845,
0.02197328582406044,
0.038579490035772324,
0.02347950078547001,
-0.06573402881622314,
0.003054524539038539,
-0.006178524345159531,
0.029786361381411552,
-0.010883793234825134,
-0.030619923025369644,
0.014199333265423775,
-0.002656057011336088,
0.00534011097624898,
0.02164509706199169,
-0.014165598899126053,
0.009084461256861687,
0.021891918033361435,
-0.05354088917374611,
-0.061887066811323166,
0.02648334763944149,
0.03083287924528122,
-0.008677951991558075,
-0.0008250011596828699,
-0.02338588796555996,
0.028478117659687996,
-0.004146120976656675,
-0.0032125029247254133,
-0.005705734249204397,
-0.001003322540782392,
-0.012020699679851532,
-0.07417432963848114,
-0.030493397265672684,
0.05042127147316933,
0.004650235176086426,
-0.031973402947187424,
0.04804203659296036,
-0.02380959317088127,
0.022312942892313004,
0.02200542390346527,
0.005535039119422436,
-0.007613960187882185,
-0.028774701058864594,
-0.023818239569664,
0.031218087300658226,
-0.007272529881447554,
0.05826910585165024,
-0.02788419835269451,
0.03292996063828468,
0.0050378283485770226,
0.043090157210826874,
0.0054821050725877285,
-0.04906880483031273,
-0.020222488790750504,
0.01870477944612503,
-0.03282391279935837,
0.015637628734111786,
-0.020106075331568718,
-0.07125761359930038,
-0.005232109688222408,
-0.032355304807424545,
-0.03397919610142708,
0.027987858280539513,
-0.025422226637601852,
0.019450653344392776,
0.040743276476860046,
0.005460747051984072,
-0.0505000501871109,
-0.0866488441824913,
-0.019693519920110703,
-0.040078382939100266,
0.0023768225219100714,
0.01970439963042736,
-0.023087095469236374,
0.026900427415966988,
-0.03760451823472977,
-0.053672563284635544,
0.012385960668325424,
-0.007938732393085957,
-0.013914552517235279,
0.04941777512431145,
0.033018212765455246,
-0.044320397078990936,
0.014064338989555836,
0.05140974745154381,
-0.05473192781209946,
0.026929598301649094,
-0.016524044796824455,
0.004360787570476532,
0.028150061145424843,
0.006083477754145861,
-0.02634143829345703,
-0.008112753741443157,
-0.05501431226730347,
0.007076484151184559,
-0.023163195699453354,
-0.021764324977993965,
0.06124095246195793
] |
BearThreat/distilbert-base-uncased-finetuned-cola | [
"pytorch",
"tensorboard",
"distilbert",
"text-classification",
"dataset:glue",
"transformers",
"generated_from_trainer",
"license:apache-2.0",
"model-index"
] | text-classification | {
"architectures": [
"DistilBertForSequenceClassification"
],
"model_type": "distilbert",
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 30 | null | ---
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
metrics:
- name: Matthews Correlation
type: matthews_correlation
value: 0.533214904586951
---
<!-- 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.5774
- Matthews Correlation: 0.5332
## 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: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|:-------------:|:-----:|:----:|:---------------:|:--------------------:|
| 0.2347 | 1.0 | 535 | 0.5774 | 0.5332 |
### Framework versions
- Transformers 4.11.0
- Pytorch 1.9.0+cu102
- Datasets 1.12.1
- Tokenizers 0.10.3
| [
-0.020428238436579704,
0.008538545109331608,
-0.020600613206624985,
0.047663796693086624,
0.06862862408161163,
0.028152596205472946,
-0.023160967975854874,
-0.02812786214053631,
-0.0486995205283165,
0.062389519065618515,
0.04206063970923424,
-0.009140994399785995,
0.01765252649784088,
0.03475591912865639,
-0.017128948122262955,
-0.02021474577486515,
-0.01854933425784111,
-0.01498592272400856,
-0.02783236652612686,
-0.022139519453048706,
0.00012243774835951626,
-0.024741055443882942,
-0.010711753740906715,
0.002513902261853218,
-0.00980421993881464,
0.008680055849254131,
0.005289404187351465,
0.023538295179605484,
0.03939053788781166,
-0.06728406250476837,
0.0010861187474802136,
-0.0600305050611496,
-0.03518250584602356,
-0.004751057364046574,
-0.016215628013014793,
-0.015672490000724792,
0.005963747855275869,
0.021147919818758965,
0.023204581812024117,
0.043582335114479065,
-0.001873089000582695,
0.006681580096483231,
-0.0076339091174304485,
-0.02763514779508114,
0.05239652469754219,
0.012160871177911758,
-0.037057459354400635,
-0.01009327732026577,
0.03344324976205826,
-0.009219984523952007,
-0.06294911354780197,
-0.06333141028881073,
-0.03116065263748169,
0.034975118935108185,
-0.0010674342047423124,
-0.020406018942594528,
-0.05702684819698334,
0.02856951765716076,
0.0480293370783329,
-0.038810499012470245,
-0.03546752408146858,
0.021202465519309044,
-0.06325487047433853,
0.0021609459072351456,
0.02374686487019062,
-0.020521940663456917,
-0.00763137498870492,
-0.03988642990589142,
0.02950487844645977,
-0.01911226101219654,
0.06293023377656937,
-0.019658397883176804,
0.04223886504769325,
-0.06302148848772049,
-0.01802787370979786,
0.00030799771775491536,
0.017402632161974907,
0.032182805240154266,
-0.03737647086381912,
0.047127895057201385,
0.03959641978144646,
0.005661515984684229,
0.027496039867401123,
-0.026531577110290527,
0.0036286956164985895,
0.007662780582904816,
-0.043274909257888794,
-0.00839902926236391,
0.04557998478412628,
0.014368786476552486,
-0.04087487980723381,
-0.04108718782663345,
-0.043233081698417664,
-0.037981051951646805,
0.0019768180791288614,
0.02814617194235325,
0.01914718933403492,
-0.0023332354612648487,
0.05380823463201523,
0.01817420683801174,
0.02970294840633869,
0.03848525136709213,
-0.03241181746125221,
0.06511537730693817,
-0.009332592599093914,
-0.004187661688774824,
0.008097211830317974,
-0.007796615362167358,
-0.06299378722906113,
0.010428371839225292,
0.019768519327044487,
-0.012701096944510937,
-0.027737151831388474,
0.046855006366968155,
-0.006204992067068815,
-0.013837210834026337,
0.056246012449264526,
-0.03725748136639595,
-0.035617366433143616,
-0.042524147778749466,
0.0528222881257534,
0.010016943328082561,
0.009711743332445621,
0.021954048424959183,
-0.025809455662965775,
-0.01206944603472948,
-0.019461065530776978,
-0.025668201968073845,
-0.03831048682332039,
0.029136916622519493,
0.0207366906106472,
0.06303711235523224,
0.016913635656237602,
-0.07132574170827866,
0.0080792848020792,
0.03626073896884918,
-0.03498920053243637,
0.04851699247956276,
0.028259217739105225,
0.12238140404224396,
-0.07824720442295074,
-0.06187222898006439,
0.01778104528784752,
0.01789085753262043,
-0.01978500746190548,
0.014480149373412132,
-0.0036498422268778086,
-0.03116615116596222,
-0.0028121869545429945,
0.007052604574710131,
0.06691119819879532,
-0.057266492396593094,
-0.005549158435314894,
0.06984546035528183,
-0.012648917734622955,
0.02600722946226597,
-0.05795133858919144,
-0.007117899600416422,
0.012074850499629974,
-0.02131975069642067,
-0.043302491307258606,
0.04492699354887009,
0.01162190642207861,
-0.014670071192085743,
-0.03278571367263794,
-0.03694619610905647,
0.0032103825360536575,
0.09195597469806671,
-0.01222445908933878,
-0.028216641396284103,
-0.013705608434975147,
0.026637541130185127,
0.05624924600124359,
0.042380787432193756,
-0.0362720750272274,
0.04493517056107521,
0.07221164554357529,
0.03843693435192108,
-0.021946923807263374,
0.02702382765710354,
0.009729543700814247,
-0.008299538865685463,
-0.0450381375849247,
0.02339644357562065,
-0.02282208576798439,
-0.05645895004272461,
0.037547387182712555,
-0.011630833148956299,
0.011828005313873291,
-0.05237981677055359,
-0.05875362455844879,
0.05331915616989136,
-0.013853870332241058,
-0.009527555666863918,
0.004494020249694586,
0.01016978733241558,
-0.036806557327508926,
0.0407676063477993,
-0.01451845746487379,
0.009473596699535847,
-0.023474683985114098,
-0.038983333855867386,
0.044046495109796524,
-0.02702506259083748,
0.03356276825070381,
0.048763956874608994,
-0.00934517476707697,
0.07875305414199829,
-0.038720209151506424,
0.0031351062934845686,
-0.05275687575340271,
-0.04104725271463394,
0.01766362413764,
0.05019383504986763,
0.04876624792814255,
0.06281717121601105,
-0.0013592529576271772,
-0.02938942052423954,
0.045385852456092834,
0.059926919639110565,
0.033965837210416794,
0.01045152172446251,
-0.016550472006201744,
-0.02194119431078434,
0.0227512177079916,
0.055688802152872086,
-0.06493908911943436,
-0.019298268482089043,
0.008519860915839672,
0.03537330776453018,
0.000732844287995249,
0.001051578437909484,
-0.014228030107915401,
0.031409334391355515,
-0.0515783429145813,
-0.05500254034996033,
0.04208194464445114,
0.021623609587550163,
-0.0029631773941218853,
0.005705697927623987,
0.006063707172870636,
-0.003286156104877591,
0.017994200810790062,
0.01926172897219658,
0.0037496734876185656,
-0.07038100808858871,
0.016421006992459297,
0.028453592211008072,
0.05432021617889404,
-0.058853309601545334,
0.03563496842980385,
-0.012629053555428982,
0.005267659667879343,
0.03524397686123848,
-0.03908611088991165,
0.04277578368782997,
0.05726995691657066,
0.03037984110414982,
-0.0125601040199399,
0.033811669796705246,
0.018956245854496956,
0.040740396827459335,
0.017290886491537094,
0.008982175961136818,
0.06782935559749603,
-0.003923520911484957,
0.04673221334815025,
0.08027913421392441,
0.014741706661880016,
0.022796450182795525,
0.0306998323649168,
0.07447702437639236,
0.031802721321582794,
-0.01435101218521595,
0.035175763070583344,
-0.0630602315068245,
0.022193187847733498,
-0.044428545981645584,
-0.003660158719867468,
-0.04587305337190628,
0.005184088833630085,
0.061310719698667526,
0.054078247398138046,
-0.019175471737980843,
-0.0016646833391860127,
0.029427213594317436,
0.004218933172523975,
0.028749855235219002,
-0.002897680038586259,
-0.004921078681945801,
-0.024484260007739067,
-0.01209612749516964,
-0.03310883790254593,
-0.06907074898481369,
-0.0515395812690258,
-0.011609031818807125,
-0.02322199009358883,
-0.015312323346734047,
-0.08898643404245377,
-0.0245605930685997,
-0.08853273838758469,
-0.034662142395973206,
0.037718065083026886,
0.012311955913901329,
0.0005011611501686275,
-0.03927760198712349,
-0.01868448033928871,
-0.050268325954675674,
-0.030257340520620346,
-0.046606358140707016,
-0.04399693012237549,
-0.06534568965435028,
-0.05585837736725807,
0.0348035991191864,
0.03137170895934105,
0.016201302409172058,
0.00018232081492897123,
0.014913997612893581,
-0.011999664828181267,
-0.015679828822612762,
0.052287615835666656,
0.052920497953891754,
-0.025117510929703712,
-0.037624210119247437,
0.03218914195895195,
-0.021624872460961342,
0.018447374925017357,
0.016320187598466873,
-0.04123680293560028,
0.09286372363567352,
0.0672840103507042,
0.03157656267285347,
0.005329962354153395,
0.0008612421806901693,
-0.058886900544166565,
-0.06881340593099594,
-0.021427229046821594,
-0.04195554181933403,
-0.004710542503744364,
-0.06015324220061302,
-0.042901940643787384,
-0.02146858349442482,
-0.035892341285943985,
0.0010528587736189365,
-0.007148139178752899,
0.006089376285672188,
0.008979701437056065,
0.03646908327937126,
0.023511767387390137,
0.03999462351202965,
-0.016461873427033424,
-0.026126554235816002,
0.04712134227156639,
0.027293341234326363,
-0.0010739191202446818,
-0.08754552900791168,
-0.018289340659976006,
0.03664446249604225,
0.0013488447293639183,
-0.019447078928351402,
-0.00886595994234085,
0.06861888617277145,
0.013544908724725246,
-0.0022721856366842985,
0.009703588671982288,
-0.040911152958869934,
0.015650680288672447,
0.000055305423302343115,
-0.006877885665744543,
-0.003675667801871896,
-0.02439369075000286,
-0.033982206135988235,
-0.004160918761044741,
0.0354657880961895,
-0.0818486362695694,
-0.05673055723309517,
-0.0006967706140130758,
0.0351828895509243,
0.050936467945575714,
0.010239954106509686,
-0.031086096540093422,
-0.005391975864768028,
-0.07165078073740005,
-0.0018063319148495793,
0.039584048092365265,
0.02419942431151867,
-0.0018848379841074347,
0.039753854274749756,
0.010351255536079407,
-0.020130228251218796,
0.03398199379444122,
0.033179108053445816,
0.0639570951461792,
0.017178403213620186,
-0.06365623325109482,
0.007497692946344614,
-0.02362673543393612,
0.02519233711063862,
-0.024588454514741898,
-0.021882032975554466,
-0.034923288971185684,
-0.08550236374139786,
-0.02125212550163269,
-0.007111535873264074,
0.007435901090502739,
-0.039197154343128204,
0.015747398138046265,
-0.008581027388572693,
-0.020231107249855995,
0.008551519364118576,
0.029509423300623894,
0.03464356064796448,
-0.016026875004172325,
0.08464733511209488,
-0.005626268219202757,
0.007544567342847586,
-0.06790592521429062,
0.00465530576184392,
-0.05985504761338234,
-0.0106276273727417,
0.017651796340942383,
0.042616166174411774,
-0.02037595957517624,
0.05743403732776642,
0.0538141131401062,
0.03745769336819649,
-0.0408073365688324,
0.05405133217573166,
0.06882438063621521,
-0.03765210136771202,
-0.048973262310028076,
-0.008229978382587433,
0.010639739222824574,
-0.024904634803533554,
0.004369985777884722,
-0.02898675948381424,
0.04368036985397339,
0.050171010196208954,
0.001400953158736229,
-0.00478107575327158,
-0.011636359617114067,
-0.008401126600801945,
-0.04203172028064728,
-0.07923240959644318,
-0.04310264810919762,
-0.015541663393378258,
-0.03371676802635193,
0.016891395673155785,
0.07030421495437622,
0.039759039878845215,
0.07264634221792221,
0.030519263818860054,
-0.020991377532482147,
-0.009865366853773594,
0.020298246294260025,
0.01635277085006237,
-0.019273702055215836,
-0.06744446605443954,
-0.056680962443351746,
0.025456439703702927,
0.047131869941949844,
0.0010192162590101361,
-0.06320255994796753,
0.005920366384088993,
0.0371682345867157,
-0.04056691378355026,
0.0566437765955925,
0.016286322847008705,
0.048175062984228134,
0.06555251032114029,
0.005756602622568607,
0.03768640011548996,
-0.04082733020186424,
0.0021284110844135284,
0.0072457678616046906,
0.03276862949132919,
-0.015074582770466805,
-0.038176029920578,
-0.03149205073714256,
0.029678156599402428,
0.053534187376499176,
0.03960198909044266,
0.029152024537324905,
-0.02262299321591854,
-0.046348124742507935,
0.000010171544090553652,
0.030809886753559113,
-0.03829828277230263,
-0.006351870950311422,
0.043201543390750885,
0.03636688366532326,
-0.06821379065513611,
-0.035401202738285065,
-0.02458348497748375,
-0.017418147996068,
0.018543168902397156,
0.016635047271847725,
-0.030681898817420006,
-0.06453046202659607,
0.035223692655563354,
0.0105767035856843,
-0.03230615332722664,
-0.08045441657304764,
0.04492676630616188,
-0.005606044549494982,
-0.023271501064300537,
0.04562797397375107,
0.02963133156299591,
0.03712955862283707,
0.06018638610839844,
0.02956264093518257,
0.010114526376128197,
-0.020266929641366005,
0.017142971977591515,
-0.03241416811943054,
-0.01971386931836605,
0.005090630613267422,
-0.06117168813943863,
-0.03857874870300293,
0.0012982147745788097,
-0.038297925144433975,
-0.04929186403751373,
-0.04438843950629234,
0.01799505390226841,
-0.007048266474157572,
-0.03987902030348778,
-0.006087205372750759,
0.03643789514899254,
-0.01357876043766737,
-0.0147077152505517,
-0.060727253556251526,
-0.02934602089226246,
-0.07002159208059311,
-0.060265105217695236,
-0.003122956259176135,
-0.003235059790313244,
0.03208130970597267,
0.007592171896249056,
0.014802892692387104,
0.016700711101293564,
0.015010486356914043,
-0.020390933379530907,
0.011805426329374313,
0.005216826219111681,
-0.036311373114585876,
-0.018687652423977852,
0.021742476150393486,
0.009540840052068233,
0.030328650027513504,
-0.015308494679629803,
0.025761958211660385,
-0.01546387281268835,
-0.004615541081875563,
-0.01478440873324871,
0.026886746287345886,
0.016069814562797546,
-0.05644218623638153,
-0.042853422462940216,
-0.014000925235450268,
-0.031153030693531036,
0.027210652828216553,
-0.03486057370901108,
-0.029030712321400642,
0.013287202455103397,
0.019642621278762817,
0.03624160587787628,
-0.017537014558911324,
-0.005469986703246832,
0.010486387647688389,
-0.021566316485404968,
0.036924172192811966,
-0.04241069406270981,
0.055126506835222244,
-0.04102485254406929,
0.017958151176571846,
-0.02419748157262802,
0.010634070262312889,
-0.03100053034722805,
0.04630843549966812,
-0.013297967612743378,
-0.017700275406241417,
-0.004242143128067255,
0.0509699247777462,
-0.034376297146081924,
0.02620624750852585,
-0.003074230859056115,
0.031597815454006195,
-0.029829533770680428,
0.05421324074268341,
-0.0644339844584465,
-0.00293156411498785,
-0.044865455478429794,
0.024438895285129547,
-0.022722043097019196,
-0.0008624170441180468,
-0.024195831269025803,
-0.026482954621315002,
0.025298507884144783,
0.037997838109731674,
0.025020098313689232,
0.03629418462514877,
0.002193642547354102,
0.001203307299874723,
0.011310476809740067,
-0.049895867705345154,
-0.021094655618071556,
-0.0026730233803391457,
-0.025040362030267715,
-0.003230811795219779,
0.05116798356175423,
0.013667216524481773,
-0.04466070234775543,
-0.08177598565816879,
0.06954475492238998,
0.02940949983894825,
0.014599829912185669,
-0.0009558564051985741,
0.057946182787418365,
0.021294571459293365,
0.027419541031122208,
-0.029485462233424187,
-0.004747958853840828,
-0.0022341604344546795,
-0.03906640782952309,
0.01867876574397087,
0.0010041986824944615,
0.03745725005865097,
0.0014714400749653578,
-0.04251418635249138,
-0.009413959458470345,
0.06131204590201378,
0.02810179442167282,
0.020848620682954788,
-0.000923129846341908,
-0.04968566447496414,
0.024123109877109528,
0.018338555470108986,
-0.04097851738333702,
0.0028573304880410433,
0.024418730288743973,
-0.03141976520419121,
0.04617892578244209,
0.0006429387140087783,
0.001913023996166885,
0.06051166355609894,
0.02328057400882244,
-0.004307575523853302,
0.038736309856176376,
-0.046988267451524734,
0.021114272996783257,
0.028121404349803925,
-0.07775531709194183,
-0.01877998746931553,
-0.04927096143364906,
0.058600395917892456,
-0.06391382962465286,
0.04287263751029968,
0.04490257427096367,
0.0036481337156146765,
0.017604732885956764,
-0.04418046772480011,
-0.05226178467273712,
0.021672401577234268,
-0.050174567848443985,
0.05887940898537636,
-0.0020739533938467503,
-0.0531751923263073,
0.06430281698703766,
0.006680930964648724,
-0.05937161296606064,
0.03762981668114662,
0.02214394137263298,
0.0693095475435257,
0.01966928131878376,
0.03959881514310837,
-0.040820639580488205,
0.008326711133122444,
-0.03730425611138344,
0.025693006813526154,
-0.04915296658873558,
-0.0241343192756176,
0.0165934506803751,
-0.031502872705459595,
-0.026693634688854218,
0.0419015996158123,
-0.023397838696837425,
0.00516632292419672,
0.040833938866853714,
-0.04238945245742798,
-0.06301339715719223,
0.021353306248784065,
0.013841447420418262,
-0.02025633677840233,
-0.024355802685022354,
-0.02987424097955227,
0.0221340861171484,
0.018701821565628052,
-0.01034963596612215,
-0.02593589574098587,
-0.04040459543466568,
0.043355122208595276,
-0.040230389684438705,
-0.02423350140452385,
0.04312602058053017,
-0.005362052470445633,
-0.03613988310098648,
0.029039299115538597,
0.031644001603126526,
0.009107288904488087,
0.013850531540811062,
-0.03549301624298096,
0.029009416699409485,
-0.038945313543081284,
-0.02135412208735943,
0.018881652504205704,
-0.009432055987417698,
0.03244534879922867,
0.008957034908235073,
0.03990519046783447,
0.03947540000081062,
0.02009284868836403,
0.005776587873697281,
-0.027394138276576996,
-0.02658793330192566,
0.005000212695449591,
-0.04009361192584038,
0.013697796501219273,
0.00580610241740942,
-0.03986009210348129,
-0.02705191634595394,
0.005164883565157652,
-0.03418248891830444,
0.02489081397652626,
-0.06945688277482986,
0.018902771174907684,
0.03421769663691521,
-0.028721896931529045,
-0.0288572795689106,
-0.09187834709882736,
-0.029193701222538948,
-0.040436387062072754,
-0.020164325833320618,
0.03551387041807175,
-0.031243789941072464,
0.02288314513862133,
-0.020860787481069565,
-0.023948082700371742,
0.042147744446992874,
0.044179994612932205,
-0.05224087834358215,
0.06734611839056015,
0.030031796544790268,
-0.04665469750761986,
0.023124782368540764,
0.028733069077134132,
-0.04224059730768204,
-0.001644608797505498,
0.007792345248162746,
0.02541324496269226,
0.0271513219922781,
0.01480900775641203,
-0.06333481520414352,
-0.025618087500333786,
-0.07619434595108032,
-0.04285646602511406,
-0.06177040934562683,
-0.006794043350964785,
0.04032314941287041
] |
Bee-Garbs/DialoGPT-real-cartman-small | [
"pytorch",
"gpt2",
"text-generation",
"transformers",
"conversational"
] | conversational | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 10 | null | ---
tags:
- conversational
---
# Cartman Southpark DialoGPT2 small 18 epochs | [
-0.025591084733605385,
0.0100005604326725,
-0.015600182116031647,
0.0002896491205319762,
0.02751355990767479,
0.0014230277156457305,
0.011797082610428333,
0.029994580894708633,
-0.024498077109456062,
0.04542490094900131,
0.04041219502687454,
-0.01957462541759014,
0.022896887734532356,
0.032381571829319,
-0.05876212194561958,
-0.012282165698707104,
-0.026960337534546852,
-0.002877788618206978,
-0.025056645274162292,
-0.016341492533683777,
0.023129545152187347,
0.00679352693259716,
-0.025677312165498734,
0.040786948055028915,
0.011098137125372887,
0.02450587972998619,
-0.009574501775205135,
0.0211853738874197,
0.03856336697936058,
-0.051133036613464355,
-0.0029184194281697273,
-0.0424027219414711,
-0.030632024630904198,
-0.01800426095724106,
-0.029958875849843025,
-0.03200935199856758,
-0.004218163900077343,
-0.011641092598438263,
-0.0012982530752196908,
0.017886804416775703,
-0.016139114275574684,
-0.017368022352457047,
0.00204986659809947,
-0.03732031583786011,
0.0565151683986187,
-0.0002464723074808717,
-0.05733815208077431,
-0.018646687269210815,
0.019591493532061577,
-0.03914785012602806,
-0.048640865832567215,
-0.05331725999712944,
-0.036216896027326584,
0.022153401747345924,
0.021211324259638786,
-0.03450547531247139,
-0.07017537206411362,
0.005370620172470808,
0.10218428820371628,
-0.004330419935286045,
-0.008744442835450172,
-0.0027861464768648148,
-0.0782138854265213,
0.01975172758102417,
0.024195117875933647,
-0.0820731446146965,
0.021812710911035538,
-0.048174019902944565,
0.002175159752368927,
-0.018536236137151718,
0.06087116152048111,
-0.02777772769331932,
0.00680930819362402,
-0.08837046474218369,
-0.00972764752805233,
-0.00773765379562974,
0.06013983488082886,
0.0420273058116436,
-0.03566713631153107,
0.038691408932209015,
0.045737799257040024,
0.02050274796783924,
0.058880291879177094,
-0.021661778911948204,
-0.02765156514942646,
0.032538603991270065,
-0.03536030277609825,
0.0178654957562685,
-0.023308664560317993,
0.01604348234832287,
-0.026455480605363846,
-0.04220335930585861,
-0.038792986422777176,
-0.012345049530267715,
0.0037801950238645077,
0.05770198255777359,
0.025378549471497536,
-0.011902856640517712,
0.03588185831904411,
0.04289577901363373,
0.02461938187479973,
0.06152218580245972,
-0.024678952991962433,
0.04404750466346741,
-0.0020377601031214,
0.01122770644724369,
0.02386656031012535,
-0.022565238177776337,
-0.04458415135741234,
0.043136440217494965,
0.016566643491387367,
-0.02652719058096409,
-0.028130004182457924,
0.028885368257761,
0.03274695947766304,
0.013677703216671944,
0.057861123234033585,
-0.008807488717138767,
-0.03654966503381729,
-0.025726132094860077,
0.050594959408044815,
-0.012124501168727875,
-0.027160895988345146,
-0.02111678570508957,
-0.05162161961197853,
-0.0027220784686505795,
-0.024773046374320984,
-0.02549031935632229,
-0.008105115033686161,
0.007776767481118441,
0.03842536732554436,
0.03908748924732208,
-0.024867886677384377,
-0.04621003940701485,
0.0026047953870147467,
0.058414459228515625,
-0.06343875825405121,
0.002487124875187874,
0.05032731592655182,
0.08679745346307755,
-0.0746714174747467,
-0.041774846613407135,
-0.01625233143568039,
0.009015742689371109,
-0.05570152401924133,
-0.01437674555927515,
-0.00011627685307757929,
-0.011927183717489243,
-0.03431226685643196,
0.003977938089519739,
0.013765144161880016,
-0.06664395332336426,
0.0018713761819526553,
0.02487875334918499,
0.010264734737575054,
0.02359035797417164,
-0.03809015825390816,
0.004744393285363913,
-0.0032537435181438923,
-0.01426979061216116,
-0.061851486563682556,
0.030446814373135567,
-0.011951547116041183,
-0.009230392053723335,
-0.050869375467300415,
-0.03282139077782631,
-0.005445337388664484,
0.06059378758072853,
0.008532446809113026,
-0.027772825211286545,
-0.03598196431994438,
0.05346377566456795,
0.06118975207209587,
0.048385631293058395,
-0.02197103388607502,
0.03141787648200989,
0.044959090650081635,
0.02617150917649269,
-0.031459443271160126,
0.062239546328783035,
0.005712834186851978,
-0.027660483494400978,
-0.04079212620854378,
-0.0068158116191625595,
0.04303012788295746,
-0.0185988936573267,
0.016429478302598,
0.030060091987252235,
-0.009829873219132423,
-0.008705753833055496,
-0.0005192066309973598,
0.03085215762257576,
-0.01753920502960682,
-0.0047144703567028046,
-0.007643074728548527,
-0.02232229709625244,
-0.022517923265695572,
0.007262071594595909,
-0.04358188807964325,
-0.025590723380446434,
-0.033326033502817154,
-0.003223184496164322,
0.02198163978755474,
-0.0006194360321387649,
-0.005625439342111349,
0.058618418872356415,
-0.019457479938864708,
0.04477262869477272,
-0.032359201461076736,
0.020490439608693123,
-0.023959359154105186,
-0.019012056291103363,
-0.042565975338220596,
0.04033375531435013,
0.040170229971408844,
0.024423185735940933,
-0.025769053027033806,
-0.04628324881196022,
0.01982986181974411,
0.06669490039348602,
0.03248697891831398,
0.0096199382096529,
-0.010525088757276535,
-0.0058406926691532135,
0.049008965492248535,
0.036133866757154465,
-0.03520664572715759,
0.00845307856798172,
0.0194462351500988,
0.03783046826720238,
-0.0020080904942005873,
-0.020161189138889313,
-0.0383390374481678,
-0.005189598072320223,
-0.045611366629600525,
-0.05482814833521843,
0.03712811693549156,
0.014020726084709167,
-0.019548509269952774,
0.03713829442858696,
-0.01752314902842045,
0.004901331849396229,
0.05539383366703987,
0.014299132861196995,
0.02712673880159855,
-0.09440925717353821,
0.005349647253751755,
-0.0056740520521998405,
0.07204089313745499,
-0.034406647086143494,
0.027376584708690643,
0.015557299368083477,
-0.006269891746342182,
0.04278964176774025,
-0.019003892317414284,
0.0446007065474987,
0.03030455857515335,
0.06916721910238266,
-0.02344786375761032,
0.04483388364315033,
0.0076619843021035194,
0.01658434048295021,
0.06597652286291122,
-0.004186177626252174,
0.06160309538245201,
-0.003913360182195902,
0.044012248516082764,
0.0724802166223526,
0.022742632776498795,
-0.0029236043337732553,
0.03092561475932598,
0.0553462877869606,
0.003191840136423707,
0.002191056963056326,
0.05802278220653534,
-0.036294978111982346,
0.014090157113969326,
-0.04216723144054413,
-0.020653914660215378,
-0.00892883725464344,
-0.029906008392572403,
0.04556761309504509,
-0.0016151517629623413,
-0.005136932246387005,
0.002785000018775463,
-0.008306028321385384,
-0.0127213504165411,
0.047628581523895264,
0.002676315838471055,
-0.027450889348983765,
0.008551064878702164,
-0.042246244847774506,
0.05281134694814682,
-0.042140476405620575,
-0.03229433670639992,
-0.031992875039577484,
-0.0378311350941658,
0.010291704908013344,
-0.1076476126909256,
-0.027781257405877113,
-0.10489082336425781,
-0.016656935214996338,
0.04503507539629936,
0.013454331085085869,
0.010172427631914616,
0.0002433272748021409,
0.04091119393706322,
-0.03561587259173393,
-0.07138178497552872,
-0.04403945058584213,
-0.03112505003809929,
0.005747311282902956,
-0.052198994904756546,
0.02338099665939808,
0.05161845311522484,
0.032973870635032654,
0.018221458420157433,
-0.016225650906562805,
-0.059029556810855865,
-0.009687571786344051,
0.024971624836325645,
0.016148779541254044,
-0.04121743142604828,
-0.04873909056186676,
0.014446851797401905,
0.005941669922322035,
0.010815844871103764,
-0.01688401773571968,
-0.061704933643341064,
0.051213353872299194,
0.04334251582622528,
-0.00308888778090477,
0.02190478891134262,
0.011624380014836788,
-0.04425588995218277,
-0.027025379240512848,
-0.05619463324546814,
-0.020017869770526886,
-0.0017890867311507463,
-0.03216521814465523,
-0.0501539520919323,
-0.024524303153157234,
-0.05141096189618111,
-0.02322017028927803,
0.015531769953668118,
0.00021543834009207785,
0.029181217774748802,
0.011514565907418728,
0.03481321409344673,
0.0062975408509373665,
-0.029506327584385872,
-0.001364060677587986,
0.06478207558393478,
-0.03603745251893997,
-0.02512195147573948,
-0.07732627540826797,
-0.018146073445677757,
0.0393533930182457,
0.0073932078666985035,
0.01383872888982296,
-0.0019759121350944042,
0.029404031112790108,
0.02885153703391552,
0.0026995728258043528,
0.03991730883717537,
-0.04525294527411461,
0.00023393818992190063,
-0.03302115201950073,
-0.020416295155882835,
-0.04492473229765892,
-0.029423974454402924,
0.007151065859943628,
-0.021714692935347557,
0.05220573768019676,
-0.07958975434303284,
-0.0009457117412239313,
-0.040371425449848175,
0.0056101116351783276,
0.03105122409760952,
0.003053647233173251,
-0.08323361724615097,
-0.03272514417767525,
-0.03755010664463043,
-0.013096258044242859,
-0.0029666542541235685,
-0.025077225640416145,
0.0032240154687315226,
0.043203722685575485,
0.009606916457414627,
-0.025906534865498543,
0.06947211176156998,
0.023227721452713013,
0.05267331749200821,
0.036268699914216995,
-0.037217408418655396,
0.020984433591365814,
-0.02711912803351879,
0.025746898725628853,
-0.008868387900292873,
-0.033592645078897476,
-0.050202175974845886,
-0.09459086507558823,
-0.046507012099027634,
0.02256682887673378,
-0.016276078298687935,
0.005680534988641739,
0.06040911003947258,
-0.02556358464062214,
-0.004953179508447647,
-0.001220849109813571,
0.03279150649905205,
0.058539535850286484,
-0.027163537219166756,
0.05166197195649147,
-0.0315810851752758,
0.016115916892886162,
-0.03679482638835907,
-0.017116636037826538,
-0.04404575377702713,
-0.02158910594880581,
0.0005390406004153192,
0.059237658977508545,
-0.004087080713361502,
0.05833347886800766,
0.05809357762336731,
0.05033114179968834,
-0.04689105600118637,
0.03424106165766716,
0.05348208546638489,
-0.029983384534716606,
-0.053102388978004456,
0.005875574424862862,
-0.0013926755636930466,
-0.0343041755259037,
-0.005842875689268112,
-0.035583220422267914,
0.035389505326747894,
0.046106282621622086,
0.0008166160550899804,
0.006050391122698784,
0.015179700218141079,
-0.030460603535175323,
-0.04115679860115051,
-0.067916639149189,
-0.01611286774277687,
-0.006155239883810282,
-0.05502887815237045,
0.037605784833431244,
0.03533300384879112,
0.005915213841944933,
0.07860632240772247,
0.006612433586269617,
-0.03617176413536072,
-0.036428067833185196,
0.046235181391239166,
0.03015156090259552,
-0.0408768393099308,
-0.05442335084080696,
-0.04000340774655342,
0.013405797071754932,
0.032923754304647446,
-0.01156339980661869,
-0.07073420286178589,
0.02552320621907711,
0.045768335461616516,
-0.04066549614071846,
0.07292795181274414,
0.0017203824827447534,
0.04639177769422531,
0.0303772184997797,
-0.0008538624388165772,
0.04798394814133644,
-0.060565605759620667,
0.009000739082694054,
-0.019776226952672005,
0.0213943962007761,
-0.04918774962425232,
-0.04323188215494156,
-0.03370806574821472,
0.016122035682201385,
0.021525509655475616,
0.029329558834433556,
-0.009420475922524929,
-0.030765587463974953,
-0.03252486139535904,
0.001421277062036097,
0.048591647297143936,
-0.02665015310049057,
-0.012229393236339092,
0.0248421523720026,
0.0705048069357872,
-0.05533512309193611,
-0.011191252619028091,
-0.012604416348040104,
0.03426113724708557,
0.03175495192408562,
-0.010195998474955559,
-0.03933663293719292,
-0.038705237209796906,
0.009614089503884315,
-0.0047974176704883575,
-0.03048848547041416,
-0.08387361466884613,
0.03781679645180702,
-0.028841489925980568,
-0.025903616100549698,
0.0637911707162857,
0.04796299710869789,
0.03542879596352577,
0.05395780876278877,
-0.004511154256761074,
0.030903004109859467,
-0.032060980796813965,
0.041128892451524734,
-0.030217377468943596,
-0.036917585879564285,
0.01728925295174122,
-0.07926751673221588,
-0.03404805436730385,
-0.047020137310028076,
-0.049136340618133545,
-0.0284989383071661,
-0.027771206572651863,
0.018429050222039223,
0.0006342888227663934,
-0.012312410399317741,
0.02026023156940937,
0.011795846745371819,
-0.007289301138371229,
-0.01695748046040535,
0.009202152490615845,
-0.03209294006228447,
-0.07368665933609009,
-0.04895365610718727,
-0.001399677712470293,
-0.030977992340922356,
0.0023698776494711637,
-0.010185441933572292,
0.034510720521211624,
0.03052130527794361,
0.010964561253786087,
-0.03787089139223099,
0.035783551633358,
0.036382563412189484,
-0.04724619537591934,
-0.013188754208385944,
0.0230527613312006,
0.01815778762102127,
0.04355783388018608,
-0.0425051786005497,
0.04364991560578346,
0.004515042062848806,
-0.050270888954401016,
-0.04186975955963135,
0.014102169312536716,
0.03238195180892944,
-0.08079127222299576,
0.01194618921726942,
-0.039340391755104065,
-0.02014741487801075,
0.006572606507688761,
-0.05630984157323837,
-0.024124329909682274,
-0.005514283198863268,
0.043249957263469696,
0.04089776799082756,
-0.008454707451164722,
-0.024122294038534164,
0.014261814765632153,
-0.001905095879919827,
0.03137081861495972,
-0.07700864970684052,
0.030916687101125717,
-0.03501878306269646,
0.021849611774086952,
-0.026352860033512115,
0.01938413269817829,
-0.04644408077001572,
0.02978033386170864,
-0.0188372191041708,
-0.011811792850494385,
0.0004730748769361526,
0.004088208544999361,
-0.010655480436980724,
0.01248882431536913,
0.012152132578194141,
0.02593531832098961,
-0.037497662007808685,
0.04860535264015198,
-0.04498693346977234,
0.01659088023006916,
-0.023897141218185425,
-0.01992233283817768,
-0.019396724179387093,
-0.013622530736029148,
-0.004919982515275478,
-0.06673508882522583,
0.03932128846645355,
0.04085725173354149,
0.033836524933576584,
0.03199947252869606,
-0.018705882132053375,
0.006646160967648029,
0.04456332325935364,
-0.05168532580137253,
-0.0364660806953907,
-0.006552108097821474,
0.013385714031755924,
0.023859655484557152,
0.06609875708818436,
0.056231316179037094,
-0.047756414860486984,
-0.039999235421419144,
0.02679615654051304,
0.03269645571708679,
0.014162124134600163,
-0.004010943230241537,
0.034353505820035934,
0.0584682859480381,
0.0620153434574604,
0.012262123636901379,
0.010016164742410183,
0.012057696469128132,
-0.0157452505081892,
-0.025777168571949005,
-0.013005324639379978,
-0.0034932177513837814,
-0.009319588541984558,
-0.025924423709511757,
-0.04109403118491173,
0.07345090806484222,
-0.0019007184309884906,
0.010321223177015781,
-0.014148774556815624,
-0.055654127150774,
0.05174434557557106,
-0.006851918995380402,
-0.02332349680364132,
0.01658760942518711,
0.04811086878180504,
-0.01629824936389923,
0.02872546948492527,
-0.02638225443661213,
0.013305754400789738,
0.04364722594618797,
0.04452570527791977,
-0.0001403254718752578,
0.007278213743120432,
-0.0358562208712101,
-0.009452098980545998,
0.01618490181863308,
-0.05127743259072304,
0.005803372710943222,
-0.03650541231036186,
0.05759824067354202,
-0.05462351068854332,
0.06754521280527115,
0.035545796155929565,
0.02624163217842579,
0.017559949308633804,
-0.04990914463996887,
-0.04905834421515465,
-0.024027561768889427,
-0.0430135540664196,
0.06754712760448456,
-0.017465639859437943,
-0.05487211048603058,
0.05905698984861374,
0.01366433221846819,
-0.09598227590322495,
0.019417909905314445,
0.024785960093140602,
0.029120273888111115,
0.020169712603092194,
0.04636650159955025,
-0.03774360194802284,
0.0056353178806602955,
-0.0446934849023819,
0.0037233128678053617,
-0.015829328447580338,
-0.02478167973458767,
-0.029009485617280006,
-0.04742740839719772,
0.012259285897016525,
0.042868468910455704,
-0.027910539880394936,
0.011249914765357971,
0.02126394957304001,
-0.03945647180080414,
-0.06238560006022453,
0.011816287413239479,
0.013525052927434444,
-0.0071598244830966,
-0.008782009594142437,
-0.030770234763622284,
0.012299682013690472,
0.036975257098674774,
0.0013556014746427536,
-0.042795851826667786,
0.016886694356799126,
-0.010834337212145329,
-0.07725705206394196,
-0.04524742811918259,
0.08349136263132095,
0.01852389983832836,
-0.022616971284151077,
-0.015520399436354637,
0.007777336519211531,
0.01927700638771057,
0.012103678658604622,
-0.021933116018772125,
0.004086867440491915,
-0.06133512780070305,
-0.027299225330352783,
0.059069495648145676,
0.02350509539246559,
0.022601023316383362,
0.0007090077269822359,
0.021766608580946922,
0.07481680810451508,
0.04616735130548477,
-0.0145548852160573,
-0.052455805242061615,
-0.02820640057325363,
0.0052096345461905,
-0.04240117594599724,
0.03437361121177673,
-0.005134218372404575,
-0.06998991966247559,
-0.03543079271912575,
0.001993345096707344,
-0.012834577821195126,
0.0374145433306694,
-0.042571086436510086,
0.01813514530658722,
0.022850198671221733,
0.00525998417288065,
-0.04880375787615776,
-0.11154989898204803,
-0.05741133168339729,
-0.01841035857796669,
0.015215556137263775,
0.058072593063116074,
-0.03601668402552605,
0.0057419887743890285,
-0.033689502626657486,
-0.012345284223556519,
0.0659715011715889,
-0.006602773908525705,
-0.022442404180765152,
0.04833836480975151,
0.08425328135490417,
-0.03621470183134079,
0.03276107832789421,
0.013725732453167439,
-0.0495370477437973,
0.046593327075242996,
0.009140233509242535,
0.023788778111338615,
0.003192606382071972,
0.04287710413336754,
-0.023251445963978767,
0.013815308921039104,
-0.012362146750092506,
-0.053641095757484436,
-0.012412731535732746,
0.010562006384134293,
0.042976014316082
] |
Begimay/Task | [] | null | {
"architectures": null,
"model_type": null,
"task_specific_params": {
"conversational": {
"max_length": null
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 0 | 2021-06-26T12:49:19Z | from transformers import GPTNeoForCausalLM, GPT2Tokenizer
model = GPTNeoForCausalLM.from_pretrained("EleutherAI/gpt-neo-1.3B")
tokenizer = GPT2Tokenizer.from_pretrained("EleutherAI/gpt-neo-1.3B")
prompt = "In a shocking finding, scientists discovered a herd of unicorns living in a remote, " \
... "previously unexplored valley, in the Andes Mountains. Even more surprising to the " \
... "researchers was the fact that the unicorns spoke perfect English."
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
gen_tokens = model.generate(input_ids, do_sample=True, temperature=0.9, max_length=100,)
gen_text = tokenizer.batch_decode(gen_tokens)[0] | [
-0.03709251061081886,
-0.029051978141069412,
0.0015572370029985905,
0.06345819681882858,
0.06844431161880493,
0.038142427802085876,
-0.012345516122877598,
-0.026248177513480186,
-0.033635661005973816,
0.04302563890814781,
0.00004153319605393335,
-0.002072308212518692,
0.012227887287735939,
0.049777355045080185,
-0.03383463993668556,
-0.03498314693570137,
-0.04970146343111992,
0.02053031325340271,
-0.0568578876554966,
-0.016161054372787476,
0.003962970804423094,
0.02329787239432335,
0.023074980825185776,
0.003343291813507676,
-0.012557579204440117,
0.03134237602353096,
-0.01134764589369297,
-0.007259982172399759,
0.02006501704454422,
-0.07353518158197403,
-0.0011462167603895068,
-0.01924481987953186,
-0.03221913427114487,
-0.009599998593330383,
-0.04722902923822403,
0.013262941502034664,
-0.01754363253712654,
-0.01371016912162304,
0.013513856567442417,
0.058689240366220474,
-0.0018835552036762238,
-0.0022372195962816477,
0.030257228761911392,
-0.027850713580846786,
0.03174793720245361,
0.02385849319398403,
-0.02512768656015396,
-0.014398133382201195,
0.027171434834599495,
0.025996781885623932,
-0.04788139462471008,
-0.06968855112791061,
0.00621446780860424,
0.020658211782574654,
-0.013576752506196499,
-0.013170630671083927,
-0.06362462043762207,
-0.014075741171836853,
0.057609785348176956,
-0.04521648585796356,
-0.022569559514522552,
0.050077877938747406,
-0.06691578775644302,
0.022652359679341316,
0.022050371393561363,
-0.03151552751660347,
0.004150778520852327,
-0.02504674158990383,
-0.0017775038722902536,
-0.035943444818258286,
0.06462680548429489,
-0.05276871845126152,
0.03262270987033844,
-0.09075628966093063,
-0.006978421472012997,
-0.018280062824487686,
0.04787577688694,
0.02587089128792286,
-0.04505380988121033,
0.05578315258026123,
0.02700115367770195,
0.025799326598644257,
0.014666003175079823,
-0.01595131866633892,
-0.0073549491353333,
0.019091295078396797,
-0.034550990909338,
-0.023719066753983498,
0.013382555916905403,
0.05733480304479599,
-0.06076033413410187,
-0.05420185998082161,
-0.013898567296564579,
-0.04075709730386734,
0.008205471560359001,
0.0330386757850647,
0.056121423840522766,
0.007203317247331142,
0.036670077592134476,
0.02425750531256199,
0.03797520324587822,
0.047594599425792694,
0.014426021836698055,
0.049652885645627975,
0.009343406185507774,
0.01789129711687565,
-0.00736607238650322,
-0.05895664542913437,
-0.04430442675948143,
0.03860151767730713,
0.04022897779941559,
-0.014525873586535454,
-0.04123888164758682,
0.02385220117866993,
0.04279416799545288,
-0.024663617834448814,
0.025946376845240593,
-0.02603904716670513,
-0.07429538667201996,
-0.02813982404768467,
0.018411459401249886,
0.01639295555651188,
0.0038732592947781086,
0.004116458352655172,
-0.025243256241083145,
0.050147928297519684,
-0.08293738961219788,
-0.04359700530767441,
-0.027273768559098244,
0.03676815330982208,
-0.011355581693351269,
0.0180873554199934,
0.01886935904622078,
-0.034085486084222794,
0.01730070449411869,
0.037555526942014694,
-0.07797559350728989,
0.03830184414982796,
0.021435867995023727,
0.10143505781888962,
-0.08931755274534225,
-0.038749948143959045,
0.03732112795114517,
0.03635856881737709,
-0.0048973276279866695,
-0.001751638948917389,
0.007555627264082432,
-0.04066603258252144,
-0.03123331256210804,
-0.006098066456615925,
0.05716610699892044,
-0.04694768413901329,
-0.016924677416682243,
0.014829497784376144,
0.035495370626449585,
0.05379039794206619,
-0.013619559817016125,
-0.019110195338726044,
-0.011814826168119907,
0.0008463938720524311,
-0.03248172253370285,
0.037954092025756836,
-0.026500748470425606,
0.023157646879553795,
-0.059879008680582047,
-0.013856087811291218,
0.007841252721846104,
0.0632096529006958,
0.0034982552751898766,
-0.007646862417459488,
0.0008320827619172633,
0.017139721661806107,
0.04710216820240021,
0.01901278831064701,
-0.027948440983891487,
0.043886344879865646,
0.040819257497787476,
0.024524325504899025,
-0.018285153433680534,
0.051529694348573685,
0.014638434164226055,
-0.02574833855032921,
-0.011202570050954819,
0.01662297733128071,
-0.0029232618398964405,
-0.022622834891080856,
0.002962481928989291,
0.02644294686615467,
-0.016485588625073433,
-0.011009342968463898,
0.004197495523840189,
0.06785476207733154,
0.01980474963784218,
-0.011524355970323086,
0.0021120919845998287,
-0.026771502569317818,
0.012416851706802845,
0.04814919829368591,
-0.03393164277076721,
0.030628042295575142,
-0.011871064081788063,
-0.028467094525694847,
-0.004345426335930824,
0.01723490282893181,
0.044081587344408035,
0.04929681867361069,
-0.011999038979411125,
0.12135691195726395,
-0.02514478750526905,
0.02617511712014675,
-0.04993331804871559,
-0.04586763307452202,
-0.002272592158988118,
0.020676782354712486,
0.010754805989563465,
0.035839758813381195,
-0.0011701056500896811,
-0.04730389639735222,
0.02236664481461048,
0.06134442239999771,
0.03763927146792412,
0.015948893502354622,
-0.018234528601169586,
0.015879275277256966,
0.027738679200410843,
0.0887647196650505,
-0.02661864459514618,
-0.03172723203897476,
0.021430401131510735,
0.045085031539201736,
-0.019029077142477036,
0.03440011665225029,
-0.013395932503044605,
0.02306104451417923,
-0.054659660905599594,
-0.053183361887931824,
0.03802243992686272,
0.029235422611236572,
-0.000590373354498297,
0.05611109361052513,
0.01933380588889122,
0.021179448813199997,
0.01872740313410759,
0.027966013178229332,
0.0030476090032607317,
-0.05182400345802307,
-0.020026741549372673,
0.006899637635797262,
0.03900602087378502,
-0.05305922403931618,
0.03623167425394058,
0.014576787129044533,
-0.008774983696639538,
0.07458736002445221,
-0.02818951942026615,
0.022256094962358475,
0.0316983200609684,
0.0034041216131299734,
-0.038289040327072144,
0.024302732199430466,
-0.0006153222639113665,
0.06688482314348221,
0.07612217962741852,
0.026338808238506317,
0.034386321902275085,
-0.012128332629799843,
0.048160504549741745,
0.08476865291595459,
0.02202429436147213,
-0.0039932867512106895,
0.04870171472430229,
0.0670369565486908,
0.011414002627134323,
-0.00916258618235588,
0.029567712917923927,
-0.05937653407454491,
0.027443593367934227,
-0.027260376140475273,
0.015743033960461617,
0.002537815598770976,
-0.019440550357103348,
0.07454913854598999,
0.02778707817196846,
-0.03157256171107292,
0.01746823452413082,
-0.0042701829224824905,
-0.02041682042181492,
0.03236054629087448,
0.005806374363601208,
-0.016823062673211098,
0.0023278766311705112,
-0.013478880748152733,
0.0034430325031280518,
-0.07175780832767487,
-0.014704982750117779,
-0.0015973831759765744,
-0.028861889615654945,
0.005758335348218679,
-0.07822256535291672,
-0.04776272922754288,
-0.055320899933576584,
-0.014897529035806656,
0.03582703694701195,
0.008656094782054424,
0.026035301387310028,
-0.022613858804106712,
0.034497737884521484,
-0.0843498483300209,
-0.02580810897052288,
-0.07720489799976349,
-0.019916869699954987,
-0.02545803412795067,
-0.03702792525291443,
0.04171581193804741,
0.010908865369856358,
0.01713688299059868,
-0.0006339017418213189,
-0.0134647311642766,
-0.04534110799431801,
-0.003626297926530242,
0.02794572152197361,
0.0421956330537796,
-0.020403370261192322,
-0.04041218385100365,
0.03547724708914757,
-0.023588716983795166,
0.04142385721206665,
-0.012977246195077896,
-0.0443144217133522,
0.08599366992712021,
0.10375602543354034,
0.012942587956786156,
-0.0030858987011015415,
-0.047905683517456055,
-0.04237564653158188,
-0.0603097528219223,
-0.00449456088244915,
-0.0529157929122448,
0.00044784348574467003,
-0.014270933344960213,
-0.03922533243894577,
-0.008404784835875034,
-0.04931136593222618,
-0.005924016237258911,
0.007526046596467495,
0.047293905168771744,
0.037647344172000885,
0.042282745242118835,
0.028958363458514214,
0.04560531675815582,
-0.06515968590974808,
-0.006984165869653225,
0.07074965536594391,
0.012766366824507713,
0.010559911839663982,
-0.09232466667890549,
-0.01410174835473299,
0.05205276608467102,
0.025241611525416374,
0.008222777396440506,
-0.004022309556603432,
0.07156867533922195,
0.018304776400327682,
-0.005474552046507597,
0.02047281712293625,
-0.024421382695436478,
-0.023909419775009155,
-0.005572109017521143,
-0.01936778984963894,
-0.027688823640346527,
-0.04641130939126015,
-0.030986415222287178,
-0.024209192022681236,
0.04798951372504234,
-0.0619119256734848,
-0.054807670414447784,
-0.030935421586036682,
0.019729888066649437,
0.02440778911113739,
0.024102548137307167,
-0.024320747703313828,
0.007827534340322018,
-0.040585797280073166,
-0.007262733764946461,
0.0028063456993550062,
0.002231445861980319,
0.019759107381105423,
0.03290281817317009,
0.04129853844642639,
-0.013577643781900406,
0.03205208480358124,
0.025286104530096054,
0.044127997010946274,
-0.00684020621702075,
-0.04057428240776062,
0.004838942550122738,
0.004032652825117111,
0.02820379100739956,
0.0038252505473792553,
-0.017514215782284737,
-0.04690050706267357,
-0.07530277222394943,
-0.015375957824289799,
0.026862936094403267,
-0.03676673769950867,
0.008436180651187897,
0.01653151586651802,
0.006394929718226194,
-0.011355838738381863,
0.007527451030910015,
0.009476862847805023,
0.052091553807258606,
-0.061203282326459885,
0.03979260101914406,
-0.008466044440865517,
0.040264248847961426,
-0.06109240651130676,
0.010605334304273129,
-0.020931215956807137,
-0.035707589238882065,
-0.0013294834643602371,
0.06726062297821045,
0.007531867828220129,
0.08489438891410828,
0.04416705295443535,
0.019446581602096558,
-0.039096932858228683,
0.0384606271982193,
0.039026904851198196,
-0.005514596588909626,
-0.03957188129425049,
-0.0019126537954434752,
-0.02820562943816185,
-0.033397041261196136,
0.008870634250342846,
-0.025095080956816673,
0.006076643709093332,
0.0419037900865078,
0.004471289925277233,
0.014032372273504734,
-0.005501569714397192,
-0.032914549112319946,
-0.04254709929227829,
-0.042961351573467255,
-0.01389798242598772,
0.019827941432595253,
-0.0490604043006897,
0.023648526519536972,
0.02228493243455887,
0.011264505796134472,
0.05093736574053764,
0.07163321226835251,
-0.016250673681497574,
-0.040711548179388046,
0.014848032034933567,
0.03104729764163494,
-0.045386552810668945,
-0.06171226501464844,
-0.04800046235322952,
0.008821838535368443,
0.07294177263975143,
-0.024438166990876198,
-0.08276282250881195,
0.005553141236305237,
0.059517018496990204,
-0.027890676632523537,
0.07164178043603897,
-0.009352456778287888,
0.031005479395389557,
0.06479150056838989,
-0.0092487633228302,
0.03054029494524002,
-0.041893474757671356,
0.007972365245223045,
0.005033102352172136,
0.02868410013616085,
-0.011695205233991146,
-0.04955866187810898,
-0.061124105006456375,
0.04400657117366791,
0.037048351019620895,
0.052466776221990585,
0.044601041823625565,
-0.02096467651426792,
-0.06953683495521545,
-0.009620086289942265,
0.015361824072897434,
-0.04243648797273636,
0.010502228513360023,
0.01622306928038597,
0.05078403279185295,
-0.04721987619996071,
-0.041912201792001724,
-0.021592145785689354,
0.005974022671580315,
0.02760608308017254,
0.0007967398269101977,
-0.028614899143576622,
-0.04387134313583374,
0.04247324913740158,
0.006016181781888008,
-0.0229293592274189,
-0.05863753706216812,
0.030886631458997726,
-0.007679426111280918,
-0.021402763202786446,
0.033250678330659866,
0.03665880113840103,
0.031073560938239098,
0.06899997591972351,
0.013606645166873932,
0.04288819432258606,
-0.03722658380866051,
0.022938251495361328,
-0.055819738656282425,
-0.0156493429094553,
-0.0049173966981470585,
-0.02538374252617359,
-0.0036135828122496605,
-0.03719523921608925,
-0.05412810295820236,
-0.05542093142867088,
-0.03824262320995331,
0.015452662482857704,
0.0009502646280452609,
0.012551140040159225,
0.026313617825508118,
0.06329520791769028,
-0.02864246815443039,
-0.021823560819029808,
-0.03694736212491989,
-0.025140615180134773,
-0.06023578345775604,
-0.05965578556060791,
0.03260975331068039,
0.0010663839057087898,
0.015969213098287582,
-0.028854776173830032,
0.016718817874789238,
0.010510210879147053,
0.009015841409564018,
-0.020380165427923203,
0.05164092034101486,
-0.004379624035209417,
-0.0328633114695549,
-0.03103378601372242,
0.022628512233495712,
0.012999306432902813,
0.003829418448731303,
-0.007450443226844072,
0.04339304193854332,
0.017732057720422745,
-0.01527197752147913,
-0.009504248388111591,
0.021961716935038567,
-0.010748622007668018,
-0.07617316395044327,
-0.03035716898739338,
0.005520442966371775,
-0.07417869567871094,
0.025700371712446213,
-0.007678524125367403,
-0.027637118473649025,
-0.04172955080866814,
0.015223264694213867,
0.04134628549218178,
0.015884781256318092,
-0.02435881271958351,
0.010009483434259892,
-0.021320534870028496,
0.037232235074043274,
-0.0285037774592638,
0.03958640992641449,
-0.04091585800051689,
0.007952661253511906,
-0.006974175572395325,
0.013316042721271515,
-0.03520432859659195,
0.0371449738740921,
-0.01624429225921631,
-0.0038491818122565746,
-0.029559077695012093,
0.015092909336090088,
-0.023943617939949036,
0.05112431198358536,
-0.017115693539381027,
0.03515656292438507,
-0.044573232531547546,
0.04705395922064781,
-0.03994765505194664,
0.0049173166044056416,
-0.02928709238767624,
0.021510915830731392,
-0.03629127889871597,
-0.009885297156870365,
-0.0038932033348828554,
-0.04973149299621582,
0.024874171242117882,
0.0410606786608696,
0.028394736349582672,
0.01070148404687643,
-0.029043518006801605,
-0.00769883394241333,
0.018152164295315742,
-0.05543208494782448,
-0.01641535572707653,
-0.012912562116980553,
-0.008580035530030727,
-0.029117852449417114,
0.034837428480386734,
0.04838195815682411,
-0.05910240113735199,
-0.06689168512821198,
0.035399388521909714,
0.0003107340889982879,
0.018573839217424393,
-0.00019383299513719976,
0.031357262283563614,
0.009695948101580143,
0.03781682625412941,
-0.019977251067757607,
0.02256530150771141,
-0.022968720644712448,
-0.03799249976873398,
0.022448966279625893,
-0.015513240359723568,
0.026567760854959488,
0.006622776854783297,
-0.055551618337631226,
-0.011128786951303482,
0.07686129212379456,
0.013413376174867153,
-0.00813854020088911,
0.001656365697272122,
-0.05165568366646767,
0.05154971033334732,
-0.0025863454211503267,
-0.044923342764377594,
0.02650699019432068,
-0.0058941044844686985,
-0.007628198247402906,
0.07841772586107254,
-0.022736217826604843,
0.01492619700729847,
0.05662516504526138,
0.02800619788467884,
-0.019860005006194115,
0.02389056235551834,
-0.0328630656003952,
-0.002266128081828356,
0.03217632696032524,
-0.05428623408079147,
-0.02094811201095581,
-0.016545848920941353,
0.08787801116704941,
-0.05348830297589302,
0.04745696112513542,
0.025063849985599518,
0.011135981418192387,
0.010936649516224861,
-0.02168123982846737,
-0.03649567812681198,
0.008886096067726612,
-0.05115711688995361,
0.07292243838310242,
0.0040658628568053246,
-0.05851466581225395,
0.08103761076927185,
0.022483764216303825,
-0.08508730679750443,
0.04947282746434212,
0.050262633711099625,
0.04171173647046089,
0.036061473190784454,
0.05983394756913185,
-0.027415180578827858,
0.027120554819703102,
-0.03301623463630676,
0.0060269334353506565,
-0.07139569520950317,
-0.012661544606089592,
0.014193795621395111,
-0.03161415085196495,
-0.002675316296517849,
0.04686084762215614,
-0.012168039567768574,
-0.0293844323605299,
0.03610517084598541,
-0.07080059498548508,
-0.038409776985645294,
0.0030838241800665855,
0.0222321804612875,
-0.022955767810344696,
0.026942824944853783,
-0.02315952442586422,
0.028855519369244576,
0.009718761779367924,
0.005828632973134518,
-0.01250928733497858,
-0.007095421198755503,
0.016875701025128365,
-0.04912951961159706,
-0.01977749727666378,
0.044222500175237656,
0.040927279740571976,
-0.0243122186511755,
0.029906027019023895,
-0.016910824924707413,
0.04410438984632492,
-0.01638904958963394,
-0.008322852663695812,
0.009836715646088123,
-0.0622255839407444,
0.0056100706569850445,
0.02412763610482216,
0.01019488088786602,
0.049800362437963486,
-0.01879313215613365,
0.04337586089968681,
0.029539335519075394,
0.03306806832551956,
0.010425507090985775,
-0.03726981207728386,
-0.016302648931741714,
0.004632863681763411,
-0.043822601437568665,
0.04565165191888809,
-0.0024813353084027767,
-0.06028030440211296,
-0.02411641553044319,
-0.005476899910718203,
-0.0025506040547043085,
0.01271259319037199,
-0.05243062600493431,
0.030281275510787964,
0.04383234307169914,
0.013594746589660645,
-0.031861286610364914,
-0.07886216789484024,
-0.04198361188173294,
-0.027653081342577934,
0.019851699471473694,
0.05127019062638283,
-0.02946229837834835,
0.025702595710754395,
-0.06027347221970558,
-0.05121132358908653,
0.04866652935743332,
0.01738155633211136,
-0.04618099704384804,
0.05775212496519089,
0.0242198184132576,
-0.0332234725356102,
-0.0003267838037572801,
0.016549328342080116,
-0.0329214408993721,
0.020872486755251884,
-0.009321433492004871,
0.0006695357733406126,
0.028217516839504242,
0.023597976192831993,
-0.029077300801873207,
-0.04192214459180832,
-0.017838869243860245,
-0.021221663802862167,
-0.04140061140060425,
-0.02061210758984089,
0.049134254455566406
] |
BenWitter/DialoGPT-small-Tyrion | [
"pytorch",
"gpt2",
"text-generation",
"transformers"
] | text-generation | {
"architectures": [
"GPT2LMHeadModel"
],
"model_type": "gpt2",
"task_specific_params": {
"conversational": {
"max_length": 1000
},
"summarization": {
"early_stopping": null,
"length_penalty": null,
"max_length": null,
"min_length": null,
"no_repeat_ngram_size": null,
"num_beams": null,
"prefix": null
},
"text-generation": {
"do_sample": null,
"max_length": null
},
"translation_en_to_de": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_fr": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
},
"translation_en_to_ro": {
"early_stopping": null,
"max_length": null,
"num_beams": null,
"prefix": null
}
}
} | 11 | null | \ntags:
-conversational
inference: false
conversational: true
#First time chat bot using a guide, low epoch count due to limited resources. | [
-0.014878230169415474,
-0.005156678147614002,
-0.01421799510717392,
0.017912352457642555,
0.030382685363292694,
0.008951956406235695,
-0.025558484718203545,
0.012864730320870876,
-0.02509419247508049,
0.03223489597439766,
0.0619264617562294,
0.022171752527356148,
0.02070264331996441,
0.060949284583330154,
-0.038421280682086945,
-0.01580684445798397,
-0.01752200722694397,
-0.005885161459445953,
-0.04326417297124863,
0.009084398858249187,
0.023571917787194252,
0.004591624718159437,
-0.013026575557887554,
0.022312337532639503,
0.0006800827104598284,
0.053406182676553726,
-0.01577112078666687,
0.006156886927783489,
0.02010924555361271,
-0.0361286886036396,
0.0044206278398633,
-0.03481277823448181,
-0.020961057394742966,
-0.026376497000455856,
-0.006680669263005257,
-0.030694402754306793,
0.014130951836705208,
-0.0012582929339259863,
-0.01816578581929207,
0.023204881697893143,
0.005552041810005903,
-0.016972582787275314,
0.01478665228933096,
-0.052423372864723206,
0.08313223719596863,
0.026265114545822144,
-0.048751529306173325,
0.012779293581843376,
0.015621312893927097,
-0.02130328305065632,
-0.063555508852005,
-0.06236165761947632,
-0.04000825434923172,
-0.01793821156024933,
0.0037384063471108675,
-0.04162080958485603,
-0.06418962776660919,
0.006506180856376886,
0.08690498769283295,
-0.042934954166412354,
-0.03538616746664047,
0.01058861706405878,
-0.08375946432352066,
0.016258519142866135,
0.02110196463763714,
-0.06730253994464874,
0.007997456938028336,
-0.07007033377885818,
-0.00533154234290123,
-0.04627249389886856,
0.06978810578584671,
-0.017081622034311295,
0.020006250590085983,
-0.06922667473554611,
-0.0029278984293341637,
-0.011938569135963917,
0.054186027497053146,
0.05509713292121887,
-0.0331827811896801,
0.04524003341794014,
0.05623369663953781,
-0.0021806564182043076,
0.04985114932060242,
-0.02498943917453289,
-0.01459997147321701,
0.04091119393706322,
-0.03777623921632767,
0.0028739359695464373,
0.0004437096940819174,
0.038934558629989624,
-0.0404389388859272,
-0.04900267720222473,
-0.019117239862680435,
-0.004304757807403803,
0.009114491753280163,
0.03565610200166702,
0.030714480206370354,
-0.004002102185040712,
0.02115199901163578,
0.036236390471458435,
0.034523993730545044,
0.04832116514444351,
-0.023089876398444176,
0.0460379421710968,
-0.01322705578058958,
0.004136322066187859,
0.010300982743501663,
-0.013020935468375683,
-0.056692443788051605,
0.015581879764795303,
-0.0006465053302235901,
-0.035261496901512146,
-0.04139735549688339,
0.03689838573336601,
0.030285898596048355,
-0.006540593691170216,
0.03591936081647873,
-0.028685828670859337,
-0.04925854876637459,
-0.047550447285175323,
0.062855564057827,
-0.00998961552977562,
-0.0353967621922493,
-0.017179444432258606,
-0.04037828370928764,
0.012478453107178211,
-0.04408617317676544,
-0.035642433911561966,
0.009552650153636932,
0.00981888361275196,
0.02422492392361164,
0.05085548013448715,
-0.04200693592429161,
-0.06405393779277802,
-0.0101877236738801,
0.046463094651699066,
-0.06206896901130676,
0.005864727310836315,
0.023102808743715286,
0.10560595244169235,
-0.08477280288934708,
-0.05236588791012764,
-0.009760378859937191,
0.006744869519025087,
-0.050920188426971436,
0.009209297597408295,
0.019873062148690224,
0.0010460092453286052,
-0.05841635540127754,
-0.009656750597059727,
0.054339829832315445,
-0.05643199384212494,
-0.022108543664216995,
0.0181546900421381,
0.026942487806081772,
0.03152124211192131,
-0.05955887213349342,
-0.004644474480301142,
0.030311748385429382,
-0.0373077467083931,
-0.038729291409254074,
0.029335802420973778,
0.0042539723217487335,
-0.03443245589733124,
-0.024815859273076057,
-0.035613104701042175,
-0.011367720551788807,
0.08407582342624664,
-0.004913716111332178,
-0.018475836142897606,
-0.03145880997180939,
0.041908737272024155,
0.05464966222643852,
0.03453360125422478,
-0.012738685123622417,
0.015043720602989197,
0.0554998442530632,
0.03791484609246254,
-0.03521659970283508,
0.06250957399606705,
0.029441077262163162,
-0.020824329927563667,
-0.030482031404972076,
-0.020328519865870476,
0.031733229756355286,
0.0018033332889899611,
0.024811148643493652,
0.058159489184617996,
-0.029161490499973297,
-0.03558828681707382,
0.0051904343999922276,
0.049900785088539124,
-0.008685982786118984,
-0.01751672476530075,
-0.017492810264229774,
-0.017738468945026398,
-0.0298136156052351,
0.03568172827363014,
-0.018051259219646454,
-0.019640903919935226,
-0.03118016943335533,
-0.009836363606154919,
0.02692318707704544,
-0.009472672827541828,
-0.001377082895487547,
0.04999475181102753,
-0.029094893485307693,
0.09602311998605728,
-0.045654311776161194,
0.017673799768090248,
-0.0409255288541317,
-0.039373766630887985,
-0.009265935979783535,
0.056054528802633286,
0.0051526096649467945,
0.043127138167619705,
-0.014496871270239353,
-0.05194877088069916,
0.01359308511018753,
0.07151654362678528,
0.03612859547138214,
0.022650249302387238,
-0.019464895129203796,
0.0030025651212781668,
0.016164785251021385,
0.03860446810722351,
-0.03605072572827339,
-0.016247853636741638,
0.002570489887148142,
0.055857110768556595,
-0.02094961702823639,
-0.03944385424256325,
-0.01771553047001362,
0.00009279853838961571,
-0.017836997285485268,
-0.05556374415755272,
0.06481090933084488,
0.0289284810423851,
0.0016743000596761703,
0.03766733780503273,
0.002079071244224906,
-0.015911754220724106,
0.04049627482891083,
-0.0036560248117893934,
0.00018556759459897876,
-0.07090717554092407,
0.010758373886346817,
0.0367027185857296,
0.07456938177347183,
-0.0404304675757885,
0.010370935313403606,
0.013075650669634342,
-0.008475266396999359,
0.022312715649604797,
-0.018336523324251175,
0.05520036444067955,
0.05903751403093338,
0.06080831214785576,
-0.0385199710726738,
0.056457486003637314,
-0.002512252191081643,
0.02387123927474022,
0.009134764783084393,
-0.008028775453567505,
0.09155917912721634,
-0.01892588473856449,
0.05144026130437851,
0.05727272108197212,
0.028921954333782196,
0.007234710268676281,
0.023959778249263763,
0.04264364764094353,
0.024162983521819115,
0.01013492513448,
0.051564302295446396,
-0.01465857494622469,
0.004838897380977869,
-0.05123103782534599,
0.0006128499517217278,
-0.009532837197184563,
-0.03197380155324936,
0.05246013402938843,
0.00032171487691812217,
-0.026645591482520103,
0.02231896109879017,
-0.011468414217233658,
0.001127229887060821,
0.048905469477176666,
0.011487091891467571,
0.005285745486617088,
-0.00018083832401316613,
-0.014684886671602726,
0.03423740342259407,
-0.069043830037117,
-0.037178754806518555,
0.0021217460744082928,
-0.026605939492583275,
0.004927347879856825,
-0.08129222691059113,
-0.04407370835542679,
-0.0494128055870533,
-0.026852067559957504,
0.05627335608005524,
0.036553192883729935,
0.022146491333842278,
-0.002888617804273963,
0.017266787588596344,
-0.03211196884512901,
-0.057608895003795624,
-0.044825661927461624,
-0.027692247182130814,
-0.023939400911331177,
-0.043478209525346756,
0.032951243221759796,
0.04156651347875595,
0.044652000069618225,
0.019307870417833328,
-0.02249806560575962,
-0.04899313673377037,
0.005583256017416716,
0.05457213521003723,
0.014239118434488773,
-0.04173295199871063,
-0.03443479537963867,
0.023899776861071587,
0.0011160451686009765,
0.007018471136689186,
-0.013641106896102428,
-0.03959796950221062,
0.07181309908628464,
0.03979027271270752,
0.00023241153394337744,
-0.00016633444465696812,
0.0014935481594875455,
-0.056692276149988174,
-0.027495408430695534,
-0.013600175268948078,
-0.027108563110232353,
-0.021149924024939537,
-0.01392939779907465,
-0.02026587724685669,
-0.04130763188004494,
-0.04252054914832115,
-0.03774995356798172,
0.011877629905939102,
-0.01911529153585434,
0.03497536852955818,
0.021175749599933624,
0.022589610889554024,
0.014987685717642307,
-0.054253093898296356,
-0.012848558835685253,
0.058058001101017,
-0.005088223144412041,
0.0026165274903178215,
-0.068540558218956,
-0.030565761029720306,
0.04800475016236305,
0.014844241552054882,
0.023652253672480583,
-0.018614700064063072,
0.06009412556886673,
0.03369186446070671,
-0.004067897330969572,
0.03031229041516781,
-0.044135332107543945,
-0.0005559212877415121,
-0.032074905931949615,
-0.019301608204841614,
-0.05532322824001312,
-0.047307681292295456,
0.005516295321285725,
-0.03669920936226845,
0.02765212208032608,
-0.07561030983924866,
-0.03848331794142723,
-0.030621210113167763,
-0.016040977090597153,
0.037169888615608215,
-0.0028251048643141985,
-0.057565249502658844,
-0.005564086604863405,
-0.020995812490582466,
-0.0022622006945312023,
0.016671262681484222,
-0.01524521317332983,
0.012352785095572472,
0.03299048915505409,
0.035218678414821625,
-0.02216840721666813,
0.07240381091833115,
0.011139563284814358,
0.059899505227804184,
0.052672095596790314,
-0.0344068706035614,
0.04284244403243065,
-0.018232762813568115,
0.0157830398529768,
-0.01292614545673132,
-0.02253650687634945,
-0.03918984904885292,
-0.11733276396989822,
-0.02946441061794758,
0.02692404016852379,
-0.04125933349132538,
-0.0030273967422544956,
0.05631997808814049,
-0.05363697558641434,
-0.026461239904165268,
-0.006672773975878954,
0.034957222640514374,
0.043318040668964386,
-0.009082045406103134,
0.05556579679250717,
-0.0025992814917117357,
0.025337280705571175,
-0.03844814747571945,
-0.011007058434188366,
-0.056015659123659134,
0.01019439846277237,
-0.008293713442981243,
0.0678410530090332,
0.02173595130443573,
0.0357336662709713,
0.05742372199892998,
0.002893812721595168,
-0.028287971392273903,
0.04403804615139961,
0.057074204087257385,
0.014551358297467232,
-0.049973275512456894,
0.008298374712467194,
-0.006009826436638832,
-0.00816164817661047,
-0.02148391306400299,
-0.03914272412657738,
0.012970227748155594,
0.06450195610523224,
0.0050877295434474945,
0.018034011125564575,
0.006720868404954672,
-0.0044621932320296764,
-0.008270668797194958,
-0.06965958327054977,
-0.007741985376924276,
-0.011620596051216125,
-0.04143920913338661,
0.0634489506483078,
0.05412186309695244,
0.02697918564081192,
0.030006712302565575,
0.0021422619465738535,
-0.028706785291433334,
-0.03492328152060509,
0.038378819823265076,
0.044888533651828766,
-0.03330563008785248,
-0.045347001403570175,
-0.022451521828770638,
0.011983789503574371,
0.03114638663828373,
-0.029483038932085037,
-0.06694778054952621,
0.02049269713461399,
0.0467163510620594,
-0.04417354241013527,
0.060636162757873535,
0.01295174565166235,
0.042723506689071655,
0.06217219680547714,
0.00457780109718442,
0.05493883043527603,
-0.056053079664707184,
0.02751276269555092,
0.0014454813208431005,
0.027370411902666092,
-0.028452733531594276,
-0.05750773847103119,
-0.038457516580820084,
0.042419832199811935,
0.03494078293442726,
0.009311273694038391,
0.03708827495574951,
-0.023499103263020515,
-0.05074311047792435,
-0.007511449977755547,
0.06385614722967148,
-0.038683392107486725,
0.04122576862573624,
0.02789263240993023,
0.05682164803147316,
-0.06278146803379059,
-0.02530120313167572,
0.017210843041539192,
0.011282361112535,
0.02909657172858715,
-0.020052187144756317,
-0.05276000499725342,
-0.029340632259845734,
0.021127792075276375,
-0.020948359742760658,
-0.011141306720674038,
-0.08338887989521027,
0.03512045741081238,
-0.011857655830681324,
-0.03650524094700813,
0.061564356088638306,
0.04257373884320259,
0.04997193440794945,
0.0506175234913826,
-0.012441500090062618,
0.04157206043601036,
-0.004155452828854322,
0.027762029320001602,
-0.06260313838720322,
-0.022886261343955994,
0.0066959611140191555,
-0.06602121144533157,
-0.016254179179668427,
-0.0327259786427021,
-0.043016351759433746,
-0.04578953981399536,
0.005044587887823582,
0.019894324243068695,
-0.009029452688992023,
-0.006424586288630962,
0.024552639573812485,
0.005935311783105135,
-0.01148232351988554,
-0.0020253402180969715,
-0.011276140809059143,
-0.024130159988999367,
-0.06261572986841202,
-0.04245208203792572,
0.0018568934174254537,
-0.005744035821408033,
-0.0063731856644153595,
0.013457323424518108,
-0.00589823117479682,
0.05320333316922188,
-0.01466820016503334,
-0.026659516617655754,
0.005873375106602907,
0.02020600438117981,
-0.05459696799516678,
0.0037749740295112133,
0.020838124677538872,
0.013135881163179874,
0.028089558705687523,
-0.010169495828449726,
0.02571321278810501,
-0.0016654384089633822,
-0.03005911409854889,
-0.03374035283923149,
0.03682979568839073,
0.014178140088915825,
-0.08224540203809738,
-0.021766262128949165,
-0.02145693078637123,
-0.02729649469256401,
0.03472618758678436,
-0.013967353850603104,
-0.050779882818460464,
0.01591481827199459,
-0.00019169127335771918,
0.03338034823536873,
0.006684015039354563,
-0.01812826097011566,
0.026876015588641167,
-0.02220255881547928,
0.010826779529452324,
-0.04104123264551163,
0.022595787420868874,
-0.032696764916181564,
-0.01105017215013504,
-0.0010433957213535905,
0.0011576000833883882,
-0.06272721290588379,
0.07898109406232834,
-0.018544765189290047,
0.006264262832701206,
0.007610704749822617,
0.023501746356487274,
-0.01934976316988468,
0.042410194873809814,
0.021651016548275948,
-0.012485352344810963,
-0.04761287197470665,
0.03163683041930199,
-0.07574557512998581,
0.01439483743160963,
-0.011315030977129936,
-0.013503015972673893,
-0.010274159722030163,
0.0006741262623108923,
-0.017321741208434105,
-0.015971550717949867,
0.019865097478032112,
0.02457951381802559,
0.026585327461361885,
0.026319662109017372,
0.004630373325198889,
-0.003702689427882433,
0.008888195268809795,
-0.046278007328510284,
-0.0286739282310009,
-0.0024624948855489492,
-0.016645362600684166,
0.00018225829990115017,
0.05107457935810089,
0.05744357407093048,
-0.07172291725873947,
-0.053256019949913025,
0.041724707931280136,
0.02418339252471924,
-0.002560798777267337,
0.007276406046003103,
0.0250288937240839,
0.03989093005657196,
0.04102766141295433,
0.002286947565153241,
-0.02595517225563526,
0.005322478245943785,
-0.005185974296182394,
0.009428641758859158,
-0.000640052487142384,
0.00879119522869587,
-0.0033683422952890396,
-0.03874087706208229,
-0.037278931587934494,
0.06878192722797394,
-0.005919753108173609,
0.00676822941750288,
-0.010940944775938988,
-0.06834840029478073,
0.027567017823457718,
0.0009992270497605205,
-0.026461701840162277,
-0.005345624405890703,
0.031376760452985764,
-0.03075673244893551,
0.04199405387043953,
-0.023334035649895668,
0.00815634522587061,
0.04642445221543312,
0.02630828320980072,
-0.025474844500422478,
0.039372920989990234,
-0.009533954784274101,
0.011950026266276836,
0.025255395099520683,
-0.06165063753724098,
0.004177592229098082,
-0.02961287461221218,
0.052095938473939896,
-0.042617086321115494,
0.06238551810383797,
0.014541363343596458,
0.040140725672245026,
0.027684099972248077,
-0.04379171133041382,
-0.03270009905099869,
-0.031029673293232918,
-0.0533437579870224,
0.06910870224237442,
-0.023670511320233345,
-0.05017729848623276,
0.09214074164628983,
0.040951862931251526,
-0.06334666162729263,
0.01771487481892109,
0.04085338115692139,
0.028426244854927063,
0.012537234462797642,
0.007461576722562313,
-0.03560218587517738,
0.016740737482905388,
-0.019838841632008553,
0.013936411589384079,
-0.0513116791844368,
-0.030806314200162888,
-0.04348164424300194,
-0.042603347450494766,
-0.007823207415640354,
0.020038606598973274,
0.0034911702387034893,
0.021872468292713165,
0.005236925557255745,
-0.055534280836582184,
-0.06897248327732086,
0.01781577803194523,
0.024982526898384094,
-0.034909240901470184,
-0.003630179911851883,
-0.019902996718883514,
0.004762779455631971,
0.033321063965559006,
-0.008006703108549118,
-0.06418291479349136,
0.012244563549757004,
-0.0008216410060413182,
-0.0734010711312294,
-0.014955712482333183,
0.07836784422397614,
0.02026529423892498,
-0.011460981331765652,
-0.006050115916877985,
-0.00392145523801446,
0.045906051993370056,
0.015231379307806492,
-0.002855725819244981,
0.02219170518219471,
-0.05854812636971474,
-0.004141421057283878,
0.039582766592502594,
-0.015520310029387474,
0.006944251246750355,
-0.01326266024261713,
0.026016807183623314,
0.06478598713874817,
0.043108269572257996,
-0.014740259386599064,
-0.034042079001665115,
-0.0208506491035223,
0.006771359127014875,
-0.0548286959528923,
0.04139040783047676,
-0.00039001216646283865,
-0.07125696539878845,
-0.03599712997674942,
-0.016831833869218826,
-0.004802800714969635,
0.026447921991348267,
-0.044652972370386124,
0.009217174723744392,
0.05917787924408913,
0.006927873007953167,
-0.03359445184469223,
-0.11853329837322235,
-0.04470203444361687,
-0.026904935017228127,
0.032967712730169296,
0.0326133668422699,
-0.03540468588471413,
-0.010859061032533646,
-0.023889178410172462,
-0.020133590325713158,
0.049224402755498886,
-0.00014568174083251506,
-0.06028283014893532,
0.036463771015405655,
0.08149216324090958,
-0.03659218177199364,
0.042078275233507156,
0.02173352800309658,
-0.035180721431970596,
0.032807834446430206,
-0.008127996698021889,
0.02548312582075596,
0.03053922764956951,
0.045991115272045135,
-0.017043273895978928,
-0.026577763259410858,
-0.036595072597265244,
-0.03401597589254379,
-0.037217095494270325,
0.0018191003473475575,
0.07610572129487991
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.