Sentence Similarity
sentence-transformers
PyTorch
Safetensors
mpnet
feature-extraction
text-embeddings-inference
Instructions to use NASA-AIML/MIKA_Custom_IR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use NASA-AIML/MIKA_Custom_IR with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NASA-AIML/MIKA_Custom_IR") sentences = [ "what components are vulnerable to fatigue crack?", "One of the first-stage compressor blades had fractued due to fatigue cracking.", "Witnesses and the fire department personnel noted fuel leaking due to a cracked fuel line.", "During periods of low visibility and night conditions, the supporting sensors sometimes conflict." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Adding ONNX file of this model
Browse filesBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [mrm8848](https://huggingface.co/mrm8848), I would like to add to this repository the model converted to ONNX.
What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)!
The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!
- onnx/config.json +25 -0
- onnx/model.onnx +3 -0
onnx/config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation_autoset": true,
|
| 3 |
+
"_name_or_path": "onnx/NASA-AIML/MIKA_Custom_IR/checkpoint-3",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"MPNetModel"
|
| 6 |
+
],
|
| 7 |
+
"attention_probs_dropout_prob": 0.1,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 3072,
|
| 15 |
+
"layer_norm_eps": 1e-05,
|
| 16 |
+
"max_position_embeddings": 514,
|
| 17 |
+
"model_type": "mpnet",
|
| 18 |
+
"num_attention_heads": 12,
|
| 19 |
+
"num_hidden_layers": 12,
|
| 20 |
+
"pad_token_id": 1,
|
| 21 |
+
"relative_attention_num_buckets": 32,
|
| 22 |
+
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.49.0",
|
| 24 |
+
"vocab_size": 30527
|
| 25 |
+
}
|
onnx/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3817d81545be05b282e9d14bce35c31cc8393b4e3d6e5b925b8f25550eb0c401
|
| 3 |
+
size 435795639
|