leopiano98 commited on
Commit
ac1c36c
·
verified ·
1 Parent(s): 65e8668

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -9
README.md CHANGED
@@ -1,22 +1,57 @@
1
  ---
2
  language:
3
  - en
 
4
  license: apache-2.0
5
  tags:
6
- - text-generation-inference
7
- - transformers
8
  - unsloth
9
- - mistral
10
- - trl
11
- base_model: unsloth/phi-3-mini-4k-instruct-bnb-4bit
 
 
 
 
12
  ---
 
13
 
14
- # Uploaded model
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  - **Developed by:** leopiano98
17
  - **License:** apache-2.0
18
- - **Finetuned from model :** unsloth/phi-3-mini-4k-instruct-bnb-4bit
19
 
20
- This mistral model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
21
 
22
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
1
  ---
2
  language:
3
  - en
4
+ - it
5
  license: apache-2.0
6
  tags:
 
 
7
  - unsloth
8
+ - llama3
9
+ - NER
10
+ - RE
11
+ - OIE
12
+ - LLIMONIIE
13
+ base_model:
14
+ - unsloth/Phi-3-mini-4k-instruct-bnb-4bit
15
  ---
16
+ # LLIMONIIE: Large Language Instructed Model for Open Named Italian Information Extraction
17
 
 
18
 
19
+ LLIMONIE generalizes IE across diverse domains without requiring input ontologies.
20
+
21
+ -
22
+ Perform three tasks:
23
+ - **Open Named Entity Recognition**
24
+
25
+ - **Open Relation Extraction**
26
+
27
+ - **Joint Entity and Relation Extraction**
28
+
29
+
30
+ ## 💻 Quick Start
31
+ ### Setup conda environment
32
+ Install the unsloth package following the repo [guide](https://github.com/unslothai/unsloth?tab=readme-ov-file#conda-installation)
33
+ ### Clone the repository
34
+ ```bash
35
+ git clone https://github.com/leonardoPiano/LLIMONIE.git
36
+ ```
37
+ ### Run the generation
38
+ ```python
39
+ from PromptTemplates.instruct_prompt_templates import NER,RE,JOINT
40
+ from LLM.Unsloth import UnslothLLM
41
+ model_path="leopiano98/LLIMONIIE_phi3-mini"
42
+
43
+ llimonie=UnslothLLM(model_path,inference=True)
44
+ task=NER
45
+ text="Alessandro Manzoni è considerato uno dei maggiori romanzieri italiani di tutti i tempi per il suo celebre romanzo I promessi sposi"
46
+ messages = [{"role": "system", "content": task},
47
+ {"role": "user", "content": text}]
48
+ output= llimonie.generate(messages, max_new_tokens=512)
49
+ #output: Alessandro Manzoni[Writer|Person]; I promessi sposi[Novel|Book]; italiani[Nationality|Ethnicity]
50
+ ```
51
  - **Developed by:** leopiano98
52
  - **License:** apache-2.0
53
+ - **Finetuned from model :** swap-uniba/LLaMAntino-3-ANITA-8B-Inst-DPO-ITA
54
 
55
+ This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
56
 
57
+ [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)