Run this model with HF Jobs
Run Sag1012/machine-translation 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/Sag1012/machine-translation. 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/Sag1012/machine-translation 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 Sag1012/machine-translation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Sag1012/machine-translation with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Sag1012/machine-translation") - Notebooks
- Google Colab
- Kaggle
Update version 4 of T5 model (#43)
Browse files- Update version 4 of T5 model (090e2de641a05ecd5573e9aac1495735f00e2777)
Co-authored-by: Hoang Trung Khai <khaihoang004@users.noreply.huggingface.co>
Files changed (9)
- T5_ver4/config.jsonAdded+61
- T5_ver4/generation_config.jsonAdded+7
- T5_ver4/model.safetensorsAdded+3
- T5_ver4/optimizer.ptAdded+3
- T5_ver4/rng_state.pthAdded+3
- T5_ver4/scheduler.ptAdded+3
- T5_ver4/trainer_state.jsonAdded+333
- T5_ver4/training_args.binAdded+3
- T5_ver4/vi_tokenizer_32128.modelAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "_name_or_path": "/kaggle/input/mt-t5finetune/pytorch/default/1", "architectures": [ "T5ForConditionalGeneration" ], "classifier_dropout": 0.0, "d_ff": 2048, "d_kv": 64, "d_model": 512, "decoder_start_token_id": 0, "dense_act_fn": "relu", "dropout_rate": 0.1, "eos_token_id": 1, "feed_forward_proj": "relu", "initializer_factor": 1.0, "is_encoder_decoder": true, "is_gated_act": false, "layer_norm_epsilon": 1e-06, "model_type": "t5", "n_positions": 512, "num_decoder_layers": 6, "num_heads": 8, "num_layers": 6, "output_past": true, "pad_token_id": 0, "relative_attention_max_distance": 128, "relative_attention_num_buckets": 32, "task_specific_params": { "summarization": { "early_stopping": true, "length_penalty": 2.0, "max_length": 200, "min_length": 30, "no_repeat_ngram_size": 3, "num_beams": 4, "prefix": "summarize: " }, "translation_en_to_de": { "early_stopping": true, "max_length": 300, "num_beams": 4, "prefix": "translate English to German: " }, "translation_en_to_fr": { "early_stopping": true, "max_length": 300, "num_beams": 4, "prefix": "translate English to French: " }, "translation_en_to_ro": { "early_stopping": true, "max_length": 300, "num_beams": 4, "prefix": "translate English to Romanian: " } }, "torch_dtype": "float32", "transformers_version": "4.46.3", "use_cache": true, "vocab_size": 32128}1234567{ "_from_model_config": true, "decoder_start_token_id": 0, "eos_token_id": 1, "pad_token_id": 0, "transformers_version": "4.46.3"}123version https://git-lfs.github.com/spec/v1oid sha256:a2863bda13ff902e8fcc667c434ad1673c30dd9500e2da98375e83050d1a37besize 242041896123version https://git-lfs.github.com/spec/v1oid sha256:190c1282d4cc2e890532451aff138b1b8af03148beec7a1d158250a2367d3b7asize 484163514123version https://git-lfs.github.com/spec/v1oid sha256:1644ca0879a0a4132791dcf4f4b3c759a066ea07d0d2c14bcea32920f2d16423size 14244123version https://git-lfs.github.com/spec/v1oid sha256:40cb0df3528ee2ee7aa5866c3fa1296b783032cfa876d4a8849b9931e6e69719size 1064123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333{ "best_metric": 0.78855299949646, "best_model_checkpoint": "./results_v1/checkpoint-3724", "epoch": 4.0, "eval_steps": 500, "global_step": 3724, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.10741138560687433, "grad_norm": 12224.1005859375, "learning_rate": 0.0004865735767991407, "loss": 0.9019, "step": 100 }, { "epoch": 0.21482277121374865, "grad_norm": 11560.216796875, "learning_rate": 0.00047314715359828143, "loss": 0.9088, "step": 200 }, { "epoch": 0.322234156820623, "grad_norm": 10229.27734375, "learning_rate": 0.0004597207303974221, "loss": 0.9132, "step": 300 }, { "epoch": 0.4296455424274973, "grad_norm": 23398.751953125, "learning_rate": 0.00044629430719656286, "loss": 0.9093, "step": 400 }, { "epoch": 0.5370569280343717, "grad_norm": 9462.7333984375, "learning_rate": 0.00043286788399570354, "loss": 0.9045, "step": 500 }, { "epoch": 0.644468313641246, "grad_norm": 11711.173828125, "learning_rate": 0.00041944146079484423, "loss": 0.9007, "step": 600 }, { "epoch": 0.7518796992481203, "grad_norm": 12136.8037109375, "learning_rate": 0.00040601503759398497, "loss": 0.896, "step": 700 }, { "epoch": 0.8592910848549946, "grad_norm": 17582.23828125, "learning_rate": 0.00039258861439312565, "loss": 0.8989, "step": 800 }, { "epoch": 0.966702470461869, "grad_norm": 10597.923828125, "learning_rate": 0.0003791621911922664, "loss": 0.8925, "step": 900 }, { "epoch": 1.0, "eval_loss": 0.8314220905303955, "eval_runtime": 18.8784, "eval_samples_per_second": 423.764, "eval_steps_per_second": 3.337, "step": 931 }, { "epoch": 1.0741138560687433, "grad_norm": 10806.78125, "learning_rate": 0.00036573576799140713, "loss": 0.8738, "step": 1000 }, { "epoch": 1.1815252416756177, "grad_norm": 11682.1171875, "learning_rate": 0.0003523093447905478, "loss": 0.8611, "step": 1100 }, { "epoch": 1.2889366272824918, "grad_norm": 14700.29296875, "learning_rate": 0.00033888292158968855, "loss": 0.8755, "step": 1200 }, { "epoch": 1.3963480128893662, "grad_norm": 11728.32421875, "learning_rate": 0.00032545649838882924, "loss": 0.8683, "step": 1300 }, { "epoch": 1.5037593984962405, "grad_norm": 12242.0029296875, "learning_rate": 0.0003120300751879699, "loss": 0.8745, "step": 1400 }, { "epoch": 1.6111707841031149, "grad_norm": 11073.6376953125, "learning_rate": 0.00029860365198711066, "loss": 0.848, "step": 1500 }, { "epoch": 1.7185821697099892, "grad_norm": 10194.4599609375, "learning_rate": 0.00028517722878625135, "loss": 0.8516, "step": 1600 }, { "epoch": 1.8259935553168636, "grad_norm": 12174.0341796875, "learning_rate": 0.00027175080558539203, "loss": 0.8597, "step": 1700 }, { "epoch": 1.933404940923738, "grad_norm": 11925.640625, "learning_rate": 0.00025832438238453277, "loss": 0.859, "step": 1800 }, { "epoch": 2.0, "eval_loss": 0.8080422878265381, "eval_runtime": 19.478, "eval_samples_per_second": 410.72, "eval_steps_per_second": 3.234, "step": 1862 }, { "epoch": 2.0408163265306123, "grad_norm": 12538.783203125, "learning_rate": 0.00024489795918367346, "loss": 0.8473, "step": 1900 }, { "epoch": 2.1482277121374866, "grad_norm": 11984.9697265625, "learning_rate": 0.00023147153598281417, "loss": 0.8413, "step": 2000 }, { "epoch": 2.255639097744361, "grad_norm": 12034.09765625, "learning_rate": 0.00021804511278195488, "loss": 0.8344, "step": 2100 }, { "epoch": 2.3630504833512354, "grad_norm": 10639.9912109375, "learning_rate": 0.00020461868958109562, "loss": 0.8344, "step": 2200 }, { "epoch": 2.4704618689581097, "grad_norm": 10943.125, "learning_rate": 0.0001911922663802363, "loss": 0.8309, "step": 2300 }, { "epoch": 2.5778732545649836, "grad_norm": 12608.966796875, "learning_rate": 0.00017776584317937702, "loss": 0.835, "step": 2400 }, { "epoch": 2.685284640171858, "grad_norm": 12656.138671875, "learning_rate": 0.00016433941997851773, "loss": 0.8338, "step": 2500 }, { "epoch": 2.7926960257787323, "grad_norm": 13147.025390625, "learning_rate": 0.00015091299677765844, "loss": 0.8361, "step": 2600 }, { "epoch": 2.9001074113856067, "grad_norm": 11629.3115234375, "learning_rate": 0.00013748657357679915, "loss": 0.8314, "step": 2700 }, { "epoch": 3.0, "eval_loss": 0.793174684047699, "eval_runtime": 18.8558, "eval_samples_per_second": 424.272, "eval_steps_per_second": 3.341, "step": 2793 }, { "epoch": 3.007518796992481, "grad_norm": 11106.541015625, "learning_rate": 0.00012406015037593984, "loss": 0.8261, "step": 2800 }, { "epoch": 3.1149301825993554, "grad_norm": 11267.052734375, "learning_rate": 0.00011063372717508056, "loss": 0.8172, "step": 2900 }, { "epoch": 3.2223415682062297, "grad_norm": 10196.681640625, "learning_rate": 9.720730397422128e-05, "loss": 0.8162, "step": 3000 }, { "epoch": 3.329752953813104, "grad_norm": 11563.2431640625, "learning_rate": 8.378088077336197e-05, "loss": 0.8181, "step": 3100 }, { "epoch": 3.4371643394199785, "grad_norm": 12632.6240234375, "learning_rate": 7.035445757250269e-05, "loss": 0.8176, "step": 3200 }, { "epoch": 3.544575725026853, "grad_norm": 13568.869140625, "learning_rate": 5.692803437164339e-05, "loss": 0.8165, "step": 3300 }, { "epoch": 3.651987110633727, "grad_norm": 12489.8134765625, "learning_rate": 4.35016111707841e-05, "loss": 0.8205, "step": 3400 }, { "epoch": 3.7593984962406015, "grad_norm": 10397.326171875, "learning_rate": 3.007518796992481e-05, "loss": 0.819, "step": 3500 }, { "epoch": 3.866809881847476, "grad_norm": 9453.00390625, "learning_rate": 1.664876476906552e-05, "loss": 0.8167, "step": 3600 }, { "epoch": 3.9742212674543502, "grad_norm": 11430.806640625, "learning_rate": 3.22234156820623e-06, "loss": 0.8097, "step": 3700 }, { "epoch": 4.0, "eval_loss": 0.78855299949646, "eval_runtime": 18.9148, "eval_samples_per_second": 422.95, "eval_steps_per_second": 3.331, "step": 3724 } ], "logging_steps": 100, "max_steps": 3724, "num_input_tokens_seen": 0, "num_train_epochs": 4, "save_steps": 500, "stateful_callbacks": { "EarlyStoppingCallback": { "args": { "early_stopping_patience": 2, "early_stopping_threshold": 0.0 }, "attributes": { "early_stopping_patience_counter": 0 } }, "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 1.6121847720443904e+16, "train_batch_size": 256, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:d475290bdaca607d453be3670a063cd0623ed70c2480b37377b40c1a7731e523size 5240123version https://git-lfs.github.com/spec/v1oid sha256:0fa3156da7d3526ca0cfe1f3c769ee3ca3c502737256934f00ed394a59389c85size 748144T5_ver4/config.jsonAdded+61
T5_ver4/generation_config.jsonAdded+7
T5_ver4/model.safetensorsAdded+3
T5_ver4/optimizer.ptAdded+3
T5_ver4/rng_state.pthAdded+3
T5_ver4/scheduler.ptAdded+3
T5_ver4/trainer_state.jsonAdded+333
T5_ver4/training_args.binAdded+3
T5_ver4/vi_tokenizer_32128.modelAdded+3