Instructions to use xiaothung/t5-base-bt4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xiaothung/t5-base-bt4 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("xiaothung/t5-base-bt4") model = AutoModelForSeq2SeqLM.from_pretrained("xiaothung/t5-base-bt4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from xiaothung/t5-base-bt4: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/xiaothung/t5-base-bt4/resolve/main/trainer_state.json
- Command line
-
hf download hf://xiaothung/t5-base-bt4/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/xiaothung/t5-base-bt4/resolve/main/trainer_state.json
1.06 kB
| { | |
| "best_metric": 19.7323, | |
| "best_model_checkpoint": "/content/gdrive/MyDrive/FYP/Models/t5-base-bt4/checkpoint-500", | |
| "epoch": 0.43029259896729777, | |
| "eval_steps": 500, | |
| "global_step": 500, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.43, | |
| "grad_norm": 0.24075087904930115, | |
| "learning_rate": 1.7131382673551347e-05, | |
| "loss": 0.1655, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 0.43, | |
| "eval_gen_len": 8.8116, | |
| "eval_loss": 0.14601261913776398, | |
| "eval_rouge1": 19.7323, | |
| "eval_rouge2": 7.0704, | |
| "eval_rougeL": 19.3623, | |
| "eval_rougeLsum": 19.3412, | |
| "eval_runtime": 108.0017, | |
| "eval_samples_per_second": 9.583, | |
| "eval_steps_per_second": 1.204, | |
| "step": 500 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 3486, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 500, | |
| "total_flos": 2435831562240000.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |