anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
A 154M-parameter zero-shot text classifier that scores every label you pass in one pass, for single-label, multi-label and intent tasks, including long inputs. For developers who need quick text labeling in Python.
UltraGliClass v0.1 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install "transformers>=5.20.2" "gliclass==0.1.21"
UltraGliClass v0.1 labels text against categories you name on the spot, using a compact model of roughly 150M parameters. You pass a text, a list of labels and, if you like, an instruction. It scores every label in one forward pass, so you do not need a training set for your own labels. It uses the GLiClass head on top of the UltraBERT-150M encoder.
Developers and data teams who need to label text by categories they define themselves, including cases with many labels or long inputs.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Customer support | Teams routing messages | Match a message to one of many intents | Label a banking request among dozens of intents |
| Data engineering | Pipeline builders | Tag documents with custom labels | Mark a long record as one of several decisions |
| Research | NLP researchers | Compare zero-shot classifiers on long inputs | Test choice and yes-no decisions at 8,192 tokens |
You can skip it if you need a model for languages other than English, since the card lists English only.
| Use case | Who | What they get back |
|---|---|---|
| Single-label classification | Developers | One best label for a text |
| Multi-label classification | Data teams | A score for every label you listed |
| Intent detection with many labels | Support teams | Scores across dozens or hundreds of intents |
| Long decisions | Analysts | Choice, yes-no or score calls over long inputs |
You need Python and the two packages at the versions the card used for training and evaluation. Transformers 5.20 and later supports the encoder natively, so no trust_remote_code is needed.
pip install "transformers>=5.20.2" "gliclass==0.1.21"
pip install -U huggingface_hub hf download Srimon12/ultragliclass-v0.1
Load the model and the tokenizer, then build a zero-shot classification pipeline. The pipeline takes one text, your candidate labels as strings, and an instruction if you want one.
import torch from gliclass import GLiClassModel, ZeroShotClassificationPipeline from transformers import AutoTokenizer repo = "Srimon12/ultragliclass-v0.1" model = GLiClassModel.from_pretrained(repo) tokenizer = AutoTokenizer.from_pretrained(repo, add_prefix_space=False) # trained without a prefix space
| Tool | What it does |
|---|---|
| GLiClassModel | Loads the classifier weights |
| AutoTokenizer | Loads the tokenizer, with add_prefix_space set to False |
| ZeroShotClassificationPipeline | Scores each label for a text in one pass |
You pass the text "My card was stolen, please stop it" with the labels lost card, balance enquiry and transfer. The pipeline returns a score for each label, and you take the highest one as the intent.
If you are new, think of it as sorting text into boxes you name yourself. Start with two or three short labels and a few example sentences before you try a long list.
For experts, training ran in three stages. The last stage used inputs as long as 8,192 tokens and as many as 256 labels. The encoder supports 32,768 positions, but nothing beyond 8,192 tokens was tested. The trade-off is that it trails gliclass-base-v3.0 on a few sets such as sst5 and 20 Newsgroups.
A 154M-parameter zero-shot text classifier that scores every label you pass in one pass, for single-label, multi-label and intent tasks, including long inputs. For developers who need quick text labeling in Python.
Made by Srimon12 on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: UltraGliClass v0.1 labels text against categories you name on the spot, using a compact model of roughly 150M parameters. You pass a text, a list of labels and, if you like, an instruction. It scores every label in one forward pass, so you do not need a training set for your own labels. It uses the GLiClass head on top of the UltraBERT-150M encoder.
Who it suits: Developers and data teams who need to label text by categories they define themselves, including cases with many labels or long inputs.
Industry | Who uses it | How they use it | Example
Customer support | Teams routing messages | Match a message to one of many intents | Label a banking request among dozens of intents
Data engineering | Pipeline builders | Tag documents with custom labels | Mark a long record as one of several decisions
Research | NLP researchers | Compare zero-shot classifiers on long inputs | Test choice and yes-no decisions at 8,192 tokens
You can skip it if you need a model for languages other than English, since the card lists English only.
Where to use it:
Use case | Who | What they get back
Single-label classification | Developers | One best label for a text
Multi-label classification | Data teams | A score for every label you listed
Intent detection with many labels | Support teams | Scores across dozens or hundreds of intents
Long decisions | Analysts | Choice, yes-no or score calls over long inputs
How to set it up: You need Python and the two packages at the versions the card used for training and evaluation. Transformers 5.20 and later supports the encoder natively, so no trust_remote_code is needed.
pip install "transformers>=5.20.2" "gliclass==0.1.21"
pip install -U huggingface_hub
hf download Srimon12/ultragliclass-v0.1
How to use it: Load the model and the tokenizer, then build a zero-shot classification pipeline. The pipeline takes one text, your candidate labels as strings, and an instruction if you want one.
import torch
from gliclass import GLiClassModel, ZeroShotClassificationPipeline
from transformers import AutoTokenizer
repo = "Srimon12/ultragliclass-v0.1"
model = GLiClassModel.from_pretrained(repo)
tokenizer = AutoTokenizer.from_pretrained(repo, add_prefix_space=False) # trained without a prefix space
Tool | What it does
GLiClassModel | Loads the classifier weights
AutoTokenizer | Loads the tokenizer, with add_prefix_space set to False
ZeroShotClassificationPipeline | Scores each label for a text in one pass
Example: You pass the text "My card was stolen, please stop it" with the labels lost card, balance enquiry and transfer. The pipeline returns a score for each label, and you take the highest one as the intent.
For newcomers and experts: If you are new, think of it as sorting text into boxes you name yourself. Start with two or three short labels and a few example sentences before you try a long list.
For experts, training ran in three stages. The last stage used inputs as long as 8,192 tokens and as many as 256 labels. The encoder supports 32,768 positions, but nothing beyond 8,192 tokens was tested. The trade-off is that it trails gliclass-base-v3.0 on a few sets such as sst5 and 20 Newsgroups.
Text, labels and optional instruction
UltraBERT encoder with GLiClass head
One forward pass
A score for every label
Good to know:
Title: Average macro-F1 on the 14-set zero-shot suite
UltraGliClass v0.1: 0.688
gliclass-base-v3.0: 0.673
gliclass-modern-base-v3.0: 0.558
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download Srimon12/ultragliclass-v0.1
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| UltraGliClass v0.1 This page | 59 | 4 | 154M | apache-2.0 | |
| jevos-v4Shares zero-shot-classification · text-classification · decision-model | 1,475 | 22 | 882M | mit | |
| UltraBERT-380MShares ultrabert · long-context · safetensors | 15,830 | 82 | 430M | apache-2.0 | |
| Ru-JevShares zero-shot-classification · text-classification · safetensors | 403 | 2 | 307M | mit | |
| d3-flashShares zero-shot-classification · decision-model · safetensors | 103,577 | 114 | 8.4B | apache-2.0 | |
| d3-miniShares zero-shot-classification · decision-model · safetensors | 53,115 | 75 | 4.5B | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.