root
commited on
Commit
·
f6afb8a
1
Parent(s):
85f9579
Add Model Files
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +3 -0
- README.md +141 -3
- colbert_linear.pt +3 -0
- config.json +3 -0
- config_sentence_transformers.json +3 -0
- model.safetensors +3 -0
- modules.json +3 -0
- optimizer.pt +3 -0
- rng_state_0.pth +3 -0
- rng_state_1.pth +3 -0
- rng_state_2.pth +3 -0
- rng_state_3.pth +3 -0
- scheduler.pt +3 -0
- sentence_bert_config.json +3 -0
- sentencepiece.bpe.model +3 -0
- sparse_linear.pt +3 -0
- special_tokens_map.json +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +3 -0
- trainer_state.json +3 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13e69897522ee8255104483ed9f219465d1be3936654a54a318758738052789e
|
| 3 |
+
size 297
|
README.md
CHANGED
|
@@ -1,3 +1,141 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: sentence-transformers
|
| 3 |
+
pipeline_tag: sentence-similarity
|
| 4 |
+
tags:
|
| 5 |
+
- sentence-transformers
|
| 6 |
+
- sentence-similarity
|
| 7 |
+
- feature-extraction
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# SentenceTransformer
|
| 11 |
+
|
| 12 |
+
This is a [sentence-transformers](https://www.SBERT.net) model trained. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
### Model Description
|
| 17 |
+
- **Model Type:** Sentence Transformer
|
| 18 |
+
<!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
|
| 19 |
+
- **Maximum Sequence Length:** 8192 tokens
|
| 20 |
+
- **Output Dimensionality:** 1024 tokens
|
| 21 |
+
- **Similarity Function:** Cosine Similarity
|
| 22 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 23 |
+
<!-- - **Language:** Unknown -->
|
| 24 |
+
<!-- - **License:** Unknown -->
|
| 25 |
+
|
| 26 |
+
### Model Sources
|
| 27 |
+
|
| 28 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 29 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 30 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 31 |
+
|
| 32 |
+
### Full Model Architecture
|
| 33 |
+
|
| 34 |
+
```
|
| 35 |
+
SentenceTransformer(
|
| 36 |
+
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
|
| 37 |
+
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
| 38 |
+
(2): Normalize()
|
| 39 |
+
)
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Usage
|
| 43 |
+
|
| 44 |
+
### Direct Usage (Sentence Transformers)
|
| 45 |
+
|
| 46 |
+
First install the Sentence Transformers library:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
pip install -U sentence-transformers
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
Then you can load this model and run inference.
|
| 53 |
+
```python
|
| 54 |
+
from sentence_transformers import SentenceTransformer
|
| 55 |
+
|
| 56 |
+
# Download from the 🤗 Hub
|
| 57 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
| 58 |
+
# Run inference
|
| 59 |
+
sentences = [
|
| 60 |
+
'The weather is lovely today.',
|
| 61 |
+
"It's so sunny outside!",
|
| 62 |
+
'He drove to the stadium.',
|
| 63 |
+
]
|
| 64 |
+
embeddings = model.encode(sentences)
|
| 65 |
+
print(embeddings.shape)
|
| 66 |
+
# [3, 1024]
|
| 67 |
+
|
| 68 |
+
# Get the similarity scores for the embeddings
|
| 69 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 70 |
+
print(similarities.shape)
|
| 71 |
+
# [3, 3]
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
<!--
|
| 75 |
+
### Direct Usage (Transformers)
|
| 76 |
+
|
| 77 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 78 |
+
|
| 79 |
+
</details>
|
| 80 |
+
-->
|
| 81 |
+
|
| 82 |
+
<!--
|
| 83 |
+
### Downstream Usage (Sentence Transformers)
|
| 84 |
+
|
| 85 |
+
You can finetune this model on your own dataset.
|
| 86 |
+
|
| 87 |
+
<details><summary>Click to expand</summary>
|
| 88 |
+
|
| 89 |
+
</details>
|
| 90 |
+
-->
|
| 91 |
+
|
| 92 |
+
<!--
|
| 93 |
+
### Out-of-Scope Use
|
| 94 |
+
|
| 95 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 96 |
+
-->
|
| 97 |
+
|
| 98 |
+
<!--
|
| 99 |
+
## Bias, Risks and Limitations
|
| 100 |
+
|
| 101 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 102 |
+
-->
|
| 103 |
+
|
| 104 |
+
<!--
|
| 105 |
+
### Recommendations
|
| 106 |
+
|
| 107 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 108 |
+
-->
|
| 109 |
+
|
| 110 |
+
## Training Details
|
| 111 |
+
|
| 112 |
+
### Framework Versions
|
| 113 |
+
- Python: 3.11.9
|
| 114 |
+
- Sentence Transformers: 3.1.1
|
| 115 |
+
- Transformers: 4.45.1
|
| 116 |
+
- PyTorch: 2.4.1+cu121
|
| 117 |
+
- Accelerate: 0.34.2
|
| 118 |
+
- Datasets: 3.0.1
|
| 119 |
+
- Tokenizers: 0.20.0
|
| 120 |
+
|
| 121 |
+
## Citation
|
| 122 |
+
|
| 123 |
+
### BibTeX
|
| 124 |
+
|
| 125 |
+
<!--
|
| 126 |
+
## Glossary
|
| 127 |
+
|
| 128 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 129 |
+
-->
|
| 130 |
+
|
| 131 |
+
<!--
|
| 132 |
+
## Model Card Authors
|
| 133 |
+
|
| 134 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 135 |
+
-->
|
| 136 |
+
|
| 137 |
+
<!--
|
| 138 |
+
## Model Card Contact
|
| 139 |
+
|
| 140 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 141 |
+
-->
|
colbert_linear.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34f6bb891527710560250f0301e6543172ed75f16c0e050569d46b1a8dffe50b
|
| 3 |
+
size 4199874
|
config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13994995c2a137f66570cb24b051551bf037dcf2850ec410ca2801f9e1f5f85c
|
| 3 |
+
size 738
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:867685bac060119bdd4abad30ef2270b115838089844f208860bd89c56e55a26
|
| 3 |
+
size 201
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13c6b1e230ff5b289f7619fb8355ed8c1cdfddfe89d176af3101684501f60b50
|
| 3 |
+
size 2271064456
|
modules.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
|
| 3 |
+
size 349
|
optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3624d84d7ef5d5d1fca81abc920063ec5a1204152825f7f7d25d9384d9fbfe2
|
| 3 |
+
size 4542380629
|
rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8d1be25a1d1682078a6432d32ad0a199149a34d9cccbaa19bb99459b762d311
|
| 3 |
+
size 14960
|
rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7de94e54249d4c6938eb175dd819a089115632f2be4266fc09933e7e6f418c9
|
| 3 |
+
size 14960
|
rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecf357e0920d3078354cdeddd8709218c132c0a224402d48caf8144a3ec39343
|
| 3 |
+
size 14960
|
rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c8ec8499252b5eb577bc1aa424179b62cd7b07e8d3026975a34cba308916fa1
|
| 3 |
+
size 14960
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2a42d1e5e49cab6923bbb11ef8f1d35bbe91db7458ce2eccbd2f78139d0498a
|
| 3 |
+
size 1064
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb9b44b13c0f52a3b3685c3b1cbdea1ba8b04bea123b98f61610048940776eb1
|
| 3 |
+
size 54
|
sentencepiece.bpe.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
| 3 |
+
size 5069051
|
sparse_linear.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:56cf3c337a56a4e67aae6aa93c475bf6c4d6f569bf8c8c5246cce6759ce09480
|
| 3 |
+
size 5564
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c785abebea9ae3257b61681b4e6fd8365ceafde980c21970d001e834cf10835
|
| 3 |
+
size 964
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b74659c780d49afad7a7b9799868f75cbd3014fb6c34956e85a793028d38094a
|
| 3 |
+
size 17098251
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e4c1cc848840aeccdd763458c18dd525eb0f795c992e00ebe9c28554e7db2d4
|
| 3 |
+
size 1173
|
trainer_state.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60c7b8f99728977d6b143a2e866eef75672ec32fbbb3000fd2ad03a64a303c1f
|
| 3 |
+
size 1247
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a068a90119e1491f7ec0a85e40bcc3c5b07460c32f552a4b36dfd5da3c45a844
|
| 3 |
+
size 5560
|