Datasets:
Add files using upload-large-folder tool
Browse files- v1.0/experiments/models/me5-base-ft/1_Pooling/config.json +5 -0
- v1.0/experiments/models/me5-base-ft/2_Normalize/config.json +4 -0
- v1.0/experiments/models/me5-base-ft/README.md +550 -0
- v1.0/experiments/models/me5-base-ft/config.json +30 -0
- v1.0/experiments/models/me5-base-ft/config_sentence_transformers.json +14 -0
- v1.0/experiments/models/me5-base-ft/modules.json +20 -0
- v1.0/experiments/models/me5-base-ft/parlir_train_meta.json +12 -0
- v1.0/experiments/models/me5-base-ft/sentence_bert_config.json +10 -0
- v1.0/experiments/models/me5-base-ft/tokenizer_config.json +16 -0
- v1.0/experiments/models/me5-base-ft2019/1_Pooling/config.json +5 -0
- v1.0/experiments/models/me5-base-ft2019/2_Normalize/config.json +4 -0
- v1.0/experiments/models/me5-base-ft2019/README.md +590 -0
- v1.0/experiments/models/me5-base-ft2019/config.json +30 -0
- v1.0/experiments/models/me5-base-ft2019/config_sentence_transformers.json +14 -0
- v1.0/experiments/models/me5-base-ft2019/modules.json +20 -0
- v1.0/experiments/models/me5-base-ft2019/parlir_train_meta.json +12 -0
- v1.0/experiments/models/me5-base-ft2019/sentence_bert_config.json +10 -0
- v1.0/experiments/models/me5-base-ft2019/tokenizer_config.json +16 -0
- v1.0/experiments/models/me5-base-ftdm/1_Pooling/config.json +5 -0
- v1.0/experiments/models/me5-base-ftdm/2_Normalize/config.json +4 -0
- v1.0/experiments/models/me5-base-ftdm/README.md +526 -0
- v1.0/experiments/models/me5-base-ftdm/config.json +30 -0
- v1.0/experiments/models/me5-base-ftdm/config_sentence_transformers.json +14 -0
- v1.0/experiments/models/me5-base-ftdm/modules.json +20 -0
- v1.0/experiments/models/me5-base-ftdm/parlir_train_meta.json +18 -0
- v1.0/experiments/models/me5-base-ftdm/sentence_bert_config.json +10 -0
- v1.0/experiments/models/me5-base-ftdm/tokenizer_config.json +16 -0
v1.0/experiments/models/me5-base-ft/1_Pooling/config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"embedding_dimension": 768,
|
| 3 |
+
"pooling_mode": "mean",
|
| 4 |
+
"include_prompt": true
|
| 5 |
+
}
|
v1.0/experiments/models/me5-base-ft/2_Normalize/config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"module_input_name": "sentence_embedding",
|
| 3 |
+
"module_output_name": "sentence_embedding"
|
| 4 |
+
}
|
v1.0/experiments/models/me5-base-ft/README.md
ADDED
|
@@ -0,0 +1,550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- dense
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
- dataset_size:59612
|
| 9 |
+
- loss:CachedMultipleNegativesRankingLoss
|
| 10 |
+
- loss:MultipleNegativesRankingLoss
|
| 11 |
+
base_model: intfloat/multilingual-e5-base
|
| 12 |
+
widget:
|
| 13 |
+
- source_sentence: 'query: Spanish failure to submit monthly reports regarding Gibraltar
|
| 14 |
+
|
| 15 |
+
What action does the Commission propose to take against Spain following its failure
|
| 16 |
+
to submit monthly reports describing the risks, actions and results of the situation
|
| 17 |
+
at its land frontier with Gibraltar, as requested by the Commission in its letter
|
| 18 |
+
of 30 July 2014?'
|
| 19 |
+
sentences:
|
| 20 |
+
- 'passage: Upon request from the Commission, the Spanish authorities have submitted
|
| 21 |
+
on 20 February the reports on the checks carried out as well as the number of
|
| 22 |
+
seizure, administrative offences or crimes related to tobacco smuggling. These
|
| 23 |
+
reports cover the period May - December 2014.
|
| 24 |
+
|
| 25 |
+
The Commission is continuing the dialogue with Spanish authorities in order to
|
| 26 |
+
ensure that the relevant data and reports are being timely submitted.'
|
| 27 |
+
- 'passage: The Spanish authorities have submitted the Action protocol establishing
|
| 28 |
+
guidelines on risk analysis at its land border with Gibraltar on 2 February 2015.
|
| 29 |
+
The monthly reports to which the Honourable Member is referring have not been
|
| 30 |
+
provided by Spain so far.'
|
| 31 |
+
- 'passage: The proposal referred to by the Honourable Member is being discussed
|
| 32 |
+
within the Council. The Council is not in a position to foresee the outcome or
|
| 33 |
+
the duration of the discussions.
|
| 34 |
+
|
| 35 |
+
The latest progress report is set out in 13877/1/15 REV 1.'
|
| 36 |
+
- source_sentence: 'query: UK requests for assistance from the EU Food Fraud Network
|
| 37 |
+
|
| 38 |
+
On how many occasions in the last year have the UK Food Standards Agency and Food
|
| 39 |
+
Standards Scotland requested assistance through the EU Food Fraud Network, and
|
| 40 |
+
in relation to what specific matters?'
|
| 41 |
+
sentences:
|
| 42 |
+
- 'passage: In 2017, the UK Food Standards Agency and Food Standards Scotland requested
|
| 43 |
+
assistance through the EU Food Fraud Network (FFN) on 10 occasions. The subjects
|
| 44 |
+
of these requests were mislabelling, online sale of substances unfit for human
|
| 45 |
+
consumption, absent/falsified documentation, unapproved treatment with pesticides,
|
| 46 |
+
organic certification fraud, product/ingredient substitution and suspected illegal
|
| 47 |
+
harvesting.'
|
| 48 |
+
- 'passage: Pursuant to Article 153(5) TFEU, the EU has no competence in matters
|
| 49 |
+
of pay. Member States'' national law governs situations such as the one described
|
| 50 |
+
by the Honourable Member.'
|
| 51 |
+
- 'passage: In 2018, the United Kingdom Food Standards Agency and Food Standards
|
| 52 |
+
Scotland requested assistance through the EU Food Fraud Network on seven occasions.
|
| 53 |
+
These requests related to suspicions of mislabelling, addition of undeclared/unauthorized
|
| 54 |
+
substances, nutrition/health claims, counterfeit goods (trademarks), product replacement/substitution
|
| 55 |
+
and online sale of substances unfit for human consumption.'
|
| 56 |
+
- source_sentence: 'query: Coding for the sharing economy
|
| 57 |
+
|
| 58 |
+
In its answer to Written Question [REF], the Commission was unable to answer the
|
| 59 |
+
question regarding the amount of money spent in the sharing economy by officials
|
| 60 |
+
on mission because sufficient coding was not available. Beyond the ability to
|
| 61 |
+
answer this question, does the Commission believe that it may be useful to code
|
| 62 |
+
for such expenses?'
|
| 63 |
+
sentences:
|
| 64 |
+
- 'passage: The Commission and its staff are bound to comply with the rules laid
|
| 65 |
+
down by the Financial Regulation, the Staff Regulations and its implementing rules,
|
| 66 |
+
such as the Guide to missions. Therefore, the Commission''s staff arrange their
|
| 67 |
+
trips according to the rule of cost-effectiveness. In this context, whenever the
|
| 68 |
+
requirements of the Guide to missions are met, the use of sharing economy services
|
| 69 |
+
is permitted.
|
| 70 |
+
|
| 71 |
+
The possibility to enable coding for such expenses in the IT tool could be envisaged
|
| 72 |
+
in the context of broader legal and budgetary feasibility analysis.'
|
| 73 |
+
- 'passage: The Commission regrets to inform the Honourable Member that it does
|
| 74 |
+
not have sufficient information to be able to answer the question of the amount
|
| 75 |
+
of money spent in the sharing economy by officials on mission. The IT systems
|
| 76 |
+
used to manage and reimburse expenses incurred whilst on official business focuses
|
| 77 |
+
on amount, type and proof of the expenses and does not provide for encoding of
|
| 78 |
+
precise references to the companies concerned. However, Commission Staff are allowed
|
| 79 |
+
to use sharing economy services, if they can provide an invoice, which is the
|
| 80 |
+
case for an increasing number of those companies.'
|
| 81 |
+
- 'passage: The Commission refers the Honourable Member to its reply to question
|
| 82 |
+
[REF].'
|
| 83 |
+
- source_sentence: 'query: Compensation for costs
|
| 84 |
+
|
| 85 |
+
In its answer to question [REF], the Commission said that, in accordance with
|
| 86 |
+
the EU’s ETS Directive and the relevant state-aid guidelines, as from 1 January
|
| 87 |
+
2013 industries vulnerable to carbon leakage may be granted aid compensating them
|
| 88 |
+
for the knock-on effects on electricity prices of ETS-related CO2 emissions costs.
|
| 89 |
+
|
| 90 |
+
Over the years, various Member States have adopted different aid schemes. Could
|
| 91 |
+
the Commission give details of the countries that have approved compensation schemes
|
| 92 |
+
since 2013 and the maximum amounts authorised per year (and if possible the amounts
|
| 93 |
+
actually granted) since 2013.'
|
| 94 |
+
sentences:
|
| 95 |
+
- 'passage: The Commission will kindly refer the Honourable Member to written answer
|
| 96 |
+
[REF][1].
|
| 97 |
+
|
| 98 |
+
[1] http://www.europarl.europa.eu/plenary/en/parliamentary-questions.html'
|
| 99 |
+
- 'passage: The Table in annex presents the list of Member States (and Norway) having
|
| 100 |
+
introduced an EU Emissions Trading System compensation scheme during the Phase
|
| 101 |
+
III of the EU ETS(2013/2020).'
|
| 102 |
+
- 'passage: The Commission has approved six State aid measures compensating energy-intensive
|
| 103 |
+
industries at risk of carbon leakage for indirect CO2 emission costs due to the
|
| 104 |
+
EU Emissions Trading System (ETS), passed on in electricity prices. Under the
|
| 105 |
+
EU ETS Directive and relevant State aid guidelines, aid may be granted for costs
|
| 106 |
+
incurred on or after 1 January 2013. The table in the Annex summarises the available
|
| 107 |
+
data on aid amounts for each of these measures.
|
| 108 |
+
|
| 109 |
+
The Commission''s Guidelines on State Aid for Environmental Protection and Energy
|
| 110 |
+
2014-2020 allow Member States to relieve some EU energy-intensive sectors particularly
|
| 111 |
+
exposed to international competition from some of the cost of financing support
|
| 112 |
+
for renewable energy. These Guidelines were adopted on 9 April 2014. Prior to
|
| 113 |
+
their adoption, no such aid was approved by the Commission. Annual reports are
|
| 114 |
+
therefore not yet available on such measures.
|
| 115 |
+
|
| 116 |
+
The Commission will no later than 16 March 2014 inform Parliament of its reply
|
| 117 |
+
to Resolution 2014/2976(RSP) of 17 December 2014 in accordance with usual procedures
|
| 118 |
+
regarding non-legislative resolutions.'
|
| 119 |
+
- source_sentence: 'query: Restructuring of HSH Nordbank
|
| 120 |
+
|
| 121 |
+
According to media reports, the Commission has set up a ''case team'' headed by
|
| 122 |
+
Commissioner Vestager to examine the situation regarding HSH Nordbank[1]. In addition,
|
| 123 |
+
Bain & Company, a global management consulting firm, has also produced a study
|
| 124 |
+
on ways of rationalizing HSH Nordbank, for example the sale of sale of non-performing
|
| 125 |
+
loans of between EUR 3 billion and EUR 14 billion to the states of Hamburg and
|
| 126 |
+
Schleswig-Holstein.
|
| 127 |
+
|
| 128 |
+
1. What specific rationalisation measures have been recommended by the states
|
| 129 |
+
of Hamburg and Schleswig-Holstein and by HSH Nordbank itself?
|
| 130 |
+
|
| 131 |
+
2. What precise conditions must be met by HSH to receive a clean bill of health
|
| 132 |
+
from the ECB Single Supervisory Mechanism and at what point will it be faced with
|
| 133 |
+
the threat of liquidation?
|
| 134 |
+
|
| 135 |
+
3. What conditions are being stipulated by the Commission for approval of aid
|
| 136 |
+
(further guarantee increase from EUR 7 billion to EUR 10 billion) and when are
|
| 137 |
+
the state aid proceedings likely to be over?
|
| 138 |
+
|
| 139 |
+
[1] https://www.ndr.de/nachrichten/schleswig-holstein/HSH-Nordbank-hofft-auf-Milliarden-Finanzspritze,hshnordbank736.html'
|
| 140 |
+
sentences:
|
| 141 |
+
- 'passage: The Treaties are the basis for a united, open and stronger Europe, the
|
| 142 |
+
realisation of which is the guiding principle of the Commission''s day-to-day
|
| 143 |
+
work.
|
| 144 |
+
|
| 145 |
+
The Commission has set out its plans for achieving a deep and genuine EMU in its
|
| 146 |
+
Blueprint launched in November 2012. The Blueprint provides a comprehensive vision
|
| 147 |
+
for a deep and genuine EMU conducive to a strong and stable architecture in the
|
| 148 |
+
financial, fiscal, economic and political domains to underpin stability and prosperity
|
| 149 |
+
in the future..
|
| 150 |
+
|
| 151 |
+
Moreover, President Barroso has offered some further contributions to the ongoing
|
| 152 |
+
debate on the future of Europe and Political Union in his speech of 8 May 2014
|
| 153 |
+
at Berlin''s Humboldt University.[1]
|
| 154 |
+
|
| 155 |
+
[1] http://europa.eu/rapid/press-release_SPEECH-14-355_en.htm'
|
| 156 |
+
- 'passage: According to the October 2015 agreement in principle between the Commission
|
| 157 |
+
and the Ministerpräsidenten of Hamburg and Schleswig-Holstein, HSH Nordbank can
|
| 158 |
+
sell up to EUR 6.2 billion of assets (Exposure at Default) to the two Länder.
|
| 159 |
+
In order to ensure that the transfer does not entail aid to the bank, the sale
|
| 160 |
+
of assets must take place at market values.
|
| 161 |
+
|
| 162 |
+
The Commission''s independent valuation experts have undertaken the determination
|
| 163 |
+
of the market value for the relevant assets for the final decision on HSH Nordbank
|
| 164 |
+
adopted on 2 May 2016. Before the publication of the non-confidential version
|
| 165 |
+
of the decision, the Commission is not in a position to provide those values.'
|
| 166 |
+
- 'passage: The State aid investigation in the case of HSH Nordbank is currently
|
| 167 |
+
ongoing. The Commission is not in a position to comment on ongoing cases and is
|
| 168 |
+
bound in this respect by the applicable rules and regulations.'
|
| 169 |
+
pipeline_tag: sentence-similarity
|
| 170 |
+
library_name: sentence-transformers
|
| 171 |
+
---
|
| 172 |
+
|
| 173 |
+
# SentenceTransformer based on intfloat/multilingual-e5-base
|
| 174 |
+
|
| 175 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base). It maps inputs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.
|
| 176 |
+
|
| 177 |
+
## Model Details
|
| 178 |
+
|
| 179 |
+
### Model Description
|
| 180 |
+
- **Model Type:** Sentence Transformer
|
| 181 |
+
- **Base model:** [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) <!-- at revision d128750597153bb5987e10b1c3493a34e5a4502a -->
|
| 182 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 183 |
+
- **Output Dimensionality:** 768 dimensions
|
| 184 |
+
- **Similarity Function:** Cosine Similarity
|
| 185 |
+
- **Supported Modality:** Text
|
| 186 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 187 |
+
<!-- - **Language:** Unknown -->
|
| 188 |
+
<!-- - **License:** Unknown -->
|
| 189 |
+
|
| 190 |
+
### Model Sources
|
| 191 |
+
|
| 192 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 193 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 194 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 195 |
+
|
| 196 |
+
### Full Model Architecture
|
| 197 |
+
|
| 198 |
+
```
|
| 199 |
+
SentenceTransformer(
|
| 200 |
+
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'XLMRobertaModel'})
|
| 201 |
+
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
|
| 202 |
+
(2): Normalize({'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
|
| 203 |
+
)
|
| 204 |
+
```
|
| 205 |
+
|
| 206 |
+
## Usage
|
| 207 |
+
|
| 208 |
+
### Direct Usage (Sentence Transformers)
|
| 209 |
+
|
| 210 |
+
First install the Sentence Transformers library:
|
| 211 |
+
|
| 212 |
+
```bash
|
| 213 |
+
pip install -U sentence-transformers
|
| 214 |
+
```
|
| 215 |
+
Then you can load this model and run inference.
|
| 216 |
+
```python
|
| 217 |
+
from sentence_transformers import SentenceTransformer
|
| 218 |
+
|
| 219 |
+
# Download from the 🤗 Hub
|
| 220 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
| 221 |
+
# Run inference
|
| 222 |
+
sentences = [
|
| 223 |
+
"query: Restructuring of HSH Nordbank\nAccording to media reports, the Commission has set up a 'case team' headed by Commissioner Vestager to examine the situation regarding HSH Nordbank[1]. In addition, Bain & Company, a global management consulting firm, has also produced a study on ways of rationalizing HSH Nordbank, for example the sale of sale of non-performing loans of between EUR 3 billion and EUR 14 billion to the states of Hamburg and Schleswig-Holstein.\n1. What specific rationalisation measures have been recommended by the states of Hamburg and Schleswig-Holstein and by HSH Nordbank itself?\n2. What precise conditions must be met by HSH to receive a clean bill of health from the ECB Single Supervisory Mechanism and at what point will it be faced with the threat of liquidation?\n3. What conditions are being stipulated by the Commission for approval of aid (further guarantee increase from EUR 7 billion to EUR 10 billion) and when are the state aid proceedings likely to be over?\n[1] https://www.ndr.de/nachrichten/schleswig-holstein/HSH-Nordbank-hofft-auf-Milliarden-Finanzspritze,hshnordbank736.html",
|
| 224 |
+
'passage: The State aid investigation in the case of HSH Nordbank is currently ongoing. The Commission is not in a position to comment on ongoing cases and is bound in this respect by the applicable rules and regulations.',
|
| 225 |
+
"passage: According to the October 2015 agreement in principle between the Commission and the Ministerpräsidenten of Hamburg and Schleswig-Holstein, HSH Nordbank can sell up to EUR 6.2 billion of assets (Exposure at Default) to the two Länder. In order to ensure that the transfer does not entail aid to the bank, the sale of assets must take place at market values.\nThe Commission's independent valuation experts have undertaken the determination of the market value for the relevant assets for the final decision on HSH Nordbank adopted on 2 May 2016. Before the publication of the non-confidential version of the decision, the Commission is not in a position to provide those values.",
|
| 226 |
+
]
|
| 227 |
+
embeddings = model.encode(sentences)
|
| 228 |
+
print(embeddings.shape)
|
| 229 |
+
# [3, 768]
|
| 230 |
+
|
| 231 |
+
# Get the similarity scores for the embeddings
|
| 232 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 233 |
+
print(similarities)
|
| 234 |
+
# tensor([[1.0000, 0.4984, 0.3288],
|
| 235 |
+
# [0.4984, 1.0000, 0.4098],
|
| 236 |
+
# [0.3288, 0.4098, 1.0000]])
|
| 237 |
+
```
|
| 238 |
+
<!--
|
| 239 |
+
### Direct Usage (Transformers)
|
| 240 |
+
|
| 241 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 242 |
+
|
| 243 |
+
</details>
|
| 244 |
+
-->
|
| 245 |
+
|
| 246 |
+
<!--
|
| 247 |
+
### Downstream Usage (Sentence Transformers)
|
| 248 |
+
|
| 249 |
+
You can finetune this model on your own dataset.
|
| 250 |
+
|
| 251 |
+
<details><summary>Click to expand</summary>
|
| 252 |
+
|
| 253 |
+
</details>
|
| 254 |
+
-->
|
| 255 |
+
|
| 256 |
+
<!--
|
| 257 |
+
### Out-of-Scope Use
|
| 258 |
+
|
| 259 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 260 |
+
-->
|
| 261 |
+
|
| 262 |
+
<!--
|
| 263 |
+
## Bias, Risks and Limitations
|
| 264 |
+
|
| 265 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 266 |
+
-->
|
| 267 |
+
|
| 268 |
+
<!--
|
| 269 |
+
### Recommendations
|
| 270 |
+
|
| 271 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 272 |
+
-->
|
| 273 |
+
|
| 274 |
+
## Training Details
|
| 275 |
+
|
| 276 |
+
### Training Dataset
|
| 277 |
+
|
| 278 |
+
#### Unnamed Dataset
|
| 279 |
+
|
| 280 |
+
* Size: 59,612 training samples
|
| 281 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 282 |
+
* Approximate statistics based on the first 100 samples:
|
| 283 |
+
| | anchor | positive | negative |
|
| 284 |
+
|:---------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
|
| 285 |
+
| type | string | string | string |
|
| 286 |
+
| modality | text | text | text |
|
| 287 |
+
| details | <ul><li>min: 47 tokens</li><li>mean: 225.93 tokens</li><li>max: 403 tokens</li></ul> | <ul><li>min: 53 tokens</li><li>mean: 320.8 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 147 tokens</li><li>mean: 401.79 tokens</li><li>max: 512 tokens</li></ul> |
|
| 288 |
+
* Samples:
|
| 289 |
+
| anchor | positive | negative |
|
| 290 |
+
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 291 |
+
| <code>query: Co-financing of projects<br>The European rules of governance and the pressure of debt markets in which the ECB has refused to intervene have caused many Member States to make drastic adjustments to their budgets. As a result of the rules on co-financing, the repercussions of these cuts snowball when they prevent access to EU funds in projects of mutual interest.<br>Given the above, will the Commission reduce the co-financing rates for projects by Member States' public administrations, particularly for social cohesion and convergence projects, such as those financed under the European Regional Development Fund (ERDF) or the European Social Fund (ESF)?<br>Will the Commission extend deadlines so that Member States can pay their contributions, thus postponing the payments of Member States with serious budget difficulties?<br>Finally, given that the Commission is creating new initiatives - such as the European Fund for Strategic Investments (EFSI) - which are aimed exclusively at the mobilisatio...</code> | <code>passage: 1. Regulation (EU) N° 1297/2013 of the European Parliament and the Council of 11 December 2013[1] allows payments under the 2007-2013 programmes to be increased by an amount corresponding to 10 % above the co-financing rate applicable to each priority, but not exceeding 100%, where Member States benefit from one of the EU financial assistance mechanisms referred to in the regulation. This increase applies to the amount of eligible expenditure newly declared in each certified statement of expenditure submitted until the end of the programming period.<br>2. The final date of eligibility of expenditure is 31 December 2015 under the 2007-2013 period and this deadline will not be extended. Eligible expenditure means expenditure incurred and paid by the beneficiary. Council Regulation 1083/2006 of 11 July 2006[2] does not specify any final date for the reimbursement to the beneficiaries of the public contribution but states that it should be paid "as quickly as possible".<br>3. The Commis...</code> | <code>passage: Retrospective projects are eligible for European Regional Development Fund (ERDF) funding provided that they comply with the rules set in the EU legal framework. In the case of Italy, there are specific national provisions on retrospective projects established in the national strategic framework under the 2007-2013 period. At present, there are no specific data on the share of funding used for retrospective projects since there is no obligation to report it in the final implementation report 2007-2013. However, the closure procedure is ongoing. The Commission formulated a series of questions, including a specific one on the amount allocated to retrospective projects. The Commission is waiting for a reply.<br>At closure, the ERDF managing authority reported 9 phased projects to be carried over in the 2014-2020 period. The total expenditure allocated to these projects under the 2007-2013 programme totals EUR 6.7 million.<br>At closure, there is no national co-financing transferred fro...</code> |
|
| 292 |
+
| <code>query: EU-Ukraine Association Agreement<br>Does the Commission accept that, given the current situation in Ukraine, the signing of the EU-Ukraine Association Agreement, which aims to ‘deepen political association’ (Article 4(2)(a)), might actually further exacerbate political tensions within that country?</code> | <code>passage: The EU has deeply engaged in seeking a peaceful settlement of the crisis in Ukraine. We have to find ways to explain to Russia that respect can be regained if we work jointly on a vision of cooperation on the European continent without dividing lines. The Association Agreement is not meant to replace - or intrude in - Ukraine's relations with any neighbour, but we have taken note of the public support for closer association and integration with Europe. Throughout the year, the European Union and Ukraine have engaged with Russia in order to discuss the economic effects on the Russian economy of the implementation of the AA/DCFTA with a view to clarify concerns and - where appropriate - identify solutions.<br>A concrete result of these consultations is the agreement reached at the trilateral ministerial meeting on 12 September between the EU, Ukraine and Russia. Consequently, the Commission has proposed to the Council to delay until 31 December 2015 the provisional application of t...</code> | <code>passage: The EU notes evidence of continued support given to the separatists by Russia, which underlines Russia's responsibility in destabilizing the situation in eastern Ukraine.<br>Ukraine is currently engaged in a broad and complex reform process aiming to respond to its citizens's aspirations for a democratic, secure and prosperous country.<br>The European Union has put in place an unprecedented package of measures in support of Ukraine's reform steps, including political support, financial, technical and economic assistance, and strategic advice. The EU maintains close coordination with the Ukrainian authorities to ensure the commitments undertaken within the Association Agreement framework are fully implemented. The EU-Ukraine Association Agenda is in this context the main political tool for the implementation and monitoring of the Association Agreement.<br>The EU has also joined the international efforts and stepped-up its humanitarian assistance to the people affected by the conflict in...</code> |
|
| 293 |
+
| <code>query: CBRN preparedness and protection measures<br>On 17 January 2018, the World Economic Forum published on its latest annual Global Risks Report. The likelihood that weapons of mass destruction might be used has again increased compared with last year’s assessment. International reports provide more and more reasons to believe that the threat of the deliberate use of CBRN weapons is becoming more plausible. In October 2017, the Commission adopted an Action Plan to enhance preparedness against chemical, biological, radiological and nuclear security risks, containing several proposals aimed at supporting Member States in better defending EU citizens against terrorist threats. However, the level of risk awareness and, therefore, preparedness in the event of a CBRN incident differs widely between all 28 Member States.<br>1. Knowing that only a few Member States would be sufficiently protected in the event of a CBRN attack, and knowing that such attacks typically have a cross-border impact, wh...</code> | <code>passage: Protection of citizens and infrastructures remains primarily responsibility of Member States of the European Union. Nevertheless in the Action Plan to enhance preparedness against chemical, biological, radiological and nuclear security risks[1] adopted on 18 October 2017, the Commission proposed several initiatives focusing on sharing of expertise and resources among Member States aiming at better preparedness of the EU as a whole for the chemical, biological, radiological and nuclear (CBRN) terrorist threats. Among others the Commission proposed development of a common EU CBRN training curriculum, boosting of cross-border trainings and exercises and encouraging Member States to commit more capacities to the European Emergency Response Capacity (EERC) of the Union's Civil Protection Mechanism. These - and other initiatives announced in the Action Plan - should over time result in an enhanced preparedness of the EU for the CBRN terrorist threats.<br>[1] COM(2017) 610 final</code> | <code>passage: Internal security, including the protection of citizens, residents and infrastructures is the primary responsibility of the Member States of the European Union.<br>Nevertheless, in the Action Plan to enhance preparedness against chemical, biological, radiological and nuclear (CBRN) security risks[1] adopted on 18 October 2017, the Commission proposed several initiatives focusing on sharing of expertise and resources among Member States aiming at better preparedness of the EU as a whole against threats from CBRN agents. Among others, the Commission proposed the development of a common EU CBRN training curriculum or boosting of cross-border trainings. The initiatives announced in the Action Plan will over time result in an enhanced preparedness of the EU against CBRN security risks as well as a higher security level of EU citizens and residents.<br>Moreover, following the Salisbury attack and at the invitation of the European Council[2], the Commission and the High Representative prop...</code> |
|
| 294 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 295 |
+
```json
|
| 296 |
+
{
|
| 297 |
+
"scale": 20.0,
|
| 298 |
+
"similarity_fct": "cos_sim",
|
| 299 |
+
"mini_batch_size": 8,
|
| 300 |
+
"mini_batch_num_tokens": null,
|
| 301 |
+
"gather_across_devices": false,
|
| 302 |
+
"directions": [
|
| 303 |
+
"query_to_doc"
|
| 304 |
+
],
|
| 305 |
+
"partition_mode": "joint",
|
| 306 |
+
"hardness_mode": null,
|
| 307 |
+
"hardness_strength": 0.0
|
| 308 |
+
}
|
| 309 |
+
```
|
| 310 |
+
|
| 311 |
+
### Training Hyperparameters
|
| 312 |
+
#### Non-Default Hyperparameters
|
| 313 |
+
|
| 314 |
+
- `per_device_train_batch_size`: 32
|
| 315 |
+
- `num_train_epochs`: 1
|
| 316 |
+
- `learning_rate`: 2e-05
|
| 317 |
+
- `warmup_steps`: 0.1
|
| 318 |
+
- `fp16`: True
|
| 319 |
+
- `seed`: 13
|
| 320 |
+
- `dataloader_num_workers`: 2
|
| 321 |
+
- `batch_sampler`: no_duplicates
|
| 322 |
+
|
| 323 |
+
#### All Hyperparameters
|
| 324 |
+
<details><summary>Click to expand</summary>
|
| 325 |
+
|
| 326 |
+
- `per_device_train_batch_size`: 32
|
| 327 |
+
- `num_train_epochs`: 1
|
| 328 |
+
- `max_steps`: -1
|
| 329 |
+
- `learning_rate`: 2e-05
|
| 330 |
+
- `lr_scheduler_type`: linear
|
| 331 |
+
- `lr_scheduler_kwargs`: None
|
| 332 |
+
- `warmup_steps`: 0.1
|
| 333 |
+
- `optim`: adamw_torch_fused
|
| 334 |
+
- `optim_args`: None
|
| 335 |
+
- `weight_decay`: 0.0
|
| 336 |
+
- `adam_beta1`: 0.9
|
| 337 |
+
- `adam_beta2`: 0.999
|
| 338 |
+
- `adam_epsilon`: 1e-08
|
| 339 |
+
- `optim_target_modules`: None
|
| 340 |
+
- `gradient_accumulation_steps`: 1
|
| 341 |
+
- `average_tokens_across_devices`: True
|
| 342 |
+
- `max_grad_norm`: 1.0
|
| 343 |
+
- `label_smoothing_factor`: 0.0
|
| 344 |
+
- `bf16`: False
|
| 345 |
+
- `fp16`: True
|
| 346 |
+
- `bf16_full_eval`: False
|
| 347 |
+
- `fp16_full_eval`: False
|
| 348 |
+
- `tf32`: None
|
| 349 |
+
- `gradient_checkpointing`: False
|
| 350 |
+
- `gradient_checkpointing_kwargs`: None
|
| 351 |
+
- `torch_compile`: False
|
| 352 |
+
- `torch_compile_backend`: None
|
| 353 |
+
- `torch_compile_mode`: None
|
| 354 |
+
- `use_liger_kernel`: False
|
| 355 |
+
- `liger_kernel_config`: None
|
| 356 |
+
- `use_cache`: False
|
| 357 |
+
- `neftune_noise_alpha`: None
|
| 358 |
+
- `torch_empty_cache_steps`: None
|
| 359 |
+
- `auto_find_batch_size`: False
|
| 360 |
+
- `log_on_each_node`: True
|
| 361 |
+
- `logging_nan_inf_filter`: True
|
| 362 |
+
- `include_num_input_tokens_seen`: no
|
| 363 |
+
- `log_level`: passive
|
| 364 |
+
- `log_level_replica`: warning
|
| 365 |
+
- `disable_tqdm`: False
|
| 366 |
+
- `project`: huggingface
|
| 367 |
+
- `trackio_space_id`: None
|
| 368 |
+
- `trackio_bucket_id`: None
|
| 369 |
+
- `trackio_static_space_id`: None
|
| 370 |
+
- `per_device_eval_batch_size`: 8
|
| 371 |
+
- `prediction_loss_only`: True
|
| 372 |
+
- `eval_on_start`: False
|
| 373 |
+
- `eval_do_concat_batches`: True
|
| 374 |
+
- `eval_use_gather_object`: False
|
| 375 |
+
- `eval_accumulation_steps`: None
|
| 376 |
+
- `include_for_metrics`: []
|
| 377 |
+
- `batch_eval_metrics`: False
|
| 378 |
+
- `save_only_model`: False
|
| 379 |
+
- `save_on_each_node`: False
|
| 380 |
+
- `enable_jit_checkpoint`: False
|
| 381 |
+
- `push_to_hub`: False
|
| 382 |
+
- `hub_private_repo`: None
|
| 383 |
+
- `hub_model_id`: None
|
| 384 |
+
- `hub_strategy`: every_save
|
| 385 |
+
- `hub_always_push`: False
|
| 386 |
+
- `hub_revision`: None
|
| 387 |
+
- `load_best_model_at_end`: False
|
| 388 |
+
- `ignore_data_skip`: False
|
| 389 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 390 |
+
- `full_determinism`: False
|
| 391 |
+
- `seed`: 13
|
| 392 |
+
- `data_seed`: None
|
| 393 |
+
- `use_cpu`: False
|
| 394 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 395 |
+
- `parallelism_config`: None
|
| 396 |
+
- `dataloader_drop_last`: False
|
| 397 |
+
- `dataloader_num_workers`: 2
|
| 398 |
+
- `dataloader_pin_memory`: True
|
| 399 |
+
- `dataloader_persistent_workers`: False
|
| 400 |
+
- `dataloader_prefetch_factor`: None
|
| 401 |
+
- `dataloader_multiprocessing_context`: None
|
| 402 |
+
- `dataloader_in_order`: True
|
| 403 |
+
- `remove_unused_columns`: True
|
| 404 |
+
- `label_names`: None
|
| 405 |
+
- `train_sampling_strategy`: random
|
| 406 |
+
- `length_column_name`: length
|
| 407 |
+
- `ddp_find_unused_parameters`: None
|
| 408 |
+
- `ddp_bucket_cap_mb`: None
|
| 409 |
+
- `ddp_broadcast_buffers`: False
|
| 410 |
+
- `ddp_static_graph`: None
|
| 411 |
+
- `ddp_backend`: None
|
| 412 |
+
- `ddp_timeout`: 1800
|
| 413 |
+
- `fsdp`: None
|
| 414 |
+
- `fsdp_config`: None
|
| 415 |
+
- `deepspeed`: None
|
| 416 |
+
- `debug`: []
|
| 417 |
+
- `skip_memory_metrics`: True
|
| 418 |
+
- `do_predict`: False
|
| 419 |
+
- `resume_from_checkpoint`: None
|
| 420 |
+
- `local_rank`: -1
|
| 421 |
+
- `prompts`: None
|
| 422 |
+
- `batch_sampler`: no_duplicates
|
| 423 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 424 |
+
- `router_mapping`: {}
|
| 425 |
+
- `learning_rate_mapping`: {}
|
| 426 |
+
- `warmup_ratio`: None
|
| 427 |
+
|
| 428 |
+
</details>
|
| 429 |
+
|
| 430 |
+
### Training Logs
|
| 431 |
+
| Epoch | Step | Training Loss |
|
| 432 |
+
|:------:|:----:|:-------------:|
|
| 433 |
+
| 0.0268 | 50 | 2.2747 |
|
| 434 |
+
| 0.0537 | 100 | 0.6591 |
|
| 435 |
+
| 0.0805 | 150 | 0.4337 |
|
| 436 |
+
| 0.1074 | 200 | 0.4104 |
|
| 437 |
+
| 0.1342 | 250 | 0.3719 |
|
| 438 |
+
| 0.1610 | 300 | 0.3429 |
|
| 439 |
+
| 0.1879 | 350 | 0.3468 |
|
| 440 |
+
| 0.2147 | 400 | 0.3335 |
|
| 441 |
+
| 0.2415 | 450 | 0.3253 |
|
| 442 |
+
| 0.2684 | 500 | 0.3086 |
|
| 443 |
+
| 0.2952 | 550 | 0.3005 |
|
| 444 |
+
| 0.3221 | 600 | 0.2995 |
|
| 445 |
+
| 0.3489 | 650 | 0.3106 |
|
| 446 |
+
| 0.3757 | 700 | 0.2956 |
|
| 447 |
+
| 0.4026 | 750 | 0.2878 |
|
| 448 |
+
| 0.4294 | 800 | 0.3074 |
|
| 449 |
+
| 0.4563 | 850 | 0.2837 |
|
| 450 |
+
| 0.4831 | 900 | 0.2683 |
|
| 451 |
+
| 0.5099 | 950 | 0.2908 |
|
| 452 |
+
| 0.5368 | 1000 | 0.2658 |
|
| 453 |
+
| 0.5636 | 1050 | 0.2707 |
|
| 454 |
+
| 0.5904 | 1100 | 0.2456 |
|
| 455 |
+
| 0.6173 | 1150 | 0.2702 |
|
| 456 |
+
| 0.6441 | 1200 | 0.2478 |
|
| 457 |
+
| 0.6710 | 1250 | 0.2650 |
|
| 458 |
+
| 0.6978 | 1300 | 0.2605 |
|
| 459 |
+
| 0.7246 | 1350 | 0.2655 |
|
| 460 |
+
| 0.7515 | 1400 | 0.2494 |
|
| 461 |
+
| 0.7783 | 1450 | 0.2435 |
|
| 462 |
+
| 0.8052 | 1500 | 0.2388 |
|
| 463 |
+
| 0.8320 | 1550 | 0.2166 |
|
| 464 |
+
| 0.8588 | 1600 | 0.2327 |
|
| 465 |
+
| 0.8857 | 1650 | 0.2652 |
|
| 466 |
+
| 0.9125 | 1700 | 0.2320 |
|
| 467 |
+
| 0.9393 | 1750 | 0.2273 |
|
| 468 |
+
| 0.9662 | 1800 | 0.2311 |
|
| 469 |
+
| 0.9930 | 1850 | 0.2642 |
|
| 470 |
+
|
| 471 |
+
|
| 472 |
+
### Training Time
|
| 473 |
+
- **Training**: 16.1 minutes
|
| 474 |
+
|
| 475 |
+
### Framework Versions
|
| 476 |
+
- Python: 3.14.4
|
| 477 |
+
- Sentence Transformers: 6.1.0
|
| 478 |
+
- Transformers: 5.20.2
|
| 479 |
+
- PyTorch: 2.14.1+cu130
|
| 480 |
+
- Accelerate: 1.15.0
|
| 481 |
+
- Datasets: 5.1.0
|
| 482 |
+
- Tokenizers: 0.23.3
|
| 483 |
+
|
| 484 |
+
## Additional Resources
|
| 485 |
+
|
| 486 |
+
- [Training and Finetuning Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-sentence-transformers): the end-to-end guide for training or finetuning Sentence Transformer models.
|
| 487 |
+
- [Introduction to Matryoshka Embedding Models](https://huggingface.co/blog/matryoshka): variable-size embeddings that can be truncated with minimal quality loss.
|
| 488 |
+
- [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://huggingface.co/blog/embedding-quantization): post-training compression of embedding vectors.
|
| 489 |
+
- [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video models through the same API.
|
| 490 |
+
- [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): train multimodal embedding models, with a Visual Document Retrieval walkthrough.
|
| 491 |
+
|
| 492 |
+
## Citation
|
| 493 |
+
|
| 494 |
+
### BibTeX
|
| 495 |
+
|
| 496 |
+
#### Sentence Transformers
|
| 497 |
+
```bibtex
|
| 498 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 499 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 500 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 501 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 502 |
+
month = "11",
|
| 503 |
+
year = "2019",
|
| 504 |
+
publisher = "Association for Computational Linguistics",
|
| 505 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 506 |
+
}
|
| 507 |
+
```
|
| 508 |
+
|
| 509 |
+
#### CachedMultipleNegativesRankingLoss
|
| 510 |
+
```bibtex
|
| 511 |
+
@misc{gao2021scaling,
|
| 512 |
+
title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
|
| 513 |
+
author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
|
| 514 |
+
year={2021},
|
| 515 |
+
eprint={2101.06983},
|
| 516 |
+
archivePrefix={arXiv},
|
| 517 |
+
primaryClass={cs.LG}
|
| 518 |
+
}
|
| 519 |
+
```
|
| 520 |
+
|
| 521 |
+
#### MultipleNegativesRankingLoss
|
| 522 |
+
```bibtex
|
| 523 |
+
@misc{oord2019representationlearningcontrastivepredictive,
|
| 524 |
+
title={Representation Learning with Contrastive Predictive Coding},
|
| 525 |
+
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
|
| 526 |
+
year={2019},
|
| 527 |
+
eprint={1807.03748},
|
| 528 |
+
archivePrefix={arXiv},
|
| 529 |
+
primaryClass={cs.LG},
|
| 530 |
+
url={https://arxiv.org/abs/1807.03748},
|
| 531 |
+
}
|
| 532 |
+
```
|
| 533 |
+
|
| 534 |
+
<!--
|
| 535 |
+
## Glossary
|
| 536 |
+
|
| 537 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 538 |
+
-->
|
| 539 |
+
|
| 540 |
+
<!--
|
| 541 |
+
## Model Card Authors
|
| 542 |
+
|
| 543 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 544 |
+
-->
|
| 545 |
+
|
| 546 |
+
<!--
|
| 547 |
+
## Model Card Contact
|
| 548 |
+
|
| 549 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 550 |
+
-->
|
v1.0/experiments/models/me5-base-ft/config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"XLMRobertaModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 3072,
|
| 16 |
+
"is_decoder": false,
|
| 17 |
+
"layer_norm_eps": 1e-05,
|
| 18 |
+
"max_position_embeddings": 514,
|
| 19 |
+
"model_type": "xlm-roberta",
|
| 20 |
+
"num_attention_heads": 12,
|
| 21 |
+
"num_hidden_layers": 12,
|
| 22 |
+
"output_past": true,
|
| 23 |
+
"pad_token_id": 1,
|
| 24 |
+
"position_embedding_type": "absolute",
|
| 25 |
+
"tie_word_embeddings": true,
|
| 26 |
+
"transformers_version": "5.20.2",
|
| 27 |
+
"type_vocab_size": 1,
|
| 28 |
+
"use_cache": false,
|
| 29 |
+
"vocab_size": 250002
|
| 30 |
+
}
|
v1.0/experiments/models/me5-base-ft/config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"pytorch": "2.14.1+cu130",
|
| 4 |
+
"sentence_transformers": "6.1.0",
|
| 5 |
+
"transformers": "5.20.2"
|
| 6 |
+
},
|
| 7 |
+
"default_prompt_name": null,
|
| 8 |
+
"model_type": "SentenceTransformer",
|
| 9 |
+
"prompts": {
|
| 10 |
+
"document": "",
|
| 11 |
+
"query": ""
|
| 12 |
+
},
|
| 13 |
+
"similarity_fn_name": "cosine"
|
| 14 |
+
}
|
v1.0/experiments/models/me5-base-ft/modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.base.modules.normalize.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
v1.0/experiments/models/me5-base-ft/parlir_train_meta.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base": "intfloat/multilingual-e5-base",
|
| 3 |
+
"n_pairs": 59612,
|
| 4 |
+
"epochs": 1,
|
| 5 |
+
"batch_size": 32,
|
| 6 |
+
"lr": 2e-05,
|
| 7 |
+
"max_len": 512,
|
| 8 |
+
"seed": 13,
|
| 9 |
+
"hard_negatives": true,
|
| 10 |
+
"min_year": 0,
|
| 11 |
+
"build": "data/build/v1.0"
|
| 12 |
+
}
|
v1.0/experiments/models/me5-base-ft/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 |
+
}
|
v1.0/experiments/models/me5-base-ft/tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": true,
|
| 6 |
+
"cls_token": "<s>",
|
| 7 |
+
"eos_token": "</s>",
|
| 8 |
+
"is_local": false,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"mask_token": "<mask>",
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 15 |
+
"unk_token": "<unk>"
|
| 16 |
+
}
|
v1.0/experiments/models/me5-base-ft2019/1_Pooling/config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"embedding_dimension": 768,
|
| 3 |
+
"pooling_mode": "mean",
|
| 4 |
+
"include_prompt": true
|
| 5 |
+
}
|
v1.0/experiments/models/me5-base-ft2019/2_Normalize/config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"module_input_name": "sentence_embedding",
|
| 3 |
+
"module_output_name": "sentence_embedding"
|
| 4 |
+
}
|
v1.0/experiments/models/me5-base-ft2019/README.md
ADDED
|
@@ -0,0 +1,590 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- dense
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
- dataset_size:16873
|
| 9 |
+
- loss:CachedMultipleNegativesRankingLoss
|
| 10 |
+
- loss:MultipleNegativesRankingLoss
|
| 11 |
+
base_model: intfloat/multilingual-e5-base
|
| 12 |
+
widget:
|
| 13 |
+
- source_sentence: 'query: Council Note 7497/20 on demographic challenges in the EU
|
| 14 |
+
|
| 15 |
+
Can the Council indicate which delegations have approved Council Note 7497/20
|
| 16 |
+
on demographic challenges in the EU?'
|
| 17 |
+
sentences:
|
| 18 |
+
- 'passage: The interinstitutional negotiations on the proposals for the next multiannual
|
| 19 |
+
financial framework and the sectoral regulations presented by the European Commission
|
| 20 |
+
in May and June 2018 are ongoing. The European Council in June 2019 reconfirmed
|
| 21 |
+
its aim for an agreement before the end of the year 2019. The European Commission
|
| 22 |
+
remains fully committed to this aim.
|
| 23 |
+
|
| 24 |
+
However, in the event that no Council regulation determining a new financial framework
|
| 25 |
+
would be adopted by the end of the current financial framework, Article 312 (4)
|
| 26 |
+
of the Treaty on the Functioning of the European Union would apply. This Article
|
| 27 |
+
provides that the ceilings and other provisions corresponding to the last year
|
| 28 |
+
of the previous framework shall be extended until such time as that act is adopted.'
|
| 29 |
+
- 'passage: The note referred to by the Honourable Member was an intermediary step
|
| 30 |
+
towards the approval of the Council Conclusions on Demographic Challenges - the
|
| 31 |
+
Way Ahead. The final wording of these Council Conclusions[1] was approved by consensus.
|
| 32 |
+
|
| 33 |
+
______________________
|
| 34 |
+
|
| 35 |
+
[1] ST 8668/20'
|
| 36 |
+
- 'passage: It is not for the Council to explain terms commonly used in demographic
|
| 37 |
+
studies or policy documents[1]. As for the second and third questions, the Honourable
|
| 38 |
+
Member is reminded that it is not Council policy to answer hypothetical questions.
|
| 39 |
+
|
| 40 |
+
The Honourable Member is also reminded that document 7497/20 of 23 April 2020
|
| 41 |
+
was an intermediary step towards the approval of the Council conclusions on ‘Demographic
|
| 42 |
+
|
| 43 |
+
Challenges - The Way Ahead’[2] on 8 June 2020.
|
| 44 |
+
|
| 45 |
+
[1] See for instance the Commission communication of 12 October 2006, COM(2006)
|
| 46 |
+
0571 final: ‘The demographic future of Europe - from challenge to opportunity’.
|
| 47 |
+
|
| 48 |
+
[2] ST 8668/20.'
|
| 49 |
+
- source_sentence: 'query: Consultancy contracts
|
| 50 |
+
|
| 51 |
+
Have consultancy contracts been concluded with external consultants under the
|
| 52 |
+
new Commission?
|
| 53 |
+
|
| 54 |
+
If so, with whom and for what amount?'
|
| 55 |
+
sentences:
|
| 56 |
+
- 'passage: At this stage it is not possible to reply in detail to the question
|
| 57 |
+
whether the Commission concluded any consultancy contracts with external consultants
|
| 58 |
+
between 1 May 2020 and 31 August 2020. The contract category information (e.g.
|
| 59 |
+
consultancy) becomes available through contract registration in the central accounting
|
| 60 |
+
IT-system. Contract registration is mandatory when proceeding to the first payment,
|
| 61 |
+
which can occur several months after the contract has been concluded.
|
| 62 |
+
|
| 63 |
+
To ensure the correctness and completeness of contracts, the Commission proceeds
|
| 64 |
+
to data quality verifications before publishing beneficiaries and related contracts
|
| 65 |
+
on the Financial Transparency System website (FTS database)[1].
|
| 66 |
+
|
| 67 |
+
The publication of 2020 data on the FTS website is foreseen by June 2021 and contracts
|
| 68 |
+
related to consultancy (name of the contractor and amount) will then become publicly
|
| 69 |
+
available.
|
| 70 |
+
|
| 71 |
+
Information on consultancy contracts for the financial years 2018 and 2019 was
|
| 72 |
+
provided in replies to the written questions [REF] and [REF].
|
| 73 |
+
|
| 74 |
+
[1] https://ec.europa.eu/budget/fts/index_en.htm'
|
| 75 |
+
- 'passage: In annex 1, the Honourable Member will find all consultancy contracts,
|
| 76 |
+
together with the contractor(s) name (in column A) and the contracted amount (in
|
| 77 |
+
column B), that the new European Commission signed from 1 December 2019 to 30
|
| 78 |
+
April 2020.'
|
| 79 |
+
- 'passage: The Commission is currently engaged in constructive technical discussions
|
| 80 |
+
with the Italian authorities in order to analyse, from a State aid and public
|
| 81 |
+
procurement perspective, the measures for the completion of the works on the Asti
|
| 82 |
+
Cuneo motorway, in connection with which the Italian authorities have indeed proposed
|
| 83 |
+
a series of measures.
|
| 84 |
+
|
| 85 |
+
As the discussions between the Commission and the Italian authorities are ongoing,
|
| 86 |
+
the Commission is not in a position to comment on the details of those discussions.'
|
| 87 |
+
- source_sentence: 'query: European Commission ‘guidelines for inclusive communication’
|
| 88 |
+
|
| 89 |
+
In its ''guidelines for inclusive communication’, the European Commission once
|
| 90 |
+
again demonstrates its firm rejection of European traditions and cultural heritage,
|
| 91 |
+
telling people, for example, to avoid using the word ‘Christmas’.
|
| 92 |
+
|
| 93 |
+
1. Which institution drew up this document?
|
| 94 |
+
|
| 95 |
+
2. How much was spent on it?
|
| 96 |
+
|
| 97 |
+
3. Were external people, companies or other bodies such as NGOs involved in its
|
| 98 |
+
making and if so, which ones?'
|
| 99 |
+
sentences:
|
| 100 |
+
- 'passage: The EU supports the Tourism and Cultural Heritage sectors in Egypt[1].
|
| 101 |
+
In December 2017, in the framework of a call for proposals[2], the project "Revival
|
| 102 |
+
of the Shali Fortress" was awarded a grant of EUR 539,078.96, constituting up
|
| 103 |
+
to 90% of the total budget of the action. The premise of the initiative is that
|
| 104 |
+
support to cultural heritage stimulates socio-economic development of the communities
|
| 105 |
+
around the sites. The EU is supporting both tangible and intangible cultural heritage
|
| 106 |
+
as factors for the expansion of sustainable tourism in an economically depressed
|
| 107 |
+
area of Egypt. This project expects to result in the upgrade of 30 houses of local
|
| 108 |
+
people working in the tourist sector, open a museum/cultural centre, open a Mother
|
| 109 |
+
and Child Health Centre, and ensure that at least 50% of women in the community
|
| 110 |
+
visit the Health Centre by the end of 2019. Moreover, the project aims to ensure
|
| 111 |
+
the permanent employment of 30 trained men and youth in the tourism sector, and
|
| 112 |
+
70 enterprises will be financially empowered through a loan portfolio of approximately
|
| 113 |
+
EGP 1 million.
|
| 114 |
+
|
| 115 |
+
[1] C(2015)5244 final of 22.7.2015.
|
| 116 |
+
|
| 117 |
+
[2] reference EuropeAid/154927/DD/ACT/EG Cultural Heritage for Social and Economic
|
| 118 |
+
Development'
|
| 119 |
+
- 'passage: The Commission is fully committed to a Union of Equality and respect
|
| 120 |
+
for all. The Preamble of the Treaty on European Union refers to the ‘inspiration
|
| 121 |
+
drawn from the cultural, religious and humanist inheritance of Europe, from which
|
| 122 |
+
have developed the universal human rights, freedom, democracy, equality and the
|
| 123 |
+
rule of law’.
|
| 124 |
+
|
| 125 |
+
The guidelines were an internal document intended only for the use of staff. Its
|
| 126 |
+
aim was to sensitise Commission officials to the diversity of European culture
|
| 127 |
+
and people and to promote an inclusive attitude toward all walks of life and belief
|
| 128 |
+
of European citizens. The document has been withdrawn.
|
| 129 |
+
|
| 130 |
+
The internal document to which the Honourable Member refers did not preclude the
|
| 131 |
+
use of any words or names, like Christmas, and imposed no obligations on Commission
|
| 132 |
+
staff members. Celebrating Christmas, as well as using Christian names, are part
|
| 133 |
+
of the rich European heritage.'
|
| 134 |
+
- 'passage: The internal guidance document, to which the Honourable Member refers,
|
| 135 |
+
was an internal document intended only for the use of Commission staff. Its aim
|
| 136 |
+
was to sensitise them to the diversity of European culture and people and to promote
|
| 137 |
+
inclusion towards all walks of life and the diverse beliefs of European citizens.
|
| 138 |
+
The document has since been withdrawn.
|
| 139 |
+
|
| 140 |
+
The internal guidelines were prepared by Commission staff as part of their regular
|
| 141 |
+
tasks.'
|
| 142 |
+
- source_sentence: 'query: EU funding in Rhineland-Palatinate 2014-2020
|
| 143 |
+
|
| 144 |
+
1. By the end of 2018, how much funding had Rhineland-Palatinate received from
|
| 145 |
+
the European Regional Development Fund (ERDF), the European Agricultural Guarantee
|
| 146 |
+
Fund (EAGF), the European Agricultural Fund for Rural Development (EAFRD), the
|
| 147 |
+
European Social Fund (ESF), the Lifelong Learning Programme (LLP) and other EU
|
| 148 |
+
programmes?
|
| 149 |
+
|
| 150 |
+
2. What proportion of this funding was co-financed by the Federal Republic of
|
| 151 |
+
Germany or by the federal state of Rhineland-Palatinate?
|
| 152 |
+
|
| 153 |
+
3. What is the total amount of funding still available to Rhineland-Palatinate
|
| 154 |
+
under these programmes for the 2014-2020 funding period?'
|
| 155 |
+
sentences:
|
| 156 |
+
- 'passage: The EU is aware of the case raised by the Honourable Member but is not
|
| 157 |
+
aware of any recent development in this respect.
|
| 158 |
+
|
| 159 |
+
Fully aware of the human cost suffered as a result of the Western Sahara conflict,
|
| 160 |
+
the EU supports the renewed United Nations (UN) efforts towards a solution of
|
| 161 |
+
this protracted dispute, including the most recent resolution of the UN Security
|
| 162 |
+
Council (2468)[1]. Meanwhile, should the parties so decide and under the aegis
|
| 163 |
+
of the UN, the EU would be ready to consider supporting confidence building measures,
|
| 164 |
+
including initiatives facilitating family reunification.
|
| 165 |
+
|
| 166 |
+
[1] http://unscr.com/en/resolutions/2468'
|
| 167 |
+
- 'passage: The Commission confirms that the project ‘M.Punkt RLP - Mach’ Dein Dorf’
|
| 168 |
+
was co-financed from the European Social Fund (ESF) programme Rhineland-Palatinate
|
| 169 |
+
between 2009 and 2013.
|
| 170 |
+
|
| 171 |
+
1. The ESF in Germany is implemented in one national and several regional programmes
|
| 172 |
+
(e.g. Rhineland-Palatinate) and it is managed under shared management rules. Member
|
| 173 |
+
States are responsibile for selecting the projects (e.g. assessing the proportionality
|
| 174 |
+
of a given project, trustworthiness of the beneficiaries) and controlling and
|
| 175 |
+
auditing them.
|
| 176 |
+
|
| 177 |
+
2. The ESF support for the project ‘M.Punkt RLP - Mach’ Dein Dorf’ ended in 2013.
|
| 178 |
+
Since 2014 the project has been receiving national funding from the Ministry of
|
| 179 |
+
the Interior and Sport of Rhineland-Palatinate.
|
| 180 |
+
|
| 181 |
+
3. The Commission measures the impact of an ESF programme by using indicators
|
| 182 |
+
(output/result), without looking specifically at project level. However, to measure
|
| 183 |
+
the impact of a given ESF project (e.g. labour market integration) an assessment
|
| 184 |
+
is carried out post-implementation. Such an assessment is within the scope of
|
| 185 |
+
authority of the Member State based on the shared management principle.'
|
| 186 |
+
- 'passage: The Honourable Member can find readily available information in response
|
| 187 |
+
to its question in Annex to this reply.'
|
| 188 |
+
- source_sentence: 'query: Most widely spoken mother tongues in the EU
|
| 189 |
+
|
| 190 |
+
The last survey on the most widely spoken mother tongues in the EU was the one
|
| 191 |
+
by Eurobarometer in 2012, before Brexit. Eurostat does not have this information
|
| 192 |
+
either.
|
| 193 |
+
|
| 194 |
+
Bearing in mind the great change in the EU’s population brought about by the withdrawal
|
| 195 |
+
of the United Kingdom, with the loss of over 60 million people, up-to-date information
|
| 196 |
+
on this is now needed.
|
| 197 |
+
|
| 198 |
+
Is the Commission planning to commission a study on mother tongues from Eurostat
|
| 199 |
+
or to include a section on this in the next Eurobarometer?'
|
| 200 |
+
sentences:
|
| 201 |
+
- 'passage: 1. The European Border and Coast Guard Agency (Frontex) is providing
|
| 202 |
+
substantial support to notably Lithuania and Latvia. The Commission has asked
|
| 203 |
+
Frontex to provide a response to the question raised by the Honourable Member
|
| 204 |
+
regarding the Agency’s assistance in protecting the external borders of the Union
|
| 205 |
+
with Belarus. The Agency’s reply will be sent by the Commission to the Honourable
|
| 206 |
+
Member as soon as possible.
|
| 207 |
+
|
| 208 |
+
2. The Commission considers that Belarus is engaging in a hybrid attack intended
|
| 209 |
+
to destabilise Europe as set out by the Commission President in the 2021 State
|
| 210 |
+
of the Union address.'
|
| 211 |
+
- 'passage: The effect of Brexit on the total percentage of native English speakers
|
| 212 |
+
in the EU can be derived from the 2012 Eurobarometer data. The numbers of native
|
| 213 |
+
speakers of other official languages has not significantly changed in absolute
|
| 214 |
+
terms since then. However, given that the EU27 population size (447.7 million)
|
| 215 |
+
is smaller than pre-Brexit EU (513.5 million), the relative proportions of non-English
|
| 216 |
+
mother tongue speakers have all increased accordingly.
|
| 217 |
+
|
| 218 |
+
At this stage, the Commission is not planning any further study on mother tongues
|
| 219 |
+
from Eurostat or within the next Eurobarometer.'
|
| 220 |
+
- 'passage: The Commission does not have sufficient information to answer the question.
|
| 221 |
+
|
| 222 |
+
In 2012 the European Commission conducted the Special Eurobarometer survey number
|
| 223 |
+
386, ‘Europeans and their languages’.[1] Question 48a of that survey invited respondents
|
| 224 |
+
to specify which language they considered to be their mother tongue.
|
| 225 |
+
|
| 226 |
+
Caution should however be used in interpreting those data, given the extremely
|
| 227 |
+
small sample involved. Moreover the notion of ‘native’ or ‘mother tongue’ speaker
|
| 228 |
+
is not exempt from ambiguity: it can refer to the first language spoken, the language
|
| 229 |
+
one identifies with or is identified with by others, the language he or she prefers
|
| 230 |
+
to speak etc. Several languages could be indicated as mother tongue by each respondent
|
| 231 |
+
in the Eurobarometer survey.
|
| 232 |
+
|
| 233 |
+
[1] See the Report (http://ec.europa.eu/public_opinion/archives/ebs/ebs_386_en.pdf)
|
| 234 |
+
and its Annex (http://ec.europa.eu/public_opinion/archives/ebs/ebs_386_anx_en.pdf)
|
| 235 |
+
.The entire dataset can be consulted on the European Union Open Data Portal: https://open-data.europa.eu/en/data/dataset/S1049_77_1_EBS386/resource/fb4a8cb6-5e3b-4867-9780-0b7b3ab80866'
|
| 236 |
+
pipeline_tag: sentence-similarity
|
| 237 |
+
library_name: sentence-transformers
|
| 238 |
+
---
|
| 239 |
+
|
| 240 |
+
# SentenceTransformer based on intfloat/multilingual-e5-base
|
| 241 |
+
|
| 242 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base). It maps inputs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.
|
| 243 |
+
|
| 244 |
+
## Model Details
|
| 245 |
+
|
| 246 |
+
### Model Description
|
| 247 |
+
- **Model Type:** Sentence Transformer
|
| 248 |
+
- **Base model:** [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) <!-- at revision d128750597153bb5987e10b1c3493a34e5a4502a -->
|
| 249 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 250 |
+
- **Output Dimensionality:** 768 dimensions
|
| 251 |
+
- **Similarity Function:** Cosine Similarity
|
| 252 |
+
- **Supported Modality:** Text
|
| 253 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 254 |
+
<!-- - **Language:** Unknown -->
|
| 255 |
+
<!-- - **License:** Unknown -->
|
| 256 |
+
|
| 257 |
+
### Model Sources
|
| 258 |
+
|
| 259 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 260 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 261 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 262 |
+
|
| 263 |
+
### Full Model Architecture
|
| 264 |
+
|
| 265 |
+
```
|
| 266 |
+
SentenceTransformer(
|
| 267 |
+
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'XLMRobertaModel'})
|
| 268 |
+
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
|
| 269 |
+
(2): Normalize({'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
|
| 270 |
+
)
|
| 271 |
+
```
|
| 272 |
+
|
| 273 |
+
## Usage
|
| 274 |
+
|
| 275 |
+
### Direct Usage (Sentence Transformers)
|
| 276 |
+
|
| 277 |
+
First install the Sentence Transformers library:
|
| 278 |
+
|
| 279 |
+
```bash
|
| 280 |
+
pip install -U sentence-transformers
|
| 281 |
+
```
|
| 282 |
+
Then you can load this model and run inference.
|
| 283 |
+
```python
|
| 284 |
+
from sentence_transformers import SentenceTransformer
|
| 285 |
+
|
| 286 |
+
# Download from the 🤗 Hub
|
| 287 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
| 288 |
+
# Run inference
|
| 289 |
+
sentences = [
|
| 290 |
+
'query: Most widely spoken mother tongues in the EU\nThe last survey on the most widely spoken mother tongues in the EU was the one by Eurobarometer in 2012, before Brexit. Eurostat does not have this information either.\nBearing in mind the great change in the EU’s population brought about by the withdrawal of the United Kingdom, with the loss of over 60 million people, up-to-date information on this is now needed.\nIs the Commission planning to commission a study on mother tongues from Eurostat or to include a section on this in the next Eurobarometer?',
|
| 291 |
+
'passage: The effect of Brexit on the total percentage of native English speakers in the EU can be derived from the 2012 Eurobarometer data. The numbers of native speakers of other official languages has not significantly changed in absolute terms since then. However, given that the EU27 population size (447.7 million) is smaller than pre-Brexit EU (513.5 million), the relative proportions of non-English mother tongue speakers have all increased accordingly.\nAt this stage, the Commission is not planning any further study on mother tongues from Eurostat or within the next Eurobarometer.',
|
| 292 |
+
'passage: The Commission does not have sufficient information to answer the question.\nIn 2012 the European Commission conducted the Special Eurobarometer survey number 386, ‘Europeans and their languages’.[1] Question 48a of that survey invited respondents to specify which language they considered to be their mother tongue.\nCaution should however be used in interpreting those data, given the extremely small sample involved. Moreover the notion of ‘native’ or ‘mother tongue’ speaker is not exempt from ambiguity: it can refer to the first language spoken, the language one identifies with or is identified with by others, the language he or she prefers to speak etc. Several languages could be indicated as mother tongue by each respondent in the Eurobarometer survey.\n[1] See the Report (http://ec.europa.eu/public_opinion/archives/ebs/ebs_386_en.pdf) and its Annex (http://ec.europa.eu/public_opinion/archives/ebs/ebs_386_anx_en.pdf) .The entire dataset can be consulted on the European Union Open Data Portal: https://open-data.europa.eu/en/data/dataset/S1049_77_1_EBS386/resource/fb4a8cb6-5e3b-4867-9780-0b7b3ab80866',
|
| 293 |
+
]
|
| 294 |
+
embeddings = model.encode(sentences)
|
| 295 |
+
print(embeddings.shape)
|
| 296 |
+
# [3, 768]
|
| 297 |
+
|
| 298 |
+
# Get the similarity scores for the embeddings
|
| 299 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 300 |
+
print(similarities)
|
| 301 |
+
# tensor([[1.0000, 0.7042, 0.6063],
|
| 302 |
+
# [0.7042, 1.0000, 0.7004],
|
| 303 |
+
# [0.6063, 0.7004, 1.0000]])
|
| 304 |
+
```
|
| 305 |
+
<!--
|
| 306 |
+
### Direct Usage (Transformers)
|
| 307 |
+
|
| 308 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 309 |
+
|
| 310 |
+
</details>
|
| 311 |
+
-->
|
| 312 |
+
|
| 313 |
+
<!--
|
| 314 |
+
### Downstream Usage (Sentence Transformers)
|
| 315 |
+
|
| 316 |
+
You can finetune this model on your own dataset.
|
| 317 |
+
|
| 318 |
+
<details><summary>Click to expand</summary>
|
| 319 |
+
|
| 320 |
+
</details>
|
| 321 |
+
-->
|
| 322 |
+
|
| 323 |
+
<!--
|
| 324 |
+
### Out-of-Scope Use
|
| 325 |
+
|
| 326 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 327 |
+
-->
|
| 328 |
+
|
| 329 |
+
<!--
|
| 330 |
+
## Bias, Risks and Limitations
|
| 331 |
+
|
| 332 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 333 |
+
-->
|
| 334 |
+
|
| 335 |
+
<!--
|
| 336 |
+
### Recommendations
|
| 337 |
+
|
| 338 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 339 |
+
-->
|
| 340 |
+
|
| 341 |
+
## Training Details
|
| 342 |
+
|
| 343 |
+
### Training Dataset
|
| 344 |
+
|
| 345 |
+
#### Unnamed Dataset
|
| 346 |
+
|
| 347 |
+
* Size: 16,873 training samples
|
| 348 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 349 |
+
* Approximate statistics based on the first 100 samples:
|
| 350 |
+
| | anchor | positive | negative |
|
| 351 |
+
|:---------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
|
| 352 |
+
| type | string | string | string |
|
| 353 |
+
| modality | text | text | text |
|
| 354 |
+
| details | <ul><li>min: 83 tokens</li><li>mean: 258.83 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 89 tokens</li><li>mean: 380.1 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 87 tokens</li><li>mean: 447.16 tokens</li><li>max: 512 tokens</li></ul> |
|
| 355 |
+
* Samples:
|
| 356 |
+
| anchor | positive | negative |
|
| 357 |
+
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 358 |
+
| <code>query: Afghanistan: management of European funds after the Taliban takeover<br>Following the G7 videoconference on 24 August 2021, the Commission announced that humanitarian aid to Afghanistan would be almost quadrupled.<br>Ursula von der Leyen said that the Commission would now disburse EUR 200 million in humanitarian aid to Afghanistan for 2021, rather than EUR 57 million as initially planned.<br>European financial aid to Afghanistan for the period 2021-2027 amounts to EUR 1 billion.<br>The move came as even more of a surprise given that the European institutions have just urgently repatriated EU personnel and evacuated local support staff, and that all international organisations and Western governments - in particular European ones - have closed their local offices.<br>Despite this, Commission spokesman Balazs Ujvari said there would be no interruption in the EU’s humanitarian engagement in Afghanistan.<br>In order to minimise the risk of humanitarian aid being misappropriated by the Taliban, the ar...</code> | <code>passage: The humanitarian donor community, including the EU, is committed to staying and delivering urgent life-saving assistance to the Afghan people, in full respect of the humanitarian principles of humanity, neutrality, impartiality and independence, as enshrined in the Treaties and in the European Consensus on Humanitarian Aid[1]. Therefore, there will be no interruption in the EU’s humanitarian engagement in Afghanistan.<br>The EU does not offer any support to the Taliban and will not channel its assistance to the population via structures or systems controlled by the Taliban. Only humanitarian aid is currently provided through the EU’s established partners on the ground (United Nations agencies and non-governmental organisations), fully in line with the international humanitarian principles mentioned above.<br>The Commission President announced on 12 October 2021 an Afghan Support Package amounting to around EUR 1 billion, which will also include ‘humanitarian+’[2] funding in direct s...</code> | <code>passage: The Commission has substantially increased EU humanitarian aid for Afghans since the Taliban takeover of Kabul on 15 August 2021 to EUR 227 million[1] until 29 November 2021 since the start of the year. These funds will address urgent humanitarian needs mainly within Afghanistan, with a particular focus on food security, nutrition, education, winterisation, protection, water, sanitation and hygiene[2] and logistics. All the funds were contracted by 10 December 2021. A smaller share (EUR 5 million) has been contracted to support Afghan refugees in neighbouring countries.<br>The humanitarian community, including the EU, is committed to staying and delivering life-saving assistance to vulnerable Afghans. This requires that independence, security and unhindered access for humanitarian staff - including all female humanitarian workers - are allowed and facilitated in full respect of the humanitarian principles of humanity, neutrality, impartiality and independence.<br>In addition, and in...</code> |
|
| 359 |
+
| <code>query: Declaration of interests of Commissioner Stella Kyriakides<br>In her declaration of interests, European Commissioner for Health Stella Kyriakides listed a number of management positions held by her husband, Kyriakos Kyriakides, but not his management position at Maralo Limited. According to information published by the Audit Office of the Republic of Cyprus, Kyriakos Kyriakides is the managing director of Maralo Limited and the company has received several million in loans. Given that Commissioner Stella Kyriakides is playing an important role in concluding the EU’s contracts with COVID-19 vaccine manufacturers and for the purposes of transparency in that process, I should like to ask:<br>1. Can the Commission confirm whether Kyriakos Kyriakides, the husband of Commissioner Stella Kyriakides, holds a management position at Maralo Limited and, if so, how long has he held that position?<br>2. Why was this position not mentioned in the Commissioner’s declaration of interests?<br>3. If the disp...</code> | <code>passage: 1. Based on the information received from Commissioner Kyriakides, the Commission can confirm that her husband, Mr Kyriakos Kyriakides, has been a Director of Maralo Ltd., a company in the housing and construction sector, since November 2006.<br>2. The Commissioner has explained that the company has ceased its business activities since many years and has limited itself to the liquidation of its assets. This was the reason for not declaring the position, contrary to her husband’s other positions held as declared.<br>The Code of Conduct for the Members of the Commission requires declaring financial interests of a spouse where those might be capable of giving rise to a conflict of interest. In the present case, the Cyprus Cooperative Bank, which was a large bank in Cyprus, granted commercial loans to Maralo Ltd before the year 2013. Given the commercial character of the loan and of the bank, and the company’s field of activity, a conflict of interest as defined in the Code[1] is not fo...</code> | <code>passage: Commissioner Kyriakides has declared in her declaration of interest to own a 13% share of the company ‘A. Triantafyllides Estates Ltd’.<br>She has informed the President that ‘A. Triantafyllides Estates Ltd’ is a family company whose shares originally belonged to her father and his two brothers. The letter “A” stands for Antonis, the name of the Commissioner’s grandfather. This company erected a building on the site where the house of the Commissioner’s grandparents was located and subsequently sold it. The company is now and has been for over 30 years a company without any activities whatsoever and derives no income. Its shareholders[1] have no financial benefits resulting of their shareholding.<br>Commissioner Kyriakides also informed the President that ‘Antis Triantafyllides & Sons LLC’ is a law firm which has no professional connection with the company ‘A. Triantafyllides Estates Ltd’ nor the opposite. The activities of the law firm in no way affect the company or the other way ...</code> |
|
| 360 |
+
| <code>query: Covid-19<br>The Covid-19 crisis is taking on enormous proportions, not only in terms of the number of cases and deaths, but also as regards the measures that Member States are taking to slow its spread.<br>Every day we are seeing data and statistics comparing the development of the disease in different countries, but it is clear that there is no common standard for collecting that data. The different countries have adopted diagnostic protocols in line with their capabilities, but if we want to compare data in order to build up an accurate picture of the development of the pandemic at European level, we need uniform data, or we need to come up with indirect measurement arrangements or estimates that allow for standardised comparisons to be made.<br>It seems clear that the data on mortality or ICU admissions are the most reliable because they come from confirmed positives, and even though there are differences in the data collected, they do not seem to be as uniform as the data on incidenc...</code> | <code>passage: The Commission is working with Member States and international partners on all fronts to tackle the COVID-19 outbreak[1]. The first priority is to guarantee the health and safety of everyone: protecting people from the spread of the virus, supporting the health systems and health workers while maintaining the flow of goods[2], mitigating the effects on the economy[3] and helping people get back to their homes.<br>Timely and accurate laboratory testing from cases under investigation is an essential part of the clinical management of COVID-19. Testing is also a key component to understanding the epidemiological situation and will be key to the phasing out of confinement measures. Recommendations on testing for COVID-19 are aligned between the European Centre for Disease Prevention and Control (ECDC)[4] and the World Health Organization[5]. To support Member States in effectively using testing tools in the context of their national strategies and during the different stages of the p...</code> | <code>passage: The Commission is working with Member States and international partners on all fronts to tackle the COVID-19 outbreak and it has set up a website to keep all citizens updated about the evolution of the disease in the EU and informed of the comprehensive response by the Commission[1].<br>Data collection is a crucial part of monitoring the epidemiological progress of the virus. The European Centre for Disease Prevention and Control follows closely and publishes daily statistical information about confirmed cases of COVID-19[2] and has provided guidance to Member States on the collection of data, including on statistics related to the number of corona related deaths.<br>Eurostat collects[3] data on health care resources and facilities: availability and occupancy of hospital beds, technical resources and medical technology, health care personnel and health care expenditure[4].<br>Further, responding to the increased need for statistical information, Eurostat launched in April 2020 a new da...</code> |
|
| 361 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 362 |
+
```json
|
| 363 |
+
{
|
| 364 |
+
"scale": 20.0,
|
| 365 |
+
"similarity_fct": "cos_sim",
|
| 366 |
+
"mini_batch_size": 8,
|
| 367 |
+
"mini_batch_num_tokens": null,
|
| 368 |
+
"gather_across_devices": false,
|
| 369 |
+
"directions": [
|
| 370 |
+
"query_to_doc"
|
| 371 |
+
],
|
| 372 |
+
"partition_mode": "joint",
|
| 373 |
+
"hardness_mode": null,
|
| 374 |
+
"hardness_strength": 0.0
|
| 375 |
+
}
|
| 376 |
+
```
|
| 377 |
+
|
| 378 |
+
### Training Hyperparameters
|
| 379 |
+
#### Non-Default Hyperparameters
|
| 380 |
+
|
| 381 |
+
- `per_device_train_batch_size`: 32
|
| 382 |
+
- `num_train_epochs`: 1
|
| 383 |
+
- `learning_rate`: 2e-05
|
| 384 |
+
- `warmup_steps`: 0.1
|
| 385 |
+
- `fp16`: True
|
| 386 |
+
- `seed`: 13
|
| 387 |
+
- `dataloader_num_workers`: 2
|
| 388 |
+
- `batch_sampler`: no_duplicates
|
| 389 |
+
|
| 390 |
+
#### All Hyperparameters
|
| 391 |
+
<details><summary>Click to expand</summary>
|
| 392 |
+
|
| 393 |
+
- `per_device_train_batch_size`: 32
|
| 394 |
+
- `num_train_epochs`: 1
|
| 395 |
+
- `max_steps`: -1
|
| 396 |
+
- `learning_rate`: 2e-05
|
| 397 |
+
- `lr_scheduler_type`: linear
|
| 398 |
+
- `lr_scheduler_kwargs`: None
|
| 399 |
+
- `warmup_steps`: 0.1
|
| 400 |
+
- `optim`: adamw_torch_fused
|
| 401 |
+
- `optim_args`: None
|
| 402 |
+
- `weight_decay`: 0.0
|
| 403 |
+
- `adam_beta1`: 0.9
|
| 404 |
+
- `adam_beta2`: 0.999
|
| 405 |
+
- `adam_epsilon`: 1e-08
|
| 406 |
+
- `optim_target_modules`: None
|
| 407 |
+
- `gradient_accumulation_steps`: 1
|
| 408 |
+
- `average_tokens_across_devices`: True
|
| 409 |
+
- `max_grad_norm`: 1.0
|
| 410 |
+
- `label_smoothing_factor`: 0.0
|
| 411 |
+
- `bf16`: False
|
| 412 |
+
- `fp16`: True
|
| 413 |
+
- `bf16_full_eval`: False
|
| 414 |
+
- `fp16_full_eval`: False
|
| 415 |
+
- `tf32`: None
|
| 416 |
+
- `gradient_checkpointing`: False
|
| 417 |
+
- `gradient_checkpointing_kwargs`: None
|
| 418 |
+
- `torch_compile`: False
|
| 419 |
+
- `torch_compile_backend`: None
|
| 420 |
+
- `torch_compile_mode`: None
|
| 421 |
+
- `use_liger_kernel`: False
|
| 422 |
+
- `liger_kernel_config`: None
|
| 423 |
+
- `use_cache`: False
|
| 424 |
+
- `neftune_noise_alpha`: None
|
| 425 |
+
- `torch_empty_cache_steps`: None
|
| 426 |
+
- `auto_find_batch_size`: False
|
| 427 |
+
- `log_on_each_node`: True
|
| 428 |
+
- `logging_nan_inf_filter`: True
|
| 429 |
+
- `include_num_input_tokens_seen`: no
|
| 430 |
+
- `log_level`: passive
|
| 431 |
+
- `log_level_replica`: warning
|
| 432 |
+
- `disable_tqdm`: False
|
| 433 |
+
- `project`: huggingface
|
| 434 |
+
- `trackio_space_id`: None
|
| 435 |
+
- `trackio_bucket_id`: None
|
| 436 |
+
- `trackio_static_space_id`: None
|
| 437 |
+
- `per_device_eval_batch_size`: 8
|
| 438 |
+
- `prediction_loss_only`: True
|
| 439 |
+
- `eval_on_start`: False
|
| 440 |
+
- `eval_do_concat_batches`: True
|
| 441 |
+
- `eval_use_gather_object`: False
|
| 442 |
+
- `eval_accumulation_steps`: None
|
| 443 |
+
- `include_for_metrics`: []
|
| 444 |
+
- `batch_eval_metrics`: False
|
| 445 |
+
- `save_only_model`: False
|
| 446 |
+
- `save_on_each_node`: False
|
| 447 |
+
- `enable_jit_checkpoint`: False
|
| 448 |
+
- `push_to_hub`: False
|
| 449 |
+
- `hub_private_repo`: None
|
| 450 |
+
- `hub_model_id`: None
|
| 451 |
+
- `hub_strategy`: every_save
|
| 452 |
+
- `hub_always_push`: False
|
| 453 |
+
- `hub_revision`: None
|
| 454 |
+
- `load_best_model_at_end`: False
|
| 455 |
+
- `ignore_data_skip`: False
|
| 456 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 457 |
+
- `full_determinism`: False
|
| 458 |
+
- `seed`: 13
|
| 459 |
+
- `data_seed`: None
|
| 460 |
+
- `use_cpu`: False
|
| 461 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 462 |
+
- `parallelism_config`: None
|
| 463 |
+
- `dataloader_drop_last`: False
|
| 464 |
+
- `dataloader_num_workers`: 2
|
| 465 |
+
- `dataloader_pin_memory`: True
|
| 466 |
+
- `dataloader_persistent_workers`: False
|
| 467 |
+
- `dataloader_prefetch_factor`: None
|
| 468 |
+
- `dataloader_multiprocessing_context`: None
|
| 469 |
+
- `dataloader_in_order`: True
|
| 470 |
+
- `remove_unused_columns`: True
|
| 471 |
+
- `label_names`: None
|
| 472 |
+
- `train_sampling_strategy`: random
|
| 473 |
+
- `length_column_name`: length
|
| 474 |
+
- `ddp_find_unused_parameters`: None
|
| 475 |
+
- `ddp_bucket_cap_mb`: None
|
| 476 |
+
- `ddp_broadcast_buffers`: False
|
| 477 |
+
- `ddp_static_graph`: None
|
| 478 |
+
- `ddp_backend`: None
|
| 479 |
+
- `ddp_timeout`: 1800
|
| 480 |
+
- `fsdp`: None
|
| 481 |
+
- `fsdp_config`: None
|
| 482 |
+
- `deepspeed`: None
|
| 483 |
+
- `debug`: []
|
| 484 |
+
- `skip_memory_metrics`: True
|
| 485 |
+
- `do_predict`: False
|
| 486 |
+
- `resume_from_checkpoint`: None
|
| 487 |
+
- `local_rank`: -1
|
| 488 |
+
- `prompts`: None
|
| 489 |
+
- `batch_sampler`: no_duplicates
|
| 490 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 491 |
+
- `router_mapping`: {}
|
| 492 |
+
- `learning_rate_mapping`: {}
|
| 493 |
+
- `warmup_ratio`: None
|
| 494 |
+
|
| 495 |
+
</details>
|
| 496 |
+
|
| 497 |
+
### Training Logs
|
| 498 |
+
| Epoch | Step | Training Loss |
|
| 499 |
+
|:------:|:----:|:-------------:|
|
| 500 |
+
| 0.0947 | 50 | 1.5266 |
|
| 501 |
+
| 0.1894 | 100 | 0.4477 |
|
| 502 |
+
| 0.2841 | 150 | 0.3848 |
|
| 503 |
+
| 0.3788 | 200 | 0.3411 |
|
| 504 |
+
| 0.4735 | 250 | 0.3158 |
|
| 505 |
+
| 0.5682 | 300 | 0.3064 |
|
| 506 |
+
| 0.6629 | 350 | 0.2887 |
|
| 507 |
+
| 0.7576 | 400 | 0.2796 |
|
| 508 |
+
| 0.8523 | 450 | 0.2516 |
|
| 509 |
+
| 0.9470 | 500 | 0.2673 |
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
### Training Time
|
| 513 |
+
- **Training**: 4.8 minutes
|
| 514 |
+
|
| 515 |
+
### Framework Versions
|
| 516 |
+
- Python: 3.14.4
|
| 517 |
+
- Sentence Transformers: 6.1.0
|
| 518 |
+
- Transformers: 5.20.2
|
| 519 |
+
- PyTorch: 2.14.1+cu130
|
| 520 |
+
- Accelerate: 1.15.0
|
| 521 |
+
- Datasets: 5.1.0
|
| 522 |
+
- Tokenizers: 0.23.3
|
| 523 |
+
|
| 524 |
+
## Additional Resources
|
| 525 |
+
|
| 526 |
+
- [Training and Finetuning Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-sentence-transformers): the end-to-end guide for training or finetuning Sentence Transformer models.
|
| 527 |
+
- [Introduction to Matryoshka Embedding Models](https://huggingface.co/blog/matryoshka): variable-size embeddings that can be truncated with minimal quality loss.
|
| 528 |
+
- [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://huggingface.co/blog/embedding-quantization): post-training compression of embedding vectors.
|
| 529 |
+
- [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video models through the same API.
|
| 530 |
+
- [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): train multimodal embedding models, with a Visual Document Retrieval walkthrough.
|
| 531 |
+
|
| 532 |
+
## Citation
|
| 533 |
+
|
| 534 |
+
### BibTeX
|
| 535 |
+
|
| 536 |
+
#### Sentence Transformers
|
| 537 |
+
```bibtex
|
| 538 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 539 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 540 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 541 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 542 |
+
month = "11",
|
| 543 |
+
year = "2019",
|
| 544 |
+
publisher = "Association for Computational Linguistics",
|
| 545 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 546 |
+
}
|
| 547 |
+
```
|
| 548 |
+
|
| 549 |
+
#### CachedMultipleNegativesRankingLoss
|
| 550 |
+
```bibtex
|
| 551 |
+
@misc{gao2021scaling,
|
| 552 |
+
title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
|
| 553 |
+
author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
|
| 554 |
+
year={2021},
|
| 555 |
+
eprint={2101.06983},
|
| 556 |
+
archivePrefix={arXiv},
|
| 557 |
+
primaryClass={cs.LG}
|
| 558 |
+
}
|
| 559 |
+
```
|
| 560 |
+
|
| 561 |
+
#### MultipleNegativesRankingLoss
|
| 562 |
+
```bibtex
|
| 563 |
+
@misc{oord2019representationlearningcontrastivepredictive,
|
| 564 |
+
title={Representation Learning with Contrastive Predictive Coding},
|
| 565 |
+
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
|
| 566 |
+
year={2019},
|
| 567 |
+
eprint={1807.03748},
|
| 568 |
+
archivePrefix={arXiv},
|
| 569 |
+
primaryClass={cs.LG},
|
| 570 |
+
url={https://arxiv.org/abs/1807.03748},
|
| 571 |
+
}
|
| 572 |
+
```
|
| 573 |
+
|
| 574 |
+
<!--
|
| 575 |
+
## Glossary
|
| 576 |
+
|
| 577 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 578 |
+
-->
|
| 579 |
+
|
| 580 |
+
<!--
|
| 581 |
+
## Model Card Authors
|
| 582 |
+
|
| 583 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 584 |
+
-->
|
| 585 |
+
|
| 586 |
+
<!--
|
| 587 |
+
## Model Card Contact
|
| 588 |
+
|
| 589 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 590 |
+
-->
|
v1.0/experiments/models/me5-base-ft2019/config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"XLMRobertaModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 3072,
|
| 16 |
+
"is_decoder": false,
|
| 17 |
+
"layer_norm_eps": 1e-05,
|
| 18 |
+
"max_position_embeddings": 514,
|
| 19 |
+
"model_type": "xlm-roberta",
|
| 20 |
+
"num_attention_heads": 12,
|
| 21 |
+
"num_hidden_layers": 12,
|
| 22 |
+
"output_past": true,
|
| 23 |
+
"pad_token_id": 1,
|
| 24 |
+
"position_embedding_type": "absolute",
|
| 25 |
+
"tie_word_embeddings": true,
|
| 26 |
+
"transformers_version": "5.20.2",
|
| 27 |
+
"type_vocab_size": 1,
|
| 28 |
+
"use_cache": false,
|
| 29 |
+
"vocab_size": 250002
|
| 30 |
+
}
|
v1.0/experiments/models/me5-base-ft2019/config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"pytorch": "2.14.1+cu130",
|
| 4 |
+
"sentence_transformers": "6.1.0",
|
| 5 |
+
"transformers": "5.20.2"
|
| 6 |
+
},
|
| 7 |
+
"default_prompt_name": null,
|
| 8 |
+
"model_type": "SentenceTransformer",
|
| 9 |
+
"prompts": {
|
| 10 |
+
"document": "",
|
| 11 |
+
"query": ""
|
| 12 |
+
},
|
| 13 |
+
"similarity_fn_name": "cosine"
|
| 14 |
+
}
|
v1.0/experiments/models/me5-base-ft2019/modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.base.modules.normalize.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
v1.0/experiments/models/me5-base-ft2019/parlir_train_meta.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base": "intfloat/multilingual-e5-base",
|
| 3 |
+
"n_pairs": 16873,
|
| 4 |
+
"epochs": 1,
|
| 5 |
+
"batch_size": 32,
|
| 6 |
+
"lr": 2e-05,
|
| 7 |
+
"max_len": 512,
|
| 8 |
+
"seed": 13,
|
| 9 |
+
"hard_negatives": true,
|
| 10 |
+
"min_year": 2019,
|
| 11 |
+
"build": "data/build/v1.0"
|
| 12 |
+
}
|
v1.0/experiments/models/me5-base-ft2019/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 |
+
}
|
v1.0/experiments/models/me5-base-ft2019/tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": true,
|
| 6 |
+
"cls_token": "<s>",
|
| 7 |
+
"eos_token": "</s>",
|
| 8 |
+
"is_local": false,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"mask_token": "<mask>",
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 15 |
+
"unk_token": "<unk>"
|
| 16 |
+
}
|
v1.0/experiments/models/me5-base-ftdm/1_Pooling/config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"embedding_dimension": 768,
|
| 3 |
+
"pooling_mode": "mean",
|
| 4 |
+
"include_prompt": true
|
| 5 |
+
}
|
v1.0/experiments/models/me5-base-ftdm/2_Normalize/config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"module_input_name": "sentence_embedding",
|
| 3 |
+
"module_output_name": "sentence_embedding"
|
| 4 |
+
}
|
v1.0/experiments/models/me5-base-ftdm/README.md
ADDED
|
@@ -0,0 +1,526 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- dense
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
- dataset_size:59612
|
| 9 |
+
- loss:CachedMultipleNegativesRankingLoss
|
| 10 |
+
- loss:MultipleNegativesRankingLoss
|
| 11 |
+
base_model: intfloat/multilingual-e5-base
|
| 12 |
+
widget:
|
| 13 |
+
- source_sentence: 'query: Spanish failure to submit monthly reports regarding Gibraltar
|
| 14 |
+
|
| 15 |
+
What action does the Commission propose to take against Spain following its failure
|
| 16 |
+
to submit monthly reports describing the risks, actions and results of the situation
|
| 17 |
+
at its land frontier with Gibraltar, as requested by the Commission in its letter
|
| 18 |
+
of 30 July 2014?'
|
| 19 |
+
sentences:
|
| 20 |
+
- 'passage: Upon request from the Commission, the Spanish authorities have submitted
|
| 21 |
+
on 20 February the reports on the checks carried out as well as the number of
|
| 22 |
+
seizure, administrative offences or crimes related to tobacco smuggling. These
|
| 23 |
+
reports cover the period May - December 2014.
|
| 24 |
+
|
| 25 |
+
The Commission is continuing the dialogue with Spanish authorities in order to
|
| 26 |
+
ensure that the relevant data and reports are being timely submitted.'
|
| 27 |
+
- 'passage: The Spanish authorities have submitted the Action protocol establishing
|
| 28 |
+
guidelines on risk analysis at its land border with Gibraltar on 2 February 2015.
|
| 29 |
+
The monthly reports to which the Honourable Member is referring have not been
|
| 30 |
+
provided by Spain so far.'
|
| 31 |
+
- 'passage: The general organisation of the Presidency of the Council of the EU
|
| 32 |
+
is a matter for the Member State concerned and the General Secretariat of the
|
| 33 |
+
Council.
|
| 34 |
+
|
| 35 |
+
The Commission and its services cooperate closely with all Member States before
|
| 36 |
+
and during their term in the Presidency of the Council of the EU.'
|
| 37 |
+
- source_sentence: 'query: UK requests for assistance from the EU Food Fraud Network
|
| 38 |
+
|
| 39 |
+
On how many occasions in the last year have the UK Food Standards Agency and Food
|
| 40 |
+
Standards Scotland requested assistance through the EU Food Fraud Network, and
|
| 41 |
+
in relation to what specific matters?'
|
| 42 |
+
sentences:
|
| 43 |
+
- 'passage: In 2017, the UK Food Standards Agency and Food Standards Scotland requested
|
| 44 |
+
assistance through the EU Food Fraud Network (FFN) on 10 occasions. The subjects
|
| 45 |
+
of these requests were mislabelling, online sale of substances unfit for human
|
| 46 |
+
consumption, absent/falsified documentation, unapproved treatment with pesticides,
|
| 47 |
+
organic certification fraud, product/ingredient substitution and suspected illegal
|
| 48 |
+
harvesting.'
|
| 49 |
+
- 'passage: The Council preparatory bodies are currently examining the proposal
|
| 50 |
+
on air passenger rights. The Council is not in a position to anticipate the outcome
|
| 51 |
+
and the duration of the ongoing discussions.'
|
| 52 |
+
- 'passage: In 2018, the United Kingdom Food Standards Agency and Food Standards
|
| 53 |
+
Scotland requested assistance through the EU Food Fraud Network on seven occasions.
|
| 54 |
+
These requests related to suspicions of mislabelling, addition of undeclared/unauthorized
|
| 55 |
+
substances, nutrition/health claims, counterfeit goods (trademarks), product replacement/substitution
|
| 56 |
+
and online sale of substances unfit for human consumption.'
|
| 57 |
+
- source_sentence: 'query: Chief Scientific Adviser role axed
|
| 58 |
+
|
| 59 |
+
In light of the recent decision to axe the role of Chief Scientific Adviser, how
|
| 60 |
+
will the European Political Strategy Centre ensure that decisions are supported
|
| 61 |
+
by independent scientific evidence?'
|
| 62 |
+
sentences:
|
| 63 |
+
- 'passage: The Commission would refer the Honourable Member to its answer to written
|
| 64 |
+
questions
|
| 65 |
+
|
| 66 |
+
[REF] by M. Hans-Olaf Henkel, [REF] by M. Marc Tarabella and
|
| 67 |
+
|
| 68 |
+
[REF] by Ms. Neena Gill.'
|
| 69 |
+
- 'passage: The European Commission has not taken any decision to "abolish" the
|
| 70 |
+
position of Chief Scientific Adviser. The mandate of the Chief Scientific Adviser
|
| 71 |
+
was linked to the mandate of the previous President of the Commission and expired
|
| 72 |
+
with the end of his mandate on 31 October 2014.
|
| 73 |
+
|
| 74 |
+
The European Commission listens and consults a multitude of actors and solicits
|
| 75 |
+
a variety of views, which are subsequently scrutinised by a very thorough impact
|
| 76 |
+
assessment process, before tabling proposals. It has, therefore, a proven record
|
| 77 |
+
of rigorous, transparent and evidence based decision making.
|
| 78 |
+
|
| 79 |
+
Commissioner for Research, Science and Innovation has been asked to reflect and
|
| 80 |
+
present options on how to better institutionalise future independent scientific
|
| 81 |
+
advice to the Commission, based on the experience made in all Member States.'
|
| 82 |
+
- 'passage: The Commission is not presently in a position to undertake the research
|
| 83 |
+
that a detailed answer to the Honourable Member’s question would require. The
|
| 84 |
+
decentralised nature of the advertising spending in the Commission, as well as
|
| 85 |
+
the developing significant impact of the Covid pandemic on previously planned
|
| 86 |
+
or ongoing communication campaigns would render the process subject to revision
|
| 87 |
+
throughout the year.'
|
| 88 |
+
- source_sentence: 'query: Information on possible EU sanctions in respect of ATP
|
| 89 |
+
S.p.A.
|
| 90 |
+
|
| 91 |
+
Will the Commission provide information to establish whether the company ATP Azienda
|
| 92 |
+
Trasporti Provinciali S.p.A. (registered office Via Conturli 53-16042, Carasco
|
| 93 |
+
(GE)) has ever received EU funding intended to modernise the company’s vehicle
|
| 94 |
+
fleet and in particular equip each bus with a GPS device?
|
| 95 |
+
|
| 96 |
+
If this is the case, will the Commission also say whether it has initiated infringement
|
| 97 |
+
proceedings against Italy because of the failure or partial failure of the company
|
| 98 |
+
in question to implement the projects which had attracted EU co-funding?'
|
| 99 |
+
sentences:
|
| 100 |
+
- 'passage: No, the Commission has not carried out an assessment of the eventuality
|
| 101 |
+
referred to by the Honourable Member.'
|
| 102 |
+
- 'passage: According to the information provided by the managing authority, the
|
| 103 |
+
project mentioned by the Honorable Member has not been co-financed by the European
|
| 104 |
+
Regional Development Fund.'
|
| 105 |
+
- 'passage: The Commission would like to thank the Honourable Member for the information
|
| 106 |
+
provided in his question about access to the activity of ATP experts in Italy.
|
| 107 |
+
However, the Commission does not possess sufficiently detailed information on
|
| 108 |
+
the legislation in force in Italy concerning this activity in order to judge whether
|
| 109 |
+
the limitations that the Honourable Member refers to are duly justified, proportionate
|
| 110 |
+
and necessary in the light of Directive 2006/123/EC on services in the internal
|
| 111 |
+
market ("the Services Directive").
|
| 112 |
+
|
| 113 |
+
The Commission will contact the Italian authorities to obtain more information.
|
| 114 |
+
The Commission will inform the Honourable Member of its assessment of the applicable
|
| 115 |
+
Italian legislation.'
|
| 116 |
+
- source_sentence: 'query: Coding for the sharing economy
|
| 117 |
+
|
| 118 |
+
In its answer to Written Question [REF], the Commission was unable to answer the
|
| 119 |
+
question regarding the amount of money spent in the sharing economy by officials
|
| 120 |
+
on mission because sufficient coding was not available. Beyond the ability to
|
| 121 |
+
answer this question, does the Commission believe that it may be useful to code
|
| 122 |
+
for such expenses?'
|
| 123 |
+
sentences:
|
| 124 |
+
- 'passage: The Commission will kindly refer the Honourable Member to written answer
|
| 125 |
+
[REF][1].
|
| 126 |
+
|
| 127 |
+
[1] http://www.europarl.europa.eu/plenary/en/parliamentary-questions.html'
|
| 128 |
+
- 'passage: The Commission regrets to inform the Honourable Member that it does
|
| 129 |
+
not have sufficient information to be able to answer the question of the amount
|
| 130 |
+
of money spent in the sharing economy by officials on mission. The IT systems
|
| 131 |
+
used to manage and reimburse expenses incurred whilst on official business focuses
|
| 132 |
+
on amount, type and proof of the expenses and does not provide for encoding of
|
| 133 |
+
precise references to the companies concerned. However, Commission Staff are allowed
|
| 134 |
+
to use sharing economy services, if they can provide an invoice, which is the
|
| 135 |
+
case for an increasing number of those companies.'
|
| 136 |
+
- 'passage: The Commission and its staff are bound to comply with the rules laid
|
| 137 |
+
down by the Financial Regulation, the Staff Regulations and its implementing rules,
|
| 138 |
+
such as the Guide to missions. Therefore, the Commission''s staff arrange their
|
| 139 |
+
trips according to the rule of cost-effectiveness. In this context, whenever the
|
| 140 |
+
requirements of the Guide to missions are met, the use of sharing economy services
|
| 141 |
+
is permitted.
|
| 142 |
+
|
| 143 |
+
The possibility to enable coding for such expenses in the IT tool could be envisaged
|
| 144 |
+
in the context of broader legal and budgetary feasibility analysis.'
|
| 145 |
+
pipeline_tag: sentence-similarity
|
| 146 |
+
library_name: sentence-transformers
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
# SentenceTransformer based on intfloat/multilingual-e5-base
|
| 150 |
+
|
| 151 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base). It maps inputs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.
|
| 152 |
+
|
| 153 |
+
## Model Details
|
| 154 |
+
|
| 155 |
+
### Model Description
|
| 156 |
+
- **Model Type:** Sentence Transformer
|
| 157 |
+
- **Base model:** [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) <!-- at revision d128750597153bb5987e10b1c3493a34e5a4502a -->
|
| 158 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 159 |
+
- **Output Dimensionality:** 768 dimensions
|
| 160 |
+
- **Similarity Function:** Cosine Similarity
|
| 161 |
+
- **Supported Modality:** Text
|
| 162 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 163 |
+
<!-- - **Language:** Unknown -->
|
| 164 |
+
<!-- - **License:** Unknown -->
|
| 165 |
+
|
| 166 |
+
### Model Sources
|
| 167 |
+
|
| 168 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 169 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 170 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 171 |
+
|
| 172 |
+
### Full Model Architecture
|
| 173 |
+
|
| 174 |
+
```
|
| 175 |
+
SentenceTransformer(
|
| 176 |
+
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'XLMRobertaModel'})
|
| 177 |
+
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
|
| 178 |
+
(2): Normalize({'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
|
| 179 |
+
)
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
## Usage
|
| 183 |
+
|
| 184 |
+
### Direct Usage (Sentence Transformers)
|
| 185 |
+
|
| 186 |
+
First install the Sentence Transformers library:
|
| 187 |
+
|
| 188 |
+
```bash
|
| 189 |
+
pip install -U sentence-transformers
|
| 190 |
+
```
|
| 191 |
+
Then you can load this model and run inference.
|
| 192 |
+
```python
|
| 193 |
+
from sentence_transformers import SentenceTransformer
|
| 194 |
+
|
| 195 |
+
# Download from the 🤗 Hub
|
| 196 |
+
model = SentenceTransformer("sentence_transformers_model_id")
|
| 197 |
+
# Run inference
|
| 198 |
+
sentences = [
|
| 199 |
+
'query: Coding for the sharing economy\nIn its answer to Written Question [REF], the Commission was unable to answer the question regarding the amount of money spent in the sharing economy by officials on mission because sufficient coding was not available. Beyond the ability to answer this question, does the Commission believe that it may be useful to code for such expenses?',
|
| 200 |
+
"passage: The Commission and its staff are bound to comply with the rules laid down by the Financial Regulation, the Staff Regulations and its implementing rules, such as the Guide to missions. Therefore, the Commission's staff arrange their trips according to the rule of cost-effectiveness. In this context, whenever the requirements of the Guide to missions are met, the use of sharing economy services is permitted.\nThe possibility to enable coding for such expenses in the IT tool could be envisaged in the context of broader legal and budgetary feasibility analysis.",
|
| 201 |
+
'passage: The Commission regrets to inform the Honourable Member that it does not have sufficient information to be able to answer the question of the amount of money spent in the sharing economy by officials on mission. The IT systems used to manage and reimburse expenses incurred whilst on official business focuses on amount, type and proof of the expenses and does not provide for encoding of precise references to the companies concerned. However, Commission Staff are allowed to use sharing economy services, if they can provide an invoice, which is the case for an increasing number of those companies.',
|
| 202 |
+
]
|
| 203 |
+
embeddings = model.encode(sentences)
|
| 204 |
+
print(embeddings.shape)
|
| 205 |
+
# [3, 768]
|
| 206 |
+
|
| 207 |
+
# Get the similarity scores for the embeddings
|
| 208 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 209 |
+
print(similarities)
|
| 210 |
+
# tensor([[1.0000, 0.7865, 0.6481],
|
| 211 |
+
# [0.7865, 1.0000, 0.5836],
|
| 212 |
+
# [0.6481, 0.5836, 1.0000]])
|
| 213 |
+
```
|
| 214 |
+
<!--
|
| 215 |
+
### Direct Usage (Transformers)
|
| 216 |
+
|
| 217 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 218 |
+
|
| 219 |
+
</details>
|
| 220 |
+
-->
|
| 221 |
+
|
| 222 |
+
<!--
|
| 223 |
+
### Downstream Usage (Sentence Transformers)
|
| 224 |
+
|
| 225 |
+
You can finetune this model on your own dataset.
|
| 226 |
+
|
| 227 |
+
<details><summary>Click to expand</summary>
|
| 228 |
+
|
| 229 |
+
</details>
|
| 230 |
+
-->
|
| 231 |
+
|
| 232 |
+
<!--
|
| 233 |
+
### Out-of-Scope Use
|
| 234 |
+
|
| 235 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 236 |
+
-->
|
| 237 |
+
|
| 238 |
+
<!--
|
| 239 |
+
## Bias, Risks and Limitations
|
| 240 |
+
|
| 241 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 242 |
+
-->
|
| 243 |
+
|
| 244 |
+
<!--
|
| 245 |
+
### Recommendations
|
| 246 |
+
|
| 247 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 248 |
+
-->
|
| 249 |
+
|
| 250 |
+
## Training Details
|
| 251 |
+
|
| 252 |
+
### Training Dataset
|
| 253 |
+
|
| 254 |
+
#### Unnamed Dataset
|
| 255 |
+
|
| 256 |
+
* Size: 59,612 training samples
|
| 257 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 258 |
+
* Approximate statistics based on the first 100 samples:
|
| 259 |
+
| | anchor | positive | negative |
|
| 260 |
+
|:---------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
|
| 261 |
+
| type | string | string | string |
|
| 262 |
+
| modality | text | text | text |
|
| 263 |
+
| details | <ul><li>min: 47 tokens</li><li>mean: 225.93 tokens</li><li>max: 403 tokens</li></ul> | <ul><li>min: 53 tokens</li><li>mean: 320.8 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 147 tokens</li><li>mean: 387.31 tokens</li><li>max: 512 tokens</li></ul> |
|
| 264 |
+
* Samples:
|
| 265 |
+
| anchor | positive | negative |
|
| 266 |
+
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 267 |
+
| <code>query: Co-financing of projects<br>The European rules of governance and the pressure of debt markets in which the ECB has refused to intervene have caused many Member States to make drastic adjustments to their budgets. As a result of the rules on co-financing, the repercussions of these cuts snowball when they prevent access to EU funds in projects of mutual interest.<br>Given the above, will the Commission reduce the co-financing rates for projects by Member States' public administrations, particularly for social cohesion and convergence projects, such as those financed under the European Regional Development Fund (ERDF) or the European Social Fund (ESF)?<br>Will the Commission extend deadlines so that Member States can pay their contributions, thus postponing the payments of Member States with serious budget difficulties?<br>Finally, given that the Commission is creating new initiatives - such as the European Fund for Strategic Investments (EFSI) - which are aimed exclusively at the mobilisatio...</code> | <code>passage: 1. Regulation (EU) N° 1297/2013 of the European Parliament and the Council of 11 December 2013[1] allows payments under the 2007-2013 programmes to be increased by an amount corresponding to 10 % above the co-financing rate applicable to each priority, but not exceeding 100%, where Member States benefit from one of the EU financial assistance mechanisms referred to in the regulation. This increase applies to the amount of eligible expenditure newly declared in each certified statement of expenditure submitted until the end of the programming period.<br>2. The final date of eligibility of expenditure is 31 December 2015 under the 2007-2013 period and this deadline will not be extended. Eligible expenditure means expenditure incurred and paid by the beneficiary. Council Regulation 1083/2006 of 11 July 2006[2] does not specify any final date for the reimbursement to the beneficiaries of the public contribution but states that it should be paid "as quickly as possible".<br>3. The Commis...</code> | <code>passage: ([d.m.yyyy])<br>The Integrated Mediterranean Programmes were established for seven years (1986-1992), in order to help ‘the southern regions of the Community’ - defined as the whole of Greece, parts of southern France and most of southern Italy - ‘to adjust under the best conditions possible to the new situation created by enlargement’. They were not renewed, but Greece, Portugal and Spain were able to benefit from the new Cohesion Fund from 1993 onwards.<br>Other measures have been taken to support European regions most affected by the crisis such as increasing the co-financing rates of many Structural Funds and Cohesion Funds programmes up to the maximum allowed by the regulation[1] which substantially reduced national co-financing. Under the 2014-2020 period, more support from the Structural Funds (the European Regional Development Fund and the European Social Fund) is allocated to less developed regions, including southern Italy, part of Greece and Croatia and the Cohesion Fund ...</code> |
|
| 268 |
+
| <code>query: EU-Ukraine Association Agreement<br>Does the Commission accept that, given the current situation in Ukraine, the signing of the EU-Ukraine Association Agreement, which aims to ‘deepen political association’ (Article 4(2)(a)), might actually further exacerbate political tensions within that country?</code> | <code>passage: The EU has deeply engaged in seeking a peaceful settlement of the crisis in Ukraine. We have to find ways to explain to Russia that respect can be regained if we work jointly on a vision of cooperation on the European continent without dividing lines. The Association Agreement is not meant to replace - or intrude in - Ukraine's relations with any neighbour, but we have taken note of the public support for closer association and integration with Europe. Throughout the year, the European Union and Ukraine have engaged with Russia in order to discuss the economic effects on the Russian economy of the implementation of the AA/DCFTA with a view to clarify concerns and - where appropriate - identify solutions.<br>A concrete result of these consultations is the agreement reached at the trilateral ministerial meeting on 12 September between the EU, Ukraine and Russia. Consequently, the Commission has proposed to the Council to delay until 31 December 2015 the provisional application of t...</code> | <code>passage: The EU notes evidence of continued support given to the separatists by Russia, which underlines Russia's responsibility in destabilizing the situation in eastern Ukraine.<br>Ukraine is currently engaged in a broad and complex reform process aiming to respond to its citizens's aspirations for a democratic, secure and prosperous country.<br>The European Union has put in place an unprecedented package of measures in support of Ukraine's reform steps, including political support, financial, technical and economic assistance, and strategic advice. The EU maintains close coordination with the Ukrainian authorities to ensure the commitments undertaken within the Association Agreement framework are fully implemented. The EU-Ukraine Association Agenda is in this context the main political tool for the implementation and monitoring of the Association Agreement.<br>The EU has also joined the international efforts and stepped-up its humanitarian assistance to the people affected by the conflict in...</code> |
|
| 269 |
+
| <code>query: CBRN preparedness and protection measures<br>On 17 January 2018, the World Economic Forum published on its latest annual Global Risks Report. The likelihood that weapons of mass destruction might be used has again increased compared with last year’s assessment. International reports provide more and more reasons to believe that the threat of the deliberate use of CBRN weapons is becoming more plausible. In October 2017, the Commission adopted an Action Plan to enhance preparedness against chemical, biological, radiological and nuclear security risks, containing several proposals aimed at supporting Member States in better defending EU citizens against terrorist threats. However, the level of risk awareness and, therefore, preparedness in the event of a CBRN incident differs widely between all 28 Member States.<br>1. Knowing that only a few Member States would be sufficiently protected in the event of a CBRN attack, and knowing that such attacks typically have a cross-border impact, wh...</code> | <code>passage: Protection of citizens and infrastructures remains primarily responsibility of Member States of the European Union. Nevertheless in the Action Plan to enhance preparedness against chemical, biological, radiological and nuclear security risks[1] adopted on 18 October 2017, the Commission proposed several initiatives focusing on sharing of expertise and resources among Member States aiming at better preparedness of the EU as a whole for the chemical, biological, radiological and nuclear (CBRN) terrorist threats. Among others the Commission proposed development of a common EU CBRN training curriculum, boosting of cross-border trainings and exercises and encouraging Member States to commit more capacities to the European Emergency Response Capacity (EERC) of the Union's Civil Protection Mechanism. These - and other initiatives announced in the Action Plan - should over time result in an enhanced preparedness of the EU for the CBRN terrorist threats.<br>[1] COM(2017) 610 final</code> | <code>passage: Internal security, including the protection of citizens, residents and infrastructures is the primary responsibility of the Member States of the European Union.<br>Nevertheless, in the Action Plan to enhance preparedness against chemical, biological, radiological and nuclear (CBRN) security risks[1] adopted on 18 October 2017, the Commission proposed several initiatives focusing on sharing of expertise and resources among Member States aiming at better preparedness of the EU as a whole against threats from CBRN agents. Among others, the Commission proposed the development of a common EU CBRN training curriculum or boosting of cross-border trainings. The initiatives announced in the Action Plan will over time result in an enhanced preparedness of the EU against CBRN security risks as well as a higher security level of EU citizens and residents.<br>Moreover, following the Salisbury attack and at the invitation of the European Council[2], the Commission and the High Representative prop...</code> |
|
| 270 |
+
* Loss: [<code>CachedMultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cachedmultiplenegativesrankingloss) with these parameters:
|
| 271 |
+
```json
|
| 272 |
+
{
|
| 273 |
+
"scale": 20.0,
|
| 274 |
+
"similarity_fct": "cos_sim",
|
| 275 |
+
"mini_batch_size": 8,
|
| 276 |
+
"mini_batch_num_tokens": null,
|
| 277 |
+
"gather_across_devices": false,
|
| 278 |
+
"directions": [
|
| 279 |
+
"query_to_doc"
|
| 280 |
+
],
|
| 281 |
+
"partition_mode": "joint",
|
| 282 |
+
"hardness_mode": null,
|
| 283 |
+
"hardness_strength": 0.0
|
| 284 |
+
}
|
| 285 |
+
```
|
| 286 |
+
|
| 287 |
+
### Training Hyperparameters
|
| 288 |
+
#### Non-Default Hyperparameters
|
| 289 |
+
|
| 290 |
+
- `per_device_train_batch_size`: 32
|
| 291 |
+
- `num_train_epochs`: 1
|
| 292 |
+
- `learning_rate`: 2e-05
|
| 293 |
+
- `warmup_steps`: 0.1
|
| 294 |
+
- `fp16`: True
|
| 295 |
+
- `seed`: 13
|
| 296 |
+
- `dataloader_num_workers`: 2
|
| 297 |
+
- `batch_sampler`: no_duplicates
|
| 298 |
+
|
| 299 |
+
#### All Hyperparameters
|
| 300 |
+
<details><summary>Click to expand</summary>
|
| 301 |
+
|
| 302 |
+
- `per_device_train_batch_size`: 32
|
| 303 |
+
- `num_train_epochs`: 1
|
| 304 |
+
- `max_steps`: -1
|
| 305 |
+
- `learning_rate`: 2e-05
|
| 306 |
+
- `lr_scheduler_type`: linear
|
| 307 |
+
- `lr_scheduler_kwargs`: None
|
| 308 |
+
- `warmup_steps`: 0.1
|
| 309 |
+
- `optim`: adamw_torch_fused
|
| 310 |
+
- `optim_args`: None
|
| 311 |
+
- `weight_decay`: 0.0
|
| 312 |
+
- `adam_beta1`: 0.9
|
| 313 |
+
- `adam_beta2`: 0.999
|
| 314 |
+
- `adam_epsilon`: 1e-08
|
| 315 |
+
- `optim_target_modules`: None
|
| 316 |
+
- `gradient_accumulation_steps`: 1
|
| 317 |
+
- `average_tokens_across_devices`: True
|
| 318 |
+
- `max_grad_norm`: 1.0
|
| 319 |
+
- `label_smoothing_factor`: 0.0
|
| 320 |
+
- `bf16`: False
|
| 321 |
+
- `fp16`: True
|
| 322 |
+
- `bf16_full_eval`: False
|
| 323 |
+
- `fp16_full_eval`: False
|
| 324 |
+
- `tf32`: None
|
| 325 |
+
- `gradient_checkpointing`: False
|
| 326 |
+
- `gradient_checkpointing_kwargs`: None
|
| 327 |
+
- `torch_compile`: False
|
| 328 |
+
- `torch_compile_backend`: None
|
| 329 |
+
- `torch_compile_mode`: None
|
| 330 |
+
- `use_liger_kernel`: False
|
| 331 |
+
- `liger_kernel_config`: None
|
| 332 |
+
- `use_cache`: False
|
| 333 |
+
- `neftune_noise_alpha`: None
|
| 334 |
+
- `torch_empty_cache_steps`: None
|
| 335 |
+
- `auto_find_batch_size`: False
|
| 336 |
+
- `log_on_each_node`: True
|
| 337 |
+
- `logging_nan_inf_filter`: True
|
| 338 |
+
- `include_num_input_tokens_seen`: no
|
| 339 |
+
- `log_level`: passive
|
| 340 |
+
- `log_level_replica`: warning
|
| 341 |
+
- `disable_tqdm`: False
|
| 342 |
+
- `project`: huggingface
|
| 343 |
+
- `trackio_space_id`: None
|
| 344 |
+
- `trackio_bucket_id`: None
|
| 345 |
+
- `trackio_static_space_id`: None
|
| 346 |
+
- `per_device_eval_batch_size`: 8
|
| 347 |
+
- `prediction_loss_only`: True
|
| 348 |
+
- `eval_on_start`: False
|
| 349 |
+
- `eval_do_concat_batches`: True
|
| 350 |
+
- `eval_use_gather_object`: False
|
| 351 |
+
- `eval_accumulation_steps`: None
|
| 352 |
+
- `include_for_metrics`: []
|
| 353 |
+
- `batch_eval_metrics`: False
|
| 354 |
+
- `save_only_model`: False
|
| 355 |
+
- `save_on_each_node`: False
|
| 356 |
+
- `enable_jit_checkpoint`: False
|
| 357 |
+
- `push_to_hub`: False
|
| 358 |
+
- `hub_private_repo`: None
|
| 359 |
+
- `hub_model_id`: None
|
| 360 |
+
- `hub_strategy`: every_save
|
| 361 |
+
- `hub_always_push`: False
|
| 362 |
+
- `hub_revision`: None
|
| 363 |
+
- `load_best_model_at_end`: False
|
| 364 |
+
- `ignore_data_skip`: False
|
| 365 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 366 |
+
- `full_determinism`: False
|
| 367 |
+
- `seed`: 13
|
| 368 |
+
- `data_seed`: None
|
| 369 |
+
- `use_cpu`: False
|
| 370 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 371 |
+
- `parallelism_config`: None
|
| 372 |
+
- `dataloader_drop_last`: False
|
| 373 |
+
- `dataloader_num_workers`: 2
|
| 374 |
+
- `dataloader_pin_memory`: True
|
| 375 |
+
- `dataloader_persistent_workers`: False
|
| 376 |
+
- `dataloader_prefetch_factor`: None
|
| 377 |
+
- `dataloader_multiprocessing_context`: None
|
| 378 |
+
- `dataloader_in_order`: True
|
| 379 |
+
- `remove_unused_columns`: True
|
| 380 |
+
- `label_names`: None
|
| 381 |
+
- `train_sampling_strategy`: random
|
| 382 |
+
- `length_column_name`: length
|
| 383 |
+
- `ddp_find_unused_parameters`: None
|
| 384 |
+
- `ddp_bucket_cap_mb`: None
|
| 385 |
+
- `ddp_broadcast_buffers`: False
|
| 386 |
+
- `ddp_static_graph`: None
|
| 387 |
+
- `ddp_backend`: None
|
| 388 |
+
- `ddp_timeout`: 1800
|
| 389 |
+
- `fsdp`: None
|
| 390 |
+
- `fsdp_config`: None
|
| 391 |
+
- `deepspeed`: None
|
| 392 |
+
- `debug`: []
|
| 393 |
+
- `skip_memory_metrics`: True
|
| 394 |
+
- `do_predict`: False
|
| 395 |
+
- `resume_from_checkpoint`: None
|
| 396 |
+
- `local_rank`: -1
|
| 397 |
+
- `prompts`: None
|
| 398 |
+
- `batch_sampler`: no_duplicates
|
| 399 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 400 |
+
- `router_mapping`: {}
|
| 401 |
+
- `learning_rate_mapping`: {}
|
| 402 |
+
- `warmup_ratio`: None
|
| 403 |
+
|
| 404 |
+
</details>
|
| 405 |
+
|
| 406 |
+
### Training Logs
|
| 407 |
+
| Epoch | Step | Training Loss |
|
| 408 |
+
|:------:|:----:|:-------------:|
|
| 409 |
+
| 0.0268 | 50 | 2.2578 |
|
| 410 |
+
| 0.0537 | 100 | 0.6298 |
|
| 411 |
+
| 0.0805 | 150 | 0.4273 |
|
| 412 |
+
| 0.1074 | 200 | 0.4102 |
|
| 413 |
+
| 0.1342 | 250 | 0.3654 |
|
| 414 |
+
| 0.1610 | 300 | 0.3740 |
|
| 415 |
+
| 0.1879 | 350 | 0.3531 |
|
| 416 |
+
| 0.2147 | 400 | 0.3299 |
|
| 417 |
+
| 0.2415 | 450 | 0.3342 |
|
| 418 |
+
| 0.2684 | 500 | 0.3238 |
|
| 419 |
+
| 0.2952 | 550 | 0.3122 |
|
| 420 |
+
| 0.3221 | 600 | 0.2966 |
|
| 421 |
+
| 0.3489 | 650 | 0.3243 |
|
| 422 |
+
| 0.3757 | 700 | 0.3011 |
|
| 423 |
+
| 0.4026 | 750 | 0.3047 |
|
| 424 |
+
| 0.4294 | 800 | 0.3229 |
|
| 425 |
+
| 0.4563 | 850 | 0.2850 |
|
| 426 |
+
| 0.4831 | 900 | 0.2881 |
|
| 427 |
+
| 0.5099 | 950 | 0.2753 |
|
| 428 |
+
| 0.5368 | 1000 | 0.2791 |
|
| 429 |
+
| 0.5636 | 1050 | 0.2995 |
|
| 430 |
+
| 0.5904 | 1100 | 0.2569 |
|
| 431 |
+
| 0.6173 | 1150 | 0.2742 |
|
| 432 |
+
| 0.6441 | 1200 | 0.2807 |
|
| 433 |
+
| 0.6710 | 1250 | 0.2950 |
|
| 434 |
+
| 0.6978 | 1300 | 0.2713 |
|
| 435 |
+
| 0.7246 | 1350 | 0.2697 |
|
| 436 |
+
| 0.7515 | 1400 | 0.2640 |
|
| 437 |
+
| 0.7783 | 1450 | 0.2753 |
|
| 438 |
+
| 0.8052 | 1500 | 0.2511 |
|
| 439 |
+
| 0.8320 | 1550 | 0.2549 |
|
| 440 |
+
| 0.8588 | 1600 | 0.2521 |
|
| 441 |
+
| 0.8857 | 1650 | 0.2665 |
|
| 442 |
+
| 0.9125 | 1700 | 0.2481 |
|
| 443 |
+
| 0.9393 | 1750 | 0.2616 |
|
| 444 |
+
| 0.9662 | 1800 | 0.2406 |
|
| 445 |
+
| 0.9930 | 1850 | 0.2848 |
|
| 446 |
+
|
| 447 |
+
|
| 448 |
+
### Training Time
|
| 449 |
+
- **Training**: 16.1 minutes
|
| 450 |
+
|
| 451 |
+
### Framework Versions
|
| 452 |
+
- Python: 3.14.4
|
| 453 |
+
- Sentence Transformers: 6.1.0
|
| 454 |
+
- Transformers: 5.20.2
|
| 455 |
+
- PyTorch: 2.14.1+cu130
|
| 456 |
+
- Accelerate: 1.15.0
|
| 457 |
+
- Datasets: 5.1.0
|
| 458 |
+
- Tokenizers: 0.23.3
|
| 459 |
+
|
| 460 |
+
## Additional Resources
|
| 461 |
+
|
| 462 |
+
- [Training and Finetuning Embedding Models with Sentence Transformers](https://huggingface.co/blog/train-sentence-transformers): the end-to-end guide for training or finetuning Sentence Transformer models.
|
| 463 |
+
- [Introduction to Matryoshka Embedding Models](https://huggingface.co/blog/matryoshka): variable-size embeddings that can be truncated with minimal quality loss.
|
| 464 |
+
- [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://huggingface.co/blog/embedding-quantization): post-training compression of embedding vectors.
|
| 465 |
+
- [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video models through the same API.
|
| 466 |
+
- [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): train multimodal embedding models, with a Visual Document Retrieval walkthrough.
|
| 467 |
+
|
| 468 |
+
## Citation
|
| 469 |
+
|
| 470 |
+
### BibTeX
|
| 471 |
+
|
| 472 |
+
#### Sentence Transformers
|
| 473 |
+
```bibtex
|
| 474 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 475 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 476 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 477 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 478 |
+
month = "11",
|
| 479 |
+
year = "2019",
|
| 480 |
+
publisher = "Association for Computational Linguistics",
|
| 481 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 482 |
+
}
|
| 483 |
+
```
|
| 484 |
+
|
| 485 |
+
#### CachedMultipleNegativesRankingLoss
|
| 486 |
+
```bibtex
|
| 487 |
+
@misc{gao2021scaling,
|
| 488 |
+
title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
|
| 489 |
+
author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
|
| 490 |
+
year={2021},
|
| 491 |
+
eprint={2101.06983},
|
| 492 |
+
archivePrefix={arXiv},
|
| 493 |
+
primaryClass={cs.LG}
|
| 494 |
+
}
|
| 495 |
+
```
|
| 496 |
+
|
| 497 |
+
#### MultipleNegativesRankingLoss
|
| 498 |
+
```bibtex
|
| 499 |
+
@misc{oord2019representationlearningcontrastivepredictive,
|
| 500 |
+
title={Representation Learning with Contrastive Predictive Coding},
|
| 501 |
+
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
|
| 502 |
+
year={2019},
|
| 503 |
+
eprint={1807.03748},
|
| 504 |
+
archivePrefix={arXiv},
|
| 505 |
+
primaryClass={cs.LG},
|
| 506 |
+
url={https://arxiv.org/abs/1807.03748},
|
| 507 |
+
}
|
| 508 |
+
```
|
| 509 |
+
|
| 510 |
+
<!--
|
| 511 |
+
## Glossary
|
| 512 |
+
|
| 513 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 514 |
+
-->
|
| 515 |
+
|
| 516 |
+
<!--
|
| 517 |
+
## Model Card Authors
|
| 518 |
+
|
| 519 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 520 |
+
-->
|
| 521 |
+
|
| 522 |
+
<!--
|
| 523 |
+
## Model Card Contact
|
| 524 |
+
|
| 525 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 526 |
+
-->
|
v1.0/experiments/models/me5-base-ftdm/config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"XLMRobertaModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 3072,
|
| 16 |
+
"is_decoder": false,
|
| 17 |
+
"layer_norm_eps": 1e-05,
|
| 18 |
+
"max_position_embeddings": 514,
|
| 19 |
+
"model_type": "xlm-roberta",
|
| 20 |
+
"num_attention_heads": 12,
|
| 21 |
+
"num_hidden_layers": 12,
|
| 22 |
+
"output_past": true,
|
| 23 |
+
"pad_token_id": 1,
|
| 24 |
+
"position_embedding_type": "absolute",
|
| 25 |
+
"tie_word_embeddings": true,
|
| 26 |
+
"transformers_version": "5.20.2",
|
| 27 |
+
"type_vocab_size": 1,
|
| 28 |
+
"use_cache": false,
|
| 29 |
+
"vocab_size": 250002
|
| 30 |
+
}
|
v1.0/experiments/models/me5-base-ftdm/config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"pytorch": "2.14.1+cu130",
|
| 4 |
+
"sentence_transformers": "6.1.0",
|
| 5 |
+
"transformers": "5.20.2"
|
| 6 |
+
},
|
| 7 |
+
"default_prompt_name": null,
|
| 8 |
+
"model_type": "SentenceTransformer",
|
| 9 |
+
"prompts": {
|
| 10 |
+
"document": "",
|
| 11 |
+
"query": ""
|
| 12 |
+
},
|
| 13 |
+
"similarity_fn_name": "cosine"
|
| 14 |
+
}
|
v1.0/experiments/models/me5-base-ftdm/modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.base.modules.normalize.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
v1.0/experiments/models/me5-base-ftdm/parlir_train_meta.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base": "intfloat/multilingual-e5-base",
|
| 3 |
+
"n_pairs": 59612,
|
| 4 |
+
"epochs": 1,
|
| 5 |
+
"batch_size": 32,
|
| 6 |
+
"lr": 2e-05,
|
| 7 |
+
"max_len": 512,
|
| 8 |
+
"seed": 13,
|
| 9 |
+
"hard_negatives": true,
|
| 10 |
+
"min_year": 0,
|
| 11 |
+
"max_year": 0,
|
| 12 |
+
"hardneg_window_days": 365,
|
| 13 |
+
"negative_stats": {
|
| 14 |
+
"date_matched_bm25": 58288,
|
| 15 |
+
"date_matched_random": 1324
|
| 16 |
+
},
|
| 17 |
+
"build": "data/build/v1.0"
|
| 18 |
+
}
|
v1.0/experiments/models/me5-base-ftdm/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 |
+
}
|
v1.0/experiments/models/me5-base-ftdm/tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"clean_up_tokenization_spaces": true,
|
| 6 |
+
"cls_token": "<s>",
|
| 7 |
+
"eos_token": "</s>",
|
| 8 |
+
"is_local": false,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
+
"mask_token": "<mask>",
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 15 |
+
"unk_token": "<unk>"
|
| 16 |
+
}
|