Run this model with HF Jobs
Run flax-community/code-mt5-base-batch-mix 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/flax-community/code-mt5-base-batch-mix. 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/flax-community/code-mt5-base-batch-mix 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 flax-community/code-mt5-base-batch-mix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flax-community/code-mt5-base-batch-mix with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("flax-community/code-mt5-base-batch-mix") model = AutoModelForSeq2SeqLM.from_pretrained("flax-community/code-mt5-base-batch-mix", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Saving weights and logs of step 0
Browse filesFiles changed (3)
12345678910111213141516171819202122232425262728{ "_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", "transformers_version": "4.9.0.dev0", "use_cache": true, "vocab_size": 28160}123version https://git-lfs.github.com/spec/v1oid sha256:8ed21c12420bfcbe18bd4b8d9d510fdce36fab9d31f087ccb997827f3e7f5385size 247123version https://git-lfs.github.com/spec/v1oid sha256:c9bb6f6195e1e5223ded0bf9e88ddce2183008f188d31a153a4aee65dbe9256esize 965944223config.jsonAdded+28
events.out.tfevents.1626028673.t1v-n-a220b410-w-0.16852.3.v2Added+3
flax_model.msgpackAdded+3