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
Use correct `gelu` function
#5
by ybelkada HF Staff - opened
5 unmodified lines67891011121314151617185 unmodified lines"d_kv": 64,"d_model": 1024,"decoder_start_token_id": 0,"dense_act_fn": "gelu","dropout_rate": 0.1,"eos_token_id": 1,"feed_forward_proj": "gelu","initializer_factor": 1.0,"is_encoder_decoder": true,"is_gated_act": true,"layer_norm_epsilon": 1e-06,"model_type": "t5","n_positions": 512,5 unmodified lines6789101112131415165 unmodified lines"d_kv": 64,"d_model": 1024,"decoder_start_token_id": 0,"dropout_rate": 0.1,"eos_token_id": 1,"feed_forward_proj": "gated-gelu","initializer_factor": 1.0,"is_encoder_decoder": true,"layer_norm_epsilon": 1e-06,"model_type": "t5","n_positions": 512,
config.json+1-3