Instructions to use leopiano98/LLIMONIIE_phi3-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps
- Unsloth Studio new
How to use leopiano98/LLIMONIIE_phi3-mini with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for leopiano98/LLIMONIIE_phi3-mini to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for leopiano98/LLIMONIIE_phi3-mini to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for leopiano98/LLIMONIIE_phi3-mini to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="leopiano98/LLIMONIIE_phi3-mini", max_seq_length=2048, )
LLIMONIIE: Large Language Instructed Model for Open Named Italian Information Extraction
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
π» Quick Start
Setup conda environment
Install the unsloth package following the repo guide
Clone the repository
git clone https://github.com/leonardoPiano/LLIMONIE.git
Run the generation
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]
- Developed by: leopiano98
- License: apache-2.0
- Finetuned from model : Phi-3-mini-4k-instruct-bnb-4bit
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for leopiano98/LLIMONIIE_phi3-mini
Base model
unsloth/Phi-3-mini-4k-instruct-bnb-4bit