Downloads · 30 days
12
11% of all-time downloads
AnirbanSaha/llama32-3b-tlink-full-finetune
llama32-3b-tlink-full-finetune is a text classification model from AnirbanSaha. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This model is a fully fine-tuned version of meta-llama/Llama-3.2-3B-Instruct for temporal relation classification (TLINK task).
Downloads · 30 days
12
11% of all-time downloads
All-time downloads
108
Public
Parameters
3.2B
6.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.4 GB · 100%
From the Hugging Face model README
This model is a fully fine-tuned version of meta-llama/Llama-3.2-3B-Instruct for temporal relation classification (TLINK task).
It predicts the temporal relationship between events in text.
Temporal Relation Classification Given a sentence, the model predicts the temporal relationship between events.
fahmidiqbal/tlink-classification| Metric | Score |
|---|---|
| Accuracy | 0.8480 |
| Macro-F1 | 0.8285 |
| Precision | 0.8327 |
| Recall | 0.8246 |
| Metric | Score |
|---|---|
| Accuracy | 0.7950 |
| Macro-F1 | 0.7973 |
| Precision | 0.8100 |
| Recall | 0.7950 |
| Class | Precision | Recall | F1-score |
|---|---|---|---|
| BEFORE | 0.7826 | 0.7200 | 0.7500 |
| AFTER | 0.6613 | 0.8200 | 0.7321 |
| OTHER | 0.8462 | 0.8800 | 0.8627 |
| NONE | 0.9500 | 0.7600 | 0.8444 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "AnirbanSaha/llama32-3b-tlink-full-finetune"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
text = "The patient developed fever before taking the medication."
inputs = tokenizer(text, return_tensors="pt", truncation=True)
outputs = model(**inputs)
pred = outputs.logits.argmax(dim=-1).item()
labels = ["BEFORE", "AFTER", "OTHER", "NONE"]
print(labels[pred])
This model is based on:
👉 meta-llama/Llama-3.2-3B-Instruct
You must request access and accept the license:
https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct
Otherwise, loading this model will fail.
Weights & Biases run: 👉 https://wandb.ai/anirbansaha002-univeristy-of-north-texas/llama32-3b-full-finetune/runs/mrdwp04g
This model was developed as part of research on:
Author: Anirban Saha Anik
Affiliation: University of North Texas
If you use this model in your research, please cite appropriately.