Shuu12121 commited on
Commit
99a2a0e
·
verified ·
1 Parent(s): 9b1d396

Upload ModernBERT model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,593 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:799680
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: Shuu12121/CodeModernBERT-Owl-v1
11
+ widget:
12
+ - source_sentence: 'Disconnects the pool.
13
+
14
+
15
+ Does everything that +clear+ does, except if the pool is closed
16
+
17
+ this method does nothing but +clear+ would raise PoolClosedError.
18
+
19
+
20
+ @since 2.1.0
21
+
22
+ @api private'
23
+ sentences:
24
+ - "def disconnect!(options = nil)\n do_clear(options)\n rescue Error::PoolClosedError\n\
25
+ \ # The \"disconnected\" state is between closed and paused.\n #\
26
+ \ When we are trying to disconnect the pool, permit the pool to be\n #\
27
+ \ already closed.\n end"
28
+ - "func TestNamedTupleWithEscapedColumns(t *testing.T) {\n\tTestProtocols(t, func(t\
29
+ \ *testing.T, protocol clickhouse.Protocol) {\n\t\tconn, err := GetNativeConnection(t,\
30
+ \ protocol, nil, nil, nil)\n\t\tctx := context.Background()\n\t\trequire.NoError(t,\
31
+ \ err)\n\t\t// https://github.com/ClickHouse/ClickHouse/pull/36544\n\t\tif !CheckMinServerServerVersion(conn,\
32
+ \ 22, 5, 0) {\n\t\t\tt.Skip(fmt.Errorf(\"unsupported clickhouse version\"))\n\t\
33
+ \t\treturn\n\t\t}\n\t\tconst ddl = \"CREATE TABLE test_tuple (Col1 Tuple(`56`\
34
+ \ String, `a22\\\\`` Int64)) Engine MergeTree() ORDER BY tuple()\"\n\t\tdefer\
35
+ \ func() {\n\t\t\tconn.Exec(ctx, \"DROP TABLE IF EXISTS test_tuple\")\n\t\t}()\n\
36
+ \t\trequire.NoError(t, conn.Exec(ctx, ddl))\n\t\tbatch, err := conn.PrepareBatch(ctx,\
37
+ \ \"INSERT INTO test_tuple\")\n\t\trequire.NoError(t, err)\n\t\tvar (\n\t\t\t\
38
+ col1Data = map[string]any{\"56\": \"A\", \"a22`\": int64(1)}\n\t\t)\n\t\trequire.NoError(t,\
39
+ \ batch.Append(col1Data))\n\t\trequire.Equal(t, 1, batch.Rows())\n\t\trequire.NoError(t,\
40
+ \ batch.Send())\n\t\tvar col1 map[string]any\n\t\trequire.NoError(t, conn.QueryRow(ctx,\
41
+ \ \"SELECT * FROM test_tuple\").Scan(&col1))\n\t\tassert.Equal(t, col1Data, col1)\n\
42
+ \t})\n}"
43
+ - "def parse_region(url)\n parts = URI.parse(url).host.split('.')\n \
44
+ \ parts.each_with_index do |part, index|\n if part == 'sqs'\n\
45
+ \ # assume region is the part right after the 'sqs' part\n \
46
+ \ return parts[index + 1]\n end\n end\n \
47
+ \ nil # no region found\n end"
48
+ - source_sentence: "Cancel a running workflow by sync job ID.\n\n This will\
49
+ \ search for workflows with IDs matching the pattern sync-{sync_job_id}-*\n \
50
+ \ and cancel them. The workflow will catch the CancelledError and update\
51
+ \ the\n sync job status to CANCELLED.\n\n Args:\n sync_job_id:\
52
+ \ The sync job ID to cancel\n\n Returns:\n True if a workflow\
53
+ \ was found and cancelled, False otherwise"
54
+ sentences:
55
+ - "async def cancel_sync_job_workflow(self, sync_job_id: str) -> bool:\n \
56
+ \ \"\"\"\n \"\"\"\n try:\n client = await temporal_client.get_client()\n\
57
+ \n # List workflows to find the one matching our sync job\n \
58
+ \ # Note: In production, you might want to store the workflow ID\n \
59
+ \ # when starting it for direct lookup\n workflows = []\n \
60
+ \ async for workflow in client.list_workflows(\n query=f'WorkflowId\
61
+ \ STARTS_WITH \"sync-{sync_job_id}-\"'\n ):\n workflows.append(workflow)\n\
62
+ \n if not workflows:\n logger.warning(f\"No running\
63
+ \ workflow found for sync job {sync_job_id}\")\n return False\n\
64
+ \n # Cancel the workflow(s)\n for workflow in workflows:\n\
65
+ \ handle = client.get_workflow_handle(workflow.id)\n \
66
+ \ await handle.cancel()\n logger.info(\n \
67
+ \ f\"Successfully cancelled workflow {workflow.id} for sync job {sync_job_id}\"\
68
+ \n )\n\n return True\n\n except Exception as\
69
+ \ e:\n logger.error(f\"Failed to cancel workflow for sync job {sync_job_id}:\
70
+ \ {e}\")\n raise"
71
+ - "def __init__(name, account):\n \"\"\"\n \n \"\"\""
72
+ - "renderRows = async (\n table,\n viewname,\n { columns, layout },\n extra,\n\
73
+ \ rows,\n state\n) => {\n //console.log(columns);\n //console.log(layout);\n\
74
+ \ if (!columns || !layout) return \"View not yet built\";\n\n const fields =\
75
+ \ table.getFields();\n\n const role = extra.req.user ? extra.req.user.role_id\
76
+ \ : 100;\n var views = {};\n const getView = async (name, relation) => {\n \
77
+ \ if (views[name]) return views[name];\n const view_select = parse_view_select(name,\
78
+ \ relation);\n const view = View.findOne({ name: view_select.viewname });\n\
79
+ \ if (!view) return false;\n if (view.table_id === table.id) view.table\
80
+ \ = table;\n else view.table = Table.findOne({ id: view.table_id });\n view.view_select\
81
+ \ = view_select;\n views[name] = view;\n return view;\n };\n await set_load_actions_join_fieldviews({\n\
82
+ \ table,\n layout,\n fields,\n req: extra.req,\n res: extra.res,\n\
83
+ \ });\n\n const owner_field = await table.owner_fieldname();\n const subviewExtra\
84
+ \ = { ...extra };\n if (extra.req?.generate_email) {\n // no mjml markup for\
85
+ \ for nested subviews, only for the top view\n subviewExtra.req = { ...extra.req,\
86
+ \ isSubView: true };\n }\n return await asyncMap(rows, async (row) => {\n \
87
+ \ await eachView(layout, async (segment) => {\n // do all the parsing with\
88
+ \ data here? make a factory\n const view = await getView(segment.view, segment.relation);\n\
89
+ \ if (!view)\n throw new InvalidConfiguration(\n `View ${viewname}\
90
+ \ incorrectly configured: cannot find view ${segment.view}`\n );\n \
91
+ \ view.check_viewtemplate();\n if (view.viewtemplateObj.renderRows && view.view_select.type\
92
+ \ === \"Own\") {\n segment.contents = (\n await view.viewtemplateObj.renderRows(\n\
93
+ \ view.table,\n view.name,\n view.configuration,\n\
94
+ \ subviewExtra,\n [row],\n state\n )\n\
95
+ \ )[0];\n } else {\n let state1 = {};\n const pk_name\
96
+ \ = table.pk_name;\n const get_row_val = (k) => {\n //handle expanded\
97
+ \ joinfields\n if (row[k] === null) return null;\n if (row[k]?.id\
98
+ \ === null) return null;\n return row[k]?.id || row[k];\n };\n\
99
+ \ const get_user_id = () => (extra.req.user ? extra.req.user.id : 0);\n\
100
+ \ if (view.view_select.type === \"RelationPath\" && view.table_id) {\n\
101
+ \ const targetTbl = Table.findOne({ id: view.table_id });\n \
102
+ \ const relation = new Relation(\n segment.relation,\n targetTbl.name,\n\
103
+ \ displayType(await view.get_state_fields())\n );\n \
104
+ \ state1 = pathToState(\n relation,\n relation.isFixedRelation()\
105
+ \ ? get_user_id : get_row_val\n );\n } else {\n switch\
106
+ \ (view.view_select.type) {\n case \"Own\":\n state1 =\
107
+ \ { [pk_name]: get_row_val(pk_name) };\n break;\n case\
108
+ \ \"Independent\":\n state1 = {};\n break;\n \
109
+ \ case \"ChildList\":\n case \"OneToOneShow\":\n state1\
110
+ \ = {\n [view.view_select.through\n ? `${view.view_select.throughTable}.${view.view_select.through}.${view.view_select.table_name}.${view.view_select.field_name}`\n\
111
+ \ : view.view_select.field_name]: get_row_val(pk_name),\n \
112
+ \ };\n break;\n case \"ParentShow\":\n \
113
+ \ //todo set by pk name of parent tablr\n state1 = {\n \
114
+ \ id: get_row_val(view.view_select.field_name),\n };\n\
115
+ \ break;\n }\n }\n const extra_state = segment.extra_state_fml\n\
116
+ \ ? eval_expression(\n segment.extra_state_fml,\n \
117
+ \ {\n ...dollarizeObject(state),\n session_id:\
118
+ \ getSessionId(extra.req),\n ...row,\n },\n \
119
+ \ extra.req.user,\n `Extra state formula for view ${view.name}`\n\
120
+ \ )\n : {};\n const { id, ...outerState } = state;\n\
121
+ \ //console.log(segment);\n if (segment.state === \"local\") {\n\
122
+ \ const state2 = { ...state1, ...extra_state };\n const qs =\
123
+ \ stateToQueryString(state2, true);\n if (\n view.name ===\
124
+ \ viewname &&\n JSON.stringify(state) === JSON.stringify(state2)\n\
125
+ \ )\n throw new InvalidConfiguration(\n `View\
126
+ \ ${view.name} embeds itself with same state; inifinite loop detected`\n \
127
+ \ );\n segment.contents = div(\n {\n class:\
128
+ \ \"d-inline\",\n \"data-sc-embed-viewname\": view.name,\n \
129
+ \ \"data-sc-local-state\": `/view/${view.name}${qs}`,\n },\n\
130
+ \ await view.run(state2, subviewExtra, view.isRemoteTable())\n \
131
+ \ );\n } else {\n const state2 = { ...outerState, ...state1,\
132
+ \ ...extra_state };\n const qs = stateToQueryString(state2, true);\n\n\
133
+ \ if (\n view.name === viewname &&\n JSON.stringify(state)\
134
+ \ === JSON.stringify(state2)\n )\n throw new InvalidConfiguration(\n\
135
+ \ `View ${view.name} embeds itself with same state; inifinite loop\
136
+ \ detected`\n );\n segment.contents = div(\n {\n\
137
+ \ class: \"d-inline\",\n \"data-sc-embed-viewname\"\
138
+ : view.name,\n \"data-sc-view-source\": `/view/${view.name}${qs}`,\n\
139
+ \ },\n await view.run(state2, subviewExtra, view.isRemoteTable())\n\
140
+ \ );\n }\n }\n });\n const user_id = extra.req.user\
141
+ \ ? extra.req.user.id : null;\n\n const is_owner =\n table.ownership_formula\
142
+ \ && user_id && role > table.min_role_read\n ? await table.is_owner(extra.req.user,\
143
+ \ row)\n : owner_field && user_id && row[owner_field] === user_id;\n\n\
144
+ \ return render(\n row,\n fields,\n layout,\n viewname,\n\
145
+ \ table,\n role,\n extra.req,\n is_owner,\n state,\n\
146
+ \ extra\n );\n });\n}"
147
+ - source_sentence: AddFlags adds flags related to NodeLifecycleController for controller
148
+ manager to the specified FlagSet.
149
+ sentences:
150
+ - "func (o *NodeLifecycleControllerOptions) AddFlags(fs *pflag.FlagSet) {\n\tif\
151
+ \ o == nil {\n\t\treturn\n\t}\n\n\tfs.DurationVar(&o.NodeStartupGracePeriod.Duration,\
152
+ \ \"node-startup-grace-period\", o.NodeStartupGracePeriod.Duration,\n\t\t\"Amount\
153
+ \ of time which we allow starting Node to be unresponsive before marking it unhealthy.\"\
154
+ )\n\tfs.DurationVar(&o.NodeMonitorGracePeriod.Duration, \"node-monitor-grace-period\"\
155
+ , o.NodeMonitorGracePeriod.Duration,\n\t\t\"Amount of time which we allow running\
156
+ \ Node to be unresponsive before marking it unhealthy. \"+\n\t\t\t\"Must be N\
157
+ \ times more than kubelet's nodeStatusUpdateFrequency, \"+\n\t\t\t\"where N means\
158
+ \ number of retries allowed for kubelet to post node status. \"+\n\t\t\t\"This\
159
+ \ value should also be greater than the sum of HTTP2_PING_TIMEOUT_SECONDS and\
160
+ \ HTTP2_READ_IDLE_TIMEOUT_SECONDS\")\n\tfs.Float32Var(&o.NodeEvictionRate, \"\
161
+ node-eviction-rate\", 0.1, \"Number of nodes per second on which pods are deleted\
162
+ \ in case of node failure when a zone is healthy (see --unhealthy-zone-threshold\
163
+ \ for definition of healthy/unhealthy). Zone refers to entire cluster in non-multizone\
164
+ \ clusters.\")\n\tfs.Float32Var(&o.SecondaryNodeEvictionRate, \"secondary-node-eviction-rate\"\
165
+ , 0.01, \"Number of nodes per second on which pods are deleted in case of node\
166
+ \ failure when a zone is unhealthy (see --unhealthy-zone-threshold for definition\
167
+ \ of healthy/unhealthy). Zone refers to entire cluster in non-multizone clusters.\
168
+ \ This value is implicitly overridden to 0 if the cluster size is smaller than\
169
+ \ --large-cluster-size-threshold.\")\n\tfs.Int32Var(&o.LargeClusterSizeThreshold,\
170
+ \ \"large-cluster-size-threshold\", 50, fmt.Sprintf(\"Number of nodes from which\
171
+ \ %s treats the cluster as large for the eviction logic purposes. --secondary-node-eviction-rate\
172
+ \ is implicitly overridden to 0 for clusters this size or smaller. Notice: If\
173
+ \ nodes reside in multiple zones, this threshold will be considered as zone node\
174
+ \ size threshold for each zone to determine node eviction rate independently.\"\
175
+ , names.NodeLifecycleController))\n\tfs.Float32Var(&o.UnhealthyZoneThreshold,\
176
+ \ \"unhealthy-zone-threshold\", 0.55, \"Fraction of Nodes in a zone which needs\
177
+ \ to be not Ready (minimum 3) for zone to be treated as unhealthy. \")\n}"
178
+ - "func (v Value) IsNull() bool {\n\treturn v.Val == nil || v.Typ == querypb.Type_NULL_TYPE\n\
179
+ }"
180
+ - "public function response(array $errors)\n {\n if ($this->ajax() ||\
181
+ \ $this->wantsJson()) {\n return new JsonResponse($errors, 422);\n\
182
+ \ }\n\n return $this->redirector->to($this->getRedirectUrl())\n\
183
+ \ ->withInput($this->except($this->dontFlash))\n\
184
+ \ ->withErrors($errors, $this->errorBag);\n\
185
+ \ }"
186
+ - source_sentence: 'Count of all the processing errors in this task and its subtasks.
187
+
188
+
189
+ Generated from protobuf field <code>int32 total_processing_error_count = 21;</code>
190
+
191
+ @return int'
192
+ sentences:
193
+ - "fn add_helper(&self, msg: SignedMessage) -> Result<(), Error> {\n let\
194
+ \ from = msg.from();\n let cur_ts = self.cur_tipset.lock().clone();\n \
195
+ \ add_helper(\n self.api.as_ref(),\n self.bls_sig_cache.as_ref(),\n\
196
+ \ self.pending.as_ref(),\n msg,\n self.get_state_sequence(&from,\
197
+ \ &cur_ts)?,\n )\n }"
198
+ - "public function getTotalProcessingErrorCount()\n {\n return $this->total_processing_error_count;\n\
199
+ \ }"
200
+ - "def datetime_utc_to_local(dt):\n\t\"\"\"\n\t\n\t\"\"\"\n\tdt = dt.replace(tzinfo=dateutil.tz.tzutc())\n\
201
+ \tdt = dt.astimezone(dateutil.tz.tzlocal())\n\treturn dt.replace(tzinfo=None)"
202
+ - source_sentence: "Computes the absolute value of each element retrieved from a strided\
203
+ \ input array `x` via a callback function and assigns each result to an element\
204
+ \ in a strided output array `y`.\n\n@param {NonNegativeInteger} N - number of\
205
+ \ indexed elements\n@param {Collection} x - input array/collection\n@param {integer}\
206
+ \ strideX - `x` stride length\n@param {NonNegativeInteger} offsetX - starting\
207
+ \ `x` index\n@param {Collection} y - destination array/collection\n@param {integer}\
208
+ \ strideY - `y` stride length\n@param {NonNegativeInteger} offsetY - starting\
209
+ \ `y` index\n@param {Callback} clbk - callback\n@param {*} [thisArg] - callback\
210
+ \ execution context\n@returns {Collection} `y`\n\n@example\nfunction accessor(\
211
+ \ v ) {\n return v * 2.0;\n}\n\nvar x = [ 1.0, -2.0, 3.0, -4.0, 5.0 ];\nvar\
212
+ \ y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];\n\nabsBy( x.length, x, 1, 0, y, 1, 0, accessor\
213
+ \ );\n\nconsole.log( y );\n// => [ 2.0, 4.0, 6.0, 8.0, 10.0 ]"
214
+ sentences:
215
+ - "public ArrayList<Skyline> findSkyline(int start, int end) {\n // Base\
216
+ \ case: only one building, return its skyline.\n if (start == end) {\n\
217
+ \ ArrayList<Skyline> list = new ArrayList<>();\n list.add(new\
218
+ \ Skyline(building[start].left, building[start].height));\n list.add(new\
219
+ \ Skyline(building[end].right, 0)); // Add the end of the building\n \
220
+ \ return list;\n }\n\n int mid = (start + end) / 2;\n\n \
221
+ \ ArrayList<Skyline> sky1 = this.findSkyline(start, mid); // Find the skyline\
222
+ \ of the left half\n ArrayList<Skyline> sky2 = this.findSkyline(mid + 1,\
223
+ \ end); // Find the skyline of the right half\n return this.mergeSkyline(sky1,\
224
+ \ sky2); // Merge the two skylines\n }"
225
+ - "def get_supported_systems_info\n request(\n :expects =>\
226
+ \ 200,\n :idempotent => true,\n :method => 'GET',\n\
227
+ \ :parser => Fog::ToHashDocument.new,\n :path \
228
+ \ => 'supportedSystemsInfo'\n )\n end"
229
+ - "function absBy( N, x, strideX, offsetX, y, strideY, offsetY, clbk, thisArg )\
230
+ \ {\n\treturn mapBy( N, x, strideX, offsetX, y, strideY, offsetY, abs, clbk, thisArg\
231
+ \ ); // eslint-disable-line max-len\n}"
232
+ pipeline_tag: sentence-similarity
233
+ library_name: sentence-transformers
234
+ ---
235
+
236
+ # SentenceTransformer based on Shuu12121/CodeModernBERT-Owl-v1
237
+
238
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Shuu12121/CodeModernBERT-Owl-v1](https://huggingface.co/Shuu12121/CodeModernBERT-Owl-v1). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
239
+
240
+ ## Model Details
241
+
242
+ ### Model Description
243
+ - **Model Type:** Sentence Transformer
244
+ - **Base model:** [Shuu12121/CodeModernBERT-Owl-v1](https://huggingface.co/Shuu12121/CodeModernBERT-Owl-v1) <!-- at revision 33220abe62ef7d02fc36c62487e77751459d8c1a -->
245
+ - **Maximum Sequence Length:** 1024 tokens
246
+ - **Output Dimensionality:** 768 dimensions
247
+ - **Similarity Function:** Cosine Similarity
248
+ <!-- - **Training Dataset:** Unknown -->
249
+ <!-- - **Language:** Unknown -->
250
+ <!-- - **License:** Unknown -->
251
+
252
+ ### Model Sources
253
+
254
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
255
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
256
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
257
+
258
+ ### Full Model Architecture
259
+
260
+ ```
261
+ SentenceTransformer(
262
+ (0): Transformer({'max_seq_length': 1024, 'do_lower_case': False, 'architecture': 'ModernBertModel'})
263
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
264
+ )
265
+ ```
266
+
267
+ ## Usage
268
+
269
+ ### Direct Usage (Sentence Transformers)
270
+
271
+ First install the Sentence Transformers library:
272
+
273
+ ```bash
274
+ pip install -U sentence-transformers
275
+ ```
276
+
277
+ Then you can load this model and run inference.
278
+ ```python
279
+ from sentence_transformers import SentenceTransformer
280
+
281
+ # Download from the 🤗 Hub
282
+ model = SentenceTransformer("sentence_transformers_model_id")
283
+ # Run inference
284
+ sentences = [
285
+ 'Computes the absolute value of each element retrieved from a strided input array `x` via a callback function and assigns each result to an element in a strided output array `y`.\n\n@param {NonNegativeInteger} N - number of indexed elements\n@param {Collection} x - input array/collection\n@param {integer} strideX - `x` stride length\n@param {NonNegativeInteger} offsetX - starting `x` index\n@param {Collection} y - destination array/collection\n@param {integer} strideY - `y` stride length\n@param {NonNegativeInteger} offsetY - starting `y` index\n@param {Callback} clbk - callback\n@param {*} [thisArg] - callback execution context\n@returns {Collection} `y`\n\n@example\nfunction accessor( v ) {\n return v * 2.0;\n}\n\nvar x = [ 1.0, -2.0, 3.0, -4.0, 5.0 ];\nvar y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];\n\nabsBy( x.length, x, 1, 0, y, 1, 0, accessor );\n\nconsole.log( y );\n// => [ 2.0, 4.0, 6.0, 8.0, 10.0 ]',
286
+ 'function absBy( N, x, strideX, offsetX, y, strideY, offsetY, clbk, thisArg ) {\n\treturn mapBy( N, x, strideX, offsetX, y, strideY, offsetY, abs, clbk, thisArg ); // eslint-disable-line max-len\n}',
287
+ 'public ArrayList<Skyline> findSkyline(int start, int end) {\n // Base case: only one building, return its skyline.\n if (start == end) {\n ArrayList<Skyline> list = new ArrayList<>();\n list.add(new Skyline(building[start].left, building[start].height));\n list.add(new Skyline(building[end].right, 0)); // Add the end of the building\n return list;\n }\n\n int mid = (start + end) / 2;\n\n ArrayList<Skyline> sky1 = this.findSkyline(start, mid); // Find the skyline of the left half\n ArrayList<Skyline> sky2 = this.findSkyline(mid + 1, end); // Find the skyline of the right half\n return this.mergeSkyline(sky1, sky2); // Merge the two skylines\n }',
288
+ ]
289
+ embeddings = model.encode(sentences)
290
+ print(embeddings.shape)
291
+ # [3, 768]
292
+
293
+ # Get the similarity scores for the embeddings
294
+ similarities = model.similarity(embeddings, embeddings)
295
+ print(similarities)
296
+ # tensor([[1.0000, 0.8429, 0.0136],
297
+ # [0.8429, 1.0000, 0.1084],
298
+ # [0.0136, 0.1084, 1.0000]])
299
+ ```
300
+
301
+ <!--
302
+ ### Direct Usage (Transformers)
303
+
304
+ <details><summary>Click to see the direct usage in Transformers</summary>
305
+
306
+ </details>
307
+ -->
308
+
309
+ <!--
310
+ ### Downstream Usage (Sentence Transformers)
311
+
312
+ You can finetune this model on your own dataset.
313
+
314
+ <details><summary>Click to expand</summary>
315
+
316
+ </details>
317
+ -->
318
+
319
+ <!--
320
+ ### Out-of-Scope Use
321
+
322
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
323
+ -->
324
+
325
+ <!--
326
+ ## Bias, Risks and Limitations
327
+
328
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
329
+ -->
330
+
331
+ <!--
332
+ ### Recommendations
333
+
334
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
335
+ -->
336
+
337
+ ## Training Details
338
+
339
+ ### Training Dataset
340
+
341
+ #### Unnamed Dataset
342
+
343
+ * Size: 799,680 training samples
344
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
345
+ * Approximate statistics based on the first 1000 samples:
346
+ | | sentence_0 | sentence_1 | label |
347
+ |:--------|:------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------|
348
+ | type | string | string | float |
349
+ | details | <ul><li>min: 8 tokens</li><li>mean: 72.08 tokens</li><li>max: 1024 tokens</li></ul> | <ul><li>min: 13 tokens</li><li>mean: 165.78 tokens</li><li>max: 1024 tokens</li></ul> | <ul><li>min: 1.0</li><li>mean: 1.0</li><li>max: 1.0</li></ul> |
350
+ * Samples:
351
+ | sentence_0 | sentence_1 | label |
352
+ |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
353
+ | <code>Set the column title<br><br>@param column - column number (first column is: 0)<br>@param title - new column title</code> | <code>setHeader = function(column, newValue) {<br> const obj = this;<br><br> if (obj.headers[column]) {<br> const oldValue = obj.headers[column].textContent;<br> const onchangeheaderOldValue = (obj.options.columns && obj.options.columns[column] && obj.options.columns[column].title) || '';<br><br> if (! newValue) {<br> newValue = getColumnName(column);<br> }<br><br> obj.headers[column].textContent = newValue;<br> // Keep the title property<br> obj.headers[column].setAttribute('title', newValue);<br> // Update title<br> if (!obj.options.columns) {<br> obj.options.columns = [];<br> }<br> if (!obj.options.columns[column]) {<br> obj.options.columns[column] = {};<br> }<br> obj.options.columns[column].title = newValue;<br><br> setHistory.call(obj, {<br> action: 'setHeader',<br> column: column,<br> oldValue: oldValue,<br> newValue: newValue<br> });<br><br> // On onchange header<br> dispatch.c...</code> | <code>1.0</code> |
354
+ | <code>Elsewhere this is known as a "Weak Value Map". Whereas a std JS WeakMap<br>is weak on its keys, this map is weak on its values. It does not retain these<br>values strongly. If a given value disappears, then the entries for it<br>disappear from every weak-value-map that holds it as a value.<br><br>Just as a WeakMap only allows gc-able values as keys, a weak-value-map<br>only allows gc-able values as values.<br><br>Unlike a WeakMap, a weak-value-map unavoidably exposes the non-determinism of<br>gc to its clients. Thus, both the ability to create one, as well as each<br>created one, must be treated as dangerous capabilities that must be closely<br>held. A program with access to these can read side channels though gc that do<br>not* rely on the ability to measure duration. This is a separate, and bad,<br>timing-independent side channel.<br><br>This non-determinism also enables code to escape deterministic replay. In a<br>blockchain context, this could cause validators to differ from each other,<br>preventing consensus, and thus preventing ...</code> | <code>makeFinalizingMap = (finalizer, opts) => {<br> const { weakValues = false } = opts || {};<br> if (!weakValues || !WeakRef || !FinalizationRegistry) {<br> /** @type Map<K, V> */<br> const keyToVal = new Map();<br> return Far('fakeFinalizingMap', {<br> clearWithoutFinalizing: keyToVal.clear.bind(keyToVal),<br> get: keyToVal.get.bind(keyToVal),<br> has: keyToVal.has.bind(keyToVal),<br> set: (key, val) => {<br> keyToVal.set(key, val);<br> },<br> delete: keyToVal.delete.bind(keyToVal),<br> getSize: () => keyToVal.size,<br> });<br> }<br> /** @type Map<K, WeakRef<any>> */<br> const keyToRef = new Map();<br> const registry = new FinalizationRegistry(key => {<br> // Because this will delete the current binding of `key`, we need to<br> // be sure that it is not called because a previous binding was collected.<br> // We do this with the `unregister` in `set` below, assuming that<br> // `unregister` *immediately* suppresses the finalization of the thing<br> // it unregisters. TODO If this is...</code> | <code>1.0</code> |
355
+ | <code>Creates a function that memoizes the result of `func`. If `resolver` is<br>provided, it determines the cache key for storing the result based on the<br>arguments provided to the memoized function. By default, the first argument<br>provided to the memoized function is used as the map cache key. The `func`<br>is invoked with the `this` binding of the memoized function.<br><br>**Note:** The cache is exposed as the `cache` property on the memoized<br>function. Its creation may be customized by replacing the `_.memoize.Cache`<br>constructor with one whose instances implement the<br>[`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)<br>method interface of `delete`, `get`, `has`, and `set`.<br><br>@static<br>@memberOf _<br>@since 0.1.0<br>@category Function<br>@param {Function} func The function to have its output memoized.<br>@param {Function} [resolver] The function to resolve the cache key.<br>@returns {Function} Returns the new memoized function.<br>@example<br><br>var object = { 'a': 1, 'b': 2 };<br>var othe...</code> | <code>function memoize(func, resolver) {<br> if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {<br> throw new TypeError(FUNC_ERROR_TEXT);<br> }<br> var memoized = function() {<br> var args = arguments,<br> key = resolver ? resolver.apply(this, args) : args[0],<br> cache = memoized.cache;<br><br> if (cache.has(key)) {<br> return cache.get(key);<br> }<br> var result = func.apply(this, args);<br> memoized.cache = cache.set(key, result);<br> return result;<br> };<br> memoized.cache = new (memoize.Cache || MapCache);<br> return memoized;<br> }</code> | <code>1.0</code> |
356
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
357
+ ```json
358
+ {
359
+ "scale": 20.0,
360
+ "similarity_fct": "cos_sim"
361
+ }
362
+ ```
363
+
364
+ ### Training Hyperparameters
365
+ #### Non-Default Hyperparameters
366
+
367
+ - `per_device_train_batch_size`: 120
368
+ - `per_device_eval_batch_size`: 120
369
+ - `fp16`: True
370
+ - `multi_dataset_batch_sampler`: round_robin
371
+
372
+ #### All Hyperparameters
373
+ <details><summary>Click to expand</summary>
374
+
375
+ - `overwrite_output_dir`: False
376
+ - `do_predict`: False
377
+ - `eval_strategy`: no
378
+ - `prediction_loss_only`: True
379
+ - `per_device_train_batch_size`: 120
380
+ - `per_device_eval_batch_size`: 120
381
+ - `per_gpu_train_batch_size`: None
382
+ - `per_gpu_eval_batch_size`: None
383
+ - `gradient_accumulation_steps`: 1
384
+ - `eval_accumulation_steps`: None
385
+ - `torch_empty_cache_steps`: None
386
+ - `learning_rate`: 5e-05
387
+ - `weight_decay`: 0.0
388
+ - `adam_beta1`: 0.9
389
+ - `adam_beta2`: 0.999
390
+ - `adam_epsilon`: 1e-08
391
+ - `max_grad_norm`: 1
392
+ - `num_train_epochs`: 3
393
+ - `max_steps`: -1
394
+ - `lr_scheduler_type`: linear
395
+ - `lr_scheduler_kwargs`: {}
396
+ - `warmup_ratio`: 0.0
397
+ - `warmup_steps`: 0
398
+ - `log_level`: passive
399
+ - `log_level_replica`: warning
400
+ - `log_on_each_node`: True
401
+ - `logging_nan_inf_filter`: True
402
+ - `save_safetensors`: True
403
+ - `save_on_each_node`: False
404
+ - `save_only_model`: False
405
+ - `restore_callback_states_from_checkpoint`: False
406
+ - `no_cuda`: False
407
+ - `use_cpu`: False
408
+ - `use_mps_device`: False
409
+ - `seed`: 42
410
+ - `data_seed`: None
411
+ - `jit_mode_eval`: False
412
+ - `use_ipex`: False
413
+ - `bf16`: False
414
+ - `fp16`: True
415
+ - `fp16_opt_level`: O1
416
+ - `half_precision_backend`: auto
417
+ - `bf16_full_eval`: False
418
+ - `fp16_full_eval`: False
419
+ - `tf32`: None
420
+ - `local_rank`: 0
421
+ - `ddp_backend`: None
422
+ - `tpu_num_cores`: None
423
+ - `tpu_metrics_debug`: False
424
+ - `debug`: []
425
+ - `dataloader_drop_last`: False
426
+ - `dataloader_num_workers`: 0
427
+ - `dataloader_prefetch_factor`: None
428
+ - `past_index`: -1
429
+ - `disable_tqdm`: False
430
+ - `remove_unused_columns`: True
431
+ - `label_names`: None
432
+ - `load_best_model_at_end`: False
433
+ - `ignore_data_skip`: False
434
+ - `fsdp`: []
435
+ - `fsdp_min_num_params`: 0
436
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
437
+ - `fsdp_transformer_layer_cls_to_wrap`: None
438
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
439
+ - `deepspeed`: None
440
+ - `label_smoothing_factor`: 0.0
441
+ - `optim`: adamw_torch
442
+ - `optim_args`: None
443
+ - `adafactor`: False
444
+ - `group_by_length`: False
445
+ - `length_column_name`: length
446
+ - `ddp_find_unused_parameters`: None
447
+ - `ddp_bucket_cap_mb`: None
448
+ - `ddp_broadcast_buffers`: False
449
+ - `dataloader_pin_memory`: True
450
+ - `dataloader_persistent_workers`: False
451
+ - `skip_memory_metrics`: True
452
+ - `use_legacy_prediction_loop`: False
453
+ - `push_to_hub`: False
454
+ - `resume_from_checkpoint`: None
455
+ - `hub_model_id`: None
456
+ - `hub_strategy`: every_save
457
+ - `hub_private_repo`: None
458
+ - `hub_always_push`: False
459
+ - `hub_revision`: None
460
+ - `gradient_checkpointing`: False
461
+ - `gradient_checkpointing_kwargs`: None
462
+ - `include_inputs_for_metrics`: False
463
+ - `include_for_metrics`: []
464
+ - `eval_do_concat_batches`: True
465
+ - `fp16_backend`: auto
466
+ - `push_to_hub_model_id`: None
467
+ - `push_to_hub_organization`: None
468
+ - `mp_parameters`:
469
+ - `auto_find_batch_size`: False
470
+ - `full_determinism`: False
471
+ - `torchdynamo`: None
472
+ - `ray_scope`: last
473
+ - `ddp_timeout`: 1800
474
+ - `torch_compile`: False
475
+ - `torch_compile_backend`: None
476
+ - `torch_compile_mode`: None
477
+ - `include_tokens_per_second`: False
478
+ - `include_num_input_tokens_seen`: False
479
+ - `neftune_noise_alpha`: None
480
+ - `optim_target_modules`: None
481
+ - `batch_eval_metrics`: False
482
+ - `eval_on_start`: False
483
+ - `use_liger_kernel`: False
484
+ - `liger_kernel_config`: None
485
+ - `eval_use_gather_object`: False
486
+ - `average_tokens_across_devices`: False
487
+ - `prompts`: None
488
+ - `batch_sampler`: batch_sampler
489
+ - `multi_dataset_batch_sampler`: round_robin
490
+ - `router_mapping`: {}
491
+ - `learning_rate_mapping`: {}
492
+
493
+ </details>
494
+
495
+ ### Training Logs
496
+ | Epoch | Step | Training Loss |
497
+ |:------:|:-----:|:-------------:|
498
+ | 0.0750 | 500 | 0.2167 |
499
+ | 0.1501 | 1000 | 0.1158 |
500
+ | 0.2251 | 1500 | 0.1081 |
501
+ | 0.3001 | 2000 | 0.1079 |
502
+ | 0.3752 | 2500 | 0.0994 |
503
+ | 0.4502 | 3000 | 0.0941 |
504
+ | 0.5252 | 3500 | 0.0873 |
505
+ | 0.6002 | 4000 | 0.0967 |
506
+ | 0.6753 | 4500 | 0.0863 |
507
+ | 0.7503 | 5000 | 0.0829 |
508
+ | 0.8253 | 5500 | 0.0821 |
509
+ | 0.9004 | 6000 | 0.0821 |
510
+ | 0.9754 | 6500 | 0.0794 |
511
+ | 1.0504 | 7000 | 0.0418 |
512
+ | 1.1255 | 7500 | 0.0237 |
513
+ | 1.2005 | 8000 | 0.0233 |
514
+ | 1.2755 | 8500 | 0.0231 |
515
+ | 1.3505 | 9000 | 0.0248 |
516
+ | 1.4256 | 9500 | 0.0245 |
517
+ | 1.5006 | 10000 | 0.0237 |
518
+ | 1.5756 | 10500 | 0.025 |
519
+ | 1.6507 | 11000 | 0.0232 |
520
+ | 1.7257 | 11500 | 0.0231 |
521
+ | 1.8007 | 12000 | 0.0218 |
522
+ | 1.8758 | 12500 | 0.0233 |
523
+ | 1.9508 | 13000 | 0.0221 |
524
+ | 2.0258 | 13500 | 0.0177 |
525
+ | 2.1008 | 14000 | 0.0072 |
526
+ | 2.1759 | 14500 | 0.0066 |
527
+ | 2.2509 | 15000 | 0.0068 |
528
+ | 2.3259 | 15500 | 0.0069 |
529
+ | 2.4010 | 16000 | 0.0062 |
530
+ | 2.4760 | 16500 | 0.0068 |
531
+ | 2.5510 | 17000 | 0.0064 |
532
+ | 2.6261 | 17500 | 0.0061 |
533
+ | 2.7011 | 18000 | 0.0062 |
534
+ | 2.7761 | 18500 | 0.0058 |
535
+ | 2.8511 | 19000 | 0.0057 |
536
+ | 2.9262 | 19500 | 0.0058 |
537
+
538
+
539
+ ### Framework Versions
540
+ - Python: 3.10.12
541
+ - Sentence Transformers: 5.0.0
542
+ - Transformers: 4.53.1
543
+ - PyTorch: 2.7.0+cu128
544
+ - Accelerate: 1.7.0
545
+ - Datasets: 3.6.0
546
+ - Tokenizers: 0.21.2
547
+
548
+ ## Citation
549
+
550
+ ### BibTeX
551
+
552
+ #### Sentence Transformers
553
+ ```bibtex
554
+ @inproceedings{reimers-2019-sentence-bert,
555
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
556
+ author = "Reimers, Nils and Gurevych, Iryna",
557
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
558
+ month = "11",
559
+ year = "2019",
560
+ publisher = "Association for Computational Linguistics",
561
+ url = "https://arxiv.org/abs/1908.10084",
562
+ }
563
+ ```
564
+
565
+ #### MultipleNegativesRankingLoss
566
+ ```bibtex
567
+ @misc{henderson2017efficient,
568
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
569
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
570
+ year={2017},
571
+ eprint={1705.00652},
572
+ archivePrefix={arXiv},
573
+ primaryClass={cs.CL}
574
+ }
575
+ ```
576
+
577
+ <!--
578
+ ## Glossary
579
+
580
+ *Clearly define terms in order to be accessible across audiences.*
581
+ -->
582
+
583
+ <!--
584
+ ## Model Card Authors
585
+
586
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
587
+ -->
588
+
589
+ <!--
590
+ ## Model Card Contact
591
+
592
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
593
+ -->
added_tokens.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "</s>": 50001,
3
+ "<mask>": 50004,
4
+ "<pad>": 50003,
5
+ "<s>": 50000,
6
+ "<unk>": 50002
7
+ }
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 50000,
9
+ "classifier_activation": "gelu",
10
+ "classifier_bias": false,
11
+ "classifier_dropout": 0.0,
12
+ "classifier_pooling": "cls",
13
+ "cls_token_id": 50281,
14
+ "decoder_bias": true,
15
+ "deterministic_flash_attn": false,
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 50001,
18
+ "global_attn_every_n_layers": 3,
19
+ "global_rope_theta": 160000.0,
20
+ "hidden_activation": "gelu",
21
+ "hidden_dropout_prob": 0.1,
22
+ "hidden_size": 768,
23
+ "initializer_cutoff_factor": 2.0,
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 1152,
26
+ "local_attention": 128,
27
+ "local_attention_rope_theta": 10000,
28
+ "local_attention_window": 128,
29
+ "local_rope_theta": 10000.0,
30
+ "max_position_embeddings": 8192,
31
+ "mlp_bias": false,
32
+ "mlp_dropout": 0.0,
33
+ "model_type": "modernbert",
34
+ "norm_bias": false,
35
+ "norm_eps": 1e-05,
36
+ "num_attention_heads": 12,
37
+ "num_hidden_layers": 22,
38
+ "pad_token_id": 1,
39
+ "repad_logits_with_grad": false,
40
+ "rope_theta": 160000,
41
+ "sep_token_id": 50282,
42
+ "sparse_pred_ignore_index": -100,
43
+ "sparse_prediction": false,
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.53.1",
46
+ "type_vocab_size": 2,
47
+ "vocab_size": 50005
48
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.0.0",
5
+ "transformers": "4.53.1",
6
+ "pytorch": "2.7.0+cu128"
7
+ },
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f7359aa09221cf3a7ec864f0a040aa737d6dd73765eccf3e48df569d5bb99a
3
+ size 594955000
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 1024,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50000": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "50001": {
13
+ "content": "</s>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "50002": {
21
+ "content": "<unk>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "50003": {
29
+ "content": "<pad>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50004": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "<mask>",
52
+ "max_length": 256,
53
+ "model_max_length": 1000000000000000019884624838656,
54
+ "pad_token": "<pad>",
55
+ "sep_token": "</s>",
56
+ "stride": 0,
57
+ "tokenizer_class": "RobertaTokenizer",
58
+ "trim_offsets": true,
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "<unk>"
62
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff