Downloads · 30 days
1
9% of all-time downloads
cb-ai/onarex
onarex is a token classification model from cb-ai. Use it when you need labels on individual words, such as names. It is set up for onarex. The card lists the license as mit.
Onarex is an ontology-conditioned information extraction model with exclusive NER / REL / EMB trunks and phased training (relonly → neronly → embonly).
Downloads · 30 days
1
9% of all-time downloads
All-time downloads
11
Public
Repo size
2.3 GB
Likes
0
Public
Click a slice to open those files.
.bin2.3 GB · 100%
From the Hugging Face model README
Onarex is an ontology-conditioned information extraction model with exclusive NER / REL / EMB trunks and phased training (rel_only → ner_only → emb_only).
This Hub repo contains a trained checkpoint exported via OnarexModel.save_pretrained (config.yaml + pytorch_model.bin).
| Field | Value |
|---|---|
| Encoder | answerdotai/ModernBERT-large |
| Hidden size | 1024 |
| BiLSTM | True |
| Checkpoint phase | emb_only |
| Selection metric | triple_emb_cosine = 0.957874 (step 120000) |
config.yaml — model / training / eval hyperparameterspytorch_model.bin — full state_dictbest.json — optional metadata for the best validation checkpointREADME.md — this model cardA public onarex Python package is not published yet. With the research repo installed:
from onarex.model import OnarexModel
model = OnarexModel.from_pretrained("cb-ai/onarex")
# or from a local download of this folder
# model = OnarexModel.from_pretrained("./onarex_model_emb_only_best")
Inference helpers live in the Onarex repository (inference.py); they are not bundled as a standalone Hub pipeline here.
pipeline without the Onarex codebasePhased exclusive-path training:
rel_only — REL trunk (+ encoder / BiLSTM when enabled)ner_only — NER trunk (encoder frozen)emb_only — emb trunk (encoder frozen); this upload is typically the final emb best ckptTeacher triple embeddings used during emb_only are ModernBERT-pooled description vectors (see training config data.* paths).
If you use this checkpoint, please cite the related GLiREL / ModernBERT lines of work as appropriate for your paper, and credit the Onarex project.
@misc{onarex2026,
title={Onarex: Ontology-conditioned NER, Relation Extraction, and Triple Embedding},
year={2026},
howpublished={Hugging Face model card: cb-ai/onarex},
}
Uploaded from an Onarex exclusive-path training run. Replace this section with your org / author contact as needed.