Model reference · open weights
qnli-electra is an open-weight embedding model from cross-encoder, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.
About
Cross-Encoder for SQuAD (QNLI) This model was trained using SentenceTransformers Cross-Encoder class. Training Data Given a question and paragraph, can the question be answered by the paragraph? The models have been trained on the GLUE QNLI dataset, which transformed the SQuAD dataset into an NLI task. Performance For performance results of this model, see [SBERT.net Pre-trained Cross-Encoder][https://www.sbert.net/docs/pretrainedcross-encoders.html]. Usage Pre-trained models can be used like this: Usage with Transformers AutoModel You can use the model also directly with Transformers library (without SentenceTransformers library):
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | cross-encoder |
|---|---|
| Type | Embedding models |
| Parameters (lead) | 109M |
| Context | 512 tokens |
| Variants | 1 |
| Runs with | sentence-transformers |
| Based on | google/electra-base-discriminator |
| Released | 2022-03-02 |
| Popularity | 70k downloads / month |
| Likes | 5 |
| Licence | Open weights |
How it works
Variants
Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| qnli-electra-base | 109M | BF16 | ~0.3 GB | ✓ | Weights ↗ |
Using it via the API
Once AxForge deploys qnli-electra for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (qnli-electra below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qnli-electra","input":"text to embed"}'
Licence
Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗
Explore