ngockha/ELI5_custom
Viewer • Updated • 247k • 35 • 1
How to use ngockha/Teli5 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="ngockha/Teli5") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("ngockha/Teli5")
model = AutoModelForSeq2SeqLM.from_pretrained("ngockha/Teli5", device_map="auto")YAML Metadata Error:"base_model" with value "./checkpoints/checkpoint-13800" is not valid. Use a model id from https://hf.co/models.
This model is a fine-tuned version of google/t5-v1_1-base on the rusano/ELI5_custom dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training: