gliner-decoder-small-v1.0

17
4
1 language
license:apache-2.0
by
knowledgator
Language Model
OTHER
New
17 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary

GLiNER is a Named Entity Recognition (NER) model capable of identifying any entity type in a zero-shot manner.

Code Examples

Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Installationbash
# until the new pip release, install from main to use the new architecture
pip install git+https://github.com/urchade/GLiNER.git
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Usagepython
from gliner import GLiNER

model = GLiNER.from_pretrained("knowledgator/gliner-decoder-small-v1.0")

text = "Hugging Face is a company that advances and democratizes artificial intelligence through open source and science."

labels = ["label"]

model.predict_entities(text, labels, threshold=0.3, num_gen_sequences=1)
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython
Performance Tipsbash
pip install cython

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.