Views
No views yet
| Parameter | Value |
|---|---|
| Base model | bert-base-uncased |
| Model variant | late_interaction |
| Training steps | 1000 |
| Batch size | 2 |
| Learning rate | 2e-05 |
| Trainable params | 109,580,672 |
| Training time | 354.7s |
| Metric | Score |
|---|---|
| Precision | 0.8546 |
| Recall | 0.9686 |
| F1 Score | 0.9081 |
1from models.late_interaction import LateInteractionModel
2
3model = LateInteractionModel.from_pretrained("polodealvarado/late_interaction")
4
5predictions = model.predict(
6 texts=["The stock market crashed yesterday."],
7 labels=[["Finance", "Sports", "Biology", "Economy"]],
8)
9print(predictions)
10# [{"text": "...", "scores": {"Finance": 0.98, "Economy": 0.85, ...}}]