Downloads · 30 days
6
16% of all-time downloads
leopiano98/LLIMONIIE_llama3-8b
LLIMONIIE_llama3-8b 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
6
16% of all-time downloads
All-time downloads
37
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
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_llama3-8b"
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.