Downloads · 30 days
7
5% of all-time downloads
Abinaya/phi-1_5-finetuned-news-events
phi-1_5-finetuned-news-events is a machine learning model from Abinaya. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
7
5% of all-time downloads
All-time downloads
129
Public
Repo size
353 MB
Likes
0
Public
Click a slice to open those files.
.safetensors44.1 MB · 78%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/phi-1_5 on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Abinaya/phi-1_5-finetuned-news-events", trust_remote_code=True, torch_dtype=torch.float32)
tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-1_5", trust_remote_code=True)
And test
inputs = tokenizer([f"extract events from news.\n News: {test_data[0]['text']}"], return_tensors="pt", return_attention_mask=False)
outputs = model.generate(**inputs, max_length=512)
text = tokenizer.batch_decode(outputs)[0]
print(text)