Question Answering
Transformers
PyTorch
TensorFlow
JAX
Vietnamese
t5
text2text-generation
summarization
translation
text-generation-inference
Instructions to use VietAI/vit5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VietAI/vit5-base with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="VietAI/vit5-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("VietAI/vit5-base") model = AutoModelForSeq2SeqLM.from_pretrained("VietAI/vit5-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files22 unmodified lines232425262728293031323334353637383940414243444546474849505152535455565722 unmodified lines"pad_token_id": 0,"relative_attention_max_distance": 128,"relative_attention_num_buckets": 32,"task_specific_params": {"summarization": {"early_stopping": true,"length_penalty": 2.0,"max_length": 200,"min_length": 30,"no_repeat_ngram_size": 3,"num_beams": 4,"prefix": "summarize: "},"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: "}},"torch_dtype": "float32","transformers_version": "4.21.3","use_cache": true,22 unmodified lines23242526272822 unmodified lines"pad_token_id": 0,"relative_attention_max_distance": 128,"relative_attention_num_buckets": 32,"torch_dtype": "float32","transformers_version": "4.21.3","use_cache": true,
config.json-29