tieandrews commited on
Commit
f285df7
·
1 Parent(s): 61c57e4

Initial model files commit.

Browse files
MLmodel ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ artifact_path: MetaExtractor
2
+ flavors:
3
+ python_function:
4
+ env:
5
+ conda: conda.yaml
6
+ virtualenv: python_env.yaml
7
+ loader_module: mlflow.transformers
8
+ pipeline: pipeline
9
+ python_version: 3.10.11
10
+ transformers:
11
+ code: null
12
+ components:
13
+ - tokenizer
14
+ framework: pt
15
+ instance_type: TokenClassificationPipeline
16
+ pipeline: pipeline
17
+ pipeline_model_type: RobertaForTokenClassification
18
+ source_model_name: /content/drive/MyDrive/Colab Notebooks/ffossils/roberta-finetune-v3/models/
19
+ task: ner
20
+ tokenizer_type: RobertaTokenizerFast
21
+ transformers_version: 4.29.2
22
+ mlflow_version: 2.3.2
23
+ model_uuid: 3a92ac273adc4fceb829de9c60387524
24
+ run_id: ffa8fa05-0aaa-41ae-8410-d1427b8c7256
25
+ signature:
26
+ inputs: '[{"type": "string"}]'
27
+ outputs: '[{"type": "string"}]'
28
+ utc_time_created: '2023-06-01 18:51:35.839997'
conda.yaml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ channels:
2
+ - conda-forge
3
+ dependencies:
4
+ - python=3.10.11
5
+ - pip<=23.1.2
6
+ - pip:
7
+ - mlflow==2.3
8
+ - accelerate==0.19.0
9
+ - cloudpickle==2.2.1
10
+ - cryptography==40.0.2
11
+ - dill==0.3.6
12
+ - etils==1.2.0
13
+ - google-api-python-client==2.84.0
14
+ - google-cloud-bigquery-storage==2.19.1
15
+ - google-cloud-bigquery==3.9.0
16
+ - google-cloud-datastore==2.15.1
17
+ - google-cloud-firestore==2.11.0
18
+ - google-cloud-language==2.9.1
19
+ - google-cloud-storage==2.8.0
20
+ - google-cloud-translate==3.11.1
21
+ - google-colab==1.0.0
22
+ - importlib-resources==5.12.0
23
+ - jaxlib==0.4.10
24
+ - numpy==1.22.4
25
+ - oauth2client==4.1.3
26
+ - packaging==23.1
27
+ - pandas==1.5.3
28
+ - pathlib==1.0.1
29
+ - protobuf==3.20.3
30
+ - pydot-ng==2.0.0
31
+ - pydot==1.4.2
32
+ - pysocks==1.7.1
33
+ - pyyaml==6.0
34
+ - requests==2.27.1
35
+ - rich==13.3.4
36
+ - scikit-learn==1.2.2
37
+ - scipy==1.10.1
38
+ - tblib==1.7.0
39
+ - tensorflow-probability==0.20.1
40
+ - tensorflow==2.12.0
41
+ - torch==2.0.1
42
+ - torchvision==0.15.2
43
+ - transformers==4.29.2
44
+ name: mlflow-env
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/content/drive/MyDrive/Colab Notebooks/ffossils/roberta-finetune-v3/models/",
3
+ "architectures": [
4
+ "RobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "finetuning_task": "ner",
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "B-AGE",
16
+ "1": "B-ALTI",
17
+ "2": "B-EMAIL",
18
+ "3": "B-GEOG",
19
+ "4": "B-REGION",
20
+ "5": "B-SITE",
21
+ "6": "B-TAXA",
22
+ "7": "I-AGE",
23
+ "8": "I-ALTI",
24
+ "9": "I-GEOG",
25
+ "10": "I-REGION",
26
+ "11": "I-SITE",
27
+ "12": "I-TAXA",
28
+ "13": "O"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 3072,
32
+ "label2id": {
33
+ "B-AGE": 0,
34
+ "B-ALTI": 1,
35
+ "B-EMAIL": 2,
36
+ "B-GEOG": 3,
37
+ "B-REGION": 4,
38
+ "B-SITE": 5,
39
+ "B-TAXA": 6,
40
+ "I-AGE": 7,
41
+ "I-ALTI": 8,
42
+ "I-GEOG": 9,
43
+ "I-REGION": 10,
44
+ "I-SITE": 11,
45
+ "I-TAXA": 12,
46
+ "O": 13
47
+ },
48
+ "layer_norm_eps": 1e-05,
49
+ "max_position_embeddings": 514,
50
+ "model_type": "roberta",
51
+ "num_attention_heads": 12,
52
+ "num_hidden_layers": 12,
53
+ "pad_token_id": 1,
54
+ "position_embedding_type": "absolute",
55
+ "torch_dtype": "float32",
56
+ "transformers_version": "4.29.2",
57
+ "type_vocab_size": 1,
58
+ "use_cache": true,
59
+ "vocab_size": 50265
60
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model_card.md ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Model Card for MetaExtractor
3
+
4
+ <!-- Provide a quick summary of what the model is/does. -->
5
+
6
+
7
+
8
+ ## Model Details
9
+
10
+ ### Model Description
11
+
12
+ <!-- Provide a longer summary of what this model is. -->
13
+
14
+ This model extracts metadata from Paleoecology research article text.
15
+
16
+ - **Developed by:** Ty Andrews, Jenit Jain, Shaun Hutchinson, Kelly Wu, and Simon Goring
17
+ - **Shared by [optional]:** [More Information Needed]
18
+ - **Model type:** [More Information Needed]
19
+ - **Language(s) (NLP):** English
20
+ - **License:** MIT
21
+ - **Finetuned from model [optional]:** roberta-base
22
+
23
+ ### Model Sources [optional]
24
+
25
+ <!-- Provide the basic links for the model. -->
26
+
27
+ - **Repository:** https://github.com/NeotomaDB/MetaExtractor
28
+ - **Paper [optional]:** [More Information Needed]
29
+ - **Demo [optional]:** [More Information Needed]
30
+
31
+ ## Uses
32
+
33
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
34
+
35
+ ### Direct Use
36
+
37
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
38
+
39
+ [More Information Needed]
40
+
41
+ ### Downstream Use [optional]
42
+
43
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
44
+
45
+ [More Information Needed]
46
+
47
+ ### Out-of-Scope Use
48
+
49
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ## Bias, Risks, and Limitations
54
+
55
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Recommendations
60
+
61
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
62
+
63
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
64
+
65
+ ## How to Get Started with the Model
66
+
67
+ Use the code below to get started with the model.
68
+
69
+ [More Information Needed]
70
+
71
+ ## Training Details
72
+
73
+ ### Training Data
74
+
75
+ <!-- This should link to a Data 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. -->
76
+
77
+ [More Information Needed]
78
+
79
+ ### Training Procedure
80
+
81
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
82
+
83
+ #### Preprocessing [optional]
84
+
85
+ [More Information Needed]
86
+
87
+
88
+ #### Training Hyperparameters
89
+
90
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
91
+
92
+ #### Speeds, Sizes, Times [optional]
93
+
94
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
95
+
96
+ [More Information Needed]
97
+
98
+ ## Evaluation
99
+
100
+ <!-- This section describes the evaluation protocols and provides the results. -->
101
+
102
+ ### Testing Data, Factors & Metrics
103
+
104
+ #### Testing Data
105
+
106
+ <!-- This should link to a Data Card if possible. -->
107
+
108
+ [More Information Needed]
109
+
110
+ #### Factors
111
+
112
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
113
+
114
+ [More Information Needed]
115
+
116
+ #### Metrics
117
+
118
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
119
+
120
+ [More Information Needed]
121
+
122
+ ### Results
123
+
124
+ [More Information Needed]
125
+
126
+ #### Summary
127
+
128
+
129
+
130
+ ## Model Examination [optional]
131
+
132
+ <!-- Relevant interpretability work for the model goes here -->
133
+
134
+ [More Information Needed]
135
+
136
+ ## Environmental Impact
137
+
138
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
139
+
140
+ 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).
141
+
142
+ - **Hardware Type:** [More Information Needed]
143
+ - **Hours used:** [More Information Needed]
144
+ - **Cloud Provider:** [More Information Needed]
145
+ - **Compute Region:** [More Information Needed]
146
+ - **Carbon Emitted:** [More Information Needed]
147
+
148
+ ## Technical Specifications [optional]
149
+
150
+ ### Model Architecture and Objective
151
+
152
+ [More Information Needed]
153
+
154
+ ### Compute Infrastructure
155
+
156
+ [More Information Needed]
157
+
158
+ #### Hardware
159
+
160
+ [More Information Needed]
161
+
162
+ #### Software
163
+
164
+ [More Information Needed]
165
+
166
+ ## Citation [optional]
167
+
168
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
169
+
170
+ **BibTeX:**
171
+
172
+ [More Information Needed]
173
+
174
+ **APA:**
175
+
176
+ [More Information Needed]
177
+
178
+ ## Glossary [optional]
179
+
180
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
181
+
182
+ [More Information Needed]
183
+
184
+ ## More Information [optional]
185
+
186
+ [More Information Needed]
187
+
188
+ ## Model Card Authors [optional]
189
+
190
+ [More Information Needed]
191
+
192
+ ## Model Card Contact
193
+
194
+ [More Information Needed]
195
+
196
+
model_card_data.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ language: en
2
+ library_name: pt
3
+ library_version: 4.29.2
4
+ license: mit
5
+ name: MetaExtractor
python_env.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ python: 3.10.11
2
+ build_dependencies:
3
+ - pip==23.1.2
4
+ - setuptools==67.7.2
5
+ - wheel==0.40.0
6
+ dependencies:
7
+ - -r requirements.txt
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4f40c00bc3c9f9fd0866974d99d9726182a68afb3a6aee234f75e7091d33b9f
3
+ size 496333165
requirements.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mlflow==2.3
2
+ accelerate==0.19.0
3
+ cloudpickle==2.2.1
4
+ cryptography==40.0.2
5
+ dill==0.3.6
6
+ etils==1.2.0
7
+ google-api-python-client==2.84.0
8
+ google-cloud-bigquery-storage==2.19.1
9
+ google-cloud-bigquery==3.9.0
10
+ google-cloud-datastore==2.15.1
11
+ google-cloud-firestore==2.11.0
12
+ google-cloud-language==2.9.1
13
+ google-cloud-storage==2.8.0
14
+ google-cloud-translate==3.11.1
15
+ google-colab==1.0.0
16
+ importlib-resources==5.12.0
17
+ jaxlib==0.4.10
18
+ numpy==1.22.4
19
+ oauth2client==4.1.3
20
+ packaging==23.1
21
+ pandas==1.5.3
22
+ pathlib==1.0.1
23
+ protobuf==3.20.3
24
+ pydot-ng==2.0.0
25
+ pydot==1.4.2
26
+ pysocks==1.7.1
27
+ pyyaml==6.0
28
+ requests==2.27.1
29
+ rich==13.3.4
30
+ scikit-learn==1.2.2
31
+ scipy==1.10.1
32
+ tblib==1.7.0
33
+ tensorflow-probability==0.20.1
34
+ tensorflow==2.12.0
35
+ torch==2.0.1
36
+ torchvision==0.15.2
37
+ transformers==4.29.2
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 512,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "tokenizer_class": "RobertaTokenizer",
13
+ "trim_offsets": true,
14
+ "unk_token": "<unk>"
15
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff