code added
Browse filesYou can use the model to detect events from any news data as
```
from peft import PeftModel
from transformers import AutoModelForCausalLM
import torch
model = AutoModelForCausalLM.from_pretrained("microsoft/phi-1_5", trust_remote_code=True, torch_dtype=torch.float32)
peft_model = PeftModel.from_pretrained(model, "Abinaya/phi-1_5-finetuned-news-events", from_transformers=True)
model = peft_model.merge_and_unload()
model
```