Sentence Similarity
sentence-transformers
Safetensors
gemma3_text
feature-extraction
Generated from Trainer
dataset_size:3485841
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
🇪🇺 Region: EU
Instructions to use NbAiLab/borealis-embed-212m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use NbAiLab/borealis-embed-212m with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NbAiLab/borealis-embed-212m") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
2ae20a7
0
Parent(s):
Prepare Borealis Embed 212M release
Browse files- .gitattributes +37 -0
- 1_Pooling/config.json +5 -0
- LICENSE +180 -0
- LICENSE_FAQ.pdf +3 -0
- Model_Documentation_Form.pdf +3 -0
- README.md +1043 -0
- borealis.png +3 -0
- config.json +62 -0
- config_sentence_transformers.json +14 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +10 -0
- signing/SHA256SUMS +8 -0
- signing/SHA256SUMS.sig +0 -0
- signing/ca-chain.pem +72 -0
- signing/cert.pem +39 -0
- signing/verify.sh +98 -0
- tokenizer.json +0 -0
- tokenizer_config.json +13 -0
.gitattributes
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pdf filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
borealis.png filter=lfs diff=lfs merge=lfs -text
|
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"embedding_dimension": 768,
|
| 3 |
+
"pooling_mode": "mean",
|
| 4 |
+
"include_prompt": true
|
| 5 |
+
}
|
LICENSE
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
NB-License
|
| 2 |
+
Version 1.0, June 2026
|
| 3 |
+
https://ai.nb.no/license/
|
| 4 |
+
|
| 5 |
+
This license (henceforth: NB-license) establishes terms and conditions for use
|
| 6 |
+
of Borealis models with the following copyright notice: Borealis Copyright 2026
|
| 7 |
+
Nasjonalbiblioteket.
|
| 8 |
+
|
| 9 |
+
This model is a fine-tuned derivative of Gemma 3, licensed under the Gemma Terms
|
| 10 |
+
of Use. The original model is available from Google at
|
| 11 |
+
https://deepmind.google/models/gemma/gemma-3/. Modifications, fine-tuning, and
|
| 12 |
+
subsequent derivative works are distributed under the NB-license. The original
|
| 13 |
+
Gemma Terms of Use notices, disclaimers, attribution, and use restrictions
|
| 14 |
+
remain fully intact and are provided at https://ai.google.dev/gemma/terms. The
|
| 15 |
+
additional usage restrictions apply only to our derivative work.
|
| 16 |
+
|
| 17 |
+
1. Definitions.
|
| 18 |
+
|
| 19 |
+
- "License" means the terms and conditions for use, reproduction, and
|
| 20 |
+
Distribution as defined in this document.
|
| 21 |
+
|
| 22 |
+
- "Licensor" means the copyright owner or entity authorized by the copyright
|
| 23 |
+
owner that is granting the License, including the persons or entities that may
|
| 24 |
+
have rights in the Model and/or distributing the Model.
|
| 25 |
+
|
| 26 |
+
- "You" (or "Your") means an individual or Legal Entity exercising permissions
|
| 27 |
+
granted by this License and/or making use of the Model for whichever purpose and
|
| 28 |
+
in any field of use, including usage of the Model in an end-use application -
|
| 29 |
+
e.g. chatbot, translator, image generator.
|
| 30 |
+
|
| 31 |
+
- "Third Parties" means individuals or legal entities that are not under common
|
| 32 |
+
control with Licensor or You.
|
| 33 |
+
|
| 34 |
+
- "Data" means a collection of information and/or content extracted from the
|
| 35 |
+
dataset used with the Model, including to train, pretrain, or otherwise evaluate
|
| 36 |
+
the Model. The Data is not licensed under this License.
|
| 37 |
+
|
| 38 |
+
- "Output" means the results of operating a Model as embodied in informational
|
| 39 |
+
content resulting therefrom.
|
| 40 |
+
|
| 41 |
+
- "Model" means any accompanying machine-learning based assemblies (including
|
| 42 |
+
checkpoints), consisting of learnt weights, parameters (including optimizer
|
| 43 |
+
states), corresponding to the model architecture as embodied in the
|
| 44 |
+
Complementary Material, that have been trained or tuned, in whole or in part on
|
| 45 |
+
the Data, using the Complementary Material.
|
| 46 |
+
|
| 47 |
+
- "Derivatives of the Model" means all modifications to the Model, works based
|
| 48 |
+
on the Model, or any other model which is created or initialized by transfer of
|
| 49 |
+
patterns of the weights, parameters, activations or output of the Model, to the
|
| 50 |
+
other model, in order to cause the other model to perform similarly to the
|
| 51 |
+
Model, including - but not limited to - distillation methods entailing the use
|
| 52 |
+
of intermediate data representations or methods based on the generation of
|
| 53 |
+
synthetic data by the Model for training the other model.
|
| 54 |
+
|
| 55 |
+
- "Complementary Material" means the accompanying source code and scripts used
|
| 56 |
+
to define, run, load, benchmark or evaluate the Model, and used to prepare data
|
| 57 |
+
for training or evaluation, if any. This includes any accompanying
|
| 58 |
+
documentation, tutorials, examples, etc, if any.
|
| 59 |
+
|
| 60 |
+
- "Distribution" means any transmission, reproduction, publication or other
|
| 61 |
+
sharing of the Model or Derivatives of the Model to a third party, including
|
| 62 |
+
providing the Model as a hosted service made available by electronic or other
|
| 63 |
+
remote means - e.g. API-based or web access.
|
| 64 |
+
|
| 65 |
+
- “Use” includes accessing and utilizing a Model or Derivates of a Model, which
|
| 66 |
+
may also include creating content, fine-tuning, updating, running, training,
|
| 67 |
+
evaluating and/or re-parametrizing such Model or Derivates of a Model.
|
| 68 |
+
|
| 69 |
+
- "Contribution" means any work of authorship, including the original version of
|
| 70 |
+
the Model and any modifications or additions to that Model or Derivatives of the
|
| 71 |
+
Model thereof, that is intentionally submitted to Licensor for inclusion in the
|
| 72 |
+
Model.
|
| 73 |
+
|
| 74 |
+
- "Contributor" means Licensor and any individual or Legal Entity on behalf of
|
| 75 |
+
whom a Contribution has been received by Licensor and subsequently incorporated
|
| 76 |
+
within the Model.
|
| 77 |
+
|
| 78 |
+
2. Grant of License.
|
| 79 |
+
|
| 80 |
+
Subject to the terms and conditions of this License, each Contributor hereby
|
| 81 |
+
grants to You a time-unlimited, worldwide, non-exclusive, no-charge, royalty-
|
| 82 |
+
free license to use, make, have made, reproduce, prepare derivatives of the
|
| 83 |
+
model, publicly display, publicly perform, sublicense, offer to sell, sell,
|
| 84 |
+
import and otherwise transfer or distribute the model and derivatives of the
|
| 85 |
+
model.
|
| 86 |
+
|
| 87 |
+
3. Redistribution
|
| 88 |
+
|
| 89 |
+
You may reproduce and distribute copies of the model or derivatives of the model
|
| 90 |
+
in any medium, with or without modifications, provided that You meet the
|
| 91 |
+
following conditions: (a) You must give any other recipients of the model or
|
| 92 |
+
derivatives of the model a copy of this License; and (b) You must retain all
|
| 93 |
+
copyright notices in any redistribution of the model or derivatives of the
|
| 94 |
+
model, excluding those notices that do not pertain to any part of a derivative
|
| 95 |
+
of the model; and (c) You must include the use-based restrictions in section 4
|
| 96 |
+
as a condition precedent to effect any type of legal agreement (e.g. a license)
|
| 97 |
+
governing the use and/or distribution of the model or its Derivatives, and give
|
| 98 |
+
such notice to any subsequent Third Party recipients;
|
| 99 |
+
|
| 100 |
+
4. Use-based Restrictions.
|
| 101 |
+
|
| 102 |
+
You can only use the Model in compliance with the following conditions:
|
| 103 |
+
|
| 104 |
+
(a) You must comply with applicable laws and regulations.
|
| 105 |
+
|
| 106 |
+
(b) You must not use the model to intentionally recreate material from the
|
| 107 |
+
training data, whether protected by intellectual property rights or as personal
|
| 108 |
+
data
|
| 109 |
+
|
| 110 |
+
(c) Neither the name of the National library nor the names of creators or
|
| 111 |
+
publishers of training data may be used to endorse or promote products derived
|
| 112 |
+
from this model without specific prior written permission.
|
| 113 |
+
|
| 114 |
+
(d) You must not use the Model or its outputs, to provide end-user services
|
| 115 |
+
whose primary purpose is to summarize, restate, copy, or otherwise replace
|
| 116 |
+
services for access to the press publications licensed as training data, unless you have a separate agreement with the
|
| 117 |
+
copyright holders. This includes, but is not limited to, services that provide
|
| 118 |
+
users with functional substitutes for access to the original press content.
|
| 119 |
+
|
| 120 |
+
5. Outputs.
|
| 121 |
+
|
| 122 |
+
Except as set forth herein, Licensor claims no rights in the Output You generate
|
| 123 |
+
with a model. You are accountable for the Output You generate and its subsequent
|
| 124 |
+
uses. No use of the Output may contravene any provision as stated in this
|
| 125 |
+
License, hereunder section 4 on use-based restrictions.
|
| 126 |
+
|
| 127 |
+
6. Disclaimer of Warranty.
|
| 128 |
+
|
| 129 |
+
Unless required by applicable law or agreed to in writing, Licensor provides the
|
| 130 |
+
Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 131 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
| 132 |
+
including, without limitation, any warranties or conditions of TITLE, NON-
|
| 133 |
+
INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
| 134 |
+
solely responsible for determining the appropriateness of using or
|
| 135 |
+
redistributing the Work and assume any risks associated with Your exercise of
|
| 136 |
+
permissions under this License. The Licensor makes no representations or
|
| 137 |
+
warranties that the Model or its Output will be free from factual inaccuracies,
|
| 138 |
+
biases, or potential misinterpretation of the underlying training data. You are
|
| 139 |
+
solely responsible for ensuring that any use of the Model adheres to applicable
|
| 140 |
+
legal and ethical standards.
|
| 141 |
+
|
| 142 |
+
7. Limitation of Liability.
|
| 143 |
+
|
| 144 |
+
In no event and under no legal theory, whether in tort (including negligence),
|
| 145 |
+
contract, or otherwise, unless required by applicable law (such as deliberate
|
| 146 |
+
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
| 147 |
+
liable to You for damages, including any direct, indirect, special, incidental,
|
| 148 |
+
or consequential damages of any character arising as a result of this License or
|
| 149 |
+
out of the use or inability to use the Work (including but not limited to
|
| 150 |
+
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
| 151 |
+
any and all other commercial damages or losses), even if such Contributor has
|
| 152 |
+
been advised of the possibility of such damages.
|
| 153 |
+
|
| 154 |
+
8. Accepting Warranty or Additional Liability.
|
| 155 |
+
|
| 156 |
+
While redistributing the Work or Derivative Works thereof, You may choose to
|
| 157 |
+
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
| 158 |
+
other liability obligations and/or rights consistent with this License. However,
|
| 159 |
+
in accepting such obligations, You may act only on Your own behalf and on Your
|
| 160 |
+
sole responsibility, not on behalf of any other Contributor, and only if You
|
| 161 |
+
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
| 162 |
+
incurred by, or claims asserted against, such Contributor by reason of your
|
| 163 |
+
accepting any such warranty or additional liability.
|
| 164 |
+
|
| 165 |
+
9. Term and Termination.
|
| 166 |
+
|
| 167 |
+
The term of this Agreement will commence upon your acceptance of this Agreement
|
| 168 |
+
and will continue in full force and effect until terminated in accordance with
|
| 169 |
+
the terms and conditions herein. Licensor may terminate this Agreement if you
|
| 170 |
+
are in breach of any term or condition of this Agreement. Upon termination of
|
| 171 |
+
this Agreement, you shall cease use of the licensed model. Section 7 shall
|
| 172 |
+
survive the termination of this Agreement. Termination of the agreement does not
|
| 173 |
+
affect your continued rights to use parts of the model the licensed model was
|
| 174 |
+
based on (if warm trained) under its original license.
|
| 175 |
+
|
| 176 |
+
10. Governing Law and Jurisdiction.
|
| 177 |
+
|
| 178 |
+
This Agreement will be governed and construed under the laws of Norway. The Oslo
|
| 179 |
+
District Court shall have exclusive jurisdiction of any dispute arising out of
|
| 180 |
+
this Agreement.
|
LICENSE_FAQ.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4a87118b0b0c1e2d5a06b27bb4b56517d4d62b2b74860f77b8ac2d601224840
|
| 3 |
+
size 140945
|
Model_Documentation_Form.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf5b361cd3c18f4237aadc86f6c0632c492a04fa94e386b58b586f290582c6c5
|
| 3 |
+
size 334284
|
README.md
ADDED
|
@@ -0,0 +1,1043 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:3485841
|
| 8 |
+
- loss:CachedMultipleNegativesRankingLoss
|
| 9 |
+
pipeline_tag: sentence-similarity
|
| 10 |
+
library_name: sentence-transformers
|
| 11 |
+
license: other
|
| 12 |
+
license_name: nb-license-1.0
|
| 13 |
+
license_link: https://huggingface.co/NbAiLab/borealis-embed-212m/blob/main/LICENSE
|
| 14 |
+
datasets:
|
| 15 |
+
- NbAiLab/mnli-norwegian
|
| 16 |
+
- DDSC/nordic-embedding-training-data
|
| 17 |
+
- sentence-transformers/parallel-sentences-opus-100
|
| 18 |
+
- lightonai/embeddings-pre-training
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
# Borealis Embed 212M
|
| 24 |
+
|
| 25 |
+
## Model Summary
|
| 26 |
+
|
| 27 |
+
**NbAiLab/borealis-embed-212m** is a 212M parameter [sentence-transformers](https://www.SBERT.net) embedding model (98M embedding parameters) based on an adapted Gemma3Text architecture. The model is pretrained from scratch on the open subset of our Aurora 2604 data and fine-tuned as a sentence transformer with mean pooling on subsets from [NbAiLab/mnli-norwegian](https://huggingface.co/datasets/NbAiLab/mnli-norwegian), [DDSC/nordic-embedding-training-data](https://huggingface.co/datasets/DDSC/nordic-embedding-training-data), [sentence-transformers/parallel-sentences-opus-100](https://huggingface.co/datasets/sentence-transformers/parallel-sentences-opus-100), [lightonai/embeddings-pre-training](https://huggingface.co/datasets/lightonai/embeddings-pre-training), and internal newspaper articles. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval. With a longer max sequence length than its predecessors ([nb-sbert](https://huggingface.co/NbAiLab/nb-sbert-base) and [nb-sbert-v2](https://huggingface.co/NbAiLab/nb-sbert-v2-base)), the model can handle chunks of text up to 8192 tokens long.
|
| 28 |
+
|
| 29 |
+
## Model Details
|
| 30 |
+
|
| 31 |
+
### Model Description
|
| 32 |
+
- **Model Type:** Sentence Transformer
|
| 33 |
+
- **Maximum Sequence Length:** 8192 tokens
|
| 34 |
+
- **Output Dimensionality:** 768 dimensions
|
| 35 |
+
- **Similarity Function:** Cosine Similarity
|
| 36 |
+
- **Supported Modality:** Text
|
| 37 |
+
- **Training Datasets:**
|
| 38 |
+
- [NbAiLab/mnli-norwegian](https://huggingface.co/datasets/NbAiLab/mnli-norwegian)
|
| 39 |
+
- A subset of retrieval triplets from [DDSC/nordic-embedding-training-data](https://huggingface.co/datasets/DDSC/nordic-embedding-training-data)
|
| 40 |
+
- Norwegian to English pairs from [sentence-transformers/parallel-sentences-opus-100](https://huggingface.co/datasets/sentence-transformers/parallel-sentences-opus-100)
|
| 41 |
+
- Norwegian Wikipedia articles from [lightonai/embeddings-pre-training](https://huggingface.co/datasets/lightonai/embeddings-pre-training)
|
| 42 |
+
- An internal dataset created from Norwegian newspapers.<br/>
|
| 43 |
+
The Norwegian government has entered into an agreement, through the National Library of Norway, to access copyrighted press material via Kopinor on behalf of the Norwegian Media Businesses' Association (MBL), enabling the lawful training, development, maintenance, and public release of Norwegian language models. The agreement covers copyright-protected press publications published in Norway up to one year from the date of publication of the model, effectively creating a rolling cutoff date rather than a fixed historical cutoff. For this release, the cutoff date is January 1, 2025.
|
| 44 |
+
</details>
|
| 45 |
+
- **Language:** Norwegian Bokmål, Norwegian Nynorsk, Swedish, Danish, English
|
| 46 |
+
- **License:** [NB-license](./LICENSE)
|
| 47 |
+
|
| 48 |
+
### EU AI Act
|
| 49 |
+
|
| 50 |
+
This release is a **non-generative encoder model** whose outputs are vectors/scores rather than language or media. Its intended functionality is limited to representation, retrieval, ranking, or classification support. On that basis, the release is preliminarily assessed as not falling within the provider obligations for GPAI models under the EU AI Act definitions, subject to legal confirmation if capability scope or marketed generality changes. For more information, see the [Model Documentation Form](./Model_Documentation_Form.pdf).
|
| 51 |
+
|
| 52 |
+
### Model Sources
|
| 53 |
+
|
| 54 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 55 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 56 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 57 |
+
|
| 58 |
+
### Full Model Architecture
|
| 59 |
+
|
| 60 |
+
```
|
| 61 |
+
SentenceTransformer(
|
| 62 |
+
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'AustralisModel'})
|
| 63 |
+
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
|
| 64 |
+
)
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Usage
|
| 68 |
+
|
| 69 |
+
### Direct Usage (Sentence Transformers)
|
| 70 |
+
|
| 71 |
+
First install the Sentence Transformers library:
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
pip install -U sentence-transformers
|
| 75 |
+
```
|
| 76 |
+
Then you can load this model and run inference.
|
| 77 |
+
```python
|
| 78 |
+
from sentence_transformers import SentenceTransformer
|
| 79 |
+
|
| 80 |
+
# Download from the 🤗 Hub
|
| 81 |
+
model = SentenceTransformer("NbAiLab/borealis-embed-212M")
|
| 82 |
+
# Run inference
|
| 83 |
+
queries = [
|
| 84 |
+
'- Who is he?',
|
| 85 |
+
]
|
| 86 |
+
documents = [
|
| 87 |
+
'- Hvem er han?',
|
| 88 |
+
'Banning.',
|
| 89 |
+
'Nei, det har hun ikke.',
|
| 90 |
+
]
|
| 91 |
+
query_embeddings = model.encode_query(queries)
|
| 92 |
+
document_embeddings = model.encode_document(documents)
|
| 93 |
+
print(query_embeddings.shape, document_embeddings.shape)
|
| 94 |
+
# [1, 768] [3, 768]
|
| 95 |
+
|
| 96 |
+
# Get the similarity scores for the embeddings
|
| 97 |
+
similarities = model.similarity(query_embeddings, document_embeddings)
|
| 98 |
+
print(similarities)
|
| 99 |
+
# tensor([[0.7765, 0.2560, 0.2525]])
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
## Evaluation
|
| 103 |
+
|
| 104 |
+
We evaluated this model on two benchmarks: the Scandinavian Embedding Benchmark (SEB) and the Long-context Retrieval Benchmark (LongEmbed) from MTEB.
|
| 105 |
+
|
| 106 |
+
During pretraining, max sequence length of the model was extended to 8192 tokens. However, during the fine-tuning process, the model is trained with a sequence length 2048. The evaluation results on LongEmbed show that the model has retained the length extension from pretraining and confirms that the model can support up to 8192 tokens.
|
| 107 |
+
|
| 108 |
+
### Metrics
|
| 109 |
+
|
| 110 |
+
#### MTEB (Scandinavian)
|
| 111 |
+
|
| 112 |
+
*"Scandinavian text embedding quality covering Danish, Swedish, Norwegian Bokmål, and Nynorsk and spanning classification, clustering, retrieval as well as bitext tasks across dialects or written forms."*
|
| 113 |
+
|
| 114 |
+
| Task | nb-sbert-v2-base | nb-sbert-v2-large | borealis-embed-212M |
|
| 115 |
+
|:--------------------|:-----------------|:--------------------|:--------------------|
|
| 116 |
+
| **Mean (Task)** | 0.5496 | 0.5638 | **0.5891** |
|
| 117 |
+
| **Mean (TaskType)** | 0.5690 | 0.5770 | **0.6037** |
|
| 118 |
+
|   |   |   |   |
|
| 119 |
+
| Bitext Mining | 0.7275 | 0.7196 | **0.7397** |
|
| 120 |
+
| Classification | 0.5841 | 0.6048 | **0.6143** |
|
| 121 |
+
| Clustering | **0.4105** | 0.4005 | 0.3946 |
|
| 122 |
+
| Retrieval | 0.5540 | 0.5832 | **0.6661** |
|
| 123 |
+
|
| 124 |
+
#### Long-context Retrieval
|
| 125 |
+
|
| 126 |
+
*"Long-context retrieval quality across synthetic and real-world tasks featuring documents of varying length with dispersed target information."*
|
| 127 |
+
|
| 128 |
+
| Task | nb-sbert-v2-base | borealis-embed-212M |
|
| 129 |
+
|:--------------------------|:-----------------|:--------------------|
|
| 130 |
+
| LEMBNarrativeQARetrieval | 0.1135 | **0.2549** |
|
| 131 |
+
| LEMBNeedleRetrieval | 0.2467 | **0.7833** |
|
| 132 |
+
| LEMBPasskeyRetrieval | 0.1367 | **0.9867** |
|
| 133 |
+
| LEMBQMSumRetrieval | 0.1620 | **0.3901** |
|
| 134 |
+
| LEMBSummScreenFDRetrieval | 0.4932 | **0.9127** |
|
| 135 |
+
| LEMBWikimQARetrieval | 0.3029 | **0.6235** |
|
| 136 |
+
|
| 137 |
+
> [!NOTE]
|
| 138 |
+
> NOTE: The scores for `LEMBNeedleRetrieval` and `LEMBPasskeyRetrieval` are given as the average ndcg@1 for sequence lengths 256, 512, 1024, 2048, 4096, and 8192.
|
| 139 |
+
|
| 140 |
+
## Training Details
|
| 141 |
+
|
| 142 |
+
For specific details about the training process, see the *Training Process* section of the [Model Documentation Form](./Model_Documentation_Form.pdf).
|
| 143 |
+
|
| 144 |
+
### Training Datasets
|
| 145 |
+
|
| 146 |
+
<details><summary>NbAiLab/mnli-norwegian</summary>
|
| 147 |
+
|
| 148 |
+
#### NbAiLab/mnli-norwegian
|
| 149 |
+
|
| 150 |
+
* Dataset: NbAiLab/mnli-norwegian
|
| 151 |
+
* Size: 527,098 training samples
|
| 152 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 153 |
+
* Approximate statistics based on the first 100 samples:
|
| 154 |
+
| | anchor | positive | negative |
|
| 155 |
+
|:---------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 156 |
+
| type | string | string | string |
|
| 157 |
+
| modality | text | text | text |
|
| 158 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 18.64 tokens</li><li>max: 53 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 18.74 tokens</li><li>max: 53 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 12.88 tokens</li><li>max: 30 tokens</li></ul> |
|
| 159 |
+
* Samples:
|
| 160 |
+
| anchor | positive | negative |
|
| 161 |
+
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
|
| 162 |
+
| <code>Det som følger er mindre en glid nedover en glatt skråning enn et profesjonelt skred som resulterer i enten en oppsigelse eller en smal flukt til neste drømmejobb, der, selvfølgelig, syklusen gjentas igjen.</code> | <code>Syklusen gjentar seg ved neste jobb.</code> | <code>Syklusen gjentar seg sjelden ved neste jobb.</code> |
|
| 163 |
+
| <code>Syklusen gjentar seg ved neste jobb.</code> | <code>Det som følger er mindre en glid nedover en glatt skråning enn et profesjonelt skred som resulterer i enten en oppsigelse eller en smal flukt til neste drømmejobb, der, selvfølgelig, syklusen gjentas igjen.</code> | <code>Syklusen gjentar seg sjelden ved neste jobb.</code> |
|
| 164 |
+
| <code>The public areas are spectacular, the rooms a bit less so, but a long-awaited renovation was carried out in 1998.</code> | <code>The rooms are nice, but the public area is in a league of it's own.</code> | <code>The public area was fine, but the rooms were really something else.</code> |
|
| 165 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 166 |
+
```json
|
| 167 |
+
{
|
| 168 |
+
"scale": 35,
|
| 169 |
+
"similarity_fct": "cos_sim",
|
| 170 |
+
"mini_batch_size": 128,
|
| 171 |
+
"gather_across_devices": false,
|
| 172 |
+
"directions": [
|
| 173 |
+
"query_to_doc",
|
| 174 |
+
"doc_to_query"
|
| 175 |
+
],
|
| 176 |
+
"partition_mode": "per_direction",
|
| 177 |
+
"hardness_mode": null,
|
| 178 |
+
"hardness_strength": 0.0
|
| 179 |
+
}
|
| 180 |
+
```
|
| 181 |
+
</details>
|
| 182 |
+
<details><summary>DDSC/nordic-embedding-training-data</summary>
|
| 183 |
+
|
| 184 |
+
#### Retrieval Documents for Norwegian Bokmål
|
| 185 |
+
|
| 186 |
+
* Dataset: ddsc-retrieval-nob
|
| 187 |
+
* Size: 40,151 training samples
|
| 188 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 189 |
+
* Approximate statistics based on the first 100 samples:
|
| 190 |
+
| | anchor | positive | negative |
|
| 191 |
+
|:---------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
|
| 192 |
+
| type | string | string | string |
|
| 193 |
+
| modality | text | text | text |
|
| 194 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 19.24 tokens</li><li>max: 60 tokens</li></ul> | <ul><li>min: 47 tokens</li><li>mean: 157.63 tokens</li><li>max: 305 tokens</li></ul> | <ul><li>min: 42 tokens</li><li>mean: 93.32 tokens</li><li>max: 165 tokens</li></ul> |
|
| 195 |
+
* Samples:
|
| 196 |
+
| anchor | positive | negative |
|
| 197 |
+
|:-----------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 198 |
+
| <code>Hvordan påvirket den industrielle revolusjon i Storbritannia utdanningssystemene og sosiale strukturer for kvinner på landsbygda?</code> | <code>Den industrielle revolusjon i Storbritannia, som skjøt fart på midten av 1700-tallet, hadde en dyptgribende innvirkning på alle sider av samfunnet, inkludert kvinner på landsbygda. Mens industrialiseringa forårsaket en massivit migrasjon til byene, ble kvinner på landsbygda ofte stående igjen som de som holdt driften i gang. De fortsatte med tradisjonelle oppgaver som landbruk og husarbeid, men industrialiseringen førte også til nye muligheter. Noen kvinner fant arbeid i nye næringer knyttet til tekstilproduksjon og husnæringer som ble introdusert i landsbygdsområder. Denne økonomiske aktiviteten ga noen kvinner økt selvstendighet og innflytelse innenfor familiene, men samtidig forsterket tradisjonelle kjønnsroller i mange tilfeller. Den økende behovet for utdanning for å håndtere nye teknologier og markedsforhold, kombinert med reformer i opplysningstiden, førte til en utvidelse av utdanningsmuligheter for noen jenter, men tilgangen var fortsatt begrenset, og mange jenter forble uten ...</code> | <code>Den industrielle revolusjonen førte til en dramatisk befolkningsvekst i britiske byer. Nye fabrikker og arbeidsplasser trakk folk fra landsbygda, og dette førte til en rekke sosial og økonomiske endringer. Bostedene ble tettere, sanitæresituasjonen ble verre, og fattigdom og kriminalitet økte. Samtidig førte industrialiseringen til nye teknologier og produsert nye varer til lavere priser.</code> |
|
| 199 |
+
| <code>Sampling og opphavsrett innen elektronisk musikk</code> | <code>Opphavsretten i musikken er et komplekst tema som blir stadig mer aktuelt i den digitale tidsalderen. Spesielt gjelder dette for elektronisk musikk, en sjanger som ofte bygger på sampling, altså bruken av fragmenter fra eksisterende innspillinger. Lovpålagte begrensninger for bruk av copyrightbeskyttet materiale setter klare rammer for musikere og produsenter som ønsker å integrere samplede elementer i sine egne verk.<br><br>For å kunne bruke samplede elementer lovlig, må man innhente tillatelse fra innehaveren av opphavsretten til det originale materialet. Dette kan innebære kontakt med plateselskaper, forlag eller direkte med originalartistene. I tilfeller der opphavsretten er uklar, kan det være aktuelt å søke veiledning fra organisasjoner som TONO eller NOPA.<br><br>Det er viktig å merke seg at simpelthen å gi kreditt til den originale artisten eller å endre sampelen lett ikke er tilstrekkelig for å unngå brudd på opphavsretten. Bruk av copyrightbeskyttet materiale uten tillatelse kan føre til...</code> | <code>Elektronisk musikk har blitt en dominerende kraft i musikkindustrien, og har påvirket mange musikksjangere. Teknologiske fremskritt har gjort det mulig å skape komplekse og innovative lydlandskap. Synthersizere, samplerer og digitale lyd Workstationer gir musikere et bredt spekter av valgmuligheter for å komponere og produsere musikk.<br><br>Digital distribusjon har åpnet opp nye markeder for elektronisk musikk, og gjort musikken tilgjengelig for et globalt publikum. Streamingtjenester og digitale butikker tillater musikere å nå ut til lyttere over hele verden. <br><br>Elektronisk musikk har også inspirert nye danseformer og kulturelle uttrykk, og har blitt en integrert del av nattklubbkulturen og festivaler jorden rundt.</code> |
|
| 200 |
+
| <code>Kulturell innflytelse</code> | <code>Den industrielle revolusjonens innvirkning på norsk kultur var omfattende. Urbaniseringen førte til nye sosiale strukturer, og arbeiderklassen vokste frem som en ny kulturell kraft. Litteraturen og kunsten reflekterte dette skiftet, med forfattere som Henrik Ibsen og malere som Edvard Munch som snakket til og om den moderne verden. Samtidig oppsto nye former for underholdning, som teater og kino, som bredte seg raskt i byene. Folkemusikk og folketradisjoner ble påvirket av industrialiseringen, noe som førte til både bevaring og fornyelse. Den massive befolkningsveksten i byene resulterte også i nye behov for utdanning og helsevesen, noe som igjen styrket det offentlige engasjementet og den moderne velferdsstaten.</code> | <code>Industrialiseringen førte til dramatiske endringer i den norske økonomien på 1800-tallet. Utviklingen av nye teknologier og industribedrifter bidro til en økt produksjon og handel. Dette førte til økonomisk vekst, men også til sosiale ulikheter og arbeidsmigration til byene.</code> |
|
| 201 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 202 |
+
```json
|
| 203 |
+
{
|
| 204 |
+
"scale": 35,
|
| 205 |
+
"similarity_fct": "cos_sim",
|
| 206 |
+
"mini_batch_size": 64,
|
| 207 |
+
"gather_across_devices": false,
|
| 208 |
+
"directions": [
|
| 209 |
+
"query_to_doc"
|
| 210 |
+
],
|
| 211 |
+
"partition_mode": "joint",
|
| 212 |
+
"hardness_mode": null,
|
| 213 |
+
"hardness_strength": 0.0
|
| 214 |
+
}
|
| 215 |
+
```
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
#### Retrieval Documents for Danish
|
| 219 |
+
|
| 220 |
+
* Dataset: ddsc-retrieval-dan
|
| 221 |
+
* Size: 77,643 training samples
|
| 222 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 223 |
+
* Approximate statistics based on the first 100 samples:
|
| 224 |
+
| | anchor | positive | negative |
|
| 225 |
+
|:---------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
|
| 226 |
+
| type | string | string | string |
|
| 227 |
+
| modality | text | text | text |
|
| 228 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 20.74 tokens</li><li>max: 57 tokens</li></ul> | <ul><li>min: 58 tokens</li><li>mean: 166.14 tokens</li><li>max: 321 tokens</li></ul> | <ul><li>min: 27 tokens</li><li>mean: 93.33 tokens</li><li>max: 168 tokens</li></ul> |
|
| 229 |
+
* Samples:
|
| 230 |
+
| anchor | positive | negative |
|
| 231 |
+
|:--------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 232 |
+
| <code>Problem med lyd</code> | <code>Fejlfinding af lydproblemer kan være frustrerende, men der er ofte en simpel løsning. Først og fremmest skal du kontrollere, om lyden er slået til på både din computer og dine eksterne højttalere eller hovedtelefoner. Sørg for, at lydstyrken er indstillet til et passende niveau på begge enheder. Hvis problemet fortsætter, kan du prøve at opdatere lydkørerne til din computer. Udfør en grundig kontrol af alle kabelforbindelser for at sikre, at de er sikre og fri for skader. I tilfælde af problemer med interne højttalere, kan det være nødvendigt at genstarte computeren eller udføre en systemgennemgang for at identificere eventuelle fejl. Vær opmærksom på eventuelle fejlmeddelelser eller advarsler, som kan give yderligere oplysninger om årsagen til lydproblemet.</code> | <code>Sørg for, at din internetforbindelse er stabil og funktionel, da dette er afgørende for den generelle computeroplevelse. En ustabil forbindelse kan resultere i forsinkelser, afbrydelser og problemer med streaming af indhold. Kontrollér også, om andre enheder på dit netværk har forbindelse til internettet for at udelukke netværksproblemer.</code> |
|
| 233 |
+
| <code>Softwareudvikler København AI-drevet</code> | <code>Vi søger en erfaren softwareudvikler til vores team i København. Du vil arbejde med at udvikle innovative AI-drevet softwareløsninger til sundhedsvæsenet. Du skal have solid erfaring med Python og machine learning-algoritmer. Vi tilbyder et dynamisk miljø med mulighed for at arbejde med spændende projekter.</code> | <code>Vores virksomhed er på udkig efter en dygtig dataanalytiker til vores kontor i Aarhus. Vi arbejder med at analysere store datasæt og identificere trends. Du skal have en kandidatuddannelse i matematik eller statistik.</code> |
|
| 234 |
+
| <code>Havets syredisering og koralrevets fremtid</code> | <code>Oceanens syredisering er en alvorlig trussel mod koralrev verden over. Den stigende koncentration af kuldioxid i atmosfæren, som følge af menneskelig aktivitet, absorberes af havene. Herved sænkes havvandets pH-værdi, hvilket gør vandet mere surt. Dette kan have en række skadelige virkninger på marine organismer, herunder koraller. Syre havvand hindrer korallers evne til at danne deres kalkskeletter, hvilket gør dem svagere og mere modtagelige over for skader. Desuden kan syre havvand forårsage coral bleaching, hvor koraller mister deres symbiotiske alger og bliver hvide. Coral bleaching kan være fatal for korallerne, især hvis det sker hyppigt eller i længere perioder. Forskellige studier har vist, at koralrev i hele verden allerede er berørt af oceanens syredisering, og det forventes, at situationen vil forværres i fremtiden, hvis globale kuldioxidemissioner ikke reduceres.<br><br>For at bevare koralrev er det afgørende at tackle klimaforandringerne ved at reducere drivhusgassernes emissi...</code> | <code>Den globale opvarmning har alvorlige konsekvenser for marine økosystemer. Stigende vandtemperaturer kan føre til massedød af fisk og andre marine organismer. Havets stigende stand truer kystbebyggelse og infrastruktur. Desuden kan oceanens syredisering have skadelige virkninger på skaldyr og andre kalkdannende organismer. For at mindske disse effekter er det vigtigt at reducere vores CO2-udslip og implementere bæredygtige fiskeri praksisser.</code> |
|
| 235 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 236 |
+
```json
|
| 237 |
+
{
|
| 238 |
+
"scale": 35,
|
| 239 |
+
"similarity_fct": "cos_sim",
|
| 240 |
+
"mini_batch_size": 64,
|
| 241 |
+
"gather_across_devices": false,
|
| 242 |
+
"directions": [
|
| 243 |
+
"query_to_doc"
|
| 244 |
+
],
|
| 245 |
+
"partition_mode": "joint",
|
| 246 |
+
"hardness_mode": null,
|
| 247 |
+
"hardness_strength": 0.0
|
| 248 |
+
}
|
| 249 |
+
```
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
#### Retrieval Documents for Swedish
|
| 253 |
+
|
| 254 |
+
* Dataset: ddsc-retrieval-swe
|
| 255 |
+
* Size: 40,354 training samples
|
| 256 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 257 |
+
* Approximate statistics based on the first 100 samples:
|
| 258 |
+
| | anchor | positive | negative |
|
| 259 |
+
|:---------|:-----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
|
| 260 |
+
| type | string | string | string |
|
| 261 |
+
| modality | text | text | text |
|
| 262 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 22.29 tokens</li><li>max: 110 tokens</li></ul> | <ul><li>min: 40 tokens</li><li>mean: 181.44 tokens</li><li>max: 357 tokens</li></ul> | <ul><li>min: 33 tokens</li><li>mean: 103.82 tokens</li><li>max: 186 tokens</li></ul> |
|
| 263 |
+
* Samples:
|
| 264 |
+
| anchor | positive | negative |
|
| 265 |
+
|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 266 |
+
| <code>Hur fungerar mekanismen bakom perkutan koronar intervention vid behandling av ateroskleros i kranskärlen?</code> | <code>Koronararterien är en vital del av det kardiovaskulära systemet, ansvarig för att leverera syrefattigt blod till hjärtmuskeln. När koronararterierna skadas eller förträngs genom en process som kallas ateroskleros, kan det leda till kranskärlssjukdom. Perkutan koronar intervention (PCI) är en etablerad behandling för ateroskleros i kranskärlen. PCI är en minimalt invasiv procedur som innebär att en tunn kateter införs i en blodåder i armen eller benet och sedan leds genom blodkärlen till det drabbade området i hjärtat. Katetern för in en liten ballong som uppblåses för att komprimera placket och utvidga det förträngda blodkärlet. I många fall implanteras också en liten metall stent i blodkärlet för att hålla det öppet och förhindra återförträngning. Dessutom kan läkemedel som heparin och aspirin ges för att förhindra blodproppar. PCI är en effektiv behandling som har visat sig förbättra flödet i koronararterierna och minska symptomen på kranskärlssjukdom.</code> | <code>Ateroskleros är en komplex sjukdom som utvecklas gradvis över tid. Den uppstår när plack, bestående av fett, kolesterol, kalcium och andra ämnen, byggs upp på insidan av artärerna. Denna uppbyggnad kan leda till en försmökning av artärerna och begränsa blodflödet till hjärtat. Det finns olika faktorer som kan bidra till utvecklingen av ateroskleros, inklusive högt kolesterol, högt blodtryck, rökning, diabetes och en stillasittande livsstil. Livsstilsförändringar, såsom att äta en hälsosam kost, motionera regelbundet och sluta röka, kan bidra till att förhindra eller sakta ner utvecklingen av ateroskleros. I några fall kan läkemedel behövas för att kontrollera riskfaktorer och minska risken för hjärt-kärlsjukdomar.</code> |
|
| 267 |
+
| <code>Finns det berättelser om kvinnor som bryter barriärer och kämpar mot orättvisor i samhällen dominerade av män?</code> | <code>I den ödelagda världen efter Ödslingen hade Astrid byggt upp ett eget imperium. Hon behärskade järnet, fästlade allianser med stammars hövdingar och utmanade patriarkatets strikta lagar. Den första kvinnliga krigsherren i över ett sekel. Hennes namn susade som vinden över ökenfälten, lika mycket fruktanväckande som förhoppningsfullt. Hon hade utrottat den despotiska tyrannen Karg och ristat in sin rättvisa på det stenhjärtat som han lämnat efter sig. Men hennes segertåg hade bara börjat. Astrid visste att det krävdes mer än styrka för att bygga en ny värld. Hon behövde visdom, diplomati och en järnvilja för att bekämpa fördomar och skapa ett samhälle där alla hade möjlighet att blomstra.</code> | <code>Linnea sträckte ut handen mot det glimmrande kristallklara vattnet. Hon hade alltid älskat havet, dess mystik och det vilda frihet det gav. Hon drömde om att utforska dess djup, att segla till avlägsna öar och möta nya kulturer. Men hennes far, en mäktig handelsman, hade andra planer för henne. Han ville att hon skulle gifta sig med en rik köpmän och säkra familjens framtid. Linnea kände sig fångad, hennes drömmar kvävda av förväntningarna.</code> |
|
| 268 |
+
| <code>Vilka var de viktigaste ekonomiska och sociala konsekvenserna av användningen av mekaniska vävstolar under den industriella revolutionen i Storbritannien?</code> | <code>Den industriella revolutionen, som tog fart i Storbritannien under 1700-talet, markerades av en rad tekniska innovationer som radikalt förändrade samhället. En av de mest betydelsefulla uppfinningarna var den mekaniska vävstolen, som revolutionerade textilindustrin. Genom att automatisera vävprocessen ökade produktionen avsevärt, vilket ledde till lägre priser på textilier och ökad konsumtion. Den mekaniska vävstolen skapade nya arbetstillfällen i fabrikerna, men samtidigt bidrog den till arbetslöshet bland vävare som förlorade sina jobb. Detta skapade en social spänning och bidrog till uppkomsten av en ny arbetarklass. Den ökade produktionen av billigare textilier stimulerades handel och ekonomisk tillväxt. Industrialiseringen ledde dock också till överbefolkade städer, föroreningar och usla arbetsförhållanden. Kvinnor och barn utnyttjades ofta i fabrikerna under hårda förhållanden. Detta skapade ett behov av social reform och ledde till rörelser för förbättrade arbetsvillkor och sta...</code> | <code>Den brittiska textilindustrin var under 1700-talet en av världens ledande. Landet exporterade stora mängder bomullsvaror till Europa och kolonierna. Den växande efterfrågan på textilier ledde till en ökad användning av ull och bomull, vilket i sin tur bidrog till utvecklingen av nya handelsrutter. Den brittiska flottan spelade en avgörande roll i detta genom att skydda handelsfärderna och etablera kolonier som kunde leverera råvaror. Expansiva handelskolonier i Indien och Amerika förberedde vägen för Storbritanniens industriella dominance och bidrog till en växande medelklass.</code> |
|
| 269 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 270 |
+
```json
|
| 271 |
+
{
|
| 272 |
+
"scale": 35,
|
| 273 |
+
"similarity_fct": "cos_sim",
|
| 274 |
+
"mini_batch_size": 64,
|
| 275 |
+
"gather_across_devices": false,
|
| 276 |
+
"directions": [
|
| 277 |
+
"query_to_doc"
|
| 278 |
+
],
|
| 279 |
+
"partition_mode": "joint",
|
| 280 |
+
"hardness_mode": null,
|
| 281 |
+
"hardness_strength": 0.0
|
| 282 |
+
}
|
| 283 |
+
```
|
| 284 |
+
</details>
|
| 285 |
+
<details><summary>Norwegian Newspaper Articles</summary>
|
| 286 |
+
|
| 287 |
+
#### Norwegian Newspaper Articles
|
| 288 |
+
|
| 289 |
+
> [!IMPORTANT]
|
| 290 |
+
> Due to copyright restrictions, we are not able to provide samples from this dataset.
|
| 291 |
+
|
| 292 |
+
* Dataset: articles
|
| 293 |
+
* Size: 553,697 training samples
|
| 294 |
+
* Columns: <code>intro</code> and <code>text</code>
|
| 295 |
+
* Approximate statistics based on the first 100 samples:
|
| 296 |
+
| | intro | text |
|
| 297 |
+
|:---------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
|
| 298 |
+
| type | string | string |
|
| 299 |
+
| modality | text | text |
|
| 300 |
+
| details | <ul><li>min: 8 tokens</li><li>mean: 36.08 tokens</li><li>max: 73 tokens</li></ul> | <ul><li>min: 51 tokens</li><li>mean: 621.79 tokens</li><li>max: 1774 tokens</li></ul> |
|
| 301 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 302 |
+
```json
|
| 303 |
+
{
|
| 304 |
+
"scale": 35,
|
| 305 |
+
"similarity_fct": "cos_sim",
|
| 306 |
+
"mini_batch_size": 32,
|
| 307 |
+
"gather_across_devices": false,
|
| 308 |
+
"directions": [
|
| 309 |
+
"query_to_doc"
|
| 310 |
+
],
|
| 311 |
+
"partition_mode": "joint",
|
| 312 |
+
"hardness_mode": null,
|
| 313 |
+
"hardness_strength": 0.0
|
| 314 |
+
}
|
| 315 |
+
```
|
| 316 |
+
</details>
|
| 317 |
+
<details><summary>sentence-transformers/parallel-sentences-opus-100</summary>
|
| 318 |
+
|
| 319 |
+
#### English-Bokmål
|
| 320 |
+
|
| 321 |
+
* Dataset: opus100-en-nb
|
| 322 |
+
* Size: 142,906 training samples
|
| 323 |
+
* Columns: <code>english</code> and <code>non_english</code>
|
| 324 |
+
* Approximate statistics based on the first 100 samples:
|
| 325 |
+
| | english | non_english |
|
| 326 |
+
|:---------|:-----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
|
| 327 |
+
| type | string | string |
|
| 328 |
+
| modality | text | text |
|
| 329 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 10.35 tokens</li><li>max: 109 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 11.0 tokens</li><li>max: 99 tokens</li></ul> |
|
| 330 |
+
* Samples:
|
| 331 |
+
| english | non_english |
|
| 332 |
+
|:----------------------------------|:--------------------------------------|
|
| 333 |
+
| <code>Design E-R databases</code> | <code>Lag E-R databaser</code> |
|
| 334 |
+
| <code>as a valid day code.</code> | <code>som gyldig dagskode.</code> |
|
| 335 |
+
| <code>Importing %1...</code> | <code>Importerer% 1 & # 160; …</code> |
|
| 336 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 337 |
+
```json
|
| 338 |
+
{
|
| 339 |
+
"scale": 35,
|
| 340 |
+
"similarity_fct": "cos_sim",
|
| 341 |
+
"mini_batch_size": 32,
|
| 342 |
+
"gather_across_devices": false,
|
| 343 |
+
"directions": [
|
| 344 |
+
"query_to_doc",
|
| 345 |
+
"doc_to_query"
|
| 346 |
+
],
|
| 347 |
+
"partition_mode": "per_direction",
|
| 348 |
+
"hardness_mode": null,
|
| 349 |
+
"hardness_strength": 0.0
|
| 350 |
+
}
|
| 351 |
+
```
|
| 352 |
+
</details>
|
| 353 |
+
<details><summary>opus100-en-no</summary>
|
| 354 |
+
|
| 355 |
+
#### English-Norwegian
|
| 356 |
+
|
| 357 |
+
* Dataset: opus100-en-no
|
| 358 |
+
* Size: 1,000,000 training samples
|
| 359 |
+
* Columns: <code>english</code> and <code>non_english</code>
|
| 360 |
+
* Approximate statistics based on the first 100 samples:
|
| 361 |
+
| | english | non_english |
|
| 362 |
+
|:---------|:---------------------------------------------------------------------------------|:--------------------------------------------------------------------------------|
|
| 363 |
+
| type | string | string |
|
| 364 |
+
| modality | text | text |
|
| 365 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 9.76 tokens</li><li>max: 32 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 8.5 tokens</li><li>max: 25 tokens</li></ul> |
|
| 366 |
+
* Samples:
|
| 367 |
+
| english | non_english |
|
| 368 |
+
|:-------------------------------------------|:----------------------------|
|
| 369 |
+
| <code>Fine.</code> | <code>Greit.</code> |
|
| 370 |
+
| <code>- Who is he?</code> | <code>- Hvem er han?</code> |
|
| 371 |
+
| <code>Tell me if Michelle is alive.</code> | <code>Er hun i live?</code> |
|
| 372 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 373 |
+
```json
|
| 374 |
+
{
|
| 375 |
+
"scale": 35,
|
| 376 |
+
"similarity_fct": "cos_sim",
|
| 377 |
+
"mini_batch_size": 32,
|
| 378 |
+
"gather_across_devices": false,
|
| 379 |
+
"directions": [
|
| 380 |
+
"query_to_doc",
|
| 381 |
+
"doc_to_query"
|
| 382 |
+
],
|
| 383 |
+
"partition_mode": "per_direction",
|
| 384 |
+
"hardness_mode": null,
|
| 385 |
+
"hardness_strength": 0.0
|
| 386 |
+
}
|
| 387 |
+
```
|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
#### English-Nynorsk
|
| 391 |
+
|
| 392 |
+
* Dataset: opus100-en-nn
|
| 393 |
+
* Size: 486,055 training samples
|
| 394 |
+
* Columns: <code>english</code> and <code>non_english</code>
|
| 395 |
+
* Approximate statistics based on the first 100 samples:
|
| 396 |
+
| | english | non_english |
|
| 397 |
+
|:---------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
|
| 398 |
+
| type | string | string |
|
| 399 |
+
| modality | text | text |
|
| 400 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 10.03 tokens</li><li>max: 66 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 10.7 tokens</li><li>max: 71 tokens</li></ul> |
|
| 401 |
+
* Samples:
|
| 402 |
+
| english | non_english |
|
| 403 |
+
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 404 |
+
| <code>What to do with executable text files when they are activated (single or double clicked). Possible values are "launch" to launch them as programs, "ask" to ask what to do via a dialog, and "display" to display them as text files.</code> | <code>Kva som skal gjerast med køyrbare tekstfiler når dei vert aktiverte (enkelt- eller dobbeltklikka). Moglege verdiar er «launch» for å køyra dei som program, «ask» for å spørja i ein dialog, og «display» for å visa dei som tekstfiler.</code> |
|
| 405 |
+
| <code>Marsa Matruh</code> | <code>Marsa Matruh</code> |
|
| 406 |
+
| <code>US Dollar</code> | <code>Amerikansk dollar</code> |
|
| 407 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 408 |
+
```json
|
| 409 |
+
{
|
| 410 |
+
"scale": 35,
|
| 411 |
+
"similarity_fct": "cos_sim",
|
| 412 |
+
"mini_batch_size": 32,
|
| 413 |
+
"gather_across_devices": false,
|
| 414 |
+
"directions": [
|
| 415 |
+
"query_to_doc",
|
| 416 |
+
"doc_to_query"
|
| 417 |
+
],
|
| 418 |
+
"partition_mode": "per_direction",
|
| 419 |
+
"hardness_mode": null,
|
| 420 |
+
"hardness_strength": 0.0
|
| 421 |
+
}
|
| 422 |
+
```
|
| 423 |
+
</details>
|
| 424 |
+
<details><summary>lightonai/embeddings-pre-training</summary>
|
| 425 |
+
|
| 426 |
+
#### Norwegian Wikipedia Articles
|
| 427 |
+
|
| 428 |
+
* Dataset: wikipedia-no
|
| 429 |
+
* Size: 617,937 training samples
|
| 430 |
+
* Columns: <code>query</code> and <code>document</code>
|
| 431 |
+
* Approximate statistics based on the first 100 samples:
|
| 432 |
+
| | query | document |
|
| 433 |
+
|:---------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------|
|
| 434 |
+
| type | string | string |
|
| 435 |
+
| modality | text | text |
|
| 436 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 4.44 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>min: 74 tokens</li><li>mean: 1259.43 tokens</li><li>max: 2048 tokens</li></ul> |
|
| 437 |
+
* Samples:
|
| 438 |
+
| query | document |
|
| 439 |
+
|:---------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 440 |
+
| <code>Akershus</code> | <code>Akershus (fra norrønt akr, åker, og hús, borg eller kastell) er en norsk geografisk region med navn etter Akershus festning i Oslo, som siden middelalderen har betegnet ulike administrative provinser i Norge med Oslo som sentrum og hovedby, herunder et hovedlen, et stiftamt, et amt og et fylke; Akershus utgjør et valgdistrikt og vil fra 1. januar 2024 igjen være et fylke. Grensene for Akershus har endret seg over tid, og Akershus kan historisk forstås både som en stor riksdel (store Akershus) som omtrent sammenfalt med Østlandet og som en sentral provins i Osloregionen (lille Akershus) som tradisjonelt omfattet distriktene Aker (det moderne Oslo, Bærum og Asker), Follo og Romerike. I perioden 1948–2020 var Akershus navnet på et «restfylke�� som var vesentlig mindre enn tidligere etter at fylkets største og mest sentrale kommune Aker – som utgjør størstedelen av det moderne Oslo – hadde blitt overført til Oslo kommune (som da hadde fått status som eget fylke) og dermed splittet det reste...</code> |
|
| 441 |
+
| <code>Brus med ananassmak</code> | <code>Oskar Syltes brus med ananassmak, i dagligtale kalt ananasbrus, er en syntetisk fruktbrus fra Oskar Sylte Mineralvannfabrikk. Den har en dyp oransjebrun farge og en smak med hint av ananas.<br><br>Brusen med ananassmak har vært Oskar Syltes mestselgende produkt og er like gammel som bedriften selv. I 2004 utgjorde ananasbrus 20 til 30 prosent av firmaets salg.<br><br>Den har vært produsert etter samme oppskrift siden oppstarten i 1929.<br><br>Brusen finnes i 2022 også i en sukkerfri versjon. Den sukkerfrie brusen med ananassmak er søtet med aspartam og acesulfam K.<br><br>Se også<br>Oskar Sylte Mineralvannfabrikk<br><br>Referanser <br><br>Brus<br>Etableringer i 1929<br>Norsk drikke<br>Oskar Sylte</code> |
|
| 442 |
+
| <code>Adjø solidaritet</code> | <code>Adjø solidaritet er en norsk dramafilm fra 1985 regissert, skrevet og produsert av Svend Wam og Petter Vennerød. <br><br>Filmen er den tredje av en trilogi som har fått fellesbenevnelsen Sangen om den knuste drømmen som filmskaperne har beskrevet som «et oppgjør med den selvhøytidelige 1968-arven». De to andre er Åpen framtid og Drømmeslottet. Den er utgitt året før Drømmeslottet, men ligger innholdsmessig sist i trilogien. Adjø solidaritet regnes som filmduoens hovedverk.<br><br>Handling <br>Handlingen strekker seg over tre generasjonsperspektiver. Sentralt står Atle, en 40 år gammel psykiater og hans jevnaldrende venn, Eigil, som er teaterregissør. De er begge skilt og har barn som ikke bor hos dem. De mimrer om gamle dager og drømmer om å reise til Kina, men utenom det er de gamle idealene glemt og de koser seg med sin velstand og «vellykkethet». Begge sliter for å holde en fasade som hele tiden truer med å sprekke. Under Eigils 40-årslag kommer sannheten fram og aggresjonene slår ut i full blomst...</code> |
|
| 443 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 444 |
+
```json
|
| 445 |
+
{
|
| 446 |
+
"scale": 35,
|
| 447 |
+
"similarity_fct": "cos_sim",
|
| 448 |
+
"mini_batch_size": 32,
|
| 449 |
+
"gather_across_devices": false,
|
| 450 |
+
"directions": [
|
| 451 |
+
"query_to_doc"
|
| 452 |
+
],
|
| 453 |
+
"partition_mode": "joint",
|
| 454 |
+
"hardness_mode": null,
|
| 455 |
+
"hardness_strength": 0.0
|
| 456 |
+
}
|
| 457 |
+
```
|
| 458 |
+
</details>
|
| 459 |
+
|
| 460 |
+
### Training Hyperparameters
|
| 461 |
+
#### Non-Default Hyperparameters
|
| 462 |
+
|
| 463 |
+
- `per_device_train_batch_size`: 2048
|
| 464 |
+
- `num_train_epochs`: 1
|
| 465 |
+
- `learning_rate`: 1e-05
|
| 466 |
+
- `warmup_steps`: 0.1
|
| 467 |
+
- `weight_decay`: 0.1
|
| 468 |
+
- `bf16`: True
|
| 469 |
+
- `torch_compile`: True
|
| 470 |
+
- `torch_compile_backend`: inductor
|
| 471 |
+
- `per_device_eval_batch_size`: 32
|
| 472 |
+
- `dataloader_num_workers`: 4
|
| 473 |
+
- `batch_sampler`: no_duplicates
|
| 474 |
+
|
| 475 |
+
#### All Hyperparameters
|
| 476 |
+
<details><summary>Click to expand</summary>
|
| 477 |
+
|
| 478 |
+
- `per_device_train_batch_size`: 2048
|
| 479 |
+
- `num_train_epochs`: 1
|
| 480 |
+
- `max_steps`: -1
|
| 481 |
+
- `learning_rate`: 1e-05
|
| 482 |
+
- `lr_scheduler_type`: linear
|
| 483 |
+
- `lr_scheduler_kwargs`: None
|
| 484 |
+
- `warmup_steps`: 0.1
|
| 485 |
+
- `optim`: adamw_torch_fused
|
| 486 |
+
- `optim_args`: None
|
| 487 |
+
- `weight_decay`: 0.1
|
| 488 |
+
- `adam_beta1`: 0.9
|
| 489 |
+
- `adam_beta2`: 0.999
|
| 490 |
+
- `adam_epsilon`: 1e-08
|
| 491 |
+
- `optim_target_modules`: None
|
| 492 |
+
- `gradient_accumulation_steps`: 1
|
| 493 |
+
- `average_tokens_across_devices`: True
|
| 494 |
+
- `max_grad_norm`: 1.0
|
| 495 |
+
- `label_smoothing_factor`: 0.0
|
| 496 |
+
- `bf16`: True
|
| 497 |
+
- `fp16`: False
|
| 498 |
+
- `bf16_full_eval`: False
|
| 499 |
+
- `fp16_full_eval`: False
|
| 500 |
+
- `tf32`: None
|
| 501 |
+
- `gradient_checkpointing`: False
|
| 502 |
+
- `gradient_checkpointing_kwargs`: None
|
| 503 |
+
- `torch_compile`: True
|
| 504 |
+
- `torch_compile_backend`: inductor
|
| 505 |
+
- `torch_compile_mode`: None
|
| 506 |
+
- `use_liger_kernel`: False
|
| 507 |
+
- `liger_kernel_config`: None
|
| 508 |
+
- `use_cache`: False
|
| 509 |
+
- `neftune_noise_alpha`: None
|
| 510 |
+
- `torch_empty_cache_steps`: None
|
| 511 |
+
- `auto_find_batch_size`: False
|
| 512 |
+
- `log_on_each_node`: True
|
| 513 |
+
- `logging_nan_inf_filter`: True
|
| 514 |
+
- `include_num_input_tokens_seen`: no
|
| 515 |
+
- `log_level`: passive
|
| 516 |
+
- `log_level_replica`: warning
|
| 517 |
+
- `disable_tqdm`: False
|
| 518 |
+
- `project`: huggingface
|
| 519 |
+
- `trackio_space_id`: None
|
| 520 |
+
- `trackio_bucket_id`: None
|
| 521 |
+
- `trackio_static_space_id`: None
|
| 522 |
+
- `per_device_eval_batch_size`: 32
|
| 523 |
+
- `prediction_loss_only`: True
|
| 524 |
+
- `eval_on_start`: False
|
| 525 |
+
- `eval_do_concat_batches`: True
|
| 526 |
+
- `eval_use_gather_object`: False
|
| 527 |
+
- `eval_accumulation_steps`: None
|
| 528 |
+
- `include_for_metrics`: []
|
| 529 |
+
- `batch_eval_metrics`: False
|
| 530 |
+
- `save_only_model`: False
|
| 531 |
+
- `save_on_each_node`: False
|
| 532 |
+
- `enable_jit_checkpoint`: False
|
| 533 |
+
- `push_to_hub`: False
|
| 534 |
+
- `hub_private_repo`: None
|
| 535 |
+
- `hub_model_id`: None
|
| 536 |
+
- `hub_strategy`: every_save
|
| 537 |
+
- `hub_always_push`: False
|
| 538 |
+
- `hub_revision`: None
|
| 539 |
+
- `load_best_model_at_end`: False
|
| 540 |
+
- `ignore_data_skip`: False
|
| 541 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 542 |
+
- `full_determinism`: False
|
| 543 |
+
- `seed`: 42
|
| 544 |
+
- `data_seed`: None
|
| 545 |
+
- `use_cpu`: False
|
| 546 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 547 |
+
- `parallelism_config`: None
|
| 548 |
+
- `dataloader_drop_last`: False
|
| 549 |
+
- `dataloader_num_workers`: 4
|
| 550 |
+
- `dataloader_pin_memory`: True
|
| 551 |
+
- `dataloader_persistent_workers`: False
|
| 552 |
+
- `dataloader_prefetch_factor`: None
|
| 553 |
+
- `remove_unused_columns`: True
|
| 554 |
+
- `label_names`: None
|
| 555 |
+
- `train_sampling_strategy`: random
|
| 556 |
+
- `length_column_name`: length
|
| 557 |
+
- `ddp_find_unused_parameters`: None
|
| 558 |
+
- `ddp_bucket_cap_mb`: None
|
| 559 |
+
- `ddp_broadcast_buffers`: False
|
| 560 |
+
- `ddp_static_graph`: None
|
| 561 |
+
- `ddp_backend`: None
|
| 562 |
+
- `ddp_timeout`: 1800
|
| 563 |
+
- `fsdp`: None
|
| 564 |
+
- `fsdp_config`: None
|
| 565 |
+
- `deepspeed`: None
|
| 566 |
+
- `debug`: []
|
| 567 |
+
- `skip_memory_metrics`: True
|
| 568 |
+
- `do_predict`: False
|
| 569 |
+
- `resume_from_checkpoint`: None
|
| 570 |
+
- `warmup_ratio`: None
|
| 571 |
+
- `local_rank`: -1
|
| 572 |
+
- `prompts`: None
|
| 573 |
+
- `batch_sampler`: no_duplicates
|
| 574 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 575 |
+
- `router_mapping`: {}
|
| 576 |
+
- `learning_rate_mapping`: {}
|
| 577 |
+
|
| 578 |
+
</details>
|
| 579 |
+
|
| 580 |
+
### Training Logs
|
| 581 |
+
<details><summary>Click to expand</summary>
|
| 582 |
+
|
| 583 |
+
| Epoch | Step | Training Loss |
|
| 584 |
+
|:------:|:----:|:-------------:|
|
| 585 |
+
| 0.0029 | 5 | 7.5955 |
|
| 586 |
+
| 0.0059 | 10 | 7.5816 |
|
| 587 |
+
| 0.0088 | 15 | 7.7014 |
|
| 588 |
+
| 0.0117 | 20 | 7.6575 |
|
| 589 |
+
| 0.0147 | 25 | 7.5577 |
|
| 590 |
+
| 0.0176 | 30 | 7.5253 |
|
| 591 |
+
| 0.0205 | 35 | 7.3963 |
|
| 592 |
+
| 0.0234 | 40 | 7.3219 |
|
| 593 |
+
| 0.0264 | 45 | 7.1107 |
|
| 594 |
+
| 0.0293 | 50 | 6.8112 |
|
| 595 |
+
| 0.0322 | 55 | 6.1395 |
|
| 596 |
+
| 0.0352 | 60 | 5.5118 |
|
| 597 |
+
| 0.0381 | 65 | 4.1740 |
|
| 598 |
+
| 0.0410 | 70 | 3.1623 |
|
| 599 |
+
| 0.0440 | 75 | 3.3787 |
|
| 600 |
+
| 0.0469 | 80 | 2.5485 |
|
| 601 |
+
| 0.0498 | 85 | 2.3775 |
|
| 602 |
+
| 0.0528 | 90 | 1.6633 |
|
| 603 |
+
| 0.0557 | 95 | 1.8396 |
|
| 604 |
+
| 0.0586 | 100 | 1.1158 |
|
| 605 |
+
| 0.0615 | 105 | 1.7120 |
|
| 606 |
+
| 0.0645 | 110 | 1.3370 |
|
| 607 |
+
| 0.0674 | 115 | 1.6279 |
|
| 608 |
+
| 0.0703 | 120 | 1.4151 |
|
| 609 |
+
| 0.0733 | 125 | 1.5737 |
|
| 610 |
+
| 0.0762 | 130 | 1.1600 |
|
| 611 |
+
| 0.0791 | 135 | 1.1893 |
|
| 612 |
+
| 0.0821 | 140 | 0.5967 |
|
| 613 |
+
| 0.0850 | 145 | 1.0856 |
|
| 614 |
+
| 0.0879 | 150 | 0.8292 |
|
| 615 |
+
| 0.0909 | 155 | 0.8738 |
|
| 616 |
+
| 0.0938 | 160 | 1.0553 |
|
| 617 |
+
| 0.0967 | 165 | 1.1896 |
|
| 618 |
+
| 0.0996 | 170 | 0.8514 |
|
| 619 |
+
| 0.1026 | 175 | 1.0527 |
|
| 620 |
+
| 0.1055 | 180 | 1.0762 |
|
| 621 |
+
| 0.1084 | 185 | 1.0987 |
|
| 622 |
+
| 0.1114 | 190 | 0.8965 |
|
| 623 |
+
| 0.1143 | 195 | 1.0936 |
|
| 624 |
+
| 0.1172 | 200 | 1.0496 |
|
| 625 |
+
| 0.1202 | 205 | 0.9116 |
|
| 626 |
+
| 0.1231 | 210 | 0.9412 |
|
| 627 |
+
| 0.1260 | 215 | 1.0877 |
|
| 628 |
+
| 0.1290 | 220 | 1.1065 |
|
| 629 |
+
| 0.1319 | 225 | 0.8046 |
|
| 630 |
+
| 0.1348 | 230 | 1.0482 |
|
| 631 |
+
| 0.1377 | 235 | 0.9070 |
|
| 632 |
+
| 0.1407 | 240 | 0.6928 |
|
| 633 |
+
| 0.1436 | 245 | 0.9102 |
|
| 634 |
+
| 0.1465 | 250 | 0.8823 |
|
| 635 |
+
| 0.1495 | 255 | 0.7821 |
|
| 636 |
+
| 0.1524 | 260 | 0.7794 |
|
| 637 |
+
| 0.1553 | 265 | 0.7360 |
|
| 638 |
+
| 0.1583 | 270 | 0.7767 |
|
| 639 |
+
| 0.1612 | 275 | 0.8826 |
|
| 640 |
+
| 0.1641 | 280 | 0.9831 |
|
| 641 |
+
| 0.1671 | 285 | 0.9447 |
|
| 642 |
+
| 0.1700 | 290 | 0.7745 |
|
| 643 |
+
| 0.1729 | 295 | 0.8752 |
|
| 644 |
+
| 0.1758 | 300 | 1.0099 |
|
| 645 |
+
| 0.1788 | 305 | 0.6661 |
|
| 646 |
+
| 0.1817 | 310 | 0.9149 |
|
| 647 |
+
| 0.1846 | 315 | 0.7589 |
|
| 648 |
+
| 0.1876 | 320 | 0.6860 |
|
| 649 |
+
| 0.1905 | 325 | 0.6708 |
|
| 650 |
+
| 0.1934 | 330 | 0.6701 |
|
| 651 |
+
| 0.1964 | 335 | 0.8028 |
|
| 652 |
+
| 0.1993 | 340 | 0.6475 |
|
| 653 |
+
| 0.2022 | 345 | 0.2872 |
|
| 654 |
+
| 0.2052 | 350 | 0.4537 |
|
| 655 |
+
| 0.2081 | 355 | 0.3547 |
|
| 656 |
+
| 0.2110 | 360 | 0.8327 |
|
| 657 |
+
| 0.2140 | 365 | 0.8442 |
|
| 658 |
+
| 0.2169 | 370 | 0.7789 |
|
| 659 |
+
| 0.2198 | 375 | 0.5790 |
|
| 660 |
+
| 0.2227 | 380 | 0.6060 |
|
| 661 |
+
| 0.2257 | 385 | 0.7804 |
|
| 662 |
+
| 0.2286 | 390 | 1.0532 |
|
| 663 |
+
| 0.2315 | 395 | 0.8438 |
|
| 664 |
+
| 0.2345 | 400 | 0.7924 |
|
| 665 |
+
| 0.2374 | 405 | 0.6308 |
|
| 666 |
+
| 0.2403 | 410 | 0.4880 |
|
| 667 |
+
| 0.2433 | 415 | 0.7324 |
|
| 668 |
+
| 0.2462 | 420 | 0.6022 |
|
| 669 |
+
| 0.2491 | 425 | 0.8614 |
|
| 670 |
+
| 0.2521 | 430 | 0.7914 |
|
| 671 |
+
| 0.2550 | 435 | 1.0178 |
|
| 672 |
+
| 0.2579 | 440 | 0.6825 |
|
| 673 |
+
| 0.2608 | 445 | 0.9661 |
|
| 674 |
+
| 0.2638 | 450 | 0.9747 |
|
| 675 |
+
| 0.2667 | 455 | 0.7241 |
|
| 676 |
+
| 0.2696 | 460 | 0.9940 |
|
| 677 |
+
| 0.2726 | 465 | 0.5504 |
|
| 678 |
+
| 0.2755 | 470 | 1.0331 |
|
| 679 |
+
| 0.2784 | 475 | 0.7998 |
|
| 680 |
+
| 0.2814 | 480 | 0.8019 |
|
| 681 |
+
| 0.2843 | 485 | 1.0738 |
|
| 682 |
+
| 0.2872 | 490 | 0.8002 |
|
| 683 |
+
| 0.2902 | 495 | 0.7650 |
|
| 684 |
+
| 0.2931 | 500 | 0.2628 |
|
| 685 |
+
| 0.2960 | 505 | 0.8017 |
|
| 686 |
+
| 0.2989 | 510 | 0.5694 |
|
| 687 |
+
| 0.3019 | 515 | 0.7037 |
|
| 688 |
+
| 0.3048 | 520 | 0.6914 |
|
| 689 |
+
| 0.3077 | 525 | 0.9759 |
|
| 690 |
+
| 0.3107 | 530 | 0.4453 |
|
| 691 |
+
| 0.3136 | 535 | 0.7410 |
|
| 692 |
+
| 0.3165 | 540 | 0.6709 |
|
| 693 |
+
| 0.3195 | 545 | 0.5923 |
|
| 694 |
+
| 0.3224 | 550 | 0.5758 |
|
| 695 |
+
| 0.3253 | 555 | 0.9091 |
|
| 696 |
+
| 0.3283 | 560 | 0.5233 |
|
| 697 |
+
| 0.3312 | 565 | 0.8384 |
|
| 698 |
+
| 0.3341 | 570 | 0.8697 |
|
| 699 |
+
| 0.3370 | 575 | 0.6579 |
|
| 700 |
+
| 0.3400 | 580 | 0.6017 |
|
| 701 |
+
| 0.3429 | 585 | 0.6323 |
|
| 702 |
+
| 0.3458 | 590 | 0.5818 |
|
| 703 |
+
| 0.3488 | 595 | 0.6054 |
|
| 704 |
+
| 0.3517 | 600 | 0.3553 |
|
| 705 |
+
| 0.3546 | 605 | 0.7856 |
|
| 706 |
+
| 0.3576 | 610 | 0.6944 |
|
| 707 |
+
| 0.3605 | 615 | 0.5466 |
|
| 708 |
+
| 0.3634 | 620 | 0.8537 |
|
| 709 |
+
| 0.3664 | 625 | 0.7013 |
|
| 710 |
+
| 0.3693 | 630 | 0.5939 |
|
| 711 |
+
| 0.3722 | 635 | 0.8492 |
|
| 712 |
+
| 0.3751 | 640 | 0.6878 |
|
| 713 |
+
| 0.3781 | 645 | 0.6479 |
|
| 714 |
+
| 0.3810 | 650 | 0.7670 |
|
| 715 |
+
| 0.3839 | 655 | 0.8572 |
|
| 716 |
+
| 0.3869 | 660 | 0.6355 |
|
| 717 |
+
| 0.3898 | 665 | 0.3012 |
|
| 718 |
+
| 0.3927 | 670 | 0.8730 |
|
| 719 |
+
| 0.3957 | 675 | 0.7668 |
|
| 720 |
+
| 0.3986 | 680 | 0.6569 |
|
| 721 |
+
| 0.4015 | 685 | 0.4274 |
|
| 722 |
+
| 0.4045 | 690 | 0.6673 |
|
| 723 |
+
| 0.4074 | 695 | 0.5523 |
|
| 724 |
+
| 0.4103 | 700 | 0.7095 |
|
| 725 |
+
| 0.4132 | 705 | 0.7520 |
|
| 726 |
+
| 0.4162 | 710 | 0.8570 |
|
| 727 |
+
| 0.4191 | 715 | 0.7372 |
|
| 728 |
+
| 0.4220 | 720 | 0.6329 |
|
| 729 |
+
| 0.4250 | 725 | 0.8497 |
|
| 730 |
+
| 0.4279 | 730 | 0.5857 |
|
| 731 |
+
| 0.4308 | 735 | 0.8246 |
|
| 732 |
+
| 0.4338 | 740 | 0.5428 |
|
| 733 |
+
| 0.4367 | 745 | 0.9815 |
|
| 734 |
+
| 0.4396 | 750 | 0.7276 |
|
| 735 |
+
| 0.4426 | 755 | 0.4748 |
|
| 736 |
+
| 0.4455 | 760 | 0.5196 |
|
| 737 |
+
| 0.4484 | 765 | 0.7097 |
|
| 738 |
+
| 0.4513 | 770 | 0.5142 |
|
| 739 |
+
| 0.4543 | 775 | 0.5331 |
|
| 740 |
+
| 0.4572 | 780 | 0.6232 |
|
| 741 |
+
| 0.4601 | 785 | 0.8363 |
|
| 742 |
+
| 0.4631 | 790 | 0.7497 |
|
| 743 |
+
| 0.4660 | 795 | 0.2878 |
|
| 744 |
+
| 0.4689 | 800 | 0.8910 |
|
| 745 |
+
| 0.4719 | 805 | 0.9567 |
|
| 746 |
+
| 0.4748 | 810 | 0.6313 |
|
| 747 |
+
| 0.4777 | 815 | 0.7561 |
|
| 748 |
+
| 0.4807 | 820 | 0.4887 |
|
| 749 |
+
| 0.4836 | 825 | 0.8644 |
|
| 750 |
+
| 0.4865 | 830 | 0.7578 |
|
| 751 |
+
| 0.4894 | 835 | 0.7122 |
|
| 752 |
+
| 0.4924 | 840 | 0.7916 |
|
| 753 |
+
| 0.4953 | 845 | 0.6984 |
|
| 754 |
+
| 0.4982 | 850 | 0.5228 |
|
| 755 |
+
| 0.5012 | 855 | 0.5246 |
|
| 756 |
+
| 0.5041 | 860 | 0.7722 |
|
| 757 |
+
| 0.5070 | 865 | 0.6085 |
|
| 758 |
+
| 0.5100 | 870 | 0.8898 |
|
| 759 |
+
| 0.5129 | 875 | 0.7115 |
|
| 760 |
+
| 0.5158 | 880 | 0.4949 |
|
| 761 |
+
| 0.5188 | 885 | 0.5294 |
|
| 762 |
+
| 0.5217 | 890 | 0.5513 |
|
| 763 |
+
| 0.5246 | 895 | 0.7735 |
|
| 764 |
+
| 0.5275 | 900 | 0.8193 |
|
| 765 |
+
| 0.5305 | 905 | 0.7271 |
|
| 766 |
+
| 0.5334 | 910 | 0.9330 |
|
| 767 |
+
| 0.5363 | 915 | 0.7356 |
|
| 768 |
+
| 0.5393 | 920 | 0.5616 |
|
| 769 |
+
| 0.5422 | 925 | 0.7234 |
|
| 770 |
+
| 0.5451 | 930 | 0.6413 |
|
| 771 |
+
| 0.5481 | 935 | 0.5226 |
|
| 772 |
+
| 0.5510 | 940 | 0.5052 |
|
| 773 |
+
| 0.5539 | 945 | 0.9245 |
|
| 774 |
+
| 0.5569 | 950 | 0.4969 |
|
| 775 |
+
| 0.5598 | 955 | 0.7996 |
|
| 776 |
+
| 0.5627 | 960 | 0.4532 |
|
| 777 |
+
| 0.5657 | 965 | 0.6838 |
|
| 778 |
+
| 0.5686 | 970 | 0.9007 |
|
| 779 |
+
| 0.5715 | 975 | 0.5117 |
|
| 780 |
+
| 0.5744 | 980 | 0.8183 |
|
| 781 |
+
| 0.5774 | 985 | 0.3350 |
|
| 782 |
+
| 0.5803 | 990 | 0.8144 |
|
| 783 |
+
| 0.5832 | 995 | 0.8631 |
|
| 784 |
+
| 0.5862 | 1000 | 0.6076 |
|
| 785 |
+
| 0.5891 | 1005 | 0.8326 |
|
| 786 |
+
| 0.5920 | 1010 | 0.7288 |
|
| 787 |
+
| 0.5950 | 1015 | 0.7134 |
|
| 788 |
+
| 0.5979 | 1020 | 0.8900 |
|
| 789 |
+
| 0.6008 | 1025 | 0.8402 |
|
| 790 |
+
| 0.6038 | 1030 | 0.4814 |
|
| 791 |
+
| 0.6067 | 1035 | 0.7515 |
|
| 792 |
+
| 0.6096 | 1040 | 0.5658 |
|
| 793 |
+
| 0.6125 | 1045 | 0.5963 |
|
| 794 |
+
| 0.6155 | 1050 | 0.6990 |
|
| 795 |
+
| 0.6184 | 1055 | 0.7138 |
|
| 796 |
+
| 0.6213 | 1060 | 0.5401 |
|
| 797 |
+
| 0.6243 | 1065 | 0.4821 |
|
| 798 |
+
| 0.6272 | 1070 | 0.6554 |
|
| 799 |
+
| 0.6301 | 1075 | 0.7014 |
|
| 800 |
+
| 0.6331 | 1080 | 0.9486 |
|
| 801 |
+
| 0.6360 | 1085 | 0.6862 |
|
| 802 |
+
| 0.6389 | 1090 | 0.3496 |
|
| 803 |
+
| 0.6419 | 1095 | 0.5882 |
|
| 804 |
+
| 0.6448 | 1100 | 0.7858 |
|
| 805 |
+
| 0.6477 | 1105 | 0.6224 |
|
| 806 |
+
| 0.6506 | 1110 | 0.6669 |
|
| 807 |
+
| 0.6536 | 1115 | 0.4633 |
|
| 808 |
+
| 0.6565 | 1120 | 0.7900 |
|
| 809 |
+
| 0.6594 | 1125 | 0.5643 |
|
| 810 |
+
| 0.6624 | 1130 | 0.4630 |
|
| 811 |
+
| 0.6653 | 1135 | 0.5703 |
|
| 812 |
+
| 0.6682 | 1140 | 0.5081 |
|
| 813 |
+
| 0.6712 | 1145 | 0.5944 |
|
| 814 |
+
| 0.6741 | 1150 | 0.6063 |
|
| 815 |
+
| 0.6770 | 1155 | 0.5952 |
|
| 816 |
+
| 0.6800 | 1160 | 0.6759 |
|
| 817 |
+
| 0.6829 | 1165 | 0.7026 |
|
| 818 |
+
| 0.6858 | 1170 | 0.7117 |
|
| 819 |
+
| 0.6887 | 1175 | 0.5701 |
|
| 820 |
+
| 0.6917 | 1180 | 0.6050 |
|
| 821 |
+
| 0.6946 | 1185 | 0.6851 |
|
| 822 |
+
| 0.6975 | 1190 | 0.5407 |
|
| 823 |
+
| 0.7005 | 1195 | 0.4941 |
|
| 824 |
+
| 0.7034 | 1200 | 0.7667 |
|
| 825 |
+
| 0.7063 | 1205 | 0.6395 |
|
| 826 |
+
| 0.7093 | 1210 | 0.7070 |
|
| 827 |
+
| 0.7122 | 1215 | 0.5171 |
|
| 828 |
+
| 0.7151 | 1220 | 0.7127 |
|
| 829 |
+
| 0.7181 | 1225 | 0.7193 |
|
| 830 |
+
| 0.7210 | 1230 | 0.9277 |
|
| 831 |
+
| 0.7239 | 1235 | 0.6884 |
|
| 832 |
+
| 0.7268 | 1240 | 0.7051 |
|
| 833 |
+
| 0.7298 | 1245 | 0.5338 |
|
| 834 |
+
| 0.7327 | 1250 | 0.6949 |
|
| 835 |
+
| 0.7356 | 1255 | 0.7186 |
|
| 836 |
+
| 0.7386 | 1260 | 0.4819 |
|
| 837 |
+
| 0.7415 | 1265 | 0.7712 |
|
| 838 |
+
| 0.7444 | 1270 | 0.5714 |
|
| 839 |
+
| 0.7474 | 1275 | 0.6530 |
|
| 840 |
+
| 0.7503 | 1280 | 0.8770 |
|
| 841 |
+
| 0.7532 | 1285 | 0.5687 |
|
| 842 |
+
| 0.7562 | 1290 | 0.4135 |
|
| 843 |
+
| 0.7591 | 1295 | 0.7705 |
|
| 844 |
+
| 0.7620 | 1300 | 0.5723 |
|
| 845 |
+
| 0.7649 | 1305 | 0.6487 |
|
| 846 |
+
| 0.7679 | 1310 | 0.5961 |
|
| 847 |
+
| 0.7708 | 1315 | 0.5595 |
|
| 848 |
+
| 0.7737 | 1320 | 0.4756 |
|
| 849 |
+
| 0.7767 | 1325 | 0.8796 |
|
| 850 |
+
| 0.7796 | 1330 | 0.8336 |
|
| 851 |
+
| 0.7825 | 1335 | 0.6797 |
|
| 852 |
+
| 0.7855 | 1340 | 0.7557 |
|
| 853 |
+
| 0.7884 | 1345 | 0.7195 |
|
| 854 |
+
| 0.7913 | 1350 | 0.3796 |
|
| 855 |
+
| 0.7943 | 1355 | 0.2789 |
|
| 856 |
+
| 0.7972 | 1360 | 0.7686 |
|
| 857 |
+
| 0.8001 | 1365 | 0.3877 |
|
| 858 |
+
| 0.8030 | 1370 | 0.5925 |
|
| 859 |
+
| 0.8060 | 1375 | 0.8123 |
|
| 860 |
+
| 0.8089 | 1380 | 0.5379 |
|
| 861 |
+
| 0.8118 | 1385 | 0.5653 |
|
| 862 |
+
| 0.8148 | 1390 | 0.7583 |
|
| 863 |
+
| 0.8177 | 1395 | 0.6128 |
|
| 864 |
+
| 0.8206 | 1400 | 0.4332 |
|
| 865 |
+
| 0.8236 | 1405 | 0.3965 |
|
| 866 |
+
| 0.8265 | 1410 | 0.5627 |
|
| 867 |
+
| 0.8294 | 1415 | 0.6939 |
|
| 868 |
+
| 0.8324 | 1420 | 0.9243 |
|
| 869 |
+
| 0.8353 | 1425 | 0.4527 |
|
| 870 |
+
| 0.8382 | 1430 | 0.3815 |
|
| 871 |
+
| 0.8411 | 1435 | 0.7637 |
|
| 872 |
+
| 0.8441 | 1440 | 0.9213 |
|
| 873 |
+
| 0.8470 | 1445 | 0.7368 |
|
| 874 |
+
| 0.8499 | 1450 | 0.7620 |
|
| 875 |
+
| 0.8529 | 1455 | 0.5343 |
|
| 876 |
+
| 0.8558 | 1460 | 0.5445 |
|
| 877 |
+
| 0.8587 | 1465 | 0.4690 |
|
| 878 |
+
| 0.8617 | 1470 | 0.4800 |
|
| 879 |
+
| 0.8646 | 1475 | 0.3419 |
|
| 880 |
+
| 0.8675 | 1480 | 0.4479 |
|
| 881 |
+
| 0.8705 | 1485 | 0.5049 |
|
| 882 |
+
| 0.8734 | 1490 | 0.7762 |
|
| 883 |
+
| 0.8763 | 1495 | 0.7801 |
|
| 884 |
+
| 0.8792 | 1500 | 0.6016 |
|
| 885 |
+
| 0.8822 | 1505 | 0.3796 |
|
| 886 |
+
| 0.8851 | 1510 | 0.6956 |
|
| 887 |
+
| 0.8880 | 1515 | 0.5125 |
|
| 888 |
+
| 0.8910 | 1520 | 0.5326 |
|
| 889 |
+
| 0.8939 | 1525 | 0.6464 |
|
| 890 |
+
| 0.8968 | 1530 | 0.7555 |
|
| 891 |
+
| 0.8998 | 1535 | 0.8118 |
|
| 892 |
+
| 0.9027 | 1540 | 0.4005 |
|
| 893 |
+
| 0.9056 | 1545 | 0.5119 |
|
| 894 |
+
| 0.9086 | 1550 | 0.7547 |
|
| 895 |
+
| 0.9115 | 1555 | 0.7086 |
|
| 896 |
+
| 0.9144 | 1560 | 0.5353 |
|
| 897 |
+
| 0.9174 | 1565 | 0.4528 |
|
| 898 |
+
| 0.9203 | 1570 | 0.5549 |
|
| 899 |
+
| 0.9232 | 1575 | 0.5291 |
|
| 900 |
+
| 0.9261 | 1580 | 0.8093 |
|
| 901 |
+
| 0.9291 | 1585 | 0.6649 |
|
| 902 |
+
| 0.9320 | 1590 | 0.6920 |
|
| 903 |
+
| 0.9349 | 1595 | 0.4006 |
|
| 904 |
+
| 0.9379 | 1600 | 0.6892 |
|
| 905 |
+
| 0.9408 | 1605 | 0.5810 |
|
| 906 |
+
| 0.9437 | 1610 | 0.7119 |
|
| 907 |
+
| 0.9467 | 1615 | 0.4465 |
|
| 908 |
+
| 0.9496 | 1620 | 0.7023 |
|
| 909 |
+
| 0.9525 | 1625 | 0.4132 |
|
| 910 |
+
| 0.9555 | 1630 | 0.4077 |
|
| 911 |
+
| 0.9584 | 1635 | 0.3779 |
|
| 912 |
+
| 0.9613 | 1640 | 0.8586 |
|
| 913 |
+
| 0.9642 | 1645 | 0.4579 |
|
| 914 |
+
| 0.9672 | 1650 | 0.7172 |
|
| 915 |
+
| 0.9701 | 1655 | 0.7983 |
|
| 916 |
+
| 0.9730 | 1660 | 0.7143 |
|
| 917 |
+
| 0.9760 | 1665 | 0.6236 |
|
| 918 |
+
| 0.9789 | 1670 | 0.4868 |
|
| 919 |
+
| 0.9818 | 1675 | 0.8585 |
|
| 920 |
+
| 0.9848 | 1680 | 0.4718 |
|
| 921 |
+
| 0.9877 | 1685 | 0.7351 |
|
| 922 |
+
| 0.9906 | 1690 | 0.4799 |
|
| 923 |
+
| 0.9936 | 1695 | 0.5694 |
|
| 924 |
+
| 0.9965 | 1700 | 0.4681 |
|
| 925 |
+
| 0.9994 | 1705 | 0.7303 |
|
| 926 |
+
|
| 927 |
+
</details>
|
| 928 |
+
|
| 929 |
+
### Training Time
|
| 930 |
+
- **Training**: 7.1 hours
|
| 931 |
+
|
| 932 |
+
### Framework Versions
|
| 933 |
+
- Python: 3.12.3
|
| 934 |
+
- Sentence Transformers: 5.6.0
|
| 935 |
+
- Transformers: 5.14.1
|
| 936 |
+
- PyTorch: 2.13.0+cu130
|
| 937 |
+
- Accelerate: 1.14.0
|
| 938 |
+
- Datasets: 5.0.0
|
| 939 |
+
- Tokenizers: 0.22.2
|
| 940 |
+
|
| 941 |
+
## License
|
| 942 |
+
|
| 943 |
+
The license of this model is an adaptation of the Apache 2.0 license with
|
| 944 |
+
additional use-based restrictions. In particular, users of the model are
|
| 945 |
+
required to refrain from intentionally using the model to recreate data the
|
| 946 |
+
model has been trained on. The license also requires users not to use the model
|
| 947 |
+
or its output to provide end-user services whose primary purpose is to give
|
| 948 |
+
access to licensed press publications in the training data.
|
| 949 |
+
|
| 950 |
+
For more information, see the [LICENSE](./LICENSE) and the [License FAQ](./LICENSE_FAQ.pdf).
|
| 951 |
+
|
| 952 |
+
## Authenticity
|
| 953 |
+
|
| 954 |
+
This model release is signed by the National Library of Norway. The signed
|
| 955 |
+
manifest in `signing/SHA256SUMS` covers the model-runtime artifacts, including
|
| 956 |
+
model weights, configuration, and tokenizer files.
|
| 957 |
+
|
| 958 |
+
To verify model authenticity and file integrity after downloading the
|
| 959 |
+
repository, run:
|
| 960 |
+
|
| 961 |
+
```bash
|
| 962 |
+
bash signing/verify.sh
|
| 963 |
+
```
|
| 964 |
+
|
| 965 |
+
For more verification instructions, see [ai.nb.no/verify](https://ai.nb.no/verify).
|
| 966 |
+
|
| 967 |
+
# Citation and Contributors
|
| 968 |
+
|
| 969 |
+
The Borealis Embed family of models is a joint effort of multiple teams at the National Library of Norway. Led by Lucas Georges Gabriel Charpentier and Victoria Handford, key contributors include (in alphabetical order) Rolv-Arild Braaten, Javier de la Rosa, and Marthe Løken Midtgaard.
|
| 970 |
+
|
| 971 |
+
A tecnical report will be released soon.
|
| 972 |
+
|
| 973 |
+
### BibTeX
|
| 974 |
+
|
| 975 |
+
#### Dual Objective Language Models
|
| 976 |
+
```bibtex
|
| 977 |
+
@misc{samuel2026dualobjectivelanguagemodelstraining,
|
| 978 |
+
title={Dual-objective Language Models: Training Efficiency Without Overfitting},
|
| 979 |
+
author={David Samuel and Lucas Georges Gabriel Charpentier},
|
| 980 |
+
year={2026},
|
| 981 |
+
eprint={2512.14549},
|
| 982 |
+
archivePrefix={arXiv},
|
| 983 |
+
primaryClass={cs.CL},
|
| 984 |
+
url={https://arxiv.org/abs/2512.14549},
|
| 985 |
+
}
|
| 986 |
+
```
|
| 987 |
+
|
| 988 |
+
#### Sentence Transformers
|
| 989 |
+
```bibtex
|
| 990 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 991 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 992 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 993 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 994 |
+
month = "11",
|
| 995 |
+
year = "2019",
|
| 996 |
+
publisher = "Association for Computational Linguistics",
|
| 997 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 998 |
+
}
|
| 999 |
+
```
|
| 1000 |
+
|
| 1001 |
+
#### CachedMultipleNegativesRankingLoss
|
| 1002 |
+
```bibtex
|
| 1003 |
+
@misc{gao2021scaling,
|
| 1004 |
+
title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
|
| 1005 |
+
author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
|
| 1006 |
+
year={2021},
|
| 1007 |
+
eprint={2101.06983},
|
| 1008 |
+
archivePrefix={arXiv},
|
| 1009 |
+
primaryClass={cs.LG}
|
| 1010 |
+
}
|
| 1011 |
+
```
|
| 1012 |
+
|
| 1013 |
+
#### The Scandinavian Embedding Benchmark
|
| 1014 |
+
```bibtex
|
| 1015 |
+
@article{enevoldsenScandinavianEmbeddingBenchmarks2024,
|
| 1016 |
+
author = {Enevoldsen, Kenneth and Kardos, Márton and Muennighoff, Niklas and Nielbo, Kristoffer},
|
| 1017 |
+
language = {en},
|
| 1018 |
+
month = feb,
|
| 1019 |
+
shorttitle = {The {Scandinavian} {Embedding} {Benchmarks}},
|
| 1020 |
+
title = {The {Scandinavian} {Embedding} {Benchmarks}: {Comprehensive} {Assessment} of {Multilingual} and {Monolingual} {Text} {Embedding}},
|
| 1021 |
+
url = {https://openreview.net/forum?id=pJl_i7HIA72},
|
| 1022 |
+
urldate = {2024-04-12},
|
| 1023 |
+
year = {2024},
|
| 1024 |
+
}
|
| 1025 |
+
```
|
| 1026 |
+
|
| 1027 |
+
#### The Long-context Retrieval Benchmark
|
| 1028 |
+
```bibtex
|
| 1029 |
+
@article{zhu2024longembed,
|
| 1030 |
+
author = {Zhu, Dawei and Wang, Liang and Yang, Nan and Song, Yifan and Wu, Wenhao and Wei, Furu and Li, Sujian},
|
| 1031 |
+
journal = {arXiv preprint arXiv:2404.12096},
|
| 1032 |
+
title = {LongEmbed: Extending Embedding Models for Long Context Retrieval},
|
| 1033 |
+
year = {2024},
|
| 1034 |
+
}
|
| 1035 |
+
```
|
| 1036 |
+
|
| 1037 |
+
# Disclaimer
|
| 1038 |
+
|
| 1039 |
+
These models may have bias and/or any other undesirable distortions. When third parties, deploy or provide systems and/or services to other parties using any of these models (or using systems based on these models) or become users of the models, they should note that it is their responsibility to mitigate the risks arising from their use and, in any event, to comply with applicable regulations, including regulations regarding the use of artificial intelligence. In no event shall the owner of the models (The National Library of Norway) be liable for any results arising from the use made by third parties of these models.
|
| 1040 |
+
|
| 1041 |
+
# Contact
|
| 1042 |
+
|
| 1043 |
+
For feedback, technical concerns, or collaboration inquiries, please contact ailab@nb.no.
|
borealis.png
ADDED
|
Git LFS Details
|
config.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_sliding_window_pattern": 4,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Gemma3TextModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"attn_logit_softcapping": null,
|
| 9 |
+
"bos_token_id": 1,
|
| 10 |
+
"cls_token_id": 5,
|
| 11 |
+
"dtype": "float32",
|
| 12 |
+
"eos_token_id": 2,
|
| 13 |
+
"final_logit_softcapping": null,
|
| 14 |
+
"head_dim": 64,
|
| 15 |
+
"hidden_activation": "silu",
|
| 16 |
+
"hidden_size": 768,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 3072,
|
| 19 |
+
"layer_types": [
|
| 20 |
+
"sliding_attention",
|
| 21 |
+
"sliding_attention",
|
| 22 |
+
"sliding_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"sliding_attention",
|
| 25 |
+
"sliding_attention",
|
| 26 |
+
"sliding_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"sliding_attention",
|
| 29 |
+
"sliding_attention",
|
| 30 |
+
"sliding_attention",
|
| 31 |
+
"full_attention"
|
| 32 |
+
],
|
| 33 |
+
"mask_token_id": 4,
|
| 34 |
+
"max_position_embeddings": 8192,
|
| 35 |
+
"model_type": "gemma3_text",
|
| 36 |
+
"num_attention_heads": 12,
|
| 37 |
+
"num_hidden_layers": 12,
|
| 38 |
+
"num_key_value_heads": 12,
|
| 39 |
+
"pad_token_id": 3,
|
| 40 |
+
"prefix_token_ids": [
|
| 41 |
+
1
|
| 42 |
+
],
|
| 43 |
+
"query_pre_attn_scalar": 64,
|
| 44 |
+
"rms_norm_eps": 1e-07,
|
| 45 |
+
"rope_parameters": {
|
| 46 |
+
"full_attention": {
|
| 47 |
+
"rope_theta": 100000,
|
| 48 |
+
"rope_type": "default"
|
| 49 |
+
},
|
| 50 |
+
"sliding_attention": {
|
| 51 |
+
"rope_theta": 10000,
|
| 52 |
+
"rope_type": "default"
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
"sliding_window": 1024,
|
| 56 |
+
"tie_word_embeddings": true,
|
| 57 |
+
"transformers_version": "5.14.1",
|
| 58 |
+
"unk_token_id": 0,
|
| 59 |
+
"use_bidirectional_attention": true,
|
| 60 |
+
"use_cache": false,
|
| 61 |
+
"vocab_size": 128000
|
| 62 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"pytorch": "2.13.0+cu130",
|
| 4 |
+
"sentence_transformers": "5.6.0",
|
| 5 |
+
"transformers": "5.14.1"
|
| 6 |
+
},
|
| 7 |
+
"default_prompt_name": null,
|
| 8 |
+
"model_type": "SentenceTransformer",
|
| 9 |
+
"prompts": {
|
| 10 |
+
"document": "",
|
| 11 |
+
"query": ""
|
| 12 |
+
},
|
| 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:6c2cad752fb5bd554e82a92034c24df54c03b149787b5645044ff0ac3b27c008
|
| 3 |
+
size 846374184
|
modules.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": "",
|
| 6 |
+
"type": "sentence_transformers.base.modules.transformer.Transformer"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_Pooling",
|
| 12 |
+
"type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
|
| 13 |
+
}
|
| 14 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"transformer_task": "feature-extraction",
|
| 3 |
+
"modality_config": {
|
| 4 |
+
"text": {
|
| 5 |
+
"method": "forward",
|
| 6 |
+
"method_output_name": "last_hidden_state"
|
| 7 |
+
}
|
| 8 |
+
},
|
| 9 |
+
"module_output_name": "token_embeddings"
|
| 10 |
+
}
|
signing/SHA256SUMS
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
8759bdf7c77efc7df7723f64856a593c8943b71ee38baf2a88771fbaf78438f9 1_Pooling/config.json
|
| 2 |
+
3fe6363c837f9e29618ec3e313fd3e8369c1ae8929849f02587eaf6f767c21c3 config.json
|
| 3 |
+
ca1bdbcaae457864cd2dde792a0b8ffbcdc15703962e2b01399a84c649b76d63 config_sentence_transformers.json
|
| 4 |
+
6c2cad752fb5bd554e82a92034c24df54c03b149787b5645044ff0ac3b27c008 model.safetensors
|
| 5 |
+
e4068aab8a95663636c4c28044a95eafdb6492387397ec8283d8f8b31078d645 modules.json
|
| 6 |
+
3084164002c0bca01b0259c5327123803fce32e660a57feb93184ffead186fc8 sentence_bert_config.json
|
| 7 |
+
8f3e348b92e29cd9d9075248143c94dcbcaae0c8c8b5f1f0c248324b7c0ff1ee tokenizer.json
|
| 8 |
+
afed0b722bba26ec9bdd7ebb16ae4d174d3754f8538da15fb6cf8bbed5916a48 tokenizer_config.json
|
signing/SHA256SUMS.sig
ADDED
|
Binary file (512 Bytes). View file
|
|
|
signing/ca-chain.pem
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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JKcXZpwnegxchSdjMn62WESKM636yJYdsZAikCs8T+sopK
|
| 39 |
+
-----END CERTIFICATE-----
|
signing/verify.sh
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#
|
| 3 |
+
# Verify the integrity and authenticity of this model release.
|
| 4 |
+
#
|
| 5 |
+
# Usage: bash signing/verify.sh
|
| 6 |
+
#
|
| 7 |
+
# This script verifies:
|
| 8 |
+
# 1. The signing certificate is issued by a trusted CA
|
| 9 |
+
# 2. The SHA256SUMS manifest was signed by Nasjonalbiblioteket
|
| 10 |
+
# 3. All file checksums match the manifest
|
| 11 |
+
#
|
| 12 |
+
|
| 13 |
+
set -euo pipefail
|
| 14 |
+
|
| 15 |
+
RED='\033[0;31m'
|
| 16 |
+
GREEN='\033[0;32m'
|
| 17 |
+
NC='\033[0m'
|
| 18 |
+
|
| 19 |
+
pass() { echo -e "${GREEN}[PASS]${NC} $*"; }
|
| 20 |
+
fail() { echo -e "${RED}[FAIL]${NC} $*" >&2; }
|
| 21 |
+
|
| 22 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 23 |
+
MODEL_DIR="$(dirname "$SCRIPT_DIR")"
|
| 24 |
+
SIGNING_DIR="$SCRIPT_DIR"
|
| 25 |
+
|
| 26 |
+
cd "$MODEL_DIR"
|
| 27 |
+
|
| 28 |
+
errors=0
|
| 29 |
+
|
| 30 |
+
# Check required files exist
|
| 31 |
+
for f in "$SIGNING_DIR/SHA256SUMS" "$SIGNING_DIR/SHA256SUMS.sig" \
|
| 32 |
+
"$SIGNING_DIR/cert.pem" "$SIGNING_DIR/ca-chain.pem"; do
|
| 33 |
+
if [[ ! -f "$f" ]]; then
|
| 34 |
+
fail "Missing file: $f"
|
| 35 |
+
errors=$((errors + 1))
|
| 36 |
+
fi
|
| 37 |
+
done
|
| 38 |
+
|
| 39 |
+
if [[ $errors -gt 0 ]]; then
|
| 40 |
+
echo ""
|
| 41 |
+
fail "Required signing files are missing. Cannot verify."
|
| 42 |
+
exit 1
|
| 43 |
+
fi
|
| 44 |
+
|
| 45 |
+
echo "=== Nasjonalbiblioteket Model Verification ==="
|
| 46 |
+
echo ""
|
| 47 |
+
|
| 48 |
+
# Show certificate info
|
| 49 |
+
echo "Certificate subject:"
|
| 50 |
+
openssl x509 -in "$SIGNING_DIR/cert.pem" -subject -noout 2>/dev/null | sed 's/^subject=/ /'
|
| 51 |
+
echo "Certificate issuer:"
|
| 52 |
+
openssl x509 -in "$SIGNING_DIR/cert.pem" -issuer -noout 2>/dev/null | sed 's/^issuer=/ /'
|
| 53 |
+
echo "Certificate fingerprint (SHA-256):"
|
| 54 |
+
openssl x509 -in "$SIGNING_DIR/cert.pem" -fingerprint -sha256 -noout 2>/dev/null | sed 's/^.*=/ /'
|
| 55 |
+
echo ""
|
| 56 |
+
|
| 57 |
+
# 1. Verify certificate chain
|
| 58 |
+
echo "--- Step 1: Verify certificate chain ---"
|
| 59 |
+
if openssl verify -CAfile "$SIGNING_DIR/ca-chain.pem" "$SIGNING_DIR/cert.pem" > /dev/null 2>&1; then
|
| 60 |
+
pass "Certificate chain is valid."
|
| 61 |
+
else
|
| 62 |
+
fail "Certificate chain verification failed!"
|
| 63 |
+
errors=$((errors + 1))
|
| 64 |
+
fi
|
| 65 |
+
|
| 66 |
+
# 2. Verify signature
|
| 67 |
+
echo "--- Step 2: Verify manifest signature ---"
|
| 68 |
+
PUBKEY=$(mktemp)
|
| 69 |
+
trap "rm -f '$PUBKEY'" EXIT
|
| 70 |
+
openssl x509 -in "$SIGNING_DIR/cert.pem" -pubkey -noout > "$PUBKEY" 2>/dev/null
|
| 71 |
+
|
| 72 |
+
if openssl dgst -sha256 -verify "$PUBKEY" \
|
| 73 |
+
-signature "$SIGNING_DIR/SHA256SUMS.sig" \
|
| 74 |
+
"$SIGNING_DIR/SHA256SUMS" > /dev/null 2>&1; then
|
| 75 |
+
pass "Manifest signature is valid."
|
| 76 |
+
else
|
| 77 |
+
fail "Manifest signature verification failed!"
|
| 78 |
+
errors=$((errors + 1))
|
| 79 |
+
fi
|
| 80 |
+
|
| 81 |
+
# 3. Verify file checksums
|
| 82 |
+
echo "--- Step 3: Verify file checksums ---"
|
| 83 |
+
if sha256sum -c "$SIGNING_DIR/SHA256SUMS" 2>/dev/null; then
|
| 84 |
+
pass "All file checksums match."
|
| 85 |
+
else
|
| 86 |
+
fail "One or more file checksums do not match!"
|
| 87 |
+
errors=$((errors + 1))
|
| 88 |
+
fi
|
| 89 |
+
|
| 90 |
+
# Summary
|
| 91 |
+
echo ""
|
| 92 |
+
if [[ $errors -eq 0 ]]; then
|
| 93 |
+
echo -e "${GREEN}✅ Verification successful. All files are authentic and unmodified.${NC}"
|
| 94 |
+
exit 0
|
| 95 |
+
else
|
| 96 |
+
echo -e "${RED}❌ Verification failed with $errors error(s).${NC}"
|
| 97 |
+
exit 1
|
| 98 |
+
fi
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"cls_token": "<cls>",
|
| 5 |
+
"eos_token": "</s>",
|
| 6 |
+
"is_local": false,
|
| 7 |
+
"local_files_only": false,
|
| 8 |
+
"mask_token": "<mask>",
|
| 9 |
+
"model_max_length": 8192,
|
| 10 |
+
"pad_token": "<pad>",
|
| 11 |
+
"tokenizer_class": "TokenizersBackend",
|
| 12 |
+
"unk_token": "<unk>"
|
| 13 |
+
}
|