Instructions to use hkunlp/T5_base_finetune_all_tasks_2upsample2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hkunlp/T5_base_finetune_all_tasks_2upsample2 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hkunlp/T5_base_finetune_all_tasks_2upsample2") model = AutoModel.from_pretrained("hkunlp/T5_base_finetune_all_tasks_2upsample2") - Notebooks
- Google Colab
- Kaggle
Problem initializing weights using from_pretrained() method
#1
by Kelvin99 - opened
When I use this line of code:
model = AutoModelForSeq2SeqLM.from_pretrained('hkunlp/T5_base_finetune_all_tasks_2upsample2')
It returns this error:
Some weights of T5ForConditionalGeneration were not initialized from the model checkpoint
and then goes on to say all of T5's layers are randomly initialized.
Is this model not meant for T5ForConditionalGeneration?
Hi, could you check about whether the version of huggingface transformers is the same with on in UnifiedSKG?