Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:333
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use WealthFromAI/empire-embed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use WealthFromAI/empire-embed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("WealthFromAI/empire-embed") sentences = [ "brain scan", "Full WordPress Site Health Audit. Check plugins — installed, active, and update status command Verify SEO configuration command Test page speed with Lighthouse command Security check — WordFence scan and login protection check Test REST API connectivity and credentials command Check Google Search Console for crawl errors and ranking prompt. Tags: wordpress, audit, seo, security, performance, plugins, health", "Bulk Article Creation for a Site. Research topics and identify content gaps command Generate content outlines and briefs command Write content using ZimmWriter or scripts prompt Generate featured images for all articles command Publish articles and set featured images command. Tags: content, articles, bulk, wordpress, seo, publishing, zimmwriter", "Run EMPIRE-BRAIN Scan and Intelligence Cycle. Run full empire brain scan command Generate intelligence briefing command Check brain stats and performance metrics command Run evolution cycle command Verify Sentinel service monitoring status command. Tags: empire, brain, scan, intelligence, monitoring, evolution, briefing" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Push Phase 3 empire-embed sentence transformer
Browse files- 1_Pooling/config.json +10 -0
- README.md +413 -0
- config.json +30 -0
- config_sentence_transformers.json +14 -0
- model.safetensors +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- tokenizer.json +0 -0
- tokenizer_config.json +23 -0
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"word_embedding_dimension": 384,
|
| 3 |
+
"pooling_mode_cls_token": false,
|
| 4 |
+
"pooling_mode_mean_tokens": true,
|
| 5 |
+
"pooling_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- dense
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
- dataset_size:333
|
| 9 |
+
- loss:CosineSimilarityLoss
|
| 10 |
+
base_model: sentence-transformers/all-MiniLM-L6-v2
|
| 11 |
+
widget:
|
| 12 |
+
- source_sentence: brain scan
|
| 13 |
+
sentences:
|
| 14 |
+
- 'Full WordPress Site Health Audit. Check plugins — installed, active, and update
|
| 15 |
+
status command Verify SEO configuration command Test page speed with Lighthouse
|
| 16 |
+
command Security check — WordFence scan and login protection check Test REST API
|
| 17 |
+
connectivity and credentials command Check Google Search Console for crawl errors
|
| 18 |
+
and ranking prompt. Tags: wordpress, audit, seo, security, performance, plugins,
|
| 19 |
+
health'
|
| 20 |
+
- 'Bulk Article Creation for a Site. Research topics and identify content gaps command
|
| 21 |
+
Generate content outlines and briefs command Write content using ZimmWriter or
|
| 22 |
+
scripts prompt Generate featured images for all articles command Publish articles
|
| 23 |
+
and set featured images command. Tags: content, articles, bulk, wordpress, seo,
|
| 24 |
+
publishing, zimmwriter'
|
| 25 |
+
- 'Run EMPIRE-BRAIN Scan and Intelligence Cycle. Run full empire brain scan command
|
| 26 |
+
Generate intelligence briefing command Check brain stats and performance metrics
|
| 27 |
+
command Run evolution cycle command Verify Sentinel service monitoring status
|
| 28 |
+
command. Tags: empire, brain, scan, intelligence, monitoring, evolution, briefing'
|
| 29 |
+
- source_sentence: check vps
|
| 30 |
+
sentences:
|
| 31 |
+
- 'Cross-Site Internal Linking Strategy. Identify cluster and linking opportunities
|
| 32 |
+
check Find matching content between cluster sites command Generate and inject
|
| 33 |
+
cross-links command Verify and monitor link health command. Tags: seo, internal-links,
|
| 34 |
+
cross-site, clusters, link-whisper, revenue'
|
| 35 |
+
- 'Full WordPress Site Health Audit. Check plugins — installed, active, and update
|
| 36 |
+
status command Verify SEO configuration command Test page speed with Lighthouse
|
| 37 |
+
command Security check — WordFence scan and login protection check Test REST API
|
| 38 |
+
connectivity and credentials command Check Google Search Console for crawl errors
|
| 39 |
+
and ranking prompt. Tags: wordpress, audit, seo, security, performance, plugins,
|
| 40 |
+
health'
|
| 41 |
+
- 'Full WordPress Site Health Audit. Check plugins — installed, active, and update
|
| 42 |
+
status command Verify SEO configuration command Test page speed with Lighthouse
|
| 43 |
+
command Security check — WordFence scan and login protection check Test REST API
|
| 44 |
+
connectivity and credentials command Check Google Search Console for crawl errors
|
| 45 |
+
and ranking prompt. Tags: wordpress, audit, seo, security, performance, plugins,
|
| 46 |
+
health'
|
| 47 |
+
- source_sentence: performance optim
|
| 48 |
+
sentences:
|
| 49 |
+
- 'Run EMPIRE-BRAIN Scan and Intelligence Cycle. Run full empire brain scan command
|
| 50 |
+
Generate intelligence briefing command Check brain stats and performance metrics
|
| 51 |
+
command Run evolution cycle command Verify Sentinel service monitoring status
|
| 52 |
+
command. Tags: empire, brain, scan, intelligence, monitoring, evolution, briefing'
|
| 53 |
+
- 'Site Speed & Core Web Vitals Optimization. Run Lighthouse audit command Configure
|
| 54 |
+
LiteSpeed Cache (all sites use it) command Image optimization check Font and render-blocking
|
| 55 |
+
resource optimization check Verify improvements and monitor command. Tags: seo,
|
| 56 |
+
speed, performance, core-web-vitals, litespeed, images, caching'
|
| 57 |
+
- 'WordPress Plugin Deployment to Sites. Check if plugin is available on WorldPressIT
|
| 58 |
+
check Install via WordPress REST API or WP-CLI command Configure plugin settings
|
| 59 |
+
prompt Verify no conflicts with existing plugins check Deploy fleet-wide if applicable
|
| 60 |
+
prompt. Tags: wordpress, plugin, deploy, fleet'
|
| 61 |
+
- source_sentence: make pinterest pin
|
| 62 |
+
sentences:
|
| 63 |
+
- 'Generate Article Featured Images. Run article_images_pipeline.py with correct
|
| 64 |
+
arguments command Verify the featured image was set check. Tags: content, images,
|
| 65 |
+
wordpress, featured-image'
|
| 66 |
+
- 'Social Media Post Generation & Scheduling. Generate platform-specific images
|
| 67 |
+
command Write platform-specific copy prompt Schedule or post via automation command.
|
| 68 |
+
Tags: content, social, pinterest, instagram, facebook, twitter, scheduling'
|
| 69 |
+
- 'Bootstrap a New Empire Project. Create project directory and initialize git command
|
| 70 |
+
Create PROJECT_DNA.md command Create CLAUDE.md with project-specific config prompt
|
| 71 |
+
Set up Python environment command Create initial git commit and push to GitHub
|
| 72 |
+
command Register project in EMPIRE-BRAIN command. Tags: empire, project, bootstrap,
|
| 73 |
+
setup, new'
|
| 74 |
+
- source_sentence: batch articles
|
| 75 |
+
sentences:
|
| 76 |
+
- 'Bulk Article Creation for a Site. Research topics and identify content gaps command
|
| 77 |
+
Generate content outlines and briefs command Write content using ZimmWriter or
|
| 78 |
+
scripts prompt Generate featured images for all articles command Publish articles
|
| 79 |
+
and set featured images command. Tags: content, articles, bulk, wordpress, seo,
|
| 80 |
+
publishing, zimmwriter'
|
| 81 |
+
- 'Site Speed & Core Web Vitals Optimization. Run Lighthouse audit command Configure
|
| 82 |
+
LiteSpeed Cache (all sites use it) command Image optimization check Font and render-blocking
|
| 83 |
+
resource optimization check Verify improvements and monitor command. Tags: seo,
|
| 84 |
+
speed, performance, core-web-vitals, litespeed, images, caching'
|
| 85 |
+
- 'SSL Certificate & Domain Management. Check domain/SSL status via Hostinger command
|
| 86 |
+
Manage DNS records command SSL certificate management manual Domain security audit
|
| 87 |
+
command. Tags: ssl, domain, certificate, dns, hostinger, renewal'
|
| 88 |
+
pipeline_tag: sentence-similarity
|
| 89 |
+
library_name: sentence-transformers
|
| 90 |
+
metrics:
|
| 91 |
+
- pearson_cosine
|
| 92 |
+
- spearman_cosine
|
| 93 |
+
model-index:
|
| 94 |
+
- name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
|
| 95 |
+
results:
|
| 96 |
+
- task:
|
| 97 |
+
type: semantic-similarity
|
| 98 |
+
name: Semantic Similarity
|
| 99 |
+
dataset:
|
| 100 |
+
name: empire eval
|
| 101 |
+
type: empire-eval
|
| 102 |
+
metrics:
|
| 103 |
+
- type: pearson_cosine
|
| 104 |
+
value: 0.5531234570199464
|
| 105 |
+
name: Pearson Cosine
|
| 106 |
+
- type: spearman_cosine
|
| 107 |
+
value: 0.5320495924169611
|
| 108 |
+
name: Spearman Cosine
|
| 109 |
+
---
|
| 110 |
+
|
| 111 |
+
# SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
|
| 112 |
+
|
| 113 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
| 114 |
+
|
| 115 |
+
## Model Details
|
| 116 |
+
|
| 117 |
+
### Model Description
|
| 118 |
+
- **Model Type:** Sentence Transformer
|
| 119 |
+
- **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
|
| 120 |
+
- **Maximum Sequence Length:** 256 tokens
|
| 121 |
+
- **Output Dimensionality:** 384 dimensions
|
| 122 |
+
- **Similarity Function:** Cosine Similarity
|
| 123 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 124 |
+
<!-- - **Language:** Unknown -->
|
| 125 |
+
<!-- - **License:** Unknown -->
|
| 126 |
+
|
| 127 |
+
### Model Sources
|
| 128 |
+
|
| 129 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 130 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 131 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 132 |
+
|
| 133 |
+
### Full Model Architecture
|
| 134 |
+
|
| 135 |
+
```
|
| 136 |
+
SentenceTransformer(
|
| 137 |
+
(0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
|
| 138 |
+
(1): Pooling({'word_embedding_dimension': 384, '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})
|
| 139 |
+
(2): Normalize()
|
| 140 |
+
)
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
## Usage
|
| 144 |
+
|
| 145 |
+
### Direct Usage (Sentence Transformers)
|
| 146 |
+
|
| 147 |
+
First install the Sentence Transformers library:
|
| 148 |
+
|
| 149 |
+
```bash
|
| 150 |
+
pip install -U sentence-transformers
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
Then you can load this model and run inference.
|
| 154 |
+
```python
|
| 155 |
+
from sentence_transformers import SentenceTransformer
|
| 156 |
+
|
| 157 |
+
# Download from the 🤗 Hub
|
| 158 |
+
model = SentenceTransformer("WealthFromAI/empire-embed")
|
| 159 |
+
# Run inference
|
| 160 |
+
sentences = [
|
| 161 |
+
'batch articles',
|
| 162 |
+
'Bulk Article Creation for a Site. Research topics and identify content gaps command Generate content outlines and briefs command Write content using ZimmWriter or scripts prompt Generate featured images for all articles command Publish articles and set featured images command. Tags: content, articles, bulk, wordpress, seo, publishing, zimmwriter',
|
| 163 |
+
'Site Speed & Core Web Vitals Optimization. Run Lighthouse audit command Configure LiteSpeed Cache (all sites use it) command Image optimization check Font and render-blocking resource optimization check Verify improvements and monitor command. Tags: seo, speed, performance, core-web-vitals, litespeed, images, caching',
|
| 164 |
+
]
|
| 165 |
+
embeddings = model.encode(sentences)
|
| 166 |
+
print(embeddings.shape)
|
| 167 |
+
# [3, 384]
|
| 168 |
+
|
| 169 |
+
# Get the similarity scores for the embeddings
|
| 170 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 171 |
+
print(similarities)
|
| 172 |
+
# tensor([[1.0000, 0.7041, 0.2289],
|
| 173 |
+
# [0.7041, 1.0000, 0.3787],
|
| 174 |
+
# [0.2289, 0.3787, 1.0000]])
|
| 175 |
+
```
|
| 176 |
+
|
| 177 |
+
<!--
|
| 178 |
+
### Direct Usage (Transformers)
|
| 179 |
+
|
| 180 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 181 |
+
|
| 182 |
+
</details>
|
| 183 |
+
-->
|
| 184 |
+
|
| 185 |
+
<!--
|
| 186 |
+
### Downstream Usage (Sentence Transformers)
|
| 187 |
+
|
| 188 |
+
You can finetune this model on your own dataset.
|
| 189 |
+
|
| 190 |
+
<details><summary>Click to expand</summary>
|
| 191 |
+
|
| 192 |
+
</details>
|
| 193 |
+
-->
|
| 194 |
+
|
| 195 |
+
<!--
|
| 196 |
+
### Out-of-Scope Use
|
| 197 |
+
|
| 198 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 199 |
+
-->
|
| 200 |
+
|
| 201 |
+
## Evaluation
|
| 202 |
+
|
| 203 |
+
### Metrics
|
| 204 |
+
|
| 205 |
+
#### Semantic Similarity
|
| 206 |
+
|
| 207 |
+
* Dataset: `empire-eval`
|
| 208 |
+
* Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
|
| 209 |
+
|
| 210 |
+
| Metric | Value |
|
| 211 |
+
|:--------------------|:----------|
|
| 212 |
+
| pearson_cosine | 0.5531 |
|
| 213 |
+
| **spearman_cosine** | **0.532** |
|
| 214 |
+
|
| 215 |
+
<!--
|
| 216 |
+
## Bias, Risks and Limitations
|
| 217 |
+
|
| 218 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 219 |
+
-->
|
| 220 |
+
|
| 221 |
+
<!--
|
| 222 |
+
### Recommendations
|
| 223 |
+
|
| 224 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 225 |
+
-->
|
| 226 |
+
|
| 227 |
+
## Training Details
|
| 228 |
+
|
| 229 |
+
### Training Dataset
|
| 230 |
+
|
| 231 |
+
#### Unnamed Dataset
|
| 232 |
+
|
| 233 |
+
* Size: 333 training samples
|
| 234 |
+
* Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
|
| 235 |
+
* Approximate statistics based on the first 333 samples:
|
| 236 |
+
| | sentence_0 | sentence_1 | label |
|
| 237 |
+
|:--------|:---------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 238 |
+
| type | string | string | float |
|
| 239 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 5.24 tokens</li><li>max: 33 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 62.94 tokens</li><li>max: 141 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.57</li><li>max: 1.0</li></ul> |
|
| 240 |
+
* Samples:
|
| 241 |
+
| sentence_0 | sentence_1 | label |
|
| 242 |
+
|:-------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
|
| 243 |
+
| <code>bootstrap project</code> | <code>Bootstrap a New Empire Project. Create project directory and initialize git command Create PROJECT_DNA.md command Create CLAUDE.md with project-specific config prompt Set up Python environment command Create initial git commit and push to GitHub command Register project in EMPIRE-BRAIN command. Tags: empire, project, bootstrap, setup, new</code> | <code>1.0</code> |
|
| 244 |
+
| <code>update container</code> | <code>WordPress Site SEO Setup & Configuration. Verify RankMath SEO plugin is installed and activated check Configure RankMath general settings prompt Set up Schema markup patterns per post type prompt Configure robots.txt and sitemap command Set up internal linking structure prompt Configure affiliate link handling prompt. Tags: wordpress, seo, rankmath, schema, setup</code> | <code>0.0</code> |
|
| 245 |
+
| <code>restart service</code> | <code>Full WordPress Site Health Audit. Check plugins — installed, active, and update status command Verify SEO configuration command Test page speed with Lighthouse command Security check — WordFence scan and login protection check Test REST API connectivity and credentials command Check Google Search Console for crawl errors and ranking prompt. Tags: wordpress, audit, seo, security, performance, plugins, health</code> | <code>0.0</code> |
|
| 246 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
|
| 247 |
+
```json
|
| 248 |
+
{
|
| 249 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
| 250 |
+
}
|
| 251 |
+
```
|
| 252 |
+
|
| 253 |
+
### Training Hyperparameters
|
| 254 |
+
#### Non-Default Hyperparameters
|
| 255 |
+
|
| 256 |
+
- `per_device_train_batch_size`: 16
|
| 257 |
+
- `num_train_epochs`: 5
|
| 258 |
+
- `eval_strategy`: steps
|
| 259 |
+
- `per_device_eval_batch_size`: 16
|
| 260 |
+
- `multi_dataset_batch_sampler`: round_robin
|
| 261 |
+
|
| 262 |
+
#### All Hyperparameters
|
| 263 |
+
<details><summary>Click to expand</summary>
|
| 264 |
+
|
| 265 |
+
- `per_device_train_batch_size`: 16
|
| 266 |
+
- `num_train_epochs`: 5
|
| 267 |
+
- `max_steps`: -1
|
| 268 |
+
- `learning_rate`: 5e-05
|
| 269 |
+
- `lr_scheduler_type`: linear
|
| 270 |
+
- `lr_scheduler_kwargs`: None
|
| 271 |
+
- `warmup_steps`: 0
|
| 272 |
+
- `optim`: adamw_torch_fused
|
| 273 |
+
- `optim_args`: None
|
| 274 |
+
- `weight_decay`: 0.0
|
| 275 |
+
- `adam_beta1`: 0.9
|
| 276 |
+
- `adam_beta2`: 0.999
|
| 277 |
+
- `adam_epsilon`: 1e-08
|
| 278 |
+
- `optim_target_modules`: None
|
| 279 |
+
- `gradient_accumulation_steps`: 1
|
| 280 |
+
- `average_tokens_across_devices`: True
|
| 281 |
+
- `max_grad_norm`: 1
|
| 282 |
+
- `label_smoothing_factor`: 0.0
|
| 283 |
+
- `bf16`: False
|
| 284 |
+
- `fp16`: False
|
| 285 |
+
- `bf16_full_eval`: False
|
| 286 |
+
- `fp16_full_eval`: False
|
| 287 |
+
- `tf32`: None
|
| 288 |
+
- `gradient_checkpointing`: False
|
| 289 |
+
- `gradient_checkpointing_kwargs`: None
|
| 290 |
+
- `torch_compile`: False
|
| 291 |
+
- `torch_compile_backend`: None
|
| 292 |
+
- `torch_compile_mode`: None
|
| 293 |
+
- `use_liger_kernel`: False
|
| 294 |
+
- `liger_kernel_config`: None
|
| 295 |
+
- `use_cache`: False
|
| 296 |
+
- `neftune_noise_alpha`: None
|
| 297 |
+
- `torch_empty_cache_steps`: None
|
| 298 |
+
- `auto_find_batch_size`: False
|
| 299 |
+
- `log_on_each_node`: True
|
| 300 |
+
- `logging_nan_inf_filter`: True
|
| 301 |
+
- `include_num_input_tokens_seen`: no
|
| 302 |
+
- `log_level`: passive
|
| 303 |
+
- `log_level_replica`: warning
|
| 304 |
+
- `disable_tqdm`: False
|
| 305 |
+
- `project`: huggingface
|
| 306 |
+
- `trackio_space_id`: trackio
|
| 307 |
+
- `eval_strategy`: steps
|
| 308 |
+
- `per_device_eval_batch_size`: 16
|
| 309 |
+
- `prediction_loss_only`: True
|
| 310 |
+
- `eval_on_start`: False
|
| 311 |
+
- `eval_do_concat_batches`: True
|
| 312 |
+
- `eval_use_gather_object`: False
|
| 313 |
+
- `eval_accumulation_steps`: None
|
| 314 |
+
- `include_for_metrics`: []
|
| 315 |
+
- `batch_eval_metrics`: False
|
| 316 |
+
- `save_only_model`: False
|
| 317 |
+
- `save_on_each_node`: False
|
| 318 |
+
- `enable_jit_checkpoint`: False
|
| 319 |
+
- `push_to_hub`: False
|
| 320 |
+
- `hub_private_repo`: None
|
| 321 |
+
- `hub_model_id`: None
|
| 322 |
+
- `hub_strategy`: every_save
|
| 323 |
+
- `hub_always_push`: False
|
| 324 |
+
- `hub_revision`: None
|
| 325 |
+
- `load_best_model_at_end`: False
|
| 326 |
+
- `ignore_data_skip`: False
|
| 327 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 328 |
+
- `full_determinism`: False
|
| 329 |
+
- `seed`: 42
|
| 330 |
+
- `data_seed`: None
|
| 331 |
+
- `use_cpu`: False
|
| 332 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 333 |
+
- `parallelism_config`: None
|
| 334 |
+
- `dataloader_drop_last`: False
|
| 335 |
+
- `dataloader_num_workers`: 0
|
| 336 |
+
- `dataloader_pin_memory`: True
|
| 337 |
+
- `dataloader_persistent_workers`: False
|
| 338 |
+
- `dataloader_prefetch_factor`: None
|
| 339 |
+
- `remove_unused_columns`: True
|
| 340 |
+
- `label_names`: None
|
| 341 |
+
- `train_sampling_strategy`: random
|
| 342 |
+
- `length_column_name`: length
|
| 343 |
+
- `ddp_find_unused_parameters`: None
|
| 344 |
+
- `ddp_bucket_cap_mb`: None
|
| 345 |
+
- `ddp_broadcast_buffers`: False
|
| 346 |
+
- `ddp_backend`: None
|
| 347 |
+
- `ddp_timeout`: 1800
|
| 348 |
+
- `fsdp`: []
|
| 349 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 350 |
+
- `deepspeed`: None
|
| 351 |
+
- `debug`: []
|
| 352 |
+
- `skip_memory_metrics`: True
|
| 353 |
+
- `do_predict`: False
|
| 354 |
+
- `resume_from_checkpoint`: None
|
| 355 |
+
- `warmup_ratio`: None
|
| 356 |
+
- `local_rank`: -1
|
| 357 |
+
- `prompts`: None
|
| 358 |
+
- `batch_sampler`: batch_sampler
|
| 359 |
+
- `multi_dataset_batch_sampler`: round_robin
|
| 360 |
+
- `router_mapping`: {}
|
| 361 |
+
- `learning_rate_mapping`: {}
|
| 362 |
+
|
| 363 |
+
</details>
|
| 364 |
+
|
| 365 |
+
### Training Logs
|
| 366 |
+
| Epoch | Step | empire-eval_spearman_cosine |
|
| 367 |
+
|:-----:|:----:|:---------------------------:|
|
| 368 |
+
| 1.0 | 21 | 0.5320 |
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
### Framework Versions
|
| 372 |
+
- Python: 3.12.10
|
| 373 |
+
- Sentence Transformers: 5.3.0
|
| 374 |
+
- Transformers: 5.4.0
|
| 375 |
+
- PyTorch: 2.11.0+cpu
|
| 376 |
+
- Accelerate: 1.13.0
|
| 377 |
+
- Datasets: 4.8.4
|
| 378 |
+
- Tokenizers: 0.22.2
|
| 379 |
+
|
| 380 |
+
## Citation
|
| 381 |
+
|
| 382 |
+
### BibTeX
|
| 383 |
+
|
| 384 |
+
#### Sentence Transformers
|
| 385 |
+
```bibtex
|
| 386 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 387 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 388 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 389 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 390 |
+
month = "11",
|
| 391 |
+
year = "2019",
|
| 392 |
+
publisher = "Association for Computational Linguistics",
|
| 393 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 394 |
+
}
|
| 395 |
+
```
|
| 396 |
+
|
| 397 |
+
<!--
|
| 398 |
+
## Glossary
|
| 399 |
+
|
| 400 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 401 |
+
-->
|
| 402 |
+
|
| 403 |
+
<!--
|
| 404 |
+
## Model Card Authors
|
| 405 |
+
|
| 406 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 407 |
+
-->
|
| 408 |
+
|
| 409 |
+
<!--
|
| 410 |
+
## Model Card Contact
|
| 411 |
+
|
| 412 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 413 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": null,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 384,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 1536,
|
| 17 |
+
"is_decoder": false,
|
| 18 |
+
"layer_norm_eps": 1e-12,
|
| 19 |
+
"max_position_embeddings": 512,
|
| 20 |
+
"model_type": "bert",
|
| 21 |
+
"num_attention_heads": 12,
|
| 22 |
+
"num_hidden_layers": 6,
|
| 23 |
+
"pad_token_id": 0,
|
| 24 |
+
"position_embedding_type": "absolute",
|
| 25 |
+
"tie_word_embeddings": true,
|
| 26 |
+
"transformers_version": "5.4.0",
|
| 27 |
+
"type_vocab_size": 2,
|
| 28 |
+
"use_cache": true,
|
| 29 |
+
"vocab_size": 30522
|
| 30 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "5.3.0",
|
| 4 |
+
"transformers": "5.4.0",
|
| 5 |
+
"pytorch": "2.11.0+cpu"
|
| 6 |
+
},
|
| 7 |
+
"model_type": "SentenceTransformer",
|
| 8 |
+
"prompts": {
|
| 9 |
+
"query": "",
|
| 10 |
+
"document": ""
|
| 11 |
+
},
|
| 12 |
+
"default_prompt_name": null,
|
| 13 |
+
"similarity_fn_name": "cosine"
|
| 14 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3e31ef7a5a0e3061aee0d093494ae196d535090c70373a7a89b22f1149fb6ed
|
| 3 |
+
size 90864176
|
modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": "",
|
| 6 |
+
"type": "sentence_transformers.models.Transformer"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_Pooling",
|
| 12 |
+
"type": "sentence_transformers.models.Pooling"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.models.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 256,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_basic_tokenize": true,
|
| 5 |
+
"do_lower_case": true,
|
| 6 |
+
"is_local": true,
|
| 7 |
+
"mask_token": "[MASK]",
|
| 8 |
+
"max_length": 128,
|
| 9 |
+
"model_max_length": 256,
|
| 10 |
+
"never_split": null,
|
| 11 |
+
"pad_to_multiple_of": null,
|
| 12 |
+
"pad_token": "[PAD]",
|
| 13 |
+
"pad_token_type_id": 0,
|
| 14 |
+
"padding_side": "right",
|
| 15 |
+
"sep_token": "[SEP]",
|
| 16 |
+
"stride": 0,
|
| 17 |
+
"strip_accents": null,
|
| 18 |
+
"tokenize_chinese_chars": true,
|
| 19 |
+
"tokenizer_class": "BertTokenizer",
|
| 20 |
+
"truncation_side": "right",
|
| 21 |
+
"truncation_strategy": "longest_first",
|
| 22 |
+
"unk_token": "[UNK]"
|
| 23 |
+
}
|