Instructions to use matthewleechen/sentence_focus_group_parliament with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use matthewleechen/sentence_focus_group_parliament with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="matthewleechen/sentence_focus_group_parliament")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("matthewleechen/sentence_focus_group_parliament") model = AutoModelForSequenceClassification.from_pretrained("matthewleechen/sentence_focus_group_parliament", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Evaluation: {'eval_loss': 0.350946843624115, 'eval_accuracy': 0.9, 'eval_precision': 0.9, 'eval_recall': 0.9, 'eval_f1': 0.9, 'eval_runtime': 0.2432, 'eval_samples_per_second': 246.717, 'eval_steps_per_second': 4.112}
Batch size: 128
lr = 5.5e-5
Model = 'roberta-base'
- Downloads last month
- 9