SAVRN
Search Contact SAVRN

Open-weight model · Question answering

vit5-base

by VietAI VietAI/vit5-base

State-of-the-art pretrained Transformer-based encoder-decoder model for Vietnamese. For more details, do check out our Github repo.

Parameters
Context
Weights2.7 GB
Licensemit
AccessOpen weights
Monthly Downloads5.3k

Model Card

By VietAI, published under mit, revision 2209a38d735e.

State-of-the-art pretrained Transformer-based encoder-decoder model for Vietnamese. For more details, do check out our Github repo.

Read VietAI's full model card

State-of-the-art pretrained Transformer-based encoder-decoder model for Vietnamese.

How to use

For more details, do check out our Github repo.

Finetunning Example can be found here.

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
​
tokenizer = AutoTokenizer.from_pretrained("VietAI/vit5-base")  
model = AutoModelForSeq2SeqLM.from_pretrained("VietAI/vit5-base")
model.cuda()

Citation

@inproceedings{phan-etal-2022-vit5,
    title = "{V}i{T}5: Pretrained Text-to-Text Transformer for {V}ietnamese Language Generation",
    author = "Phan, Long and Tran, Hieu and Nguyen, Hieu and Trinh, Trieu H.",
    booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Student Research Workshop",
    year = "2022",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.naacl-srw.18",
    pages = "136--142",
}

Configuration

Architecture
T5ForConditionalGeneration
Vocabulary size
36,096
Stored precision
float32
Model type
t5

Identity and Version

Repository
VietAI/vit5-base
Publisher
VietAI
Task
Question answering
Modality
Text
Library
transformers
Parameters
Not stated by the source
Languages
vi
Revision
2209a38d735ede63e88f5aa52bcdc11a05a37b85
First published
2022-03-14
Last updated
2022-09-27

Files and Weights

10 files, 2.7 GB in total. The weights are 3 files totalling 2.7 GB in bin, h5, msgpack.

Weights3 files · 2.7 GB
Configuration2 files · 2.8 KB
Tokenizer3 files · 3.2 MB
Documentation1 file · 1.2 KB
Repository1 file · 1.2 KB
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights903.8 MB 9cce6e8cccab
pytorch_model.binWeights903.9 MB 6e666460219d
tf_model.h5Weights904.3 MB 751a7fba06a6
config.jsonConfiguration702 B
special_tokens_map.jsonConfiguration2.1 KB
README.mdDocumentation1.2 KB
.gitattributesRepository1.2 KB
spiece.modelTokenizer820.4 KB 59986b62f9f0
tokenizer.jsonTokenizer2.4 MB
tokenizer_config.jsonTokenizer2.2 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
2.7 GB
Download from VietAI

Released by VietAI through its official repository on Hugging Face. Read the license.

Built From

  • Trained on (disclosed) cc100

Memory Requirements

PrecisionWeights in memory
As published2.7 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About vit5-base

Can I use vit5-base commercially?

Yes. vit5-base is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Question answering

splinter-base

Tel Aviv University

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…

Open weights apache-2.0 512 tokens transformers

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…

Open weights 512 tokens transformers

Model · Question answering

distilbert-onnx

Philipp Schmid

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

Open weights apache-2.0 512 tokens transformers

Model · Question answering

roberta-base-on-cuad

Mohammed Rakib

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.

Open weights mit 514 tokens transformers