Run this model with HF Jobs
Run google/flan-t5-large on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/google/flan-t5-large. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/google/flan-t5-large on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use google/flan-t5-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/flan-t5-large with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-large") model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
503 Server Error: Service Unavailable for model 'google/flan-t5-large'
Hello Hugging Face community,
I am experiencing a 503 Server Error: Service Unavailable when trying to interact with the model google/flan-t5-large using the Hugging Face Inference API.
Steps to Reproduce:
I am using the following model in my code:
url = "https://api-inference.huggingface.co/models/google/flan-t5-large"I send a POST request to the API with a payload:
{ "inputs": "my prompt here" }The response I receive is:
HTTP error occurred: 503 Server Error: Service Unavailable for url: https://api-inference.huggingface.co/models/google/flan-t5-large
Expected Behavior:
The model should return predictions.
Actual Behavior:
I am receiving a 503 Server Error: Service Unavailable, indicating that the service is temporarily down or unavailable.
Environment:
- API endpoint:
https://api-inference.huggingface.co/models/google/flan-t5-large - Token used: 'xxxxx'
- Model:
google/flan-t5-large - Programming language: Python
- Library used:
requests
Additional Notes:
- I have verified the token and the API endpoint, and both appear to be correct.
- I have tested with other models, but this issue seems specific to
google/flan-t5-large. - I am able to reproduce the issue consistently.
Could anyone assist with resolving this issue or provide guidance on what might be causing this error?
Tags: #huggingface #api #flan-t5-large #503error