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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags: []
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Model Card for Model ID
|
| 7 |
+
|
| 8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Model Details
|
| 13 |
+
|
| 14 |
+
### Model Description
|
| 15 |
+
|
| 16 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
+
|
| 18 |
+
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
+
|
| 20 |
+
- **Developed by:** [More Information Needed]
|
| 21 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
+
- **Model type:** [More Information Needed]
|
| 24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
+
- **License:** [More Information Needed]
|
| 26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
+
|
| 28 |
+
### Model Sources [optional]
|
| 29 |
+
|
| 30 |
+
<!-- Provide the basic links for the model. -->
|
| 31 |
+
|
| 32 |
+
- **Repository:** [More Information Needed]
|
| 33 |
+
- **Paper [optional]:** [More Information Needed]
|
| 34 |
+
- **Demo [optional]:** [More Information Needed]
|
| 35 |
+
|
| 36 |
+
## Uses
|
| 37 |
+
|
| 38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
+
|
| 40 |
+
### Direct Use
|
| 41 |
+
|
| 42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
+
|
| 44 |
+
[More Information Needed]
|
| 45 |
+
|
| 46 |
+
### Downstream Use [optional]
|
| 47 |
+
|
| 48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
+
|
| 50 |
+
[More Information Needed]
|
| 51 |
+
|
| 52 |
+
### Out-of-Scope Use
|
| 53 |
+
|
| 54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
+
|
| 56 |
+
[More Information Needed]
|
| 57 |
+
|
| 58 |
+
## Bias, Risks, and Limitations
|
| 59 |
+
|
| 60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
+
|
| 62 |
+
[More Information Needed]
|
| 63 |
+
|
| 64 |
+
### Recommendations
|
| 65 |
+
|
| 66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
+
|
| 68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
+
|
| 70 |
+
## How to Get Started with the Model
|
| 71 |
+
|
| 72 |
+
Use the code below to get started with the model.
|
| 73 |
+
|
| 74 |
+
[More Information Needed]
|
| 75 |
+
|
| 76 |
+
## Training Details
|
| 77 |
+
|
| 78 |
+
### Training Data
|
| 79 |
+
|
| 80 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 81 |
+
|
| 82 |
+
[More Information Needed]
|
| 83 |
+
|
| 84 |
+
### Training Procedure
|
| 85 |
+
|
| 86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
+
|
| 88 |
+
#### Preprocessing [optional]
|
| 89 |
+
|
| 90 |
+
[More Information Needed]
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
#### Training Hyperparameters
|
| 94 |
+
|
| 95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
+
|
| 97 |
+
#### Speeds, Sizes, Times [optional]
|
| 98 |
+
|
| 99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
+
|
| 101 |
+
[More Information Needed]
|
| 102 |
+
|
| 103 |
+
## Evaluation
|
| 104 |
+
|
| 105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
+
|
| 107 |
+
### Testing Data, Factors & Metrics
|
| 108 |
+
|
| 109 |
+
#### Testing Data
|
| 110 |
+
|
| 111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
+
|
| 113 |
+
[More Information Needed]
|
| 114 |
+
|
| 115 |
+
#### Factors
|
| 116 |
+
|
| 117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
+
|
| 119 |
+
[More Information Needed]
|
| 120 |
+
|
| 121 |
+
#### Metrics
|
| 122 |
+
|
| 123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
+
|
| 125 |
+
[More Information Needed]
|
| 126 |
+
|
| 127 |
+
### Results
|
| 128 |
+
|
| 129 |
+
[More Information Needed]
|
| 130 |
+
|
| 131 |
+
#### Summary
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
## Model Examination [optional]
|
| 136 |
+
|
| 137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
+
|
| 139 |
+
[More Information Needed]
|
| 140 |
+
|
| 141 |
+
## Environmental Impact
|
| 142 |
+
|
| 143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
+
|
| 145 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
+
|
| 147 |
+
- **Hardware Type:** [More Information Needed]
|
| 148 |
+
- **Hours used:** [More Information Needed]
|
| 149 |
+
- **Cloud Provider:** [More Information Needed]
|
| 150 |
+
- **Compute Region:** [More Information Needed]
|
| 151 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
+
|
| 153 |
+
## Technical Specifications [optional]
|
| 154 |
+
|
| 155 |
+
### Model Architecture and Objective
|
| 156 |
+
|
| 157 |
+
[More Information Needed]
|
| 158 |
+
|
| 159 |
+
### Compute Infrastructure
|
| 160 |
+
|
| 161 |
+
[More Information Needed]
|
| 162 |
+
|
| 163 |
+
#### Hardware
|
| 164 |
+
|
| 165 |
+
[More Information Needed]
|
| 166 |
+
|
| 167 |
+
#### Software
|
| 168 |
+
|
| 169 |
+
[More Information Needed]
|
| 170 |
+
|
| 171 |
+
## Citation [optional]
|
| 172 |
+
|
| 173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
+
|
| 175 |
+
**BibTeX:**
|
| 176 |
+
|
| 177 |
+
[More Information Needed]
|
| 178 |
+
|
| 179 |
+
**APA:**
|
| 180 |
+
|
| 181 |
+
[More Information Needed]
|
| 182 |
+
|
| 183 |
+
## Glossary [optional]
|
| 184 |
+
|
| 185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
+
|
| 187 |
+
[More Information Needed]
|
| 188 |
+
|
| 189 |
+
## More Information [optional]
|
| 190 |
+
|
| 191 |
+
[More Information Needed]
|
| 192 |
+
|
| 193 |
+
## Model Card Authors [optional]
|
| 194 |
+
|
| 195 |
+
[More Information Needed]
|
| 196 |
+
|
| 197 |
+
## Model Card Contact
|
| 198 |
+
|
| 199 |
+
[More Information Needed]
|
config.json
ADDED
|
@@ -0,0 +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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RevePositionBank"
|
| 4 |
+
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoConfig": "configuration_bank.RevePositionBankConfig",
|
| 7 |
+
"AutoModel": "position_bank.RevePositionBank"
|
| 8 |
+
},
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"model_type": "reve-position-bank",
|
| 11 |
+
"position_names": [
|
| 12 |
+
"A1",
|
| 13 |
+
"A2",
|
| 14 |
+
"C3",
|
| 15 |
+
"C4",
|
| 16 |
+
"CZ",
|
| 17 |
+
"F3",
|
| 18 |
+
"F4",
|
| 19 |
+
"F7",
|
| 20 |
+
"F8",
|
| 21 |
+
"FP1",
|
| 22 |
+
"FP2",
|
| 23 |
+
"FZ",
|
| 24 |
+
"O1",
|
| 25 |
+
"O2",
|
| 26 |
+
"P3",
|
| 27 |
+
"P4",
|
| 28 |
+
"PZ",
|
| 29 |
+
"T3",
|
| 30 |
+
"T4",
|
| 31 |
+
"T5",
|
| 32 |
+
"T6",
|
| 33 |
+
"OZ",
|
| 34 |
+
"Cz",
|
| 35 |
+
"Fpz",
|
| 36 |
+
"Fz",
|
| 37 |
+
"P7",
|
| 38 |
+
"P8",
|
| 39 |
+
"Pz",
|
| 40 |
+
"T7",
|
| 41 |
+
"T8",
|
| 42 |
+
"C1",
|
| 43 |
+
"C2",
|
| 44 |
+
"C5",
|
| 45 |
+
"C6",
|
| 46 |
+
"CP1",
|
| 47 |
+
"CP2",
|
| 48 |
+
"CP3",
|
| 49 |
+
"CP4",
|
| 50 |
+
"CPz",
|
| 51 |
+
"FC1",
|
| 52 |
+
"FC2",
|
| 53 |
+
"FC3",
|
| 54 |
+
"FC4",
|
| 55 |
+
"FCz",
|
| 56 |
+
"P1",
|
| 57 |
+
"P2",
|
| 58 |
+
"POz",
|
| 59 |
+
"AFz",
|
| 60 |
+
"P5",
|
| 61 |
+
"P6",
|
| 62 |
+
"PO3",
|
| 63 |
+
"PO4",
|
| 64 |
+
"AF3",
|
| 65 |
+
"AF4",
|
| 66 |
+
"AF7",
|
| 67 |
+
"AF8",
|
| 68 |
+
"CP5",
|
| 69 |
+
"CP6",
|
| 70 |
+
"F1",
|
| 71 |
+
"F2",
|
| 72 |
+
"F5",
|
| 73 |
+
"F6",
|
| 74 |
+
"FC5",
|
| 75 |
+
"FC6",
|
| 76 |
+
"FT7",
|
| 77 |
+
"FT8",
|
| 78 |
+
"Fp1",
|
| 79 |
+
"Fp2",
|
| 80 |
+
"Iz",
|
| 81 |
+
"Oz",
|
| 82 |
+
"P10",
|
| 83 |
+
"P9",
|
| 84 |
+
"PO7",
|
| 85 |
+
"PO8",
|
| 86 |
+
"TP7",
|
| 87 |
+
"TP8",
|
| 88 |
+
"F10",
|
| 89 |
+
"F9",
|
| 90 |
+
"FT10",
|
| 91 |
+
"FT9",
|
| 92 |
+
"FTT10h",
|
| 93 |
+
"FTT9h",
|
| 94 |
+
"PO10",
|
| 95 |
+
"PO9",
|
| 96 |
+
"TP10",
|
| 97 |
+
"TP9",
|
| 98 |
+
"TPP10h",
|
| 99 |
+
"TPP8h",
|
| 100 |
+
"TPP9h",
|
| 101 |
+
"TTP7h",
|
| 102 |
+
"CCP1h",
|
| 103 |
+
"CCP2h",
|
| 104 |
+
"CCP3h",
|
| 105 |
+
"CCP4h",
|
| 106 |
+
"CCP5h",
|
| 107 |
+
"CCP6h",
|
| 108 |
+
"CPP1h",
|
| 109 |
+
"CPP2h",
|
| 110 |
+
"CPP3h",
|
| 111 |
+
"CPP4h",
|
| 112 |
+
"CPP5h",
|
| 113 |
+
"CPP6h",
|
| 114 |
+
"FCC1h",
|
| 115 |
+
"FCC2h",
|
| 116 |
+
"FCC3h",
|
| 117 |
+
"FCC4h",
|
| 118 |
+
"FCC5h",
|
| 119 |
+
"FCC6h",
|
| 120 |
+
"FFC1h",
|
| 121 |
+
"FFC2h",
|
| 122 |
+
"FFC3h",
|
| 123 |
+
"FFC4h",
|
| 124 |
+
"FFC5h",
|
| 125 |
+
"FFC6h",
|
| 126 |
+
"FTT7h",
|
| 127 |
+
"FTT8h",
|
| 128 |
+
"PPO1h",
|
| 129 |
+
"PPO2h",
|
| 130 |
+
"TTP8h",
|
| 131 |
+
"T10",
|
| 132 |
+
"T9",
|
| 133 |
+
"AFF1h",
|
| 134 |
+
"AFF2h",
|
| 135 |
+
"AFF5h",
|
| 136 |
+
"AFF6h",
|
| 137 |
+
"AFp1",
|
| 138 |
+
"AFp2",
|
| 139 |
+
"POO1",
|
| 140 |
+
"POO2",
|
| 141 |
+
"PO5",
|
| 142 |
+
"PO6",
|
| 143 |
+
"AFF1",
|
| 144 |
+
"AFF2",
|
| 145 |
+
"AFp3h",
|
| 146 |
+
"AFp4h",
|
| 147 |
+
"FFT7h",
|
| 148 |
+
"FFT8h",
|
| 149 |
+
"I1",
|
| 150 |
+
"I2",
|
| 151 |
+
"M1",
|
| 152 |
+
"M2",
|
| 153 |
+
"OI1h",
|
| 154 |
+
"OI2h",
|
| 155 |
+
"POO10h",
|
| 156 |
+
"POO3h",
|
| 157 |
+
"POO4h",
|
| 158 |
+
"POO9h",
|
| 159 |
+
"PPO1",
|
| 160 |
+
"PPO10h",
|
| 161 |
+
"PPO2",
|
| 162 |
+
"PPO5h",
|
| 163 |
+
"PPO6h",
|
| 164 |
+
"PPO9h",
|
| 165 |
+
"TPP7h",
|
| 166 |
+
"A3",
|
| 167 |
+
"A4",
|
| 168 |
+
"A5",
|
| 169 |
+
"A6",
|
| 170 |
+
"A7",
|
| 171 |
+
"A8",
|
| 172 |
+
"A9",
|
| 173 |
+
"A10",
|
| 174 |
+
"A11",
|
| 175 |
+
"A12",
|
| 176 |
+
"A13",
|
| 177 |
+
"A14",
|
| 178 |
+
"A15",
|
| 179 |
+
"A16",
|
| 180 |
+
"A17",
|
| 181 |
+
"A18",
|
| 182 |
+
"A19",
|
| 183 |
+
"A20",
|
| 184 |
+
"A21",
|
| 185 |
+
"A22",
|
| 186 |
+
"A23",
|
| 187 |
+
"A24",
|
| 188 |
+
"A25",
|
| 189 |
+
"A26",
|
| 190 |
+
"A27",
|
| 191 |
+
"A28",
|
| 192 |
+
"A29",
|
| 193 |
+
"A30",
|
| 194 |
+
"A31",
|
| 195 |
+
"A32",
|
| 196 |
+
"B1",
|
| 197 |
+
"B2",
|
| 198 |
+
"B3",
|
| 199 |
+
"B4",
|
| 200 |
+
"B5",
|
| 201 |
+
"B6",
|
| 202 |
+
"B7",
|
| 203 |
+
"B8",
|
| 204 |
+
"B9",
|
| 205 |
+
"B10",
|
| 206 |
+
"B11",
|
| 207 |
+
"B12",
|
| 208 |
+
"B13",
|
| 209 |
+
"B14",
|
| 210 |
+
"B15",
|
| 211 |
+
"B16",
|
| 212 |
+
"B17",
|
| 213 |
+
"B18",
|
| 214 |
+
"B19",
|
| 215 |
+
"B20",
|
| 216 |
+
"B21",
|
| 217 |
+
"B22",
|
| 218 |
+
"B23",
|
| 219 |
+
"B24",
|
| 220 |
+
"B25",
|
| 221 |
+
"B26",
|
| 222 |
+
"B27",
|
| 223 |
+
"B28",
|
| 224 |
+
"B29",
|
| 225 |
+
"B30",
|
| 226 |
+
"B31",
|
| 227 |
+
"B32",
|
| 228 |
+
"C7",
|
| 229 |
+
"C8",
|
| 230 |
+
"C9",
|
| 231 |
+
"C10",
|
| 232 |
+
"C11",
|
| 233 |
+
"C12",
|
| 234 |
+
"C13",
|
| 235 |
+
"C14",
|
| 236 |
+
"C15",
|
| 237 |
+
"C16",
|
| 238 |
+
"C17",
|
| 239 |
+
"C18",
|
| 240 |
+
"C19",
|
| 241 |
+
"C20",
|
| 242 |
+
"C21",
|
| 243 |
+
"C22",
|
| 244 |
+
"C23",
|
| 245 |
+
"C24",
|
| 246 |
+
"C25",
|
| 247 |
+
"C26",
|
| 248 |
+
"C27",
|
| 249 |
+
"C28",
|
| 250 |
+
"C29",
|
| 251 |
+
"C30",
|
| 252 |
+
"C31",
|
| 253 |
+
"C32",
|
| 254 |
+
"D1",
|
| 255 |
+
"D2",
|
| 256 |
+
"D3",
|
| 257 |
+
"D4",
|
| 258 |
+
"D5",
|
| 259 |
+
"D6",
|
| 260 |
+
"D7",
|
| 261 |
+
"D8",
|
| 262 |
+
"D9",
|
| 263 |
+
"D10",
|
| 264 |
+
"D11",
|
| 265 |
+
"D12",
|
| 266 |
+
"D13",
|
| 267 |
+
"D14",
|
| 268 |
+
"D15",
|
| 269 |
+
"D16",
|
| 270 |
+
"D17",
|
| 271 |
+
"D18",
|
| 272 |
+
"D19",
|
| 273 |
+
"D20",
|
| 274 |
+
"D21",
|
| 275 |
+
"D22",
|
| 276 |
+
"D23",
|
| 277 |
+
"D24",
|
| 278 |
+
"D25",
|
| 279 |
+
"D26",
|
| 280 |
+
"D27",
|
| 281 |
+
"D28",
|
| 282 |
+
"D29",
|
| 283 |
+
"D30",
|
| 284 |
+
"D31",
|
| 285 |
+
"D32",
|
| 286 |
+
"CPZ",
|
| 287 |
+
"FCZ",
|
| 288 |
+
"FPZ",
|
| 289 |
+
"POZ",
|
| 290 |
+
"E1",
|
| 291 |
+
"E10",
|
| 292 |
+
"E100",
|
| 293 |
+
"E101",
|
| 294 |
+
"E102",
|
| 295 |
+
"E103",
|
| 296 |
+
"E104",
|
| 297 |
+
"E105",
|
| 298 |
+
"E106",
|
| 299 |
+
"E107",
|
| 300 |
+
"E108",
|
| 301 |
+
"E109",
|
| 302 |
+
"E11",
|
| 303 |
+
"E110",
|
| 304 |
+
"E111",
|
| 305 |
+
"E112",
|
| 306 |
+
"E113",
|
| 307 |
+
"E114",
|
| 308 |
+
"E115",
|
| 309 |
+
"E116",
|
| 310 |
+
"E117",
|
| 311 |
+
"E118",
|
| 312 |
+
"E119",
|
| 313 |
+
"E12",
|
| 314 |
+
"E120",
|
| 315 |
+
"E121",
|
| 316 |
+
"E122",
|
| 317 |
+
"E123",
|
| 318 |
+
"E124",
|
| 319 |
+
"E125",
|
| 320 |
+
"E126",
|
| 321 |
+
"E127",
|
| 322 |
+
"E128",
|
| 323 |
+
"E13",
|
| 324 |
+
"E14",
|
| 325 |
+
"E15",
|
| 326 |
+
"E16",
|
| 327 |
+
"E17",
|
| 328 |
+
"E18",
|
| 329 |
+
"E19",
|
| 330 |
+
"E2",
|
| 331 |
+
"E20",
|
| 332 |
+
"E21",
|
| 333 |
+
"E22",
|
| 334 |
+
"E23",
|
| 335 |
+
"E24",
|
| 336 |
+
"E25",
|
| 337 |
+
"E26",
|
| 338 |
+
"E27",
|
| 339 |
+
"E28",
|
| 340 |
+
"E29",
|
| 341 |
+
"E3",
|
| 342 |
+
"E30",
|
| 343 |
+
"E31",
|
| 344 |
+
"E32",
|
| 345 |
+
"E33",
|
| 346 |
+
"E34",
|
| 347 |
+
"E35",
|
| 348 |
+
"E36",
|
| 349 |
+
"E37",
|
| 350 |
+
"E38",
|
| 351 |
+
"E39",
|
| 352 |
+
"E4",
|
| 353 |
+
"E40",
|
| 354 |
+
"E41",
|
| 355 |
+
"E42",
|
| 356 |
+
"E43",
|
| 357 |
+
"E44",
|
| 358 |
+
"E45",
|
| 359 |
+
"E46",
|
| 360 |
+
"E47",
|
| 361 |
+
"E48",
|
| 362 |
+
"E49",
|
| 363 |
+
"E5",
|
| 364 |
+
"E50",
|
| 365 |
+
"E51",
|
| 366 |
+
"E52",
|
| 367 |
+
"E53",
|
| 368 |
+
"E54",
|
| 369 |
+
"E55",
|
| 370 |
+
"E56",
|
| 371 |
+
"E57",
|
| 372 |
+
"E58",
|
| 373 |
+
"E59",
|
| 374 |
+
"E6",
|
| 375 |
+
"E60",
|
| 376 |
+
"E61",
|
| 377 |
+
"E62",
|
| 378 |
+
"E63",
|
| 379 |
+
"E64",
|
| 380 |
+
"E65",
|
| 381 |
+
"E66",
|
| 382 |
+
"E67",
|
| 383 |
+
"E68",
|
| 384 |
+
"E69",
|
| 385 |
+
"E7",
|
| 386 |
+
"E70",
|
| 387 |
+
"E71",
|
| 388 |
+
"E72",
|
| 389 |
+
"E73",
|
| 390 |
+
"E74",
|
| 391 |
+
"E75",
|
| 392 |
+
"E76",
|
| 393 |
+
"E77",
|
| 394 |
+
"E78",
|
| 395 |
+
"E79",
|
| 396 |
+
"E8",
|
| 397 |
+
"E80",
|
| 398 |
+
"E81",
|
| 399 |
+
"E82",
|
| 400 |
+
"E83",
|
| 401 |
+
"E84",
|
| 402 |
+
"E85",
|
| 403 |
+
"E86",
|
| 404 |
+
"E87",
|
| 405 |
+
"E88",
|
| 406 |
+
"E89",
|
| 407 |
+
"E9",
|
| 408 |
+
"E90",
|
| 409 |
+
"E91",
|
| 410 |
+
"E92",
|
| 411 |
+
"E93",
|
| 412 |
+
"E94",
|
| 413 |
+
"E95",
|
| 414 |
+
"E96",
|
| 415 |
+
"E97",
|
| 416 |
+
"E98",
|
| 417 |
+
"E99",
|
| 418 |
+
"E129",
|
| 419 |
+
"Cp1",
|
| 420 |
+
"Cp2",
|
| 421 |
+
"Cp5",
|
| 422 |
+
"Cp6",
|
| 423 |
+
"Fc1",
|
| 424 |
+
"Fc2",
|
| 425 |
+
"Fc5",
|
| 426 |
+
"Fc6",
|
| 427 |
+
"biosemi128_A1",
|
| 428 |
+
"biosemi128_A2",
|
| 429 |
+
"biosemi128_A3",
|
| 430 |
+
"biosemi128_A4",
|
| 431 |
+
"biosemi128_A5",
|
| 432 |
+
"biosemi128_A6",
|
| 433 |
+
"biosemi128_A7",
|
| 434 |
+
"biosemi128_A8",
|
| 435 |
+
"biosemi128_A9",
|
| 436 |
+
"biosemi128_A10",
|
| 437 |
+
"biosemi128_A11",
|
| 438 |
+
"biosemi128_A12",
|
| 439 |
+
"biosemi128_A13",
|
| 440 |
+
"biosemi128_A14",
|
| 441 |
+
"biosemi128_A15",
|
| 442 |
+
"biosemi128_A16",
|
| 443 |
+
"biosemi128_A17",
|
| 444 |
+
"biosemi128_A18",
|
| 445 |
+
"biosemi128_A19",
|
| 446 |
+
"biosemi128_A20",
|
| 447 |
+
"biosemi128_A21",
|
| 448 |
+
"biosemi128_A22",
|
| 449 |
+
"biosemi128_A23",
|
| 450 |
+
"biosemi128_A24",
|
| 451 |
+
"biosemi128_A25",
|
| 452 |
+
"biosemi128_A26",
|
| 453 |
+
"biosemi128_A27",
|
| 454 |
+
"biosemi128_A28",
|
| 455 |
+
"biosemi128_A29",
|
| 456 |
+
"biosemi128_A30",
|
| 457 |
+
"biosemi128_A31",
|
| 458 |
+
"biosemi128_A32",
|
| 459 |
+
"biosemi128_B1",
|
| 460 |
+
"biosemi128_B2",
|
| 461 |
+
"biosemi128_B3",
|
| 462 |
+
"biosemi128_B4",
|
| 463 |
+
"biosemi128_B5",
|
| 464 |
+
"biosemi128_B6",
|
| 465 |
+
"biosemi128_B7",
|
| 466 |
+
"biosemi128_B8",
|
| 467 |
+
"biosemi128_B9",
|
| 468 |
+
"biosemi128_B10",
|
| 469 |
+
"biosemi128_B11",
|
| 470 |
+
"biosemi128_B12",
|
| 471 |
+
"biosemi128_B13",
|
| 472 |
+
"biosemi128_B14",
|
| 473 |
+
"biosemi128_B15",
|
| 474 |
+
"biosemi128_B16",
|
| 475 |
+
"biosemi128_B17",
|
| 476 |
+
"biosemi128_B18",
|
| 477 |
+
"biosemi128_B19",
|
| 478 |
+
"biosemi128_B20",
|
| 479 |
+
"biosemi128_B21",
|
| 480 |
+
"biosemi128_B22",
|
| 481 |
+
"biosemi128_B23",
|
| 482 |
+
"biosemi128_B24",
|
| 483 |
+
"biosemi128_B25",
|
| 484 |
+
"biosemi128_B26",
|
| 485 |
+
"biosemi128_B27",
|
| 486 |
+
"biosemi128_B28",
|
| 487 |
+
"biosemi128_B29",
|
| 488 |
+
"biosemi128_B30",
|
| 489 |
+
"biosemi128_B31",
|
| 490 |
+
"biosemi128_B32",
|
| 491 |
+
"biosemi128_C1",
|
| 492 |
+
"biosemi128_C2",
|
| 493 |
+
"biosemi128_C3",
|
| 494 |
+
"biosemi128_C4",
|
| 495 |
+
"biosemi128_C5",
|
| 496 |
+
"biosemi128_C6",
|
| 497 |
+
"biosemi128_C7",
|
| 498 |
+
"biosemi128_C8",
|
| 499 |
+
"biosemi128_C9",
|
| 500 |
+
"biosemi128_C10",
|
| 501 |
+
"biosemi128_C11",
|
| 502 |
+
"biosemi128_C12",
|
| 503 |
+
"biosemi128_C13",
|
| 504 |
+
"biosemi128_C14",
|
| 505 |
+
"biosemi128_C15",
|
| 506 |
+
"biosemi128_C16",
|
| 507 |
+
"biosemi128_C17",
|
| 508 |
+
"biosemi128_C18",
|
| 509 |
+
"biosemi128_C19",
|
| 510 |
+
"biosemi128_C20",
|
| 511 |
+
"biosemi128_C21",
|
| 512 |
+
"biosemi128_C22",
|
| 513 |
+
"biosemi128_C23",
|
| 514 |
+
"biosemi128_C24",
|
| 515 |
+
"biosemi128_C25",
|
| 516 |
+
"biosemi128_C26",
|
| 517 |
+
"biosemi128_C27",
|
| 518 |
+
"biosemi128_C28",
|
| 519 |
+
"biosemi128_C29",
|
| 520 |
+
"biosemi128_C30",
|
| 521 |
+
"biosemi128_C31",
|
| 522 |
+
"biosemi128_C32",
|
| 523 |
+
"biosemi128_D1",
|
| 524 |
+
"biosemi128_D2",
|
| 525 |
+
"biosemi128_D3",
|
| 526 |
+
"biosemi128_D4",
|
| 527 |
+
"biosemi128_D5",
|
| 528 |
+
"biosemi128_D6",
|
| 529 |
+
"biosemi128_D7",
|
| 530 |
+
"biosemi128_D8",
|
| 531 |
+
"biosemi128_D9",
|
| 532 |
+
"biosemi128_D10",
|
| 533 |
+
"biosemi128_D11",
|
| 534 |
+
"biosemi128_D12",
|
| 535 |
+
"biosemi128_D13",
|
| 536 |
+
"biosemi128_D14",
|
| 537 |
+
"biosemi128_D15",
|
| 538 |
+
"biosemi128_D16",
|
| 539 |
+
"biosemi128_D17",
|
| 540 |
+
"biosemi128_D18",
|
| 541 |
+
"biosemi128_D19",
|
| 542 |
+
"biosemi128_D20",
|
| 543 |
+
"biosemi128_D21",
|
| 544 |
+
"biosemi128_D22",
|
| 545 |
+
"biosemi128_D23",
|
| 546 |
+
"biosemi128_D24",
|
| 547 |
+
"biosemi128_D25",
|
| 548 |
+
"biosemi128_D26",
|
| 549 |
+
"biosemi128_D27",
|
| 550 |
+
"biosemi128_D28",
|
| 551 |
+
"biosemi128_D29",
|
| 552 |
+
"biosemi128_D30",
|
| 553 |
+
"biosemi128_D31",
|
| 554 |
+
"biosemi128_D32"
|
| 555 |
+
],
|
| 556 |
+
"transformers_version": "4.57.1"
|
| 557 |
+
}
|
configuration_bank.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import PretrainedConfig
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class RevePositionBankConfig(PretrainedConfig):
|
| 5 |
+
model_type = "reve-position-bank"
|
| 6 |
+
|
| 7 |
+
def __init__(self, position_names: list[str] = [], **kwargs):
|
| 8 |
+
super().__init__(**kwargs)
|
| 9 |
+
self.position_names = position_names
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b793820b9df0998667deb6c8ce2dbb86b38221d5165c1844bc4971941b13f13
|
| 3 |
+
size 6628
|
position_bank.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from transformers import PreTrainedModel
|
| 3 |
+
|
| 4 |
+
from .configuration_bank import RevePositionBankConfig
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class RevePositionBank(PreTrainedModel):
|
| 8 |
+
config_class = RevePositionBankConfig
|
| 9 |
+
|
| 10 |
+
def __init__(self, config: RevePositionBankConfig):
|
| 11 |
+
super().__init__(config)
|
| 12 |
+
|
| 13 |
+
self.position_names = config.position_names
|
| 14 |
+
self.mapping = {name: i for i, name in enumerate(self.position_names)}
|
| 15 |
+
self.register_buffer("embedding", torch.randn(len(self.position_names), 3))
|
| 16 |
+
|
| 17 |
+
def forward(self, channel_names: list[str]):
|
| 18 |
+
indices = [self.mapping[q] for q in channel_names if q in self.mapping]
|
| 19 |
+
|
| 20 |
+
if len(indices) < len(channel_names):
|
| 21 |
+
print(f"Found {len(indices)} positions out of {len(channel_names)} channels")
|
| 22 |
+
|
| 23 |
+
indices = torch.tensor(indices, device=self.embedding.device)
|
| 24 |
+
|
| 25 |
+
return self.embedding[indices]
|
| 26 |
+
|
| 27 |
+
def get_all_positions(self):
|
| 28 |
+
return self.position_names
|