ostoveland commited on
Commit
df7b35f
1 Parent(s): 8e76524

Add new SentenceTransformer model with an openvino backend

Browse files

Hello!

*This pull request has been automatically generated from the [`push_to_hub`](https://sbert.net/docs/package_reference/sentence_transformer/SentenceTransformer.html#sentence_transformers.SentenceTransformer.push_to_hub) method from the Sentence Transformers library.*

## Full Model Architecture:
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 75, 'do_lower_case': False}) with Transformer model: OVModelForFeatureExtraction
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)
```

## Tip:
Consider testing this pull request before merging by loading the model from this PR with the `revision` argument:
```python
from sentence_transformers import SentenceTransformer

# TODO: Fill in the PR number
pr_number = 2
model = SentenceTransformer(
"ostoveland/SBertBaseMittanbudver3",
revision=f"refs/pr/{pr_number}",
backend="openvino",
)

# Verify that everything works as expected
embeddings = model.encode(["The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium."])
print(embeddings.shape)

similarities = model.similarity(embeddings, embeddings)
print(similarities)
```

config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "NbAiLab/nb-sbert-base",
3
  "architectures": [
4
  "BertModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "ostoveland/SBertBaseMittanbudver3",
3
  "architectures": [
4
  "BertModel"
5
  ],
config_sentence_transformers.json CHANGED
@@ -2,7 +2,7 @@
2
  "__version__": {
3
  "sentence_transformers": "3.3.1",
4
  "transformers": "4.46.3",
5
- "pytorch": "2.5.1+cu121"
6
  },
7
  "prompts": {},
8
  "default_prompt_name": null,
 
2
  "__version__": {
3
  "sentence_transformers": "3.3.1",
4
  "transformers": "4.46.3",
5
+ "pytorch": "2.5.1"
6
  },
7
  "prompts": {},
8
  "default_prompt_name": null,
openvino/openvino_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17a0e5cf8fc0dc6e98e5e1f2aa494b8aa3d90e406c53b26e75be67f6d8257b3d
3
+ size 709055648
openvino/openvino_model.xml ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -47,7 +47,7 @@
47
  "do_lower_case": false,
48
  "mask_token": "[MASK]",
49
  "max_length": 75,
50
- "model_max_length": 1000000000000000019884624838656,
51
  "never_split": null,
52
  "pad_to_multiple_of": null,
53
  "pad_token": "[PAD]",
 
47
  "do_lower_case": false,
48
  "mask_token": "[MASK]",
49
  "max_length": 75,
50
+ "model_max_length": 75,
51
  "never_split": null,
52
  "pad_to_multiple_of": null,
53
  "pad_token": "[PAD]",