Run this model with HF Jobs
Run google/mt5-base 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/mt5-base. 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/mt5-base 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/mt5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/mt5-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/mt5-base") model = AutoModelForSeq2SeqLM.from_pretrained("google/mt5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
cc080d7
1
Parent(s): 9b368d6
upload all mt5-base files
Browse filesFiles changed (6)
- config.jsonAdded+26
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+1
- spiece.modelAdded
- tf_model.h5Added+3
- tokenizer_config.jsonAdded+1
1234567891011121314151617181920212223242526{ "_name_or_path": "/home/patrick/hugging_face/t5/mt5-base", "architectures": [ "T5ForConditionalGeneration" ], "d_ff": 2048, "d_kv": 64, "d_model": 768, "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": "mt5", "num_decoder_layers": 12, "num_heads": 12, "num_layers": 12, "output_past": true, "pad_token_id": 0, "relative_attention_num_buckets": 32, "tie_word_embeddings": false, "tokenizer_class": "T5Tokenizer", "vocab_size": 250112}123version https://git-lfs.github.com/spec/v1oid sha256:180573b534144580f04af026da62bf71bc976ee1b7eb311b8945e2fefde8d614size 23297351291{"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}123version https://git-lfs.github.com/spec/v1oid sha256:6162ca01474a959272fbf74b24d87b0c3fb7edb2099bdeef8953e96059c4e60bsize 23301729441{"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "extra_ids": 0, "additional_special_tokens": null, "special_tokens_map_file": "/home/patrick/.cache/torch/transformers/685ac0ca8568ec593a48b61b0a3c272beee9bc194a3c7241d15dcadb5f875e53.f76030f3ec1b96a8199b2593390c610e76ca8028ef3d24680000619ffb646276", "tokenizer_file": null, "name_or_path": "google/mt5-small"}config.jsonAdded+26
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+1
spiece.modelAdded
tf_model.h5Added+3
tokenizer_config.jsonAdded+1