Run this model with HF Jobs
Run casualprogrammer/shadow_mbart 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/casualprogrammer/shadow_mbart. 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/casualprogrammer/shadow_mbart 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 casualprogrammer/shadow_mbart with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use casualprogrammer/shadow_mbart with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("facebook/mbart-large-50") model = PeftModel.from_pretrained(base_model, "casualprogrammer/shadow_mbart") - Transformers
How to use casualprogrammer/shadow_mbart with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("casualprogrammer/shadow_mbart") model = AutoModelForSeq2SeqLM.from_pretrained("casualprogrammer/shadow_mbart", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-10498/trainer_state.json from casualprogrammer/shadow_mbart: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/casualprogrammer/shadow_mbart/resolve/main/checkpoint-10498/trainer_state.json
- Command line
-
hf download hf://casualprogrammer/shadow_mbart/checkpoint-10498/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/casualprogrammer/shadow_mbart/resolve/main/checkpoint-10498/trainer_state.json
1.92 kB
| { | |
| "best_global_step": 10498, | |
| "best_metric": 4.745133399963379, | |
| "best_model_checkpoint": "./output/mbart-large-first/checkpoint-10498", | |
| "epoch": 2.0, | |
| "eval_steps": 500, | |
| "global_step": 10498, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "grad_norm": 2.2508127689361572, | |
| "learning_rate": 2.1358242354377162e-05, | |
| "loss": 5.126435169198895, | |
| "step": 5249 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_loss": 4.782848834991455, | |
| "eval_rouge1": 0.2626519199005293, | |
| "eval_rouge2": 0.11815344657319395, | |
| "eval_rougeL": 0.20149220585189942, | |
| "eval_rougeLsum": 0.20168022656710616, | |
| "eval_runtime": 950.7747, | |
| "eval_samples_per_second": 4.129, | |
| "eval_steps_per_second": 4.129, | |
| "step": 5249 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "grad_norm": 3.800706148147583, | |
| "learning_rate": 1.0680138333220317e-05, | |
| "loss": 4.756629238902648, | |
| "step": 10498 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_loss": 4.745133399963379, | |
| "eval_rouge1": 0.2812791287016354, | |
| "eval_rouge2": 0.13410717394395671, | |
| "eval_rougeL": 0.22017424943243102, | |
| "eval_rougeLsum": 0.22024249247836936, | |
| "eval_runtime": 1136.965, | |
| "eval_samples_per_second": 3.453, | |
| "eval_steps_per_second": 3.453, | |
| "step": 10498 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 15747, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 1.3984655533827686e+17, | |
| "train_batch_size": 1, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |