Add verified FP32 ONNX export of rubert-tiny-bilingual-nli
Browse filesFiles changed (7)
- README.mdAdded+21
- config.jsonAdded+35
- model.onnxAdded+3
- special_tokens_map.jsonAdded+1
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+15
- vocab.txtAdded
123456789101112131415161718192021---
language:
- ru
- en
pipeline_tag: zero-shot-classification
library_name: optimum
base_model: cointegrated/rubert-tiny-bilingual-nli
tags:
- onnx
- bert
- nli
---
# RuBERT tiny bilingual NLI: ONNX export
ONNX export of [cointegrated/rubert-tiny-bilingual-nli](https://huggingface.co/cointegrated/rubert-tiny-bilingual-nli), source revision `3907306f5e5d65e281a524c536883b766c89ded2`. Original model by cointegrated. No additional training or quantization.
FP32 weights, ONNX opset 17. Inputs: int64 `input_ids`, `attention_mask`, `token_type_ids`, with dynamic batch and sequence dimensions. Output: logits for `not_entailment` (0) and `entailment` (1); apply softmax. Maximum pair length: 512 tokens.
Use actual paired BERT tokenization with separate premise and hypothesis. Concatenating strings with [SEP] does not construct the correct segment IDs. The original model card does not specify a license; this export does not assign a new license.
Contains only the ONNX graph and original tokenizer/configuration files. Exported with torch.onnx.export and checked against the source model using ONNX Runtime CPU.1234567891011121314151617181920212223242526272829303132333435{
"architectures": [
"BertForSequenceClassification"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
"emb_size": 312,
"gradient_checkpointing": false,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 312,
"id2label": {
"0": "not_entailment",
"1": "entailment"
},
"initializer_range": 0.02,
"intermediate_size": 600,
"label2id": {
"entailment": 1,
"not_entailment": 0
},
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 3,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"problem_type": "single_label_classification",
"torch_dtype": "float32",
"transformers_version": "4.11.2",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 29564
}123version https://git-lfs.github.com/spec/v1oid sha256:aeb85d1b156a0a206e7fa9d2f7bc483330e1b88775969c3ee4ef89ccf5b2b94asize 472197891{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}123456789101112131415{
"do_lower_case": false,
"unk_token": "[UNK]",
"sep_token": "[SEP]",
"pad_token": "[PAD]",
"cls_token": "[CLS]",
"mask_token": "[MASK]",
"tokenize_chinese_chars": true,
"strip_accents": null,
"model_max_length": 512,
"special_tokens_map_file": null,
"do_basic_tokenize": true,
"never_split": null,
"tokenizer_class": "BertTokenizer"
}README.mdAdded+21
config.jsonAdded+35
model.onnxAdded+3
special_tokens_map.jsonAdded+1
tokenizer.jsonAdded
tokenizer_config.jsonAdded+15
vocab.txtAdded