Mykyta Kotenko
commited on
Upload folder using huggingface_hub
Browse files- LICENSE +24 -0
- README.md +309 -0
- checkpoint-440/config.json +68 -0
- checkpoint-440/merges.txt +0 -0
- checkpoint-440/model.safetensors +3 -0
- checkpoint-440/optimizer.pt +3 -0
- checkpoint-440/rng_state.pth +3 -0
- checkpoint-440/scheduler.pt +3 -0
- checkpoint-440/special_tokens_map.json +15 -0
- checkpoint-440/tokenizer.json +0 -0
- checkpoint-440/tokenizer_config.json +58 -0
- checkpoint-440/trainer_state.json +403 -0
- checkpoint-440/training_args.bin +3 -0
- checkpoint-440/vocab.json +0 -0
- checkpoint-550/config.json +68 -0
- checkpoint-550/merges.txt +0 -0
- checkpoint-550/model.safetensors +3 -0
- checkpoint-550/optimizer.pt +3 -0
- checkpoint-550/rng_state.pth +3 -0
- checkpoint-550/scheduler.pt +3 -0
- checkpoint-550/special_tokens_map.json +15 -0
- checkpoint-550/tokenizer.json +0 -0
- checkpoint-550/tokenizer_config.json +58 -0
- checkpoint-550/trainer_state.json +493 -0
- checkpoint-550/training_args.bin +3 -0
- checkpoint-550/vocab.json +0 -0
- config.json +68 -0
- label_map.json +21 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.json +0 -0
LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2025 Mykyta Kotenko
|
| 4 |
+
|
| 5 |
+
Based on RoBERTa model from Hugging Face Transformers library.
|
| 6 |
+
Original RoBERTa model: Copyright (c) Facebook, Inc. and its affiliates.
|
| 7 |
+
|
| 8 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 9 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 10 |
+
in the Software without restriction, including without limitation the rights
|
| 11 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 12 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 13 |
+
furnished to do so, subject to the following conditions:
|
| 14 |
+
|
| 15 |
+
The above copyright notice and this permission notice shall be included in all
|
| 16 |
+
copies or substantial portions of the Software.
|
| 17 |
+
|
| 18 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 19 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 20 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 21 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 22 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 23 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 24 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: mit
|
| 4 |
+
tags:
|
| 5 |
+
- token-classification
|
| 6 |
+
- named-entity-recognition
|
| 7 |
+
- ner
|
| 8 |
+
- contact-management
|
| 9 |
+
- roberta
|
| 10 |
+
base_model: roberta-base
|
| 11 |
+
datasets:
|
| 12 |
+
- custom
|
| 13 |
+
model-index:
|
| 14 |
+
- name: assistant-bot-ner-model
|
| 15 |
+
results:
|
| 16 |
+
- task:
|
| 17 |
+
type: token-classification
|
| 18 |
+
name: Named Entity Recognition
|
| 19 |
+
metrics:
|
| 20 |
+
- type: accuracy
|
| 21 |
+
value: 0.951
|
| 22 |
+
name: Accuracy
|
| 23 |
+
- type: f1
|
| 24 |
+
value: 0.946
|
| 25 |
+
name: F1 Score
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
# NER Model for Contact Management Assistant Bot
|
| 29 |
+
|
| 30 |
+
This model is a fine-tuned RoBERTa-base model for Named Entity Recognition (NER) in contact management tasks.
|
| 31 |
+
|
| 32 |
+
## Model Description
|
| 33 |
+
|
| 34 |
+
- **Developed by:** Mykyta Kotenko
|
| 35 |
+
- **Base Model:** [roberta-base](https://huggingface.co/roberta-base) by Facebook AI
|
| 36 |
+
- **Task:** Token Classification (Named Entity Recognition)
|
| 37 |
+
- **Language:** English
|
| 38 |
+
- **License:** MIT
|
| 39 |
+
- **Accuracy:** 95.1%
|
| 40 |
+
- **Entity Accuracy:** 93.7%
|
| 41 |
+
- **F1 Score:** 94.6%
|
| 42 |
+
|
| 43 |
+
## Supported Entities
|
| 44 |
+
|
| 45 |
+
This model extracts the following entity types:
|
| 46 |
+
|
| 47 |
+
- **NAME**: Person's full name
|
| 48 |
+
- **PHONE**: Phone numbers in various formats
|
| 49 |
+
- **EMAIL**: Email addresses
|
| 50 |
+
- **ADDRESS**: Full street addresses (including building numbers, street names, apartments, cities, states, ZIP codes)
|
| 51 |
+
- **BIRTHDAY**: Dates of birth
|
| 52 |
+
- **TAG**: Contact tags
|
| 53 |
+
- **NOTE_TEXT**: Note content
|
| 54 |
+
- **ID**: Contact/note identifiers
|
| 55 |
+
- **DAYS**: Time periods
|
| 56 |
+
|
| 57 |
+
## Usage
|
| 58 |
+
|
| 59 |
+
### Basic Usage
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
|
| 63 |
+
|
| 64 |
+
# Load model and tokenizer
|
| 65 |
+
tokenizer = AutoTokenizer.from_pretrained("mykytakotenko/assistant-bot-ner-model")
|
| 66 |
+
model = AutoModelForTokenClassification.from_pretrained("mykytakotenko/assistant-bot-ner-model")
|
| 67 |
+
|
| 68 |
+
# Create NER pipeline
|
| 69 |
+
ner_pipeline = pipeline(
|
| 70 |
+
"token-classification",
|
| 71 |
+
model=model,
|
| 72 |
+
tokenizer=tokenizer,
|
| 73 |
+
aggregation_strategy="simple" # Merge B-/I- tokens
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
# Extract entities
|
| 77 |
+
text = "Add contact John Smith 212-555-0123 john@example.com 123 Broadway, New York"
|
| 78 |
+
results = ner_pipeline(text)
|
| 79 |
+
|
| 80 |
+
for result in results:
|
| 81 |
+
print(f"{result['entity_group']}: {result['word']}")
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
**Output:**
|
| 85 |
+
```
|
| 86 |
+
NAME: John Smith
|
| 87 |
+
PHONE: 212-555-0123
|
| 88 |
+
EMAIL: john@example.com
|
| 89 |
+
ADDRESS: 123 Broadway, New York
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
### Advanced Usage with Address Recognition
|
| 93 |
+
|
| 94 |
+
```python
|
| 95 |
+
# Example with full address including building number
|
| 96 |
+
text = "Add contact Alon 212-555-0123 alon@example.com 45, 5 Ave, unit 34, New York"
|
| 97 |
+
results = ner_pipeline(text)
|
| 98 |
+
|
| 99 |
+
for result in results:
|
| 100 |
+
print(f"{result['entity_group']}: {result['word']}")
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
**Output:**
|
| 104 |
+
```
|
| 105 |
+
NAME: Alon
|
| 106 |
+
PHONE: 212-555-0123
|
| 107 |
+
EMAIL: alon@example.com
|
| 108 |
+
ADDRESS: 45, 5 Ave, unit 34, New York
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
### Batch Processing
|
| 112 |
+
|
| 113 |
+
```python
|
| 114 |
+
texts = [
|
| 115 |
+
"Add contact Sarah 718-555-4567 sarah@email.com lives at 123 Broadway, Apt 5B, NY 10001",
|
| 116 |
+
"Create contact Michael at 789 Park Avenue, Suite 12, Manhattan, NY 10021 phone 917-555-8901",
|
| 117 |
+
"Register David Martinez 1234 Sunset Boulevard, Los Angeles, CA 90028"
|
| 118 |
+
]
|
| 119 |
+
|
| 120 |
+
for text in texts:
|
| 121 |
+
results = ner_pipeline(text)
|
| 122 |
+
print(f"\nText: {text}")
|
| 123 |
+
for result in results:
|
| 124 |
+
print(f" - {result['entity_group']}: {result['word']}")
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
## Training Details
|
| 128 |
+
|
| 129 |
+
### Dataset
|
| 130 |
+
- **Size:** 2,185 training examples
|
| 131 |
+
- **ADDRESS entities:** 543 occurrences (including full street addresses with building numbers)
|
| 132 |
+
- **NAME entities:** 1,897 occurrences
|
| 133 |
+
- **PHONE entities:** 564 occurrences
|
| 134 |
+
- **EMAIL entities:** 415 occurrences
|
| 135 |
+
- **BIRTHDAY entities:** 252 occurrences
|
| 136 |
+
|
| 137 |
+
### Training Configuration
|
| 138 |
+
- **Base Model:** roberta-base
|
| 139 |
+
- **Learning Rate:** 3e-5
|
| 140 |
+
- **Batch Size:** 16
|
| 141 |
+
- **Max Length:** 128 tokens
|
| 142 |
+
- **Epochs:** 5
|
| 143 |
+
- **Optimizer:** AdamW
|
| 144 |
+
- **Training Framework:** Hugging Face Transformers
|
| 145 |
+
|
| 146 |
+
### Performance Metrics
|
| 147 |
+
|
| 148 |
+
| Metric | Value |
|
| 149 |
+
|--------|-------|
|
| 150 |
+
| Accuracy | 95.1% |
|
| 151 |
+
| Entity Accuracy | 93.7% |
|
| 152 |
+
| Precision | 94.9% |
|
| 153 |
+
| Recall | 95.1% |
|
| 154 |
+
| F1 Score | 94.6% |
|
| 155 |
+
|
| 156 |
+
## Key Features
|
| 157 |
+
|
| 158 |
+
### ✅ Full Address Recognition
|
| 159 |
+
Unlike many NER models that only recognize city names, this model recognizes **complete street addresses** including:
|
| 160 |
+
- Building numbers (45, 123, 1234, etc.)
|
| 161 |
+
- Street names (Broadway, 5 Ave, Sunset Boulevard, etc.)
|
| 162 |
+
- Unit/Apartment numbers (unit 34, Apt 5B, Suite 12, Floor 3)
|
| 163 |
+
- Cities and states (New York, NY, Los Angeles, CA, etc.)
|
| 164 |
+
- ZIP codes (10001, 90028, 77002, etc.)
|
| 165 |
+
|
| 166 |
+
### Example: Full Address Recognition
|
| 167 |
+
|
| 168 |
+
**Before (typical NER models):**
|
| 169 |
+
```
|
| 170 |
+
Input: "add address for Alon 45, 5 ave, unit 34, New York"
|
| 171 |
+
ADDRESS: "New York" ❌ (only city)
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
**After (this model):**
|
| 175 |
+
```
|
| 176 |
+
Input: "add address for Alon 45, 5 ave, unit 34, New York"
|
| 177 |
+
ADDRESS: "45, 5 ave, unit 34, New York" ✅ (full address with building number!)
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
## Example Predictions
|
| 181 |
+
|
| 182 |
+
### Example 1: Complete Contact
|
| 183 |
+
```python
|
| 184 |
+
text = "Add contact John Smith 212-555-0123 john@example.com 45, 5 Ave, unit 34, New York"
|
| 185 |
+
```
|
| 186 |
+
**Extracted Entities:**
|
| 187 |
+
- NAME: John Smith
|
| 188 |
+
- PHONE: 212-555-0123
|
| 189 |
+
- EMAIL: john@example.com
|
| 190 |
+
- ADDRESS: 45, 5 Ave, unit 34, New York
|
| 191 |
+
|
| 192 |
+
### Example 2: Address with ZIP Code
|
| 193 |
+
```python
|
| 194 |
+
text = "Create contact Sarah at 123 Broadway, Apt 5B, New York, NY 10001"
|
| 195 |
+
```
|
| 196 |
+
**Extracted Entities:**
|
| 197 |
+
- NAME: Sarah
|
| 198 |
+
- ADDRESS: 123 Broadway, Apt 5B, New York, NY 10001
|
| 199 |
+
|
| 200 |
+
### Example 3: Complex Address
|
| 201 |
+
```python
|
| 202 |
+
text = "Save contact for Michael at 789 Park Avenue, Suite 12, Manhattan, NY 10021 phone 917-555-8901"
|
| 203 |
+
```
|
| 204 |
+
**Extracted Entities:**
|
| 205 |
+
- NAME: Michael
|
| 206 |
+
- PHONE: 917-555-8901
|
| 207 |
+
- ADDRESS: 789 Park Avenue, Suite 12, Manhattan, NY 10021
|
| 208 |
+
|
| 209 |
+
### Example 4: Different City
|
| 210 |
+
```python
|
| 211 |
+
text = "Register David Martinez 1234 Sunset Boulevard, Los Angeles, CA 90028"
|
| 212 |
+
```
|
| 213 |
+
**Extracted Entities:**
|
| 214 |
+
- NAME: David Martinez
|
| 215 |
+
- ADDRESS: 1234 Sunset Boulevard, Los Angeles, CA 90028
|
| 216 |
+
|
| 217 |
+
## Intended Use
|
| 218 |
+
|
| 219 |
+
This model is designed for:
|
| 220 |
+
- Contact management applications
|
| 221 |
+
- Personal assistant bots
|
| 222 |
+
- CRM systems with natural language interface
|
| 223 |
+
- Address extraction from text
|
| 224 |
+
- Contact information parsing
|
| 225 |
+
|
| 226 |
+
## Limitations
|
| 227 |
+
|
| 228 |
+
- **Optimized for US-style addresses** - International addresses not yet in training data
|
| 229 |
+
- **Best performance on English text** - Other languages not supported
|
| 230 |
+
- **Contact management domain** - May not generalize well to other domains without fine-tuning
|
| 231 |
+
|
| 232 |
+
## Model Architecture
|
| 233 |
+
|
| 234 |
+
Based on RoBERTa (Robustly Optimized BERT Pretraining Approach):
|
| 235 |
+
- **Layers:** 12 transformer layers
|
| 236 |
+
- **Hidden size:** 768
|
| 237 |
+
- **Attention heads:** 12
|
| 238 |
+
- **Parameters:** ~125M
|
| 239 |
+
- **Task:** Token Classification with IOB2 tagging scheme
|
| 240 |
+
|
| 241 |
+
## Entity Label Format
|
| 242 |
+
|
| 243 |
+
The model uses IOB2 (Inside-Outside-Beginning) format:
|
| 244 |
+
- `B-{ENTITY}`: Beginning of entity
|
| 245 |
+
- `I-{ENTITY}`: Inside/continuation of entity
|
| 246 |
+
- `O`: Outside any entity
|
| 247 |
+
|
| 248 |
+
Example:
|
| 249 |
+
```
|
| 250 |
+
Tokens: ["Add", "contact", "John", "Smith", "212", "-", "555", "-", "0123"]
|
| 251 |
+
Labels: ["O", "O", "B-NAME", "I-NAME", "B-PHONE", "I-PHONE", "I-PHONE", "I-PHONE", "I-PHONE"]
|
| 252 |
+
```
|
| 253 |
+
|
| 254 |
+
## Citation
|
| 255 |
+
|
| 256 |
+
If you use this model, please cite:
|
| 257 |
+
|
| 258 |
+
```bibtex
|
| 259 |
+
@misc{kotenko2025nermodel,
|
| 260 |
+
author = {Kotenko, Mykyta},
|
| 261 |
+
title = {NER Model for Contact Management Assistant Bot},
|
| 262 |
+
year = {2025},
|
| 263 |
+
publisher = {Hugging Face},
|
| 264 |
+
howpublished = {\url{https://huggingface.co/mykytakotenko/assistant-bot-ner-model}},
|
| 265 |
+
note = {Based on RoBERTa by Facebook AI. Achieves 95.1\% accuracy with full address recognition including building numbers.}
|
| 266 |
+
}
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
## Acknowledgments
|
| 270 |
+
|
| 271 |
+
- **Base Model:** RoBERTa by Facebook AI Research
|
| 272 |
+
- **Framework:** Hugging Face Transformers
|
| 273 |
+
- **Training:** Fine-tuned on custom contact management dataset with 2,185 examples
|
| 274 |
+
- **Special Feature:** Enhanced address recognition with building numbers, apartments, and full street addresses
|
| 275 |
+
|
| 276 |
+
## Technical Improvements
|
| 277 |
+
|
| 278 |
+
This model includes several technical improvements over standard NER models:
|
| 279 |
+
|
| 280 |
+
1. **Enhanced Tokenization:** Improved handling of addresses with fuzzy matching algorithm
|
| 281 |
+
2. **Rich Training Data:** 115+ real-world address examples from major US cities
|
| 282 |
+
3. **Address Variations:** Multiple formats including "address-first" patterns
|
| 283 |
+
4. **High Accuracy:** 95.1% overall accuracy, 93.7% entity-level accuracy
|
| 284 |
+
|
| 285 |
+
## Updates
|
| 286 |
+
|
| 287 |
+
- **v1.0.0 (2025-01-18):** Initial release
|
| 288 |
+
- 95.1% accuracy
|
| 289 |
+
- Full address recognition with building numbers
|
| 290 |
+
- 2,185 training examples
|
| 291 |
+
- Support for 9 entity types
|
| 292 |
+
|
| 293 |
+
## License
|
| 294 |
+
|
| 295 |
+
MIT License - See LICENSE file for details.
|
| 296 |
+
|
| 297 |
+
This model is a derivative work based on RoBERTa, which is licensed under MIT License by Facebook, Inc.
|
| 298 |
+
|
| 299 |
+
## Contact
|
| 300 |
+
|
| 301 |
+
- **Author:** Mykyta Kotenko
|
| 302 |
+
- **Repository:** [assistant-bot](https://github.com/kms-engineer/assistant-bot)
|
| 303 |
+
- **Issues:** Please report issues on GitHub
|
| 304 |
+
- **Hugging Face:** [mykytakotenko](https://huggingface.co/mykytakotenko)
|
| 305 |
+
|
| 306 |
+
## Related Models
|
| 307 |
+
|
| 308 |
+
- **Intent Classifier:** [mykytakotenko/assistant-bot-intent-classifier](https://huggingface.co/mykytakotenko/assistant-bot-intent-classifier)
|
| 309 |
+
- **Dataset:** [mykytakotenko/assistant-bot-ner-dataset](https://huggingface.co/datasets/mykytakotenko/assistant-bot-ner-dataset)
|
checkpoint-440/config.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RobertaForTokenClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "O",
|
| 15 |
+
"1": "B-NAME",
|
| 16 |
+
"2": "I-NAME",
|
| 17 |
+
"3": "B-PHONE",
|
| 18 |
+
"4": "I-PHONE",
|
| 19 |
+
"5": "B-EMAIL",
|
| 20 |
+
"6": "I-EMAIL",
|
| 21 |
+
"7": "B-ADDRESS",
|
| 22 |
+
"8": "I-ADDRESS",
|
| 23 |
+
"9": "B-BIRTHDAY",
|
| 24 |
+
"10": "I-BIRTHDAY",
|
| 25 |
+
"11": "B-TAG",
|
| 26 |
+
"12": "I-TAG",
|
| 27 |
+
"13": "B-NOTE_TEXT",
|
| 28 |
+
"14": "I-NOTE_TEXT",
|
| 29 |
+
"15": "B-ID",
|
| 30 |
+
"16": "I-ID",
|
| 31 |
+
"17": "B-DAYS",
|
| 32 |
+
"18": "I-DAYS"
|
| 33 |
+
},
|
| 34 |
+
"initializer_range": 0.02,
|
| 35 |
+
"intermediate_size": 3072,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"B-ADDRESS": 7,
|
| 38 |
+
"B-BIRTHDAY": 9,
|
| 39 |
+
"B-DAYS": 17,
|
| 40 |
+
"B-EMAIL": 5,
|
| 41 |
+
"B-ID": 15,
|
| 42 |
+
"B-NAME": 1,
|
| 43 |
+
"B-NOTE_TEXT": 13,
|
| 44 |
+
"B-PHONE": 3,
|
| 45 |
+
"B-TAG": 11,
|
| 46 |
+
"I-ADDRESS": 8,
|
| 47 |
+
"I-BIRTHDAY": 10,
|
| 48 |
+
"I-DAYS": 18,
|
| 49 |
+
"I-EMAIL": 6,
|
| 50 |
+
"I-ID": 16,
|
| 51 |
+
"I-NAME": 2,
|
| 52 |
+
"I-NOTE_TEXT": 14,
|
| 53 |
+
"I-PHONE": 4,
|
| 54 |
+
"I-TAG": 12,
|
| 55 |
+
"O": 0
|
| 56 |
+
},
|
| 57 |
+
"layer_norm_eps": 1e-05,
|
| 58 |
+
"max_position_embeddings": 514,
|
| 59 |
+
"model_type": "roberta",
|
| 60 |
+
"num_attention_heads": 12,
|
| 61 |
+
"num_hidden_layers": 12,
|
| 62 |
+
"pad_token_id": 1,
|
| 63 |
+
"position_embedding_type": "absolute",
|
| 64 |
+
"transformers_version": "4.57.0",
|
| 65 |
+
"type_vocab_size": 1,
|
| 66 |
+
"use_cache": true,
|
| 67 |
+
"vocab_size": 50265
|
| 68 |
+
}
|
checkpoint-440/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-440/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e6925d4464558c4fa2b499c0649d19e82b2051fa2648e86740bd0377a33b38b
|
| 3 |
+
size 496302532
|
checkpoint-440/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dde9e5ce97a8e1b19da745994c3d70b89b7553cbcfa4d2d39e5671779e1b1d74
|
| 3 |
+
size 992718539
|
checkpoint-440/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67627e3b026c4c5d776980914bd7f99f2f9814ae6ac5a3bd1d93ee8d2ff6784f
|
| 3 |
+
size 14455
|
checkpoint-440/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c22bfc28a19135b4e6445d20b99bbb370fc9d3030a0d53133fe99a0bffe1765d
|
| 3 |
+
size 1465
|
checkpoint-440/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 |
+
}
|
checkpoint-440/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-440/tokenizer_config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "<s>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "<pad>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "</s>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": true,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "<unk>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": true,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"50264": {
|
| 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 |
+
"model_max_length": 512,
|
| 53 |
+
"pad_token": "<pad>",
|
| 54 |
+
"sep_token": "</s>",
|
| 55 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 56 |
+
"trim_offsets": true,
|
| 57 |
+
"unk_token": "<unk>"
|
| 58 |
+
}
|
checkpoint-440/trainer_state.json
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 440,
|
| 3 |
+
"best_metric": 0.940876969962022,
|
| 4 |
+
"best_model_checkpoint": "models/ner_model/checkpoint-440",
|
| 5 |
+
"epoch": 4.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 440,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.09090909090909091,
|
| 14 |
+
"grad_norm": 6.7610626220703125,
|
| 15 |
+
"learning_rate": 2.7e-06,
|
| 16 |
+
"loss": 3.1763,
|
| 17 |
+
"step": 10
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.18181818181818182,
|
| 21 |
+
"grad_norm": 8.019376754760742,
|
| 22 |
+
"learning_rate": 5.7000000000000005e-06,
|
| 23 |
+
"loss": 3.0538,
|
| 24 |
+
"step": 20
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.2727272727272727,
|
| 28 |
+
"grad_norm": 8.582132339477539,
|
| 29 |
+
"learning_rate": 8.7e-06,
|
| 30 |
+
"loss": 2.7102,
|
| 31 |
+
"step": 30
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.36363636363636365,
|
| 35 |
+
"grad_norm": 7.020857810974121,
|
| 36 |
+
"learning_rate": 1.1700000000000001e-05,
|
| 37 |
+
"loss": 1.9306,
|
| 38 |
+
"step": 40
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.45454545454545453,
|
| 42 |
+
"grad_norm": 6.591127872467041,
|
| 43 |
+
"learning_rate": 1.47e-05,
|
| 44 |
+
"loss": 1.5462,
|
| 45 |
+
"step": 50
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.5454545454545454,
|
| 49 |
+
"grad_norm": 6.085566520690918,
|
| 50 |
+
"learning_rate": 1.77e-05,
|
| 51 |
+
"loss": 1.158,
|
| 52 |
+
"step": 60
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.6363636363636364,
|
| 56 |
+
"grad_norm": 10.360540390014648,
|
| 57 |
+
"learning_rate": 2.07e-05,
|
| 58 |
+
"loss": 0.88,
|
| 59 |
+
"step": 70
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.7272727272727273,
|
| 63 |
+
"grad_norm": 4.375982761383057,
|
| 64 |
+
"learning_rate": 2.37e-05,
|
| 65 |
+
"loss": 0.6575,
|
| 66 |
+
"step": 80
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.8181818181818182,
|
| 70 |
+
"grad_norm": 10.760860443115234,
|
| 71 |
+
"learning_rate": 2.6700000000000002e-05,
|
| 72 |
+
"loss": 0.6622,
|
| 73 |
+
"step": 90
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 0.9090909090909091,
|
| 77 |
+
"grad_norm": 8.98079776763916,
|
| 78 |
+
"learning_rate": 2.97e-05,
|
| 79 |
+
"loss": 0.6058,
|
| 80 |
+
"step": 100
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 1.0,
|
| 84 |
+
"grad_norm": 7.706189155578613,
|
| 85 |
+
"learning_rate": 2.94e-05,
|
| 86 |
+
"loss": 0.509,
|
| 87 |
+
"step": 110
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"epoch": 1.0,
|
| 91 |
+
"eval_accuracy": 0.8916666666666667,
|
| 92 |
+
"eval_entity_accuracy": 0.8543662742950999,
|
| 93 |
+
"eval_f1": 0.8670505036976651,
|
| 94 |
+
"eval_loss": 0.38678058981895447,
|
| 95 |
+
"eval_precision": 0.861471336118019,
|
| 96 |
+
"eval_recall": 0.8916666666666667,
|
| 97 |
+
"eval_runtime": 2.6176,
|
| 98 |
+
"eval_samples_per_second": 166.949,
|
| 99 |
+
"eval_steps_per_second": 10.697,
|
| 100 |
+
"step": 110
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 1.0909090909090908,
|
| 104 |
+
"grad_norm": 4.655617713928223,
|
| 105 |
+
"learning_rate": 2.873333333333333e-05,
|
| 106 |
+
"loss": 0.3582,
|
| 107 |
+
"step": 120
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 1.1818181818181819,
|
| 111 |
+
"grad_norm": 6.469715118408203,
|
| 112 |
+
"learning_rate": 2.8066666666666667e-05,
|
| 113 |
+
"loss": 0.4039,
|
| 114 |
+
"step": 130
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"epoch": 1.2727272727272727,
|
| 118 |
+
"grad_norm": 6.508236408233643,
|
| 119 |
+
"learning_rate": 2.7400000000000002e-05,
|
| 120 |
+
"loss": 0.3456,
|
| 121 |
+
"step": 140
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"epoch": 1.3636363636363638,
|
| 125 |
+
"grad_norm": 7.3737874031066895,
|
| 126 |
+
"learning_rate": 2.6733333333333334e-05,
|
| 127 |
+
"loss": 0.4672,
|
| 128 |
+
"step": 150
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"epoch": 1.4545454545454546,
|
| 132 |
+
"grad_norm": 6.929003715515137,
|
| 133 |
+
"learning_rate": 2.606666666666667e-05,
|
| 134 |
+
"loss": 0.3472,
|
| 135 |
+
"step": 160
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"epoch": 1.5454545454545454,
|
| 139 |
+
"grad_norm": 5.1204986572265625,
|
| 140 |
+
"learning_rate": 2.54e-05,
|
| 141 |
+
"loss": 0.3808,
|
| 142 |
+
"step": 170
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"epoch": 1.6363636363636362,
|
| 146 |
+
"grad_norm": 3.2450709342956543,
|
| 147 |
+
"learning_rate": 2.4733333333333333e-05,
|
| 148 |
+
"loss": 0.2377,
|
| 149 |
+
"step": 180
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"epoch": 1.7272727272727273,
|
| 153 |
+
"grad_norm": 3.943157196044922,
|
| 154 |
+
"learning_rate": 2.4066666666666664e-05,
|
| 155 |
+
"loss": 0.34,
|
| 156 |
+
"step": 190
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"epoch": 1.8181818181818183,
|
| 160 |
+
"grad_norm": 4.091476917266846,
|
| 161 |
+
"learning_rate": 2.3400000000000003e-05,
|
| 162 |
+
"loss": 0.3028,
|
| 163 |
+
"step": 200
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"epoch": 1.9090909090909092,
|
| 167 |
+
"grad_norm": 7.115076541900635,
|
| 168 |
+
"learning_rate": 2.2733333333333335e-05,
|
| 169 |
+
"loss": 0.4381,
|
| 170 |
+
"step": 210
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"epoch": 2.0,
|
| 174 |
+
"grad_norm": 17.910232543945312,
|
| 175 |
+
"learning_rate": 2.2066666666666667e-05,
|
| 176 |
+
"loss": 0.2634,
|
| 177 |
+
"step": 220
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"epoch": 2.0,
|
| 181 |
+
"eval_accuracy": 0.9202830188679245,
|
| 182 |
+
"eval_entity_accuracy": 0.8863947440459896,
|
| 183 |
+
"eval_f1": 0.9039013364488941,
|
| 184 |
+
"eval_loss": 0.2899700701236725,
|
| 185 |
+
"eval_precision": 0.9016844893810626,
|
| 186 |
+
"eval_recall": 0.9202830188679245,
|
| 187 |
+
"eval_runtime": 2.6518,
|
| 188 |
+
"eval_samples_per_second": 164.792,
|
| 189 |
+
"eval_steps_per_second": 10.559,
|
| 190 |
+
"step": 220
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"epoch": 2.090909090909091,
|
| 194 |
+
"grad_norm": 11.105402946472168,
|
| 195 |
+
"learning_rate": 2.1400000000000002e-05,
|
| 196 |
+
"loss": 0.2834,
|
| 197 |
+
"step": 230
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"epoch": 2.1818181818181817,
|
| 201 |
+
"grad_norm": 6.341246604919434,
|
| 202 |
+
"learning_rate": 2.0733333333333334e-05,
|
| 203 |
+
"loss": 0.2477,
|
| 204 |
+
"step": 240
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"epoch": 2.2727272727272725,
|
| 208 |
+
"grad_norm": 4.475722312927246,
|
| 209 |
+
"learning_rate": 2.0066666666666665e-05,
|
| 210 |
+
"loss": 0.2042,
|
| 211 |
+
"step": 250
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"epoch": 2.3636363636363638,
|
| 215 |
+
"grad_norm": 3.8562307357788086,
|
| 216 |
+
"learning_rate": 1.9399999999999997e-05,
|
| 217 |
+
"loss": 0.2935,
|
| 218 |
+
"step": 260
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"epoch": 2.4545454545454546,
|
| 222 |
+
"grad_norm": 3.3338725566864014,
|
| 223 |
+
"learning_rate": 1.8733333333333336e-05,
|
| 224 |
+
"loss": 0.2232,
|
| 225 |
+
"step": 270
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"epoch": 2.5454545454545454,
|
| 229 |
+
"grad_norm": 3.610917568206787,
|
| 230 |
+
"learning_rate": 1.8066666666666668e-05,
|
| 231 |
+
"loss": 0.2578,
|
| 232 |
+
"step": 280
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"epoch": 2.6363636363636362,
|
| 236 |
+
"grad_norm": 6.411995887756348,
|
| 237 |
+
"learning_rate": 1.74e-05,
|
| 238 |
+
"loss": 0.2617,
|
| 239 |
+
"step": 290
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"epoch": 2.7272727272727275,
|
| 243 |
+
"grad_norm": 18.01243782043457,
|
| 244 |
+
"learning_rate": 1.6733333333333335e-05,
|
| 245 |
+
"loss": 0.2323,
|
| 246 |
+
"step": 300
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"epoch": 2.8181818181818183,
|
| 250 |
+
"grad_norm": 6.243415832519531,
|
| 251 |
+
"learning_rate": 1.6066666666666666e-05,
|
| 252 |
+
"loss": 0.2226,
|
| 253 |
+
"step": 310
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"epoch": 2.909090909090909,
|
| 257 |
+
"grad_norm": 3.8026018142700195,
|
| 258 |
+
"learning_rate": 1.5399999999999998e-05,
|
| 259 |
+
"loss": 0.1841,
|
| 260 |
+
"step": 320
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"epoch": 3.0,
|
| 264 |
+
"grad_norm": 4.6072797775268555,
|
| 265 |
+
"learning_rate": 1.4733333333333333e-05,
|
| 266 |
+
"loss": 0.2261,
|
| 267 |
+
"step": 330
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"epoch": 3.0,
|
| 271 |
+
"eval_accuracy": 0.9429245283018868,
|
| 272 |
+
"eval_entity_accuracy": 0.9280043799616753,
|
| 273 |
+
"eval_f1": 0.9367311510359461,
|
| 274 |
+
"eval_loss": 0.22553826868534088,
|
| 275 |
+
"eval_precision": 0.9404566874612201,
|
| 276 |
+
"eval_recall": 0.9429245283018868,
|
| 277 |
+
"eval_runtime": 2.6044,
|
| 278 |
+
"eval_samples_per_second": 167.791,
|
| 279 |
+
"eval_steps_per_second": 10.751,
|
| 280 |
+
"step": 330
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"epoch": 3.090909090909091,
|
| 284 |
+
"grad_norm": 3.598348617553711,
|
| 285 |
+
"learning_rate": 1.4066666666666667e-05,
|
| 286 |
+
"loss": 0.2008,
|
| 287 |
+
"step": 340
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"epoch": 3.1818181818181817,
|
| 291 |
+
"grad_norm": 3.3810553550720215,
|
| 292 |
+
"learning_rate": 1.34e-05,
|
| 293 |
+
"loss": 0.1801,
|
| 294 |
+
"step": 350
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"epoch": 3.2727272727272725,
|
| 298 |
+
"grad_norm": 2.5113697052001953,
|
| 299 |
+
"learning_rate": 1.2733333333333334e-05,
|
| 300 |
+
"loss": 0.1917,
|
| 301 |
+
"step": 360
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"epoch": 3.3636363636363638,
|
| 305 |
+
"grad_norm": 5.911487102508545,
|
| 306 |
+
"learning_rate": 1.2066666666666666e-05,
|
| 307 |
+
"loss": 0.1861,
|
| 308 |
+
"step": 370
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"epoch": 3.4545454545454546,
|
| 312 |
+
"grad_norm": 4.358926296234131,
|
| 313 |
+
"learning_rate": 1.1400000000000001e-05,
|
| 314 |
+
"loss": 0.1568,
|
| 315 |
+
"step": 380
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"epoch": 3.5454545454545454,
|
| 319 |
+
"grad_norm": 3.0283701419830322,
|
| 320 |
+
"learning_rate": 1.0733333333333333e-05,
|
| 321 |
+
"loss": 0.2127,
|
| 322 |
+
"step": 390
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"epoch": 3.6363636363636362,
|
| 326 |
+
"grad_norm": 8.457649230957031,
|
| 327 |
+
"learning_rate": 1.0066666666666666e-05,
|
| 328 |
+
"loss": 0.1752,
|
| 329 |
+
"step": 400
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"epoch": 3.7272727272727275,
|
| 333 |
+
"grad_norm": 2.7831077575683594,
|
| 334 |
+
"learning_rate": 9.400000000000001e-06,
|
| 335 |
+
"loss": 0.2328,
|
| 336 |
+
"step": 410
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"epoch": 3.8181818181818183,
|
| 340 |
+
"grad_norm": 2.8275463581085205,
|
| 341 |
+
"learning_rate": 8.733333333333333e-06,
|
| 342 |
+
"loss": 0.1345,
|
| 343 |
+
"step": 420
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"epoch": 3.909090909090909,
|
| 347 |
+
"grad_norm": 2.621518850326538,
|
| 348 |
+
"learning_rate": 8.066666666666667e-06,
|
| 349 |
+
"loss": 0.1343,
|
| 350 |
+
"step": 430
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"epoch": 4.0,
|
| 354 |
+
"grad_norm": 12.00428295135498,
|
| 355 |
+
"learning_rate": 7.4e-06,
|
| 356 |
+
"loss": 0.1415,
|
| 357 |
+
"step": 440
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"epoch": 4.0,
|
| 361 |
+
"eval_accuracy": 0.9476415094339623,
|
| 362 |
+
"eval_entity_accuracy": 0.9277306323569668,
|
| 363 |
+
"eval_f1": 0.940876969962022,
|
| 364 |
+
"eval_loss": 0.20769040286540985,
|
| 365 |
+
"eval_precision": 0.9463580459003759,
|
| 366 |
+
"eval_recall": 0.9476415094339623,
|
| 367 |
+
"eval_runtime": 2.6645,
|
| 368 |
+
"eval_samples_per_second": 164.008,
|
| 369 |
+
"eval_steps_per_second": 10.509,
|
| 370 |
+
"step": 440
|
| 371 |
+
}
|
| 372 |
+
],
|
| 373 |
+
"logging_steps": 10,
|
| 374 |
+
"max_steps": 550,
|
| 375 |
+
"num_input_tokens_seen": 0,
|
| 376 |
+
"num_train_epochs": 5,
|
| 377 |
+
"save_steps": 500,
|
| 378 |
+
"stateful_callbacks": {
|
| 379 |
+
"EarlyStoppingCallback": {
|
| 380 |
+
"args": {
|
| 381 |
+
"early_stopping_patience": 3,
|
| 382 |
+
"early_stopping_threshold": 0.0
|
| 383 |
+
},
|
| 384 |
+
"attributes": {
|
| 385 |
+
"early_stopping_patience_counter": 0
|
| 386 |
+
}
|
| 387 |
+
},
|
| 388 |
+
"TrainerControl": {
|
| 389 |
+
"args": {
|
| 390 |
+
"should_epoch_stop": false,
|
| 391 |
+
"should_evaluate": false,
|
| 392 |
+
"should_log": false,
|
| 393 |
+
"should_save": true,
|
| 394 |
+
"should_training_stop": false
|
| 395 |
+
},
|
| 396 |
+
"attributes": {}
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
"total_flos": 456816930902016.0,
|
| 400 |
+
"train_batch_size": 16,
|
| 401 |
+
"trial_name": null,
|
| 402 |
+
"trial_params": null
|
| 403 |
+
}
|
checkpoint-440/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b10c00a9a1c9932d65673b77c6d1b79c2c5dff3551979c1efd6bd5406bf6626
|
| 3 |
+
size 5777
|
checkpoint-440/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-550/config.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RobertaForTokenClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "O",
|
| 15 |
+
"1": "B-NAME",
|
| 16 |
+
"2": "I-NAME",
|
| 17 |
+
"3": "B-PHONE",
|
| 18 |
+
"4": "I-PHONE",
|
| 19 |
+
"5": "B-EMAIL",
|
| 20 |
+
"6": "I-EMAIL",
|
| 21 |
+
"7": "B-ADDRESS",
|
| 22 |
+
"8": "I-ADDRESS",
|
| 23 |
+
"9": "B-BIRTHDAY",
|
| 24 |
+
"10": "I-BIRTHDAY",
|
| 25 |
+
"11": "B-TAG",
|
| 26 |
+
"12": "I-TAG",
|
| 27 |
+
"13": "B-NOTE_TEXT",
|
| 28 |
+
"14": "I-NOTE_TEXT",
|
| 29 |
+
"15": "B-ID",
|
| 30 |
+
"16": "I-ID",
|
| 31 |
+
"17": "B-DAYS",
|
| 32 |
+
"18": "I-DAYS"
|
| 33 |
+
},
|
| 34 |
+
"initializer_range": 0.02,
|
| 35 |
+
"intermediate_size": 3072,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"B-ADDRESS": 7,
|
| 38 |
+
"B-BIRTHDAY": 9,
|
| 39 |
+
"B-DAYS": 17,
|
| 40 |
+
"B-EMAIL": 5,
|
| 41 |
+
"B-ID": 15,
|
| 42 |
+
"B-NAME": 1,
|
| 43 |
+
"B-NOTE_TEXT": 13,
|
| 44 |
+
"B-PHONE": 3,
|
| 45 |
+
"B-TAG": 11,
|
| 46 |
+
"I-ADDRESS": 8,
|
| 47 |
+
"I-BIRTHDAY": 10,
|
| 48 |
+
"I-DAYS": 18,
|
| 49 |
+
"I-EMAIL": 6,
|
| 50 |
+
"I-ID": 16,
|
| 51 |
+
"I-NAME": 2,
|
| 52 |
+
"I-NOTE_TEXT": 14,
|
| 53 |
+
"I-PHONE": 4,
|
| 54 |
+
"I-TAG": 12,
|
| 55 |
+
"O": 0
|
| 56 |
+
},
|
| 57 |
+
"layer_norm_eps": 1e-05,
|
| 58 |
+
"max_position_embeddings": 514,
|
| 59 |
+
"model_type": "roberta",
|
| 60 |
+
"num_attention_heads": 12,
|
| 61 |
+
"num_hidden_layers": 12,
|
| 62 |
+
"pad_token_id": 1,
|
| 63 |
+
"position_embedding_type": "absolute",
|
| 64 |
+
"transformers_version": "4.57.0",
|
| 65 |
+
"type_vocab_size": 1,
|
| 66 |
+
"use_cache": true,
|
| 67 |
+
"vocab_size": 50265
|
| 68 |
+
}
|
checkpoint-550/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-550/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:957b3bb302656a94b3d310dbb314687051d3ec5466f0007ec9935e7cbb2c3dca
|
| 3 |
+
size 496302532
|
checkpoint-550/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c93dd40f9e9461168846f2f3a281b115fb0ade484d2c1ad57ebf3053dc98d49
|
| 3 |
+
size 992718539
|
checkpoint-550/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b652c6269b998b96ab924b2734c0818fab436c642524e13fc6cd4d9082e62b5
|
| 3 |
+
size 14455
|
checkpoint-550/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8347c87874a9ce917c0e044950f2dad7926c4a36308ea197e55b33fd6803a815
|
| 3 |
+
size 1465
|
checkpoint-550/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 |
+
}
|
checkpoint-550/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-550/tokenizer_config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "<s>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "<pad>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "</s>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": true,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "<unk>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": true,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"50264": {
|
| 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 |
+
"model_max_length": 512,
|
| 53 |
+
"pad_token": "<pad>",
|
| 54 |
+
"sep_token": "</s>",
|
| 55 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 56 |
+
"trim_offsets": true,
|
| 57 |
+
"unk_token": "<unk>"
|
|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,
|
| 4 |
+
"best_model_checkpoint": "models/ner_model/checkpoint-550",
|
| 5 |
+
"epoch": 5.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 550,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.09090909090909091,
|
| 14 |
+
"grad_norm": 6.7610626220703125,
|
| 15 |
+
"learning_rate": 2.7e-06,
|
| 16 |
+
"loss": 3.1763,
|
| 17 |
+
"step": 10
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.18181818181818182,
|
| 21 |
+
"grad_norm": 8.019376754760742,
|
| 22 |
+
"learning_rate": 5.7000000000000005e-06,
|
| 23 |
+
"loss": 3.0538,
|
| 24 |
+
"step": 20
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.2727272727272727,
|
| 28 |
+
"grad_norm": 8.582132339477539,
|
| 29 |
+
"learning_rate": 8.7e-06,
|
| 30 |
+
"loss": 2.7102,
|
| 31 |
+
"step": 30
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.36363636363636365,
|
| 35 |
+
"grad_norm": 7.020857810974121,
|
| 36 |
+
"learning_rate": 1.1700000000000001e-05,
|
| 37 |
+
"loss": 1.9306,
|
| 38 |
+
"step": 40
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.45454545454545453,
|
| 42 |
+
"grad_norm": 6.591127872467041,
|
| 43 |
+
"learning_rate": 1.47e-05,
|
| 44 |
+
"loss": 1.5462,
|
| 45 |
+
"step": 50
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.5454545454545454,
|
| 49 |
+
"grad_norm": 6.085566520690918,
|
| 50 |
+
"learning_rate": 1.77e-05,
|
| 51 |
+
"loss": 1.158,
|
| 52 |
+
"step": 60
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.6363636363636364,
|
| 56 |
+
"grad_norm": 10.360540390014648,
|
| 57 |
+
"learning_rate": 2.07e-05,
|
| 58 |
+
"loss": 0.88,
|
| 59 |
+
"step": 70
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.7272727272727273,
|
| 63 |
+
"grad_norm": 4.375982761383057,
|
| 64 |
+
"learning_rate": 2.37e-05,
|
| 65 |
+
"loss": 0.6575,
|
| 66 |
+
"step": 80
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.8181818181818182,
|
| 70 |
+
"grad_norm": 10.760860443115234,
|
| 71 |
+
"learning_rate": 2.6700000000000002e-05,
|
| 72 |
+
"loss": 0.6622,
|
| 73 |
+
"step": 90
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 0.9090909090909091,
|
| 77 |
+
"grad_norm": 8.98079776763916,
|
| 78 |
+
"learning_rate": 2.97e-05,
|
| 79 |
+
"loss": 0.6058,
|
| 80 |
+
"step": 100
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 1.0,
|
| 84 |
+
"grad_norm": 7.706189155578613,
|
| 85 |
+
"learning_rate": 2.94e-05,
|
| 86 |
+
"loss": 0.509,
|
| 87 |
+
"step": 110
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"epoch": 1.0,
|
| 91 |
+
"eval_accuracy": 0.8916666666666667,
|
| 92 |
+
"eval_entity_accuracy": 0.8543662742950999,
|
| 93 |
+
"eval_f1": 0.8670505036976651,
|
| 94 |
+
"eval_loss": 0.38678058981895447,
|
| 95 |
+
"eval_precision": 0.861471336118019,
|
| 96 |
+
"eval_recall": 0.8916666666666667,
|
| 97 |
+
"eval_runtime": 2.6176,
|
| 98 |
+
"eval_samples_per_second": 166.949,
|
| 99 |
+
"eval_steps_per_second": 10.697,
|
| 100 |
+
"step": 110
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 1.0909090909090908,
|
| 104 |
+
"grad_norm": 4.655617713928223,
|
| 105 |
+
"learning_rate": 2.873333333333333e-05,
|
| 106 |
+
"loss": 0.3582,
|
| 107 |
+
"step": 120
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 1.1818181818181819,
|
| 111 |
+
"grad_norm": 6.469715118408203,
|
| 112 |
+
"learning_rate": 2.8066666666666667e-05,
|
| 113 |
+
"loss": 0.4039,
|
| 114 |
+
"step": 130
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"epoch": 1.2727272727272727,
|
| 118 |
+
"grad_norm": 6.508236408233643,
|
| 119 |
+
"learning_rate": 2.7400000000000002e-05,
|
| 120 |
+
"loss": 0.3456,
|
| 121 |
+
"step": 140
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"epoch": 1.3636363636363638,
|
| 125 |
+
"grad_norm": 7.3737874031066895,
|
| 126 |
+
"learning_rate": 2.6733333333333334e-05,
|
| 127 |
+
"loss": 0.4672,
|
| 128 |
+
"step": 150
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"epoch": 1.4545454545454546,
|
| 132 |
+
"grad_norm": 6.929003715515137,
|
| 133 |
+
"learning_rate": 2.606666666666667e-05,
|
| 134 |
+
"loss": 0.3472,
|
| 135 |
+
"step": 160
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"epoch": 1.5454545454545454,
|
| 139 |
+
"grad_norm": 5.1204986572265625,
|
| 140 |
+
"learning_rate": 2.54e-05,
|
| 141 |
+
"loss": 0.3808,
|
| 142 |
+
"step": 170
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"epoch": 1.6363636363636362,
|
| 146 |
+
"grad_norm": 3.2450709342956543,
|
| 147 |
+
"learning_rate": 2.4733333333333333e-05,
|
| 148 |
+
"loss": 0.2377,
|
| 149 |
+
"step": 180
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"epoch": 1.7272727272727273,
|
| 153 |
+
"grad_norm": 3.943157196044922,
|
| 154 |
+
"learning_rate": 2.4066666666666664e-05,
|
| 155 |
+
"loss": 0.34,
|
| 156 |
+
"step": 190
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"epoch": 1.8181818181818183,
|
| 160 |
+
"grad_norm": 4.091476917266846,
|
| 161 |
+
"learning_rate": 2.3400000000000003e-05,
|
| 162 |
+
"loss": 0.3028,
|
| 163 |
+
"step": 200
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"epoch": 1.9090909090909092,
|
| 167 |
+
"grad_norm": 7.115076541900635,
|
| 168 |
+
"learning_rate": 2.2733333333333335e-05,
|
| 169 |
+
"loss": 0.4381,
|
| 170 |
+
"step": 210
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"epoch": 2.0,
|
| 174 |
+
"grad_norm": 17.910232543945312,
|
| 175 |
+
"learning_rate": 2.2066666666666667e-05,
|
| 176 |
+
"loss": 0.2634,
|
| 177 |
+
"step": 220
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"epoch": 2.0,
|
| 181 |
+
"eval_accuracy": 0.9202830188679245,
|
| 182 |
+
"eval_entity_accuracy": 0.8863947440459896,
|
| 183 |
+
"eval_f1": 0.9039013364488941,
|
| 184 |
+
"eval_loss": 0.2899700701236725,
|
| 185 |
+
"eval_precision": 0.9016844893810626,
|
| 186 |
+
"eval_recall": 0.9202830188679245,
|
| 187 |
+
"eval_runtime": 2.6518,
|
| 188 |
+
"eval_samples_per_second": 164.792,
|
| 189 |
+
"eval_steps_per_second": 10.559,
|
| 190 |
+
"step": 220
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"epoch": 2.090909090909091,
|
| 194 |
+
"grad_norm": 11.105402946472168,
|
| 195 |
+
"learning_rate": 2.1400000000000002e-05,
|
| 196 |
+
"loss": 0.2834,
|
| 197 |
+
"step": 230
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"epoch": 2.1818181818181817,
|
| 201 |
+
"grad_norm": 6.341246604919434,
|
| 202 |
+
"learning_rate": 2.0733333333333334e-05,
|
| 203 |
+
"loss": 0.2477,
|
| 204 |
+
"step": 240
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"epoch": 2.2727272727272725,
|
| 208 |
+
"grad_norm": 4.475722312927246,
|
| 209 |
+
"learning_rate": 2.0066666666666665e-05,
|
| 210 |
+
"loss": 0.2042,
|
| 211 |
+
"step": 250
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"epoch": 2.3636363636363638,
|
| 215 |
+
"grad_norm": 3.8562307357788086,
|
| 216 |
+
"learning_rate": 1.9399999999999997e-05,
|
| 217 |
+
"loss": 0.2935,
|
| 218 |
+
"step": 260
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"epoch": 2.4545454545454546,
|
| 222 |
+
"grad_norm": 3.3338725566864014,
|
| 223 |
+
"learning_rate": 1.8733333333333336e-05,
|
| 224 |
+
"loss": 0.2232,
|
| 225 |
+
"step": 270
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"epoch": 2.5454545454545454,
|
| 229 |
+
"grad_norm": 3.610917568206787,
|
| 230 |
+
"learning_rate": 1.8066666666666668e-05,
|
| 231 |
+
"loss": 0.2578,
|
| 232 |
+
"step": 280
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"epoch": 2.6363636363636362,
|
| 236 |
+
"grad_norm": 6.411995887756348,
|
| 237 |
+
"learning_rate": 1.74e-05,
|
| 238 |
+
"loss": 0.2617,
|
| 239 |
+
"step": 290
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"epoch": 2.7272727272727275,
|
| 243 |
+
"grad_norm": 18.01243782043457,
|
| 244 |
+
"learning_rate": 1.6733333333333335e-05,
|
| 245 |
+
"loss": 0.2323,
|
| 246 |
+
"step": 300
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"epoch": 2.8181818181818183,
|
| 250 |
+
"grad_norm": 6.243415832519531,
|
| 251 |
+
"learning_rate": 1.6066666666666666e-05,
|
| 252 |
+
"loss": 0.2226,
|
| 253 |
+
"step": 310
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"epoch": 2.909090909090909,
|
| 257 |
+
"grad_norm": 3.8026018142700195,
|
| 258 |
+
"learning_rate": 1.5399999999999998e-05,
|
| 259 |
+
"loss": 0.1841,
|
| 260 |
+
"step": 320
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"epoch": 3.0,
|
| 264 |
+
"grad_norm": 4.6072797775268555,
|
| 265 |
+
"learning_rate": 1.4733333333333333e-05,
|
| 266 |
+
"loss": 0.2261,
|
| 267 |
+
"step": 330
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"epoch": 3.0,
|
| 271 |
+
"eval_accuracy": 0.9429245283018868,
|
| 272 |
+
"eval_entity_accuracy": 0.9280043799616753,
|
| 273 |
+
"eval_f1": 0.9367311510359461,
|
| 274 |
+
"eval_loss": 0.22553826868534088,
|
| 275 |
+
"eval_precision": 0.9404566874612201,
|
| 276 |
+
"eval_recall": 0.9429245283018868,
|
| 277 |
+
"eval_runtime": 2.6044,
|
| 278 |
+
"eval_samples_per_second": 167.791,
|
| 279 |
+
"eval_steps_per_second": 10.751,
|
| 280 |
+
"step": 330
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"epoch": 3.090909090909091,
|
| 284 |
+
"grad_norm": 3.598348617553711,
|
| 285 |
+
"learning_rate": 1.4066666666666667e-05,
|
| 286 |
+
"loss": 0.2008,
|
| 287 |
+
"step": 340
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"epoch": 3.1818181818181817,
|
| 291 |
+
"grad_norm": 3.3810553550720215,
|
| 292 |
+
"learning_rate": 1.34e-05,
|
| 293 |
+
"loss": 0.1801,
|
| 294 |
+
"step": 350
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"epoch": 3.2727272727272725,
|
| 298 |
+
"grad_norm": 2.5113697052001953,
|
| 299 |
+
"learning_rate": 1.2733333333333334e-05,
|
| 300 |
+
"loss": 0.1917,
|
| 301 |
+
"step": 360
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"epoch": 3.3636363636363638,
|
| 305 |
+
"grad_norm": 5.911487102508545,
|
| 306 |
+
"learning_rate": 1.2066666666666666e-05,
|
| 307 |
+
"loss": 0.1861,
|
| 308 |
+
"step": 370
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"epoch": 3.4545454545454546,
|
| 312 |
+
"grad_norm": 4.358926296234131,
|
| 313 |
+
"learning_rate": 1.1400000000000001e-05,
|
| 314 |
+
"loss": 0.1568,
|
| 315 |
+
"step": 380
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"epoch": 3.5454545454545454,
|
| 319 |
+
"grad_norm": 3.0283701419830322,
|
| 320 |
+
"learning_rate": 1.0733333333333333e-05,
|
| 321 |
+
"loss": 0.2127,
|
| 322 |
+
"step": 390
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"epoch": 3.6363636363636362,
|
| 326 |
+
"grad_norm": 8.457649230957031,
|
| 327 |
+
"learning_rate": 1.0066666666666666e-05,
|
| 328 |
+
"loss": 0.1752,
|
| 329 |
+
"step": 400
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"epoch": 3.7272727272727275,
|
| 333 |
+
"grad_norm": 2.7831077575683594,
|
| 334 |
+
"learning_rate": 9.400000000000001e-06,
|
| 335 |
+
"loss": 0.2328,
|
| 336 |
+
"step": 410
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"epoch": 3.8181818181818183,
|
| 340 |
+
"grad_norm": 2.8275463581085205,
|
| 341 |
+
"learning_rate": 8.733333333333333e-06,
|
| 342 |
+
"loss": 0.1345,
|
| 343 |
+
"step": 420
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"epoch": 3.909090909090909,
|
| 347 |
+
"grad_norm": 2.621518850326538,
|
| 348 |
+
"learning_rate": 8.066666666666667e-06,
|
| 349 |
+
"loss": 0.1343,
|
| 350 |
+
"step": 430
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"epoch": 4.0,
|
| 354 |
+
"grad_norm": 12.00428295135498,
|
| 355 |
+
"learning_rate": 7.4e-06,
|
| 356 |
+
"loss": 0.1415,
|
| 357 |
+
"step": 440
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"epoch": 4.0,
|
| 361 |
+
"eval_accuracy": 0.9476415094339623,
|
| 362 |
+
"eval_entity_accuracy": 0.9277306323569668,
|
| 363 |
+
"eval_f1": 0.940876969962022,
|
| 364 |
+
"eval_loss": 0.20769040286540985,
|
| 365 |
+
"eval_precision": 0.9463580459003759,
|
| 366 |
+
"eval_recall": 0.9476415094339623,
|
| 367 |
+
"eval_runtime": 2.6645,
|
| 368 |
+
"eval_samples_per_second": 164.008,
|
| 369 |
+
"eval_steps_per_second": 10.509,
|
| 370 |
+
"step": 440
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"epoch": 4.090909090909091,
|
| 374 |
+
"grad_norm": 4.293393611907959,
|
| 375 |
+
"learning_rate": 6.733333333333334e-06,
|
| 376 |
+
"loss": 0.1635,
|
| 377 |
+
"step": 450
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"epoch": 4.181818181818182,
|
| 381 |
+
"grad_norm": 6.984195709228516,
|
| 382 |
+
"learning_rate": 6.0666666666666665e-06,
|
| 383 |
+
"loss": 0.1462,
|
| 384 |
+
"step": 460
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"epoch": 4.2727272727272725,
|
| 388 |
+
"grad_norm": 2.344493865966797,
|
| 389 |
+
"learning_rate": 5.4e-06,
|
| 390 |
+
"loss": 0.1356,
|
| 391 |
+
"step": 470
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"epoch": 4.363636363636363,
|
| 395 |
+
"grad_norm": 2.468249797821045,
|
| 396 |
+
"learning_rate": 4.7333333333333335e-06,
|
| 397 |
+
"loss": 0.1248,
|
| 398 |
+
"step": 480
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"epoch": 4.454545454545454,
|
| 402 |
+
"grad_norm": 1.7062819004058838,
|
| 403 |
+
"learning_rate": 4.066666666666667e-06,
|
| 404 |
+
"loss": 0.0904,
|
| 405 |
+
"step": 490
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"epoch": 4.545454545454545,
|
| 409 |
+
"grad_norm": 1.412717580795288,
|
| 410 |
+
"learning_rate": 3.4e-06,
|
| 411 |
+
"loss": 0.1255,
|
| 412 |
+
"step": 500
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"epoch": 4.636363636363637,
|
| 416 |
+
"grad_norm": 2.9533627033233643,
|
| 417 |
+
"learning_rate": 2.7333333333333336e-06,
|
| 418 |
+
"loss": 0.1249,
|
| 419 |
+
"step": 510
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"epoch": 4.7272727272727275,
|
| 423 |
+
"grad_norm": 11.376725196838379,
|
| 424 |
+
"learning_rate": 2.0666666666666666e-06,
|
| 425 |
+
"loss": 0.1459,
|
| 426 |
+
"step": 520
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"epoch": 4.818181818181818,
|
| 430 |
+
"grad_norm": 24.830320358276367,
|
| 431 |
+
"learning_rate": 1.4000000000000001e-06,
|
| 432 |
+
"loss": 0.1765,
|
| 433 |
+
"step": 530
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"epoch": 4.909090909090909,
|
| 437 |
+
"grad_norm": 3.52287220954895,
|
| 438 |
+
"learning_rate": 7.333333333333334e-07,
|
| 439 |
+
"loss": 0.192,
|
| 440 |
+
"step": 540
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"epoch": 5.0,
|
| 444 |
+
"grad_norm": 28.654787063598633,
|
| 445 |
+
"learning_rate": 6.666666666666667e-08,
|
| 446 |
+
"loss": 0.1539,
|
| 447 |
+
"step": 550
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"epoch": 5.0,
|
| 451 |
+
"eval_accuracy": 0.9511006289308176,
|
| 452 |
+
"eval_entity_accuracy": 0.9370380509170545,
|
| 453 |
+
"eval_f1": 0.9458296266430395,
|
| 454 |
+
"eval_loss": 0.18345355987548828,
|
| 455 |
+
"eval_precision": 0.9486871211363513,
|
| 456 |
+
"eval_recall": 0.9511006289308176,
|
| 457 |
+
"eval_runtime": 2.7757,
|
| 458 |
+
"eval_samples_per_second": 157.438,
|
| 459 |
+
"eval_steps_per_second": 10.088,
|
| 460 |
+
"step": 550
|
| 461 |
+
}
|
| 462 |
+
],
|
| 463 |
+
"logging_steps": 10,
|
| 464 |
+
"max_steps": 550,
|
| 465 |
+
"num_input_tokens_seen": 0,
|
| 466 |
+
"num_train_epochs": 5,
|
| 467 |
+
"save_steps": 500,
|
| 468 |
+
"stateful_callbacks": {
|
| 469 |
+
"EarlyStoppingCallback": {
|
| 470 |
+
"args": {
|
| 471 |
+
"early_stopping_patience": 3,
|
| 472 |
+
"early_stopping_threshold": 0.0
|
| 473 |
+
},
|
| 474 |
+
"attributes": {
|
| 475 |
+
"early_stopping_patience_counter": 0
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"TrainerControl": {
|
| 479 |
+
"args": {
|
| 480 |
+
"should_epoch_stop": false,
|
| 481 |
+
"should_evaluate": false,
|
| 482 |
+
"should_log": false,
|
| 483 |
+
"should_save": true,
|
| 484 |
+
"should_training_stop": true
|
| 485 |
+
},
|
| 486 |
+
"attributes": {}
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
"total_flos": 571021163627520.0,
|
| 490 |
+
"train_batch_size": 16,
|
| 491 |
+
"trial_name": null,
|
| 492 |
+
"trial_params": null
|
| 493 |
+
}
|
checkpoint-550/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b10c00a9a1c9932d65673b77c6d1b79c2c5dff3551979c1efd6bd5406bf6626
|
| 3 |
+
size 5777
|
checkpoint-550/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
config.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RobertaForTokenClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "O",
|
| 15 |
+
"1": "B-NAME",
|
| 16 |
+
"2": "I-NAME",
|
| 17 |
+
"3": "B-PHONE",
|
| 18 |
+
"4": "I-PHONE",
|
| 19 |
+
"5": "B-EMAIL",
|
| 20 |
+
"6": "I-EMAIL",
|
| 21 |
+
"7": "B-ADDRESS",
|
| 22 |
+
"8": "I-ADDRESS",
|
| 23 |
+
"9": "B-BIRTHDAY",
|
| 24 |
+
"10": "I-BIRTHDAY",
|
| 25 |
+
"11": "B-TAG",
|
| 26 |
+
"12": "I-TAG",
|
| 27 |
+
"13": "B-NOTE_TEXT",
|
| 28 |
+
"14": "I-NOTE_TEXT",
|
| 29 |
+
"15": "B-ID",
|
| 30 |
+
"16": "I-ID",
|
| 31 |
+
"17": "B-DAYS",
|
| 32 |
+
"18": "I-DAYS"
|
| 33 |
+
},
|
| 34 |
+
"initializer_range": 0.02,
|
| 35 |
+
"intermediate_size": 3072,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"B-ADDRESS": 7,
|
| 38 |
+
"B-BIRTHDAY": 9,
|
| 39 |
+
"B-DAYS": 17,
|
| 40 |
+
"B-EMAIL": 5,
|
| 41 |
+
"B-ID": 15,
|
| 42 |
+
"B-NAME": 1,
|
| 43 |
+
"B-NOTE_TEXT": 13,
|
| 44 |
+
"B-PHONE": 3,
|
| 45 |
+
"B-TAG": 11,
|
| 46 |
+
"I-ADDRESS": 8,
|
| 47 |
+
"I-BIRTHDAY": 10,
|
| 48 |
+
"I-DAYS": 18,
|
| 49 |
+
"I-EMAIL": 6,
|
| 50 |
+
"I-ID": 16,
|
| 51 |
+
"I-NAME": 2,
|
| 52 |
+
"I-NOTE_TEXT": 14,
|
| 53 |
+
"I-PHONE": 4,
|
| 54 |
+
"I-TAG": 12,
|
| 55 |
+
"O": 0
|
| 56 |
+
},
|
| 57 |
+
"layer_norm_eps": 1e-05,
|
| 58 |
+
"max_position_embeddings": 514,
|
| 59 |
+
"model_type": "roberta",
|
| 60 |
+
"num_attention_heads": 12,
|
| 61 |
+
"num_hidden_layers": 12,
|
| 62 |
+
"pad_token_id": 1,
|
| 63 |
+
"position_embedding_type": "absolute",
|
| 64 |
+
"transformers_version": "4.57.0",
|
| 65 |
+
"type_vocab_size": 1,
|
| 66 |
+
"use_cache": true,
|
| 67 |
+
"vocab_size": 50265
|
| 68 |
+
}
|
label_map.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"0": "O",
|
| 3 |
+
"1": "B-NAME",
|
| 4 |
+
"2": "I-NAME",
|
| 5 |
+
"3": "B-PHONE",
|
| 6 |
+
"4": "I-PHONE",
|
| 7 |
+
"5": "B-EMAIL",
|
| 8 |
+
"6": "I-EMAIL",
|
| 9 |
+
"7": "B-ADDRESS",
|
| 10 |
+
"8": "I-ADDRESS",
|
| 11 |
+
"9": "B-BIRTHDAY",
|
| 12 |
+
"10": "I-BIRTHDAY",
|
| 13 |
+
"11": "B-TAG",
|
| 14 |
+
"12": "I-TAG",
|
| 15 |
+
"13": "B-NOTE_TEXT",
|
| 16 |
+
"14": "I-NOTE_TEXT",
|
| 17 |
+
"15": "B-ID",
|
| 18 |
+
"16": "I-ID",
|
| 19 |
+
"17": "B-DAYS",
|
| 20 |
+
"18": "I-DAYS"
|
| 21 |
+
}
|
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:957b3bb302656a94b3d310dbb314687051d3ec5466f0007ec9935e7cbb2c3dca
|
| 3 |
+
size 496302532
|
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,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"0": {
|
| 5 |
+
"content": "<s>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"1": {
|
| 13 |
+
"content": "<pad>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": true,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"2": {
|
| 21 |
+
"content": "</s>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": true,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"3": {
|
| 29 |
+
"content": "<unk>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": true,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"50264": {
|
| 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 |
+
"model_max_length": 512,
|
| 53 |
+
"pad_token": "<pad>",
|
| 54 |
+
"sep_token": "</s>",
|
| 55 |
+
"tokenizer_class": "RobertaTokenizer",
|
| 56 |
+
"trim_offsets": true,
|
| 57 |
+
"unk_token": "<unk>"
|
| 58 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b10c00a9a1c9932d65673b77c6d1b79c2c5dff3551979c1efd6bd5406bf6626
|
| 3 |
+
size 5777
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|