xlm-roberta-large-xnli β€” Core ML

Core ML conversion of joeddav/xlm-roberta-large-xnli, a multilingual 3-class Natural Language Inference model (contradiction / neutral / entailment), built on FacebookAI/xlm-roberta-large and fine-tuned on MultiNLI + XNLI.

This repository only re-packages the original model for on-device inference on Apple platforms (Core ML). The weights and all credit belong to the original authors β€” see Attribution & license below.

Contents

Path Description
xlm-roberta-large-xnli.mlpackage/ Core ML model bundle (.mlpackage)
tokenizer/ SentencePiece tokenizer: tokenizer.json, sentencepiece.bpe.model, tokenizer_config.json, special_tokens_map.json

Conversion notes

  • Format: Core ML (.mlpackage); runs on the Apple Neural Engine / GPU / CPU through the Core ML runtime.
  • Fixed-shape input of 512 tokens: the model expects input_ids and attention_mask of length exactly 512 β€” pad or truncate accordingly.
  • Output: 3 logits in the order contradiction (0), neutral (1), entailment (2) β€” apply softmax for probabilities. (Same id2label as the original model.)
  • Format conversion only: no re-training, no change to the weights.

Attribution & license

This Core ML conversion is distributed under the same MIT license as the original model. If you use it, please credit the original authors above.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for arkilite/xlm-roberta-large-xnli-coreml

Quantized
(1)
this model

Datasets used to train arkilite/xlm-roberta-large-xnli-coreml

Paper for arkilite/xlm-roberta-large-xnli-coreml