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
Upload model finetune MarianMT - ver1
Browse filesFiles changed (8)
- MarianMT/config.jsonAdded+56
- MarianMT/generation_config.jsonAdded+16
- MarianMT/model.safetensorsAdded+3
- MarianMT/optimizer.ptAdded+3
- MarianMT/rng_state.pthAdded+3
- MarianMT/scheduler.ptAdded+3
- MarianMT/trainer_state.jsonAdded+168
- MarianMT/training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "_name_or_path": "Helsinki-NLP/opus-mt-en-vi", "activation_dropout": 0.0, "activation_function": "swish", "add_bias_logits": false, "add_final_layer_norm": false, "architectures": [ "MarianMTModel" ], "attention_dropout": 0.0, "bos_token_id": 0, "classif_dropout": 0.0, "classifier_dropout": 0.0, "d_model": 512, "decoder_attention_heads": 8, "decoder_ffn_dim": 2048, "decoder_layerdrop": 0.0, "decoder_layers": 6, "decoder_start_token_id": 53684, "decoder_vocab_size": 53685, "dropout": 0.1, "encoder_attention_heads": 8, "encoder_ffn_dim": 2048, "encoder_layerdrop": 0.0, "encoder_layers": 6, "eos_token_id": 0, "extra_pos_embeddings": 53685, "forced_eos_token_id": 0, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2" }, "init_std": 0.02, "is_encoder_decoder": true, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2 }, "max_length": null, "max_position_embeddings": 512, "model_type": "marian", "normalize_before": false, "normalize_embedding": false, "num_beams": null, "num_hidden_layers": 6, "pad_token_id": 53684, "scale_embedding": true, "share_encoder_decoder_embeddings": true, "static_position_embeddings": true, "torch_dtype": "float32", "transformers_version": "4.46.3", "use_cache": true, "vocab_size": 53685}12345678910111213141516{ "bad_words_ids": [ [ 53684 ] ], "bos_token_id": 0, "decoder_start_token_id": 53684, "eos_token_id": 0, "forced_eos_token_id": 0, "max_length": 512, "num_beams": 4, "pad_token_id": 53684, "renormalize_logits": true, "transformers_version": "4.46.3"}123version https://git-lfs.github.com/spec/v1oid sha256:7ff66be42b5c739bcce500ed364e8ddc19428a432660e6c57ba5b247844d8d21size 286744660123version https://git-lfs.github.com/spec/v1oid sha256:2a0b621c760ba933a9c48ee1f96cc3fc8c9d77e23b4e650f3607251d4efb1476size 573213242123version https://git-lfs.github.com/spec/v1oid sha256:2cdc831de453ce7358217699e19f2b9b2a46abb1fe2c2d456532cc183559e3ccsize 14244123version https://git-lfs.github.com/spec/v1oid sha256:c26d2fddec2567544b401f62d9f42c610aa12b3e5768cb59a77e9ae328a9aff6size 1064123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168{ "best_metric": null, "best_model_checkpoint": null, "epoch": 1.0, "eval_steps": 500, "global_step": 9307, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.05372300419039433, "grad_norm": 2.991044759750366, "learning_rate": 4.7313849790480286e-05, "loss": 1.8861, "step": 500 }, { "epoch": 0.10744600838078866, "grad_norm": 5.196695804595947, "learning_rate": 4.462769958096057e-05, "loss": 1.7948, "step": 1000 }, { "epoch": 0.161169012571183, "grad_norm": 3.814988136291504, "learning_rate": 4.194154937144085e-05, "loss": 1.7804, "step": 1500 }, { "epoch": 0.21489201676157732, "grad_norm": 2.7339048385620117, "learning_rate": 3.9255399161921137e-05, "loss": 1.747, "step": 2000 }, { "epoch": 0.26861502095197165, "grad_norm": 3.035710096359253, "learning_rate": 3.656924895240142e-05, "loss": 1.721, "step": 2500 }, { "epoch": 0.322338025142366, "grad_norm": 2.720536708831787, "learning_rate": 3.3883098742881704e-05, "loss": 1.7191, "step": 3000 }, { "epoch": 0.3760610293327603, "grad_norm": 3.523932695388794, "learning_rate": 3.119694853336199e-05, "loss": 1.7057, "step": 3500 }, { "epoch": 0.42978403352315464, "grad_norm": 2.8171215057373047, "learning_rate": 2.851079832384227e-05, "loss": 1.7023, "step": 4000 }, { "epoch": 0.4835070377135489, "grad_norm": 3.2410666942596436, "learning_rate": 2.5824648114322554e-05, "loss": 1.6839, "step": 4500 }, { "epoch": 0.5372300419039433, "grad_norm": 2.8419201374053955, "learning_rate": 2.3138497904802838e-05, "loss": 1.6678, "step": 5000 }, { "epoch": 0.5909530460943376, "grad_norm": 3.81278657913208, "learning_rate": 2.045234769528312e-05, "loss": 1.6508, "step": 5500 }, { "epoch": 0.644676050284732, "grad_norm": 3.6869781017303467, "learning_rate": 1.7766197485763405e-05, "loss": 1.6397, "step": 6000 }, { "epoch": 0.6983990544751263, "grad_norm": 3.0194380283355713, "learning_rate": 1.5080047276243688e-05, "loss": 1.6355, "step": 6500 }, { "epoch": 0.7521220586655206, "grad_norm": 3.7461318969726562, "learning_rate": 1.2393897066723972e-05, "loss": 1.6324, "step": 7000 }, { "epoch": 0.805845062855915, "grad_norm": 2.7630088329315186, "learning_rate": 9.707746857204256e-06, "loss": 1.6115, "step": 7500 }, { "epoch": 0.8595680670463093, "grad_norm": 3.0207743644714355, "learning_rate": 7.021596647684539e-06, "loss": 1.6415, "step": 8000 }, { "epoch": 0.9132910712367036, "grad_norm": 2.8768997192382812, "learning_rate": 4.335446438164823e-06, "loss": 1.6103, "step": 8500 }, { "epoch": 0.9670140754270978, "grad_norm": 2.9209845066070557, "learning_rate": 1.6492962286451057e-06, "loss": 1.6273, "step": 9000 } ], "logging_steps": 500, "max_steps": 9307, "num_input_tokens_seen": 0, "num_train_epochs": 1, "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": 5047449588596736.0, "train_batch_size": 32, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:a95e2f8c6939482b26b946f678aeabef2b773040cfa2965e756a46de2b067669size 5432MarianMT/config.jsonAdded+56
MarianMT/generation_config.jsonAdded+16
MarianMT/model.safetensorsAdded+3
MarianMT/optimizer.ptAdded+3
MarianMT/rng_state.pthAdded+3
MarianMT/scheduler.ptAdded+3
MarianMT/trainer_state.jsonAdded+168
MarianMT/training_args.binAdded+3