Downloads · 30 days
0
0% of all-time downloads
leopiano98/LLIMONIIE_phi3-mini
LLIMONIIE_phi3-mini is a machine learning model from leopiano98. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
LLIMONIE generalizes IE across diverse domains without requiring input ontologies.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
55
Public
Repo size
120 MB
Likes
0
Public
Click a slice to open those files.
.safetensors120 MB · 98%
From the Hugging Face model README
LLIMONIE generalizes IE across diverse domains without requiring input ontologies.
Perform three tasks:
Open Named Entity Recognition
Open Relation Extraction
Joint Entity and Relation Extraction
Install the unsloth package following the repo guide
git clone https://github.com/leonardoPiano/LLIMONIE.git
from PromptTemplates.instruct_prompt_templates import NER,RE,JOINT
from LLM.Unsloth import UnslothLLM
model_path="leopiano98/LLIMONIIE_phi3-mini"
llimonie=UnslothLLM(model_path,inference=True)
task=NER
text="Alessandro Manzoni è considerato uno dei maggiori romanzieri italiani di tutti i tempi per il suo celebre romanzo I promessi sposi"
messages = [{"role": "system", "content": task},
{"role": "user", "content": text}]
output= llimonie.generate(messages, max_new_tokens=512)
#output: Alessandro Manzoni[Writer|Person]; I promessi sposi[Novel|Book]; italiani[Nationality|Ethnicity]
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.