Token Classification
Transformers
Safetensors
longformer
Generated from Trainer
Eval Results (legacy)
Instructions to use Theoreticallyhugo/longformer-spans with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Theoreticallyhugo/longformer-spans with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Theoreticallyhugo/longformer-spans")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Theoreticallyhugo/longformer-spans") model = AutoModelForTokenClassification.from_pretrained("Theoreticallyhugo/longformer-spans", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 1.0, | |
| "eval_steps": 500, | |
| "global_step": 41, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "eval_B": { | |
| "f1-score": 0.5721362229102167, | |
| "precision": 0.8076923076923077, | |
| "recall": 0.4429530201342282, | |
| "support": 1043.0 | |
| }, | |
| "eval_I": { | |
| "f1-score": 0.927966217883682, | |
| "precision": 0.8850358282336942, | |
| "recall": 0.9752737752161383, | |
| "support": 17350.0 | |
| }, | |
| "eval_O": { | |
| "f1-score": 0.864171621779177, | |
| "precision": 0.9349142280524723, | |
| "recall": 0.8033817472360719, | |
| "support": 9226.0 | |
| }, | |
| "eval_accuracy": 0.8977515478474963, | |
| "eval_loss": 0.29473039507865906, | |
| "eval_macro avg": { | |
| "f1-score": 0.7880913541910252, | |
| "precision": 0.8758807879928246, | |
| "recall": 0.7405361808621462, | |
| "support": 27619.0 | |
| }, | |
| "eval_runtime": 1.3384, | |
| "eval_samples_per_second": 59.772, | |
| "eval_steps_per_second": 7.472, | |
| "eval_weighted avg": { | |
| "f1-score": 0.8932184128068332, | |
| "precision": 0.8987766886849552, | |
| "recall": 0.8977515478474963, | |
| "support": 27619.0 | |
| }, | |
| "step": 41 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 656, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 16, | |
| "save_steps": 500, | |
| "total_flos": 143786652735600.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |