Open-weight model · Question answering
bert-base-spanish-wwm-cased-finetuned-spa-squad2-es
by Manuel Romero mrm8488/bert-base-spanish-wwm-cased-finetuned-spa-squad2-es
This model is provided by BETO team and fine-tuned on SQuAD-es-v2.0 for Q&A downstream task. Language model ('dccuchile/bert-base-spanish-wwm-cased'): BETO is a BERT model trained on a big Spanish corpus.
Model Card
This model is provided by BETO team and fine-tuned on SQuAD-es-v2.0 for Q&A downstream task. Language model ('dccuchile/bert-base-spanish-wwm-cased'): BETO is a BERT model trained on a big Spanish corpus. BETO is of size similar to a BERT-Base and was trained with the Whole Word Masking technique. Below you find Tensorflow and Pytorch checkpoints for the uncased and cased versions, as well as some results for Spanish benchmarks comparing BETO with Multilingual BERT as well as other (not BERT-based) models. The model was trained on a Tesla P100 GPU and 25GB of RAM with the following command: 1. Set the context and ask some questions: 2. Run predictions
Excerpt from the card by Manuel Romero.
Configuration
- Architecture
- BertForQuestionAnswering
- Context length (tokens)
- 512
- Layers
- 12
- Hidden size
- 768
- Feed-forward size
- 3,072
- Attention heads
- 12
- Vocabulary size
- 31,002
- Model type
- bert
Identity and Version
- Repository
- mrm8488/bert-base-spanish-wwm-cased-finetuned-spa-squad2-es
- Publisher
- Manuel Romero
- Task
- Question answering
- Modality
- Text
- Library
- transformers
- Parameters
- Not stated by the source
- Languages
- es
- Revision
- 99818221720ac345078458b0b0489d61b21fe137
- First published
- 2022-03-02
- Last updated
- 2021-05-20
Files and Weights
13 files, 1.6 GB in total. The weights are 3 files totalling 876.5 MB in bin, msgpack.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| flax_model.msgpack | Weights | 437.1 MB | 0f7ed9d36d9d |
| pytorch_model.bin | Weights | 439.5 MB | 280c5e41b49f |
| training_args.bin | Weights | 1.5 KB | 483b8d0eb374 |
| config.json | Configuration | 465 B | — |
| nbest_predictions_.json | Configuration | 320.9 MB | 085a6a937305 |
| null_odds_.json | Configuration | 3.6 MB | — |
| predictions_.json | Configuration | 3.4 MB | — |
| special_tokens_map.json | Configuration | 112 B | — |
| README.md | Documentation | 3.0 KB | — |
| saved_model.tar.gz | Other | 408.0 MB | 3a6f5510408f |
| .gitattributes | Repository | 391 B | — |
| tokenizer_config.json | Tokenizer | 135 B | — |
| vocab.txt | Tokenizer | 242.3 KB | — |
License and Download
- License
- Not stated by the source
- Access
- Open weights, no gate
- Download size
- 876.5 MB
Released by Manuel Romero through its official repository on Hugging Face.
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 876.5 MB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About bert-base-spanish-wwm-cased-finetuned-spa-squad2-es
What is bert-base-spanish-wwm-cased-finetuned-spa-squad2-es's context length?
512 tokens, from the maximum position embeddings in its published configuration.
Similar Models
Splinter-base is the pretrained model discussed in the paper Few-Shot Question Answering by Pretraining Span Selection (at ACL 2021). Its original repository can be found here. The model is case-sensitive. Note: This model doesn't contain the pretrained weights for the QASS layer (see paper for details), and therefore the QASS layer is randomly initialized upon loading it. For the model with those weights, see tau/splinter-base-qass. Splinter is a model that is pretrained in a self-supervised fashion for few-shot question answering. 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…
This model can be used for the task of question answering. The model should not be used to intentionally create hostile or alienating environments for people. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. The model creators note in the associated paper: The model creators note in the associated paper: The model…
This model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. This model reaches a F1 score of 87.1 on the dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).
This model can be used for the task of Question Answering on Legal Documents. Read: An Open Source Contractual Language Understanding Application Using Machine Learning for detailed information on training procedure, dataset preprocessing and evaluation. See CUAD dataset card for more information. See CUAD dataset card for more information. Used V100/P100 from Google Colab Pro Python, Transformers Mohammed Rakib in collaboration with Ezi Ozoani and the Hugging Face team Use the code below to get started with the model.