Add new SentenceTransformer model
Browse files- README.md +57 -56
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -12,50 +12,51 @@ tags:
|
|
| 12 |
- retrieval
|
| 13 |
- reranking
|
| 14 |
- generated_from_trainer
|
| 15 |
-
- dataset_size:
|
| 16 |
- loss:ArcFaceInBatchLoss
|
| 17 |
base_model: answerdotai/ModernBERT-large
|
| 18 |
widget:
|
| 19 |
-
- source_sentence:
|
|
|
|
| 20 |
sentences:
|
| 21 |
-
-
|
| 22 |
-
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
-
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
sentences:
|
| 28 |
-
-
|
| 29 |
-
|
| 30 |
-
-
|
| 31 |
-
|
| 32 |
-
-
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
sentences:
|
| 35 |
-
-
|
| 36 |
-
|
| 37 |
-
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
player .
|
| 41 |
-
- source_sentence: Certainly , `` Lucy was nothing like flat `` in physical form ,
|
| 42 |
-
social condition , and personality .
|
| 43 |
sentences:
|
| 44 |
-
-
|
| 45 |
-
|
| 46 |
-
-
|
| 47 |
-
|
| 48 |
-
-
|
| 49 |
-
|
| 50 |
-
- source_sentence:
|
| 51 |
-
|
| 52 |
sentences:
|
| 53 |
-
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
.
|
| 59 |
datasets:
|
| 60 |
- redis/langcache-sentencepairs-v2
|
| 61 |
pipeline_tag: sentence-similarity
|
|
@@ -155,9 +156,9 @@ from sentence_transformers import SentenceTransformer
|
|
| 155 |
model = SentenceTransformer("redis/langcache-embed-experimental")
|
| 156 |
# Run inference
|
| 157 |
sentences = [
|
| 158 |
-
'
|
| 159 |
-
'
|
| 160 |
-
'
|
| 161 |
]
|
| 162 |
embeddings = model.encode(sentences)
|
| 163 |
print(embeddings.shape)
|
|
@@ -166,9 +167,9 @@ print(embeddings.shape)
|
|
| 166 |
# Get the similarity scores for the embeddings
|
| 167 |
similarities = model.similarity(embeddings, embeddings)
|
| 168 |
print(similarities)
|
| 169 |
-
# tensor([[
|
| 170 |
-
# [0.
|
| 171 |
-
# [0.
|
| 172 |
```
|
| 173 |
|
| 174 |
<!--
|
|
@@ -234,19 +235,19 @@ You can finetune this model on your own dataset.
|
|
| 234 |
#### LangCache Sentence Pairs (all)
|
| 235 |
|
| 236 |
* Dataset: [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2)
|
| 237 |
-
* Size:
|
| 238 |
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 239 |
* Approximate statistics based on the first 1000 samples:
|
| 240 |
| | anchor | positive | negative |
|
| 241 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 242 |
| type | string | string | string |
|
| 243 |
-
| details | <ul><li>min: 8 tokens</li><li>mean: 27.
|
| 244 |
* Samples:
|
| 245 |
-
| anchor | positive
|
| 246 |
-
|
| 247 |
-
| <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code> | <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code>
|
| 248 |
-
| <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code> | <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code>
|
| 249 |
-
| <code>Turner Valley , was at the Turner Valley Bar N Ranch Airport , southwest of the Turner Valley Bar N Ranch , Alberta , Canada .</code> | <code>Turner Valley , was at
|
| 250 |
* Loss: <code>losses.ArcFaceInBatchLoss</code> with these parameters:
|
| 251 |
```json
|
| 252 |
{
|
|
@@ -261,19 +262,19 @@ You can finetune this model on your own dataset.
|
|
| 261 |
#### LangCache Sentence Pairs (all)
|
| 262 |
|
| 263 |
* Dataset: [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2)
|
| 264 |
-
* Size:
|
| 265 |
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 266 |
* Approximate statistics based on the first 1000 samples:
|
| 267 |
| | anchor | positive | negative |
|
| 268 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 269 |
| type | string | string | string |
|
| 270 |
-
| details | <ul><li>min: 8 tokens</li><li>mean: 27.
|
| 271 |
* Samples:
|
| 272 |
-
| anchor | positive
|
| 273 |
-
|
| 274 |
-
| <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code> | <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code>
|
| 275 |
-
| <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code> | <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code>
|
| 276 |
-
| <code>Turner Valley , was at the Turner Valley Bar N Ranch Airport , southwest of the Turner Valley Bar N Ranch , Alberta , Canada .</code> | <code>Turner Valley , was at
|
| 277 |
* Loss: <code>losses.ArcFaceInBatchLoss</code> with these parameters:
|
| 278 |
```json
|
| 279 |
{
|
|
|
|
| 12 |
- retrieval
|
| 13 |
- reranking
|
| 14 |
- generated_from_trainer
|
| 15 |
+
- dataset_size:9233417
|
| 16 |
- loss:ArcFaceInBatchLoss
|
| 17 |
base_model: answerdotai/ModernBERT-large
|
| 18 |
widget:
|
| 19 |
+
- source_sentence: Hayley Vaughan portrayed Ripa on the ABC daytime soap opera , ``
|
| 20 |
+
All My Children `` , between 1990 and 2002 .
|
| 21 |
sentences:
|
| 22 |
+
- Traxxpad is a music application for Sony 's PlayStation Portable published by
|
| 23 |
+
Definitive Studios and developed by Eidos Interactive .
|
| 24 |
+
- Between 1990 and 2002 , Hayley Vaughan Ripa portrayed in the ABC soap opera ``
|
| 25 |
+
All My Children `` .
|
| 26 |
+
- Between 1990 and 2002 , Ripa Hayley portrayed Vaughan in the ABC soap opera ``
|
| 27 |
+
All My Children `` .
|
| 28 |
+
- source_sentence: Olivella monilifera is a species of dwarf sea snail , small gastropod
|
| 29 |
+
mollusk in the family Olivellidae , the marine olives .
|
| 30 |
sentences:
|
| 31 |
+
- Olivella monilifera is a species of the dwarf - sea snail , small gastropod mollusk
|
| 32 |
+
in the Olivellidae family , the marine olives .
|
| 33 |
+
- He was cut by the Browns after being signed by the Bills in 2013 . He was later
|
| 34 |
+
released .
|
| 35 |
+
- Olivella monilifera is a kind of sea snail , marine gastropod mollusk in the Olivellidae
|
| 36 |
+
family , the dwarf olives .
|
| 37 |
+
- source_sentence: Hayashi said that Mackey `` is a sort of `` of the original model
|
| 38 |
+
for Tenchi .
|
| 39 |
sentences:
|
| 40 |
+
- In the summer of 2009 , Ellick shot a documentary about Malala Yousafzai .
|
| 41 |
+
- Hayashi said that Mackey is `` sort of `` the original model for Tenchi .
|
| 42 |
+
- Mackey said that Hayashi is `` sort of `` the original model for Tenchi .
|
| 43 |
+
- source_sentence: Much of the film was shot on location in Los Angeles and in nearby
|
| 44 |
+
Burbank and Glendale .
|
|
|
|
|
|
|
|
|
|
| 45 |
sentences:
|
| 46 |
+
- Much of the film was shot on location in Los Angeles and in nearby Burbank and
|
| 47 |
+
Glendale .
|
| 48 |
+
- Much of the film was shot on site in Burbank and Glendale and in the nearby Los
|
| 49 |
+
Angeles .
|
| 50 |
+
- Traxxpad is a music application for the Sony PlayStation Portable developed by
|
| 51 |
+
the Definitive Studios and published by Eidos Interactive .
|
| 52 |
+
- source_sentence: According to him , the earth is the carrier of his artistic work
|
| 53 |
+
, which is only integrated into the creative process by minimal changes .
|
| 54 |
sentences:
|
| 55 |
+
- National players are Bold players .
|
| 56 |
+
- According to him , earth is the carrier of his artistic work being integrated
|
| 57 |
+
into the creative process only by minimal changes .
|
| 58 |
+
- According to him , earth is the carrier of his creative work being integrated
|
| 59 |
+
into the artistic process only by minimal changes .
|
|
|
|
| 60 |
datasets:
|
| 61 |
- redis/langcache-sentencepairs-v2
|
| 62 |
pipeline_tag: sentence-similarity
|
|
|
|
| 156 |
model = SentenceTransformer("redis/langcache-embed-experimental")
|
| 157 |
# Run inference
|
| 158 |
sentences = [
|
| 159 |
+
'According to him , the earth is the carrier of his artistic work , which is only integrated into the creative process by minimal changes .',
|
| 160 |
+
'According to him , earth is the carrier of his artistic work being integrated into the creative process only by minimal changes .',
|
| 161 |
+
'According to him , earth is the carrier of his creative work being integrated into the artistic process only by minimal changes .',
|
| 162 |
]
|
| 163 |
embeddings = model.encode(sentences)
|
| 164 |
print(embeddings.shape)
|
|
|
|
| 167 |
# Get the similarity scores for the embeddings
|
| 168 |
similarities = model.similarity(embeddings, embeddings)
|
| 169 |
print(similarities)
|
| 170 |
+
# tensor([[1.0000, 0.9844, 0.9844],
|
| 171 |
+
# [0.9844, 0.9961, 0.9922],
|
| 172 |
+
# [0.9844, 0.9922, 0.9961]], dtype=torch.bfloat16)
|
| 173 |
```
|
| 174 |
|
| 175 |
<!--
|
|
|
|
| 235 |
#### LangCache Sentence Pairs (all)
|
| 236 |
|
| 237 |
* Dataset: [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2)
|
| 238 |
+
* Size: 126,938 training samples
|
| 239 |
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 240 |
* Approximate statistics based on the first 1000 samples:
|
| 241 |
| | anchor | positive | negative |
|
| 242 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 243 |
| type | string | string | string |
|
| 244 |
+
| details | <ul><li>min: 8 tokens</li><li>mean: 27.27 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 27.27 tokens</li><li>max: 48 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 26.54 tokens</li><li>max: 61 tokens</li></ul> |
|
| 245 |
* Samples:
|
| 246 |
+
| anchor | positive | negative |
|
| 247 |
+
|:--------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|
|
| 248 |
+
| <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code> | <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code> | <code>how can I get financial freedom as soon as possible?</code> |
|
| 249 |
+
| <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code> | <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code> | <code>The older Punts are still very much in existence today and race in the same fleets as the newer boats .</code> |
|
| 250 |
+
| <code>Turner Valley , was at the Turner Valley Bar N Ranch Airport , southwest of the Turner Valley Bar N Ranch , Alberta , Canada .</code> | <code>Turner Valley , , was located at Turner Valley Bar N Ranch Airport , southwest of Turner Valley Bar N Ranch , Alberta , Canada .</code> | <code>Turner Valley Bar N Ranch Airport , , was located at Turner Valley Bar N Ranch , southwest of Turner Valley , Alberta , Canada .</code> |
|
| 251 |
* Loss: <code>losses.ArcFaceInBatchLoss</code> with these parameters:
|
| 252 |
```json
|
| 253 |
{
|
|
|
|
| 262 |
#### LangCache Sentence Pairs (all)
|
| 263 |
|
| 264 |
* Dataset: [LangCache Sentence Pairs (all)](https://huggingface.co/datasets/redis/langcache-sentencepairs-v2)
|
| 265 |
+
* Size: 126,938 evaluation samples
|
| 266 |
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 267 |
* Approximate statistics based on the first 1000 samples:
|
| 268 |
| | anchor | positive | negative |
|
| 269 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 270 |
| type | string | string | string |
|
| 271 |
+
| details | <ul><li>min: 8 tokens</li><li>mean: 27.27 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 27.27 tokens</li><li>max: 48 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 26.54 tokens</li><li>max: 61 tokens</li></ul> |
|
| 272 |
* Samples:
|
| 273 |
+
| anchor | positive | negative |
|
| 274 |
+
|:--------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|
|
| 275 |
+
| <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code> | <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code> | <code>how can I get financial freedom as soon as possible?</code> |
|
| 276 |
+
| <code>The newer punts are still very much in existence today and run in the same fleets as the older boats .</code> | <code>The newer Punts are still very much in existence today and race in the same fleets as the older boats .</code> | <code>The older Punts are still very much in existence today and race in the same fleets as the newer boats .</code> |
|
| 277 |
+
| <code>Turner Valley , was at the Turner Valley Bar N Ranch Airport , southwest of the Turner Valley Bar N Ranch , Alberta , Canada .</code> | <code>Turner Valley , , was located at Turner Valley Bar N Ranch Airport , southwest of Turner Valley Bar N Ranch , Alberta , Canada .</code> | <code>Turner Valley Bar N Ranch Airport , , was located at Turner Valley Bar N Ranch , southwest of Turner Valley , Alberta , Canada .</code> |
|
| 278 |
* Loss: <code>losses.ArcFaceInBatchLoss</code> with these parameters:
|
| 279 |
```json
|
| 280 |
{
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 789580328
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f84ab85561ef1687cbe92711a697e05cba61d13ec58fc3ec279bd64147715b8
|
| 3 |
size 789580328
|