dleemiller / EttinX-nli-s

huggingface.co
Total runs: 3.4K
24-hour runs: 0
7-day runs: -187
30-day runs: 1.6K
Model's Last Updated: Oktober 27 2025
text-classification

Introduction of EttinX-nli-s

Model Details of EttinX-nli-s

EttinX Cross-Encoder: Natural Language Inference (NLI)

This cross encoder performs sequence classification for contradiction/neutral/entailment labels. This has drop-in compatibility with comparable sentence transformers cross encoders.

To train this model, I added teacher logits to the all-nli dataset dleemiller/all-nli-distill from the dleemiller/ModernCE-large-nli model. This significantly improves performance above standard training.

This 68m architecture is based on ModernBERT and is an excellent candidate for lightweight CPU inference .


Features
  • High performing: Achieves 87.98% and 88.67% (Micro F1) on MNLI mismatched and SNLI test.
  • Efficient architecture: Based on the Ettin-68m encoder design (68M parameters), offering faster inference speeds.
  • Extended context length: Processes sequences up to 8192 tokens, great for LLM output evals.

Performance
Model MNLI Mismatched SNLI Test Context Length # Parameters
dleemiller/ModernCE-large-nli 0.9202 0.9110 8192 395M
dleemiller/ModernCE-base-nli 0.9034 0.9025 8192 149M
cross-encoder/nli-deberta-v3-large 0.9049 0.9220 512 435M
cross-encoder/nli-deberta-v3-base 0.9004 0.9234 512 184M
dleemiller/EttinX-nli-s 0.8798 0.8967 8192 68M
cross-encoder/nli-distilroberta-base 0.8398 0.8838 512 82M
dleemiller/EttinX-nli-xs 0.8380 0.8820 8192 32M
dleemiller/EttinX-nli-xxs 0.8047 0.8695 8192 17M

Usage

To use EttinX for NLI tasks, you can load the model with the Hugging Face sentence-transformers library:

from sentence_transformers import CrossEncoder

# Load EttinX model
model = CrossEncoder("dleemiller/EttinX-nli-s")

scores = model.predict([
    ('A man is eating pizza', 'A man eats something'),
    ('A black race car starts up in front of a crowd of people.', 'A man is driving down a lonely road.')
])

# Convert scores to labels
label_mapping = ['contradiction', 'entailment', 'neutral']
labels = [label_mapping[score_max] for score_max in scores.argmax(axis=1)]
# ['entailment', 'contradiction']

Training Details
Pretraining

We initialize the `` weights.

Details:

  • Batch size: 256
  • Learning rate: 1e-4
  • Attention Dropout: attention dropout 0.1
Fine-Tuning

Fine-tuning was performed on the dleemiller/all-nli-distill dataset.

Validation Results

The model achieved the following test set micro f1 performance after fine-tuning:

  • MNLI Unmatched: 0.8798
  • SNLI: 0.8967

Model Card
  • Architecture: Ettin-encoder-68m
  • Fine-Tuning Data: dleemiller/all-nli-distill

Thank You

Thanks to the Johns Hopkins team for providing the ModernBERT models, and the Sentence Transformers team for their leadership in transformer encoder models.


Citation

If you use this model in your research, please cite:

@misc{moderncenli2025,
  author = {Miller, D. Lee},
  title = {EttinX NLI: An NLI cross encoder model},
  year = {2025},
  publisher = {Hugging Face Hub},
  url = {https://huggingface.co/dleemiller/EttinX-nli-xxs},
}

License

This model is licensed under the MIT License .

Runs of dleemiller EttinX-nli-s on huggingface.co

3.4K
Total runs
0
24-hour runs
-359
3-day runs
-187
7-day runs
1.6K
30-day runs

More Information About EttinX-nli-s huggingface.co Model

More EttinX-nli-s license Visit here:

https://choosealicense.com/licenses/mit

EttinX-nli-s huggingface.co

EttinX-nli-s huggingface.co is an AI model on huggingface.co that provides EttinX-nli-s's model effect (), which can be used instantly with this dleemiller EttinX-nli-s model. huggingface.co supports a free trial of the EttinX-nli-s model, and also provides paid use of the EttinX-nli-s. Support call EttinX-nli-s model through api, including Node.js, Python, http.

dleemiller EttinX-nli-s online free

EttinX-nli-s huggingface.co is an online trial and call api platform, which integrates EttinX-nli-s's modeling effects, including api services, and provides a free online trial of EttinX-nli-s, you can try EttinX-nli-s online for free by clicking the link below.

dleemiller EttinX-nli-s online free url in huggingface.co:

https://huggingface.co/dleemiller/EttinX-nli-s

EttinX-nli-s install

EttinX-nli-s is an open source model from GitHub that offers a free installation service, and any user can find EttinX-nli-s on GitHub to install. At the same time, huggingface.co provides the effect of EttinX-nli-s install, users can directly use EttinX-nli-s installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

EttinX-nli-s install url in huggingface.co:

https://huggingface.co/dleemiller/EttinX-nli-s

Url of EttinX-nli-s

EttinX-nli-s huggingface.co Url

Provider of EttinX-nli-s huggingface.co

dleemiller
ORGANIZATIONS

Other API from dleemiller

huggingface.co

Total runs: 27
Run Growth: -44
Growth Rate: -162.96%
Updated:März 06 2025