Instructions to use google/flan-t5-xxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/flan-t5-xxl with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-xxl") model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-xxl") - Notebooks
- Google Colab
- Kaggle
Unable to call this model
#70
by Abhi012024 - opened
Getting below error:
ValidationError: 1 validation error for HuggingFaceEndpoint root Parameters {'temperature', 'repetition_penalty', 'top_k', 'max_new_tokens'} should be specified explicitly. Instead they were passed in as part of model_kwargs parameter. (type=value_error)
someone pls. help me out on this.
Pass them separately like this -
HuggingFaceEndpoint(
repo_id=repo_id,
temperature= 0.8,
top_k =50,
huggingfacehub_api_token= ' API '
)