Add SetFit model
Browse files- 1_Pooling/config.json +10 -0
- README.md +325 -0
- config.json +32 -0
- config_sentence_transformers.json +10 -0
- config_setfit.json +4 -0
- model.safetensors +3 -0
- model_head.pkl +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 768,
|
3 |
+
"pooling_mode_cls_token": true,
|
4 |
+
"pooling_mode_mean_tokens": false,
|
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,325 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: BAAI/bge-base-en-v1.5
|
3 |
+
library_name: setfit
|
4 |
+
metrics:
|
5 |
+
- accuracy
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
tags:
|
8 |
+
- setfit
|
9 |
+
- sentence-transformers
|
10 |
+
- text-classification
|
11 |
+
- generated_from_setfit_trainer
|
12 |
+
widget:
|
13 |
+
- text: 'The percentage in the response status column indicates the total amount of
|
14 |
+
successful completion of response actions.
|
15 |
+
|
16 |
+
|
17 |
+
Reasoning:
|
18 |
+
|
19 |
+
1. **Context Grounding**: The answer is well-supported by the document which states,
|
20 |
+
"percentage indicates the total amount of successful completion of response actions."
|
21 |
+
|
22 |
+
2. **Relevance**: The answer directly addresses the specific question asked about
|
23 |
+
what the percentage in the response status column indicates.
|
24 |
+
|
25 |
+
3. **Conciseness**: The answer is succinct and to the point without unnecessary
|
26 |
+
information.
|
27 |
+
|
28 |
+
4. **Specificity**: The answer is specific to what is being asked, detailing exactly
|
29 |
+
what the percentage represents.
|
30 |
+
|
31 |
+
5. **Accuracy**: The answer provides the correct key/value as per the document.
|
32 |
+
|
33 |
+
|
34 |
+
Final result:'
|
35 |
+
- text: 'Reasoning:
|
36 |
+
|
37 |
+
1. **Context Grounding**: The provided document does outline steps to enable Endpoint
|
38 |
+
controls but doesn''t explicitly state their purpose.
|
39 |
+
|
40 |
+
2. **Relevance**: The answer acknowledges the lack of specific information in
|
41 |
+
the document about the purpose of Endpoint controls.
|
42 |
+
|
43 |
+
3. **Conciseness**: The answer is concise, directly addressing the lack of information.
|
44 |
+
|
45 |
+
4. **Specificity**: The answer directly states that the document doesn''t answer
|
46 |
+
the query, suggesting further sources should be checked.
|
47 |
+
|
48 |
+
5. **Detailed Key/Value/Event Name Check**: These elements do not apply to this
|
49 |
+
specific question.
|
50 |
+
|
51 |
+
|
52 |
+
Considering the criteria, the answer is accurate in indicating the document does
|
53 |
+
not provide the purpose of Endpoint controls and suggests looking for additional
|
54 |
+
sources.
|
55 |
+
|
56 |
+
|
57 |
+
Final Result:'
|
58 |
+
- text: 'Reasoning:
|
59 |
+
|
60 |
+
|
61 |
+
1. **Context Grounding**: The answer refers to using the <ORGANIZATION> XDR to
|
62 |
+
collect and forward logs, but it does not directly mention the <ORGANIZATION>
|
63 |
+
XDR On-Site Collector Agent, although it is tangentially related.
|
64 |
+
|
65 |
+
2. **Relevance**: The question specifically inquires about the purpose of the
|
66 |
+
<ORGANIZATION> XDR On-Site Collector Agent, not the general functionality of <ORGANIZATION>
|
67 |
+
XDR. The answer provided does not address the agent itself.
|
68 |
+
|
69 |
+
3. **Conciseness**: The answer provided is concise but unfortunately lacks relevance
|
70 |
+
to the specific question being asked.
|
71 |
+
|
72 |
+
4. **Specificity**: The answer is too general and doesn''t provide the specific
|
73 |
+
purpose of the On-Site Collector Agent.
|
74 |
+
|
75 |
+
5. **Key/Value/Event Name**: The answer does not include any specific key, value,
|
76 |
+
or event name that would relate to discussing an On-Site Collector Agent.
|
77 |
+
|
78 |
+
|
79 |
+
Final result: ****'
|
80 |
+
- text: "Reasoning:\n\n1. **Context Grounding**: The provided answer mentions the\
|
81 |
+
\ purpose of the <ORGANIZATION_2> email notifications checkbox in relation to\
|
82 |
+
\ enabling or disabling email notifications for users. However, the document explicitly\
|
83 |
+
\ states that notifications about stale and archived sensors are managed separately\
|
84 |
+
\ from other email preferences. The checkbox in the Users section determines whether\
|
85 |
+
\ users receive these specific notifications, which indicates a more precise purpose.\n\
|
86 |
+
\ \n2. **Relevance**: The response does relate to the question but lacks specificity\
|
87 |
+
\ about the type of notifications (stale/archived sensors) governed by the checkbox.\
|
88 |
+
\ It also fails to mention that these notifications are managed independently\
|
89 |
+
\ of other email preferences.\n \n3. **Conciseness**: The answer is concise but\
|
90 |
+
\ could be clearer about the specific type of notifications and their management.\n\
|
91 |
+
\ \n4. **Specificity**: The answer is somewhat general and does not fully capture\
|
92 |
+
\ the detailed function of the checkbox as described in the document.\n \n5.\
|
93 |
+
\ **Correct Key/Value/Event Name**: The answer correctly identifies the purpose\
|
94 |
+
\ of the checkbox but does not reflect the detailed context provided in the document\
|
95 |
+
\ regarding specific notifications (stale/archived sensors).\n\nFinal Result:"
|
96 |
+
- text: "The provided answer \"..\\/..\\/_images\\/hunting_http://www.flores.net/\"\
|
97 |
+
\ does not match the correct URL as per the document content for the second query.\n\
|
98 |
+
\n**Reasoning:**\n1. **Context Grounding:**\n - The URL provided \"..\\/..\\\
|
99 |
+
/_images\\/hunting_http://www.flores.net/\" is not found in the provided document.\n\
|
100 |
+
\ - Instead, the correct URL as per the document for Query 2 is \"..\\/..\\\
|
101 |
+
/_images\\/hunting_http://miller.co\".\n\n2. **Relevance:**\n - The answer provided\
|
102 |
+
\ does not correspond to the specific question asked, which was about the URL\
|
103 |
+
\ for the second query. It deviates from the document and is incorrect.\n\n3.\
|
104 |
+
\ **Conciseness:**\n - The answer does not provide any extraneous information,\
|
105 |
+
\ but being incorrect, it fails at providing the relevant and necessary detail\
|
106 |
+
\ concisely.\n\n4. **Specificity:**\n - The answer is specific but incorrect.\
|
107 |
+
\ It provides a URL, but not the right one as required.\n\n5. **Accuracy of key/value/event\
|
108 |
+
\ name:**\n - The correct event (image URL) for the second query is \"..\\/..\\\
|
109 |
+
/_images\\/hunting_http://miller.co\"according to the document.\n\nFinal result:\
|
110 |
+
\ ****"
|
111 |
+
inference: true
|
112 |
+
model-index:
|
113 |
+
- name: SetFit with BAAI/bge-base-en-v1.5
|
114 |
+
results:
|
115 |
+
- task:
|
116 |
+
type: text-classification
|
117 |
+
name: Text Classification
|
118 |
+
dataset:
|
119 |
+
name: Unknown
|
120 |
+
type: unknown
|
121 |
+
split: test
|
122 |
+
metrics:
|
123 |
+
- type: accuracy
|
124 |
+
value: 0.7183098591549296
|
125 |
+
name: Accuracy
|
126 |
+
---
|
127 |
+
|
128 |
+
# SetFit with BAAI/bge-base-en-v1.5
|
129 |
+
|
130 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
|
131 |
+
|
132 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
133 |
+
|
134 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
135 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
136 |
+
|
137 |
+
## Model Details
|
138 |
+
|
139 |
+
### Model Description
|
140 |
+
- **Model Type:** SetFit
|
141 |
+
- **Sentence Transformer body:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)
|
142 |
+
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
143 |
+
- **Maximum Sequence Length:** 512 tokens
|
144 |
+
- **Number of Classes:** 2 classes
|
145 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
146 |
+
<!-- - **Language:** Unknown -->
|
147 |
+
<!-- - **License:** Unknown -->
|
148 |
+
|
149 |
+
### Model Sources
|
150 |
+
|
151 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
152 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
153 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
154 |
+
|
155 |
+
### Model Labels
|
156 |
+
| Label | Examples |
|
157 |
+
|:------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
158 |
+
| 1 | <ul><li>'Reasoning:\n1. **Context Grounding**: The answer is well-supported by the provided document. The document indicates that a dime is "one-tenth of a dollar" and has a monetary value of "10¢."\n2. **Relevance**: The answer directly addresses the specific question of the monetary value of a dime.\n3. **Conciseness**: The answer is clear, to the point, and does not include unnecessary information.\n\nFinal Result:'</li><li>'Reasoning:\n1. Context Grounding: The document lists "Set the <ORGANIZATION> investigation status" as a topic, indicating that it is possible to set the investigation status.\n2. Relevance: The answer "Yes" directly addresses the question of whether one can set the <ORGANIZATION> investigation status.\n3. Conciseness: The answer is brief and to the point.\n4. Specificity: The document explicitly mentions setting the <ORGANIZATION> investigation status, so the answer is specific to the asked question.\n5. Key/Value/Event Name: The relevant key/event is "Set the <ORGANIZATION> investigation status" which is correctlyidentified as being possible.\n\nFinal result:'</li><li>'**Reasoning:**\n\n1. **Context Grounding:** The answer is well-supported by the document, aligning perfectly with the specific benefits mentioned by the author in the document. It includes benefits like unapologetic "me" time, health, self-growth, patience, taking time to be still, accepting changing moods, responsibility for happiness, appreciation for the body, yoga\'s presence off the mat, and the importance of being open. These points are directly extracted from the provided content.\n \n2. **Relevance:** The answer focuses squarely on addressing the specific question asked — what benefits the author has experienced from their regular yoga practice. It avoids unrelated topics and stays on point.\n\n3. **Conciseness:** The answer is clear, concise, and directly lists the benefits without unnecessary elaboration. Each mentioned benefit corresponds to a specific point from the document, making it easyto verify and understand.\n\n**Final Result: **'</li></ul> |
|
159 |
+
| 0 | <ul><li>'Reasoning:\n1. Context Grounding: The answer is consistent with the suggestions found in the provided document. It mentions reducing salt intake, cutting processed foods and alcohol, and drinking more water, all of which are present in the document.\n2. Relevance: The answer stays focused on the main query about losing the last 10 pounds and provides actionable advice directly related to the document.\n3. Conciseness: The answer is a bit lengthy but stays mostly on point without much deviation.\n\nThe document provides a variety of methods for tackling the last 10 pounds, and the answer effectively consolidates some of these points. Although the response could be shorter and more concise, it appropriately addresses the question based on the document.\n\nFinal Result:'</li><li>'The given answer `..\\/..\\/_images\\/bal_https://elliott.biz/` does not match any of the Image URLs provided in the document. For step 5, the correct Image URL is `..\\/..\\/_images\\/bal_http://osborn-mendoza.info/`.\n\nReasoning:\n1. **Context Grounding**: The answer is not supported by the provided document. The correct Image URL should be found in the list under the relevant step.\n2. **Relevance**: The answer must directly address the specific question by identifying the correct Image URL corresponding to step 5.\n3. **Conciseness**: The answer should be concise but accurate. The provided answer adds irrelevant information.\n4. **Specifics**: The provided document includes specific Image URLs for each step that must be matched correctly to the steps provided.\n5. **Key, Value, and Event Name**: The correct identification of the image URL for step 5 is critical here.\n\nFinal result:'</li><li>'Reasoning:\n1. **Context Grounding:** The provided answer is rooted in the document, which mentions that Amy Bloom finds starting a project hard and having to clear mental space, recalibrate, and become less involved in her everyday life.\n2. **Relevance:** The response accurately focuses on the challenges Bloom faces when starting a significant writing project, without deviating into irrelevant areas.\n3. **Conciseness:** The answer effectively summarizes the relevant information from the document, staying clear and to the point while avoiding unnecessary detail.\n\nFinal Result:'</li></ul> |
|
160 |
+
|
161 |
+
## Evaluation
|
162 |
+
|
163 |
+
### Metrics
|
164 |
+
| Label | Accuracy |
|
165 |
+
|:--------|:---------|
|
166 |
+
| **all** | 0.7183 |
|
167 |
+
|
168 |
+
## Uses
|
169 |
+
|
170 |
+
### Direct Use for Inference
|
171 |
+
|
172 |
+
First install the SetFit library:
|
173 |
+
|
174 |
+
```bash
|
175 |
+
pip install setfit
|
176 |
+
```
|
177 |
+
|
178 |
+
Then you can load this model and run inference.
|
179 |
+
|
180 |
+
```python
|
181 |
+
from setfit import SetFitModel
|
182 |
+
|
183 |
+
# Download from the 🤗 Hub
|
184 |
+
model = SetFitModel.from_pretrained("Netta1994/setfit_baai_cybereason_gpt-4o_cot-instructions_remove_final_evaluation_e2_larger_trai")
|
185 |
+
# Run inference
|
186 |
+
preds = model("The percentage in the response status column indicates the total amount of successful completion of response actions.
|
187 |
+
|
188 |
+
Reasoning:
|
189 |
+
1. **Context Grounding**: The answer is well-supported by the document which states, \"percentage indicates the total amount of successful completion of response actions.\"
|
190 |
+
2. **Relevance**: The answer directly addresses the specific question asked about what the percentage in the response status column indicates.
|
191 |
+
3. **Conciseness**: The answer is succinct and to the point without unnecessary information.
|
192 |
+
4. **Specificity**: The answer is specific to what is being asked, detailing exactly what the percentage represents.
|
193 |
+
5. **Accuracy**: The answer provides the correct key/value as per the document.
|
194 |
+
|
195 |
+
Final result:")
|
196 |
+
```
|
197 |
+
|
198 |
+
<!--
|
199 |
+
### Downstream Use
|
200 |
+
|
201 |
+
*List how someone could finetune this model on their own dataset.*
|
202 |
+
-->
|
203 |
+
|
204 |
+
<!--
|
205 |
+
### Out-of-Scope Use
|
206 |
+
|
207 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
208 |
+
-->
|
209 |
+
|
210 |
+
<!--
|
211 |
+
## Bias, Risks and Limitations
|
212 |
+
|
213 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
214 |
+
-->
|
215 |
+
|
216 |
+
<!--
|
217 |
+
### Recommendations
|
218 |
+
|
219 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
220 |
+
-->
|
221 |
+
|
222 |
+
## Training Details
|
223 |
+
|
224 |
+
### Training Set Metrics
|
225 |
+
| Training set | Min | Median | Max |
|
226 |
+
|:-------------|:----|:--------|:----|
|
227 |
+
| Word count | 33 | 94.4664 | 198 |
|
228 |
+
|
229 |
+
| Label | Training Sample Count |
|
230 |
+
|:------|:----------------------|
|
231 |
+
| 0 | 129 |
|
232 |
+
| 1 | 139 |
|
233 |
+
|
234 |
+
### Training Hyperparameters
|
235 |
+
- batch_size: (16, 16)
|
236 |
+
- num_epochs: (2, 2)
|
237 |
+
- max_steps: -1
|
238 |
+
- sampling_strategy: oversampling
|
239 |
+
- num_iterations: 20
|
240 |
+
- body_learning_rate: (2e-05, 2e-05)
|
241 |
+
- head_learning_rate: 2e-05
|
242 |
+
- loss: CosineSimilarityLoss
|
243 |
+
- distance_metric: cosine_distance
|
244 |
+
- margin: 0.25
|
245 |
+
- end_to_end: False
|
246 |
+
- use_amp: False
|
247 |
+
- warmup_proportion: 0.1
|
248 |
+
- l2_weight: 0.01
|
249 |
+
- seed: 42
|
250 |
+
- eval_max_steps: -1
|
251 |
+
- load_best_model_at_end: False
|
252 |
+
|
253 |
+
### Training Results
|
254 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
255 |
+
|:------:|:----:|:-------------:|:---------------:|
|
256 |
+
| 0.0015 | 1 | 0.1648 | - |
|
257 |
+
| 0.0746 | 50 | 0.2605 | - |
|
258 |
+
| 0.1493 | 100 | 0.2538 | - |
|
259 |
+
| 0.2239 | 150 | 0.2244 | - |
|
260 |
+
| 0.2985 | 200 | 0.1409 | - |
|
261 |
+
| 0.3731 | 250 | 0.0715 | - |
|
262 |
+
| 0.4478 | 300 | 0.0238 | - |
|
263 |
+
| 0.5224 | 350 | 0.0059 | - |
|
264 |
+
| 0.5970 | 400 | 0.0032 | - |
|
265 |
+
| 0.6716 | 450 | 0.0025 | - |
|
266 |
+
| 0.7463 | 500 | 0.0024 | - |
|
267 |
+
| 0.8209 | 550 | 0.0019 | - |
|
268 |
+
| 0.8955 | 600 | 0.0017 | - |
|
269 |
+
| 0.9701 | 650 | 0.0016 | - |
|
270 |
+
| 1.0448 | 700 | 0.0015 | - |
|
271 |
+
| 1.1194 | 750 | 0.0015 | - |
|
272 |
+
| 1.1940 | 800 | 0.0013 | - |
|
273 |
+
| 1.2687 | 850 | 0.0013 | - |
|
274 |
+
| 1.3433 | 900 | 0.0013 | - |
|
275 |
+
| 1.4179 | 950 | 0.0012 | - |
|
276 |
+
| 1.4925 | 1000 | 0.0013 | - |
|
277 |
+
| 1.5672 | 1050 | 0.0012 | - |
|
278 |
+
| 1.6418 | 1100 | 0.0011 | - |
|
279 |
+
| 1.7164 | 1150 | 0.0011 | - |
|
280 |
+
| 1.7910 | 1200 | 0.0011 | - |
|
281 |
+
| 1.8657 | 1250 | 0.0012 | - |
|
282 |
+
| 1.9403 | 1300 | 0.0011 | - |
|
283 |
+
|
284 |
+
### Framework Versions
|
285 |
+
- Python: 3.10.14
|
286 |
+
- SetFit: 1.1.0
|
287 |
+
- Sentence Transformers: 3.1.1
|
288 |
+
- Transformers: 4.44.0
|
289 |
+
- PyTorch: 2.4.0+cu121
|
290 |
+
- Datasets: 3.0.0
|
291 |
+
- Tokenizers: 0.19.1
|
292 |
+
|
293 |
+
## Citation
|
294 |
+
|
295 |
+
### BibTeX
|
296 |
+
```bibtex
|
297 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
298 |
+
doi = {10.48550/ARXIV.2209.11055},
|
299 |
+
url = {https://arxiv.org/abs/2209.11055},
|
300 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
301 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
302 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
303 |
+
publisher = {arXiv},
|
304 |
+
year = {2022},
|
305 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
306 |
+
}
|
307 |
+
```
|
308 |
+
|
309 |
+
<!--
|
310 |
+
## Glossary
|
311 |
+
|
312 |
+
*Clearly define terms in order to be accessible across audiences.*
|
313 |
+
-->
|
314 |
+
|
315 |
+
<!--
|
316 |
+
## Model Card Authors
|
317 |
+
|
318 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
319 |
+
-->
|
320 |
+
|
321 |
+
<!--
|
322 |
+
## Model Card Contact
|
323 |
+
|
324 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
325 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "BAAI/bge-base-en-v1.5",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 3072,
|
17 |
+
"label2id": {
|
18 |
+
"LABEL_0": 0
|
19 |
+
},
|
20 |
+
"layer_norm_eps": 1e-12,
|
21 |
+
"max_position_embeddings": 512,
|
22 |
+
"model_type": "bert",
|
23 |
+
"num_attention_heads": 12,
|
24 |
+
"num_hidden_layers": 12,
|
25 |
+
"pad_token_id": 0,
|
26 |
+
"position_embedding_type": "absolute",
|
27 |
+
"torch_dtype": "float32",
|
28 |
+
"transformers_version": "4.44.0",
|
29 |
+
"type_vocab_size": 2,
|
30 |
+
"use_cache": true,
|
31 |
+
"vocab_size": 30522
|
32 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.1.1",
|
4 |
+
"transformers": "4.44.0",
|
5 |
+
"pytorch": "2.4.0+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": null
|
10 |
+
}
|
config_setfit.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"normalize_embeddings": false,
|
3 |
+
"labels": null
|
4 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:24b00f52d8ff6c405d9497fb7871ae30e86d534c773cc8ac4df81c8ace9996f4
|
3 |
+
size 437951328
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca2778338e113b7e68a547881a6f055a8cf72f5fe85b63a621c8d9cbfcf2a5bb
|
3 |
+
size 7007
|
modules.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"idx": 0,
|
4 |
+
"name": "0",
|
5 |
+
"path": "",
|
6 |
+
"type": "sentence_transformers.models.Transformer"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"idx": 1,
|
10 |
+
"name": "1",
|
11 |
+
"path": "1_Pooling",
|
12 |
+
"type": "sentence_transformers.models.Pooling"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"idx": 2,
|
16 |
+
"name": "2",
|
17 |
+
"path": "2_Normalize",
|
18 |
+
"type": "sentence_transformers.models.Normalize"
|
19 |
+
}
|
20 |
+
]
|
sentence_bert_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"max_seq_length": 512,
|
3 |
+
"do_lower_case": true
|
4 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 512,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|