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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 +1,320 @@
|
|
|
|
|
|
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|
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"coordinate_size": 128,
|
| 10 |
+
"doctype_entities": {
|
| 11 |
+
"CONSENT FORM": [
|
| 12 |
+
"age",
|
| 13 |
+
"date",
|
| 14 |
+
"dos",
|
| 15 |
+
"mrn",
|
| 16 |
+
"patient-account-number",
|
| 17 |
+
"patient-dob",
|
| 18 |
+
"patient-name",
|
| 19 |
+
"relationship-to-patient",
|
| 20 |
+
"sex"
|
| 21 |
+
],
|
| 22 |
+
"FACE SHEET": [
|
| 23 |
+
"accom",
|
| 24 |
+
"adm-clerk",
|
| 25 |
+
"admit-physician",
|
| 26 |
+
"admit-source",
|
| 27 |
+
"age",
|
| 28 |
+
"attending-physician",
|
| 29 |
+
"dos",
|
| 30 |
+
"e-mail",
|
| 31 |
+
"emp-phone",
|
| 32 |
+
"employer",
|
| 33 |
+
"employer-address",
|
| 34 |
+
"fin-class",
|
| 35 |
+
"guarantor-address",
|
| 36 |
+
"guarantor-emp-ph",
|
| 37 |
+
"guarantor-employer",
|
| 38 |
+
"guarantor-name",
|
| 39 |
+
"guarantor-phone-no",
|
| 40 |
+
"guarantor-ss",
|
| 41 |
+
"martial-st",
|
| 42 |
+
"mrn",
|
| 43 |
+
"next-of-kin",
|
| 44 |
+
"nok-address",
|
| 45 |
+
"nok-phone",
|
| 46 |
+
"patient-account-number",
|
| 47 |
+
"patient-address",
|
| 48 |
+
"patient-dob",
|
| 49 |
+
"patient-name",
|
| 50 |
+
"patient-phone",
|
| 51 |
+
"person-notify-address",
|
| 52 |
+
"person-notify-phone",
|
| 53 |
+
"person-to-notify",
|
| 54 |
+
"primary-care-doctor",
|
| 55 |
+
"pt-status",
|
| 56 |
+
"race",
|
| 57 |
+
"reason-for-visit",
|
| 58 |
+
"relationship",
|
| 59 |
+
"religion",
|
| 60 |
+
"room-bed",
|
| 61 |
+
"serv-loc",
|
| 62 |
+
"sex",
|
| 63 |
+
"ss",
|
| 64 |
+
"time"
|
| 65 |
+
],
|
| 66 |
+
"History and Physical": [
|
| 67 |
+
"allergies",
|
| 68 |
+
"chief-complaint",
|
| 69 |
+
"corrected-copy",
|
| 70 |
+
"date-dictated",
|
| 71 |
+
"date-transcribed",
|
| 72 |
+
"dictating-physician",
|
| 73 |
+
"dos",
|
| 74 |
+
"electronically-signed-by-doctor",
|
| 75 |
+
"family-history",
|
| 76 |
+
"history-number",
|
| 77 |
+
"history-of-present-illness",
|
| 78 |
+
"immunizations",
|
| 79 |
+
"impression",
|
| 80 |
+
"medical-history",
|
| 81 |
+
"medications",
|
| 82 |
+
"patient-dob",
|
| 83 |
+
"patient-name",
|
| 84 |
+
"patient-number",
|
| 85 |
+
"plan",
|
| 86 |
+
"review-of-systems",
|
| 87 |
+
"social-history"
|
| 88 |
+
],
|
| 89 |
+
"Request for Release of Information": [
|
| 90 |
+
"hospital-name",
|
| 91 |
+
"mrn",
|
| 92 |
+
"patient-account-number",
|
| 93 |
+
"patient-dob",
|
| 94 |
+
"patient-name",
|
| 95 |
+
"purpose-of-request"
|
| 96 |
+
],
|
| 97 |
+
"discharge_summary": [
|
| 98 |
+
"admission-date",
|
| 99 |
+
"admitting-diagnosis",
|
| 100 |
+
"age",
|
| 101 |
+
"cc",
|
| 102 |
+
"condition-at-discharge",
|
| 103 |
+
"consultations",
|
| 104 |
+
"cosigned-date-time",
|
| 105 |
+
"date-dictated",
|
| 106 |
+
"date-transcribed",
|
| 107 |
+
"dictating-physician",
|
| 108 |
+
"discharge-date",
|
| 109 |
+
"discharge-diagnosis",
|
| 110 |
+
"disposition",
|
| 111 |
+
"electronically-signed-by-doctor",
|
| 112 |
+
"home-medications",
|
| 113 |
+
"mrn",
|
| 114 |
+
"patient-account-number",
|
| 115 |
+
"patient-dob",
|
| 116 |
+
"patient-name",
|
| 117 |
+
"primary-care-doctor",
|
| 118 |
+
"problems-reviewed",
|
| 119 |
+
"referrals",
|
| 120 |
+
"report-number",
|
| 121 |
+
"sex",
|
| 122 |
+
"signed-date-time",
|
| 123 |
+
"transcriptionist"
|
| 124 |
+
]
|
| 125 |
+
},
|
| 126 |
+
"eos_token_id": 2,
|
| 127 |
+
"has_relative_attention_bias": true,
|
| 128 |
+
"has_spatial_attention_bias": true,
|
| 129 |
+
"hidden_act": "gelu",
|
| 130 |
+
"hidden_dropout_prob": 0.1,
|
| 131 |
+
"hidden_size": 768,
|
| 132 |
+
"id2label": {
|
| 133 |
+
"0": "O",
|
| 134 |
+
"1": "B-accom",
|
| 135 |
+
"2": "B-adm-clerk",
|
| 136 |
+
"3": "B-admission-date",
|
| 137 |
+
"4": "B-admit-physician",
|
| 138 |
+
"5": "B-admit-source",
|
| 139 |
+
"6": "B-admitting-diagnosis",
|
| 140 |
+
"7": "B-age",
|
| 141 |
+
"8": "B-allergies",
|
| 142 |
+
"9": "B-attending-physician",
|
| 143 |
+
"10": "B-cc",
|
| 144 |
+
"11": "B-chief-complaint",
|
| 145 |
+
"12": "B-condition-at-discharge",
|
| 146 |
+
"13": "B-consultations",
|
| 147 |
+
"14": "B-corrected-copy",
|
| 148 |
+
"15": "B-cosigned-date-time",
|
| 149 |
+
"16": "B-date",
|
| 150 |
+
"17": "B-date-dictated",
|
| 151 |
+
"18": "B-date-transcribed",
|
| 152 |
+
"19": "B-dictating-physician",
|
| 153 |
+
"20": "B-discharge-date",
|
| 154 |
+
"21": "B-discharge-diagnosis",
|
| 155 |
+
"22": "B-disposition",
|
| 156 |
+
"23": "B-dos",
|
| 157 |
+
"24": "B-e-mail",
|
| 158 |
+
"25": "B-electronically-signed-by-doctor",
|
| 159 |
+
"26": "B-emp-phone",
|
| 160 |
+
"27": "B-employer",
|
| 161 |
+
"28": "B-employer-address",
|
| 162 |
+
"29": "B-family-history",
|
| 163 |
+
"30": "B-fin-class",
|
| 164 |
+
"31": "B-guarantor-address",
|
| 165 |
+
"32": "B-guarantor-emp-ph",
|
| 166 |
+
"33": "B-guarantor-employer",
|
| 167 |
+
"34": "B-guarantor-name",
|
| 168 |
+
"35": "B-guarantor-phone-no",
|
| 169 |
+
"36": "B-guarantor-ss",
|
| 170 |
+
"37": "B-history-number",
|
| 171 |
+
"38": "B-history-of-present-illness",
|
| 172 |
+
"39": "B-home-medications",
|
| 173 |
+
"40": "B-hospital-name",
|
| 174 |
+
"41": "B-immunizations",
|
| 175 |
+
"42": "B-impression",
|
| 176 |
+
"43": "B-martial-st",
|
| 177 |
+
"44": "B-medical-history",
|
| 178 |
+
"45": "B-medications",
|
| 179 |
+
"46": "B-mrn",
|
| 180 |
+
"47": "B-next-of-kin",
|
| 181 |
+
"48": "B-nok-address",
|
| 182 |
+
"49": "B-nok-phone",
|
| 183 |
+
"50": "B-patient-account-number",
|
| 184 |
+
"51": "B-patient-address",
|
| 185 |
+
"52": "B-patient-dob",
|
| 186 |
+
"53": "B-patient-name",
|
| 187 |
+
"54": "B-patient-number",
|
| 188 |
+
"55": "B-patient-phone",
|
| 189 |
+
"56": "B-person-notify-address",
|
| 190 |
+
"57": "B-person-notify-phone",
|
| 191 |
+
"58": "B-person-to-notify",
|
| 192 |
+
"59": "B-plan",
|
| 193 |
+
"60": "B-primary-care-doctor",
|
| 194 |
+
"61": "B-problems-reviewed",
|
| 195 |
+
"62": "B-pt-status",
|
| 196 |
+
"63": "B-purpose-of-request",
|
| 197 |
+
"64": "B-race",
|
| 198 |
+
"65": "B-reason-for-visit",
|
| 199 |
+
"66": "B-referrals",
|
| 200 |
+
"67": "B-relationship",
|
| 201 |
+
"68": "B-relationship-to-patient",
|
| 202 |
+
"69": "B-religion",
|
| 203 |
+
"70": "B-report-number",
|
| 204 |
+
"71": "B-review-of-systems",
|
| 205 |
+
"72": "B-room-bed",
|
| 206 |
+
"73": "B-serv-loc",
|
| 207 |
+
"74": "B-sex",
|
| 208 |
+
"75": "B-signed-date-time",
|
| 209 |
+
"76": "B-social-history",
|
| 210 |
+
"77": "B-ss",
|
| 211 |
+
"78": "B-time",
|
| 212 |
+
"79": "B-transcriptionist"
|
| 213 |
+
},
|
| 214 |
+
"initializer_range": 0.02,
|
| 215 |
+
"input_size": 224,
|
| 216 |
+
"intermediate_size": 3072,
|
| 217 |
+
"label2id": {
|
| 218 |
+
"B-accom": 1,
|
| 219 |
+
"B-adm-clerk": 2,
|
| 220 |
+
"B-admission-date": 3,
|
| 221 |
+
"B-admit-physician": 4,
|
| 222 |
+
"B-admit-source": 5,
|
| 223 |
+
"B-admitting-diagnosis": 6,
|
| 224 |
+
"B-age": 7,
|
| 225 |
+
"B-allergies": 8,
|
| 226 |
+
"B-attending-physician": 9,
|
| 227 |
+
"B-cc": 10,
|
| 228 |
+
"B-chief-complaint": 11,
|
| 229 |
+
"B-condition-at-discharge": 12,
|
| 230 |
+
"B-consultations": 13,
|
| 231 |
+
"B-corrected-copy": 14,
|
| 232 |
+
"B-cosigned-date-time": 15,
|
| 233 |
+
"B-date": 16,
|
| 234 |
+
"B-date-dictated": 17,
|
| 235 |
+
"B-date-transcribed": 18,
|
| 236 |
+
"B-dictating-physician": 19,
|
| 237 |
+
"B-discharge-date": 20,
|
| 238 |
+
"B-discharge-diagnosis": 21,
|
| 239 |
+
"B-disposition": 22,
|
| 240 |
+
"B-dos": 23,
|
| 241 |
+
"B-e-mail": 24,
|
| 242 |
+
"B-electronically-signed-by-doctor": 25,
|
| 243 |
+
"B-emp-phone": 26,
|
| 244 |
+
"B-employer": 27,
|
| 245 |
+
"B-employer-address": 28,
|
| 246 |
+
"B-family-history": 29,
|
| 247 |
+
"B-fin-class": 30,
|
| 248 |
+
"B-guarantor-address": 31,
|
| 249 |
+
"B-guarantor-emp-ph": 32,
|
| 250 |
+
"B-guarantor-employer": 33,
|
| 251 |
+
"B-guarantor-name": 34,
|
| 252 |
+
"B-guarantor-phone-no": 35,
|
| 253 |
+
"B-guarantor-ss": 36,
|
| 254 |
+
"B-history-number": 37,
|
| 255 |
+
"B-history-of-present-illness": 38,
|
| 256 |
+
"B-home-medications": 39,
|
| 257 |
+
"B-hospital-name": 40,
|
| 258 |
+
"B-immunizations": 41,
|
| 259 |
+
"B-impression": 42,
|
| 260 |
+
"B-martial-st": 43,
|
| 261 |
+
"B-medical-history": 44,
|
| 262 |
+
"B-medications": 45,
|
| 263 |
+
"B-mrn": 46,
|
| 264 |
+
"B-next-of-kin": 47,
|
| 265 |
+
"B-nok-address": 48,
|
| 266 |
+
"B-nok-phone": 49,
|
| 267 |
+
"B-patient-account-number": 50,
|
| 268 |
+
"B-patient-address": 51,
|
| 269 |
+
"B-patient-dob": 52,
|
| 270 |
+
"B-patient-name": 53,
|
| 271 |
+
"B-patient-number": 54,
|
| 272 |
+
"B-patient-phone": 55,
|
| 273 |
+
"B-person-notify-address": 56,
|
| 274 |
+
"B-person-notify-phone": 57,
|
| 275 |
+
"B-person-to-notify": 58,
|
| 276 |
+
"B-plan": 59,
|
| 277 |
+
"B-primary-care-doctor": 60,
|
| 278 |
+
"B-problems-reviewed": 61,
|
| 279 |
+
"B-pt-status": 62,
|
| 280 |
+
"B-purpose-of-request": 63,
|
| 281 |
+
"B-race": 64,
|
| 282 |
+
"B-reason-for-visit": 65,
|
| 283 |
+
"B-referrals": 66,
|
| 284 |
+
"B-relationship": 67,
|
| 285 |
+
"B-relationship-to-patient": 68,
|
| 286 |
+
"B-religion": 69,
|
| 287 |
+
"B-report-number": 70,
|
| 288 |
+
"B-review-of-systems": 71,
|
| 289 |
+
"B-room-bed": 72,
|
| 290 |
+
"B-serv-loc": 73,
|
| 291 |
+
"B-sex": 74,
|
| 292 |
+
"B-signed-date-time": 75,
|
| 293 |
+
"B-social-history": 76,
|
| 294 |
+
"B-ss": 77,
|
| 295 |
+
"B-time": 78,
|
| 296 |
+
"B-transcriptionist": 79,
|
| 297 |
+
"O": 0
|
| 298 |
+
},
|
| 299 |
+
"layer_norm_eps": 1e-05,
|
| 300 |
+
"max_2d_position_embeddings": 1024,
|
| 301 |
+
"max_position_embeddings": 514,
|
| 302 |
+
"max_rel_2d_pos": 256,
|
| 303 |
+
"max_rel_pos": 128,
|
| 304 |
+
"model_type": "layoutlmv3",
|
| 305 |
+
"num_attention_heads": 12,
|
| 306 |
+
"num_channels": 3,
|
| 307 |
+
"num_hidden_layers": 12,
|
| 308 |
+
"pad_token_id": 1,
|
| 309 |
+
"patch_size": 16,
|
| 310 |
+
"rel_2d_pos_bins": 64,
|
| 311 |
+
"rel_pos_bins": 32,
|
| 312 |
+
"second_input_size": 112,
|
| 313 |
+
"shape_size": 128,
|
| 314 |
+
"text_embed": true,
|
| 315 |
+
"torch_dtype": "float32",
|
| 316 |
+
"transformers_version": "4.41.2",
|
| 317 |
+
"type_vocab_size": 1,
|
| 318 |
+
"visual_embed": true,
|
| 319 |
+
"vocab_size": 50265
|
| 320 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc57135f68b07d16cbd9a2ae097ca400737d615910d5db9a6d06141523b262a8
|
| 3 |
+
size 503942680
|