Entity Recognition with Fine-Tuned LLaMA 2 7B
414 Pulls Updated 11 months ago
Updated 11 months ago
11 months ago
21d93ae73fcd · 4.2GB
model
archllama
·
parameters6.74B
·
quantizationQ4_1
4.2GB
template
A virtual assistant answers questions from a user based on the provided text.
USER: Text: {{ .Syste
198B
Readme
UniversalNER
UniversalNER is a LLaMA 2 7B model fine tuned with UniversalNER data for Entity Extraction tasks.
This repository is the port of the Universal-NER/UniNER-7B-type from HuggingFace using llama.cpp with no changes made except q4_1
quantization.
CLI
Open the terminal and run ollama run zeffmuks/universal-ner
Example
>>> Alex, Jake and Charlie walk into a bar. People
["Alex", "Jake", "Charlie"]
>>> Alex, Jake and Charlie walk into a bar. Women
["Charlie"]
>>> Alex, Jake and Charlie walk into a bar Women
["Charlie"]
>>> Alex, Jake and Charlie walk into a bar Places
["bar"]
Make sure to write the entity that you want to extract at the end of your prompt
Output:
["Amazon", "Blue Origin"]
Memory requirements
- 7b models generally require at least 8GB of RAM
References
UniversalNER: Targeted Distillation from Large Language Models for Open Named Entity Recognition