Token Classification
Transformers
Safetensors
English
roberta
named-entity-recognition
ner
conll2003
Instructions to use ullahhafeez321/roberta-conll2003-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ullahhafeez321/roberta-conll2003-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ullahhafeez321/roberta-conll2003-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ullahhafeez321/roberta-conll2003-ner") model = AutoModelForTokenClassification.from_pretrained("ullahhafeez321/roberta-conll2003-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload fine-tuned RoBERTa CoNLL-2003 NER model
Browse filesFiles changed (27)
- README.mdAdded+76
- checkpoint-1756/config.jsonAdded+50
- checkpoint-1756/model.safetensorsAdded+3
- checkpoint-1756/optimizer.ptAdded+3
- checkpoint-1756/rng_state.pthAdded+3
- checkpoint-1756/scaler.ptAdded+3
- checkpoint-1756/scheduler.ptAdded+3
- checkpoint-1756/tokenizer.jsonAdded
- checkpoint-1756/tokenizer_config.jsonAdded+17
- checkpoint-1756/trainer_state.jsonAdded+303
- checkpoint-1756/training_args.binAdded+3
- checkpoint-2634/config.jsonAdded+50
- checkpoint-2634/model.safetensorsAdded+3
- checkpoint-2634/optimizer.ptAdded+3
- checkpoint-2634/rng_state.pthAdded+3
- checkpoint-2634/scaler.ptAdded+3
- checkpoint-2634/scheduler.ptAdded+3
- checkpoint-2634/tokenizer.jsonAdded
- checkpoint-2634/tokenizer_config.jsonAdded+17
- checkpoint-2634/trainer_state.jsonAdded+434
- checkpoint-2634/training_args.binAdded+3
- config.jsonAdded+50
- model.safetensorsAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+17
- training_args.binAdded+3
- training_info.jsonAdded+36
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576---language:- enlicense: mitlibrary_name: transformerspipeline_tag: token-classificationtags:- named-entity-recognition- ner- token-classification- roberta- conll2003---
# RoBERTa CoNLL-2003 NER
An encoder-only RoBERTa model fine-tuned for English Named Entity Recognition.
## Model details
- Base model: `FacebookAI/roberta-base`- Dataset: `lhoestq/conll2003`- Task: Token classification / Named Entity Recognition- Labels: O, B-PER, I-PER, B-ORG, I-ORG, B-LOC, I-LOC, B-MISC, I-MISC- Maximum sequence length: 256
## Training
Fine-tuned using Hugging Face Transformers Trainer.
Word-level labels are aligned to the first subword token.Special tokens and continuation subwords are ignored using label ID `-100`.
## Validation results
```json{ "eval_loss": 0.04585767164826393, "eval_precision": 0.9423943897144765, "eval_recall": 0.9498485358465163, "eval_f1": 0.9461067806554354, "eval_accuracy": 0.99069350881975}```
## Test results
```json{ "test_loss": 0.153057262301445, "test_precision": 0.8865162734630618, "test_recall": 0.9114730878186968, "test_f1": 0.8988214753382803, "test_accuracy": 0.9791105846882739}```
## Usage
```pythonfrom transformers import pipeline
ner = pipeline( "token-classification", model="ullahhafeez321/roberta-conll2003-ner", aggregation_strategy="simple")
print(ner("Hafeez works at Microsoft in Pakistan."))```
## Repository contents
This repository contains the fine-tuned model weights,model configuration with label mappings, tokenizer files,training information, and this model card.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ "add_cross_attention": false, "architectures": [ "RobertaForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "dtype": "float32", "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "B-PER", "2": "I-PER", "3": "B-ORG", "4": "I-ORG", "5": "B-LOC", "6": "I-LOC", "7": "B-MISC", "8": "I-MISC" }, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "label2id": { "B-LOC": 5, "B-MISC": 7, "B-ORG": 3, "B-PER": 1, "I-LOC": 6, "I-MISC": 8, "I-ORG": 4, "I-PER": 2, "O": 0 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "tie_word_embeddings": true, "transformers_version": "5.25.0", "type_vocab_size": 1, "use_cache": false, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:a0232dbccd99431e574ded4f1199fe0cc9bba574b1be21b7072a1466846e5b36size 496271772123version https://git-lfs.github.com/spec/v1oid sha256:2cd105e6f2a7f3cf21a07cc1d4e1d85dd4b62c1d4d3c894de6157e0edc01f8desize 992665291123version https://git-lfs.github.com/spec/v1oid sha256:351794660fde4ebfbdff391c9d5121314fb4eeadcfde7385c322ef5cc7c6322csize 14645123version https://git-lfs.github.com/spec/v1oid sha256:48f8b6c3e02deca91f6b228a593ed1cdf085a7afea6ba99d704863ee63c2f02asize 1383123version https://git-lfs.github.com/spec/v1oid sha256:85ae4ca254e1a6879936fbd188caddab643afbc075e34edfc11232781fc52c73size 14651234567891011121314151617{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "is_local": false, "local_files_only": false, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "unk_token": "<unk>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303{ "best_global_step": 1756, "best_metric": 0.9424689701442469, "best_model_checkpoint": "./roberta-conll2003-ner/checkpoint-1756", "epoch": 2.0, "eval_steps": 500, "global_step": 1756, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.05694760820045558, "grad_norm": 5.681536674499512, "learning_rate": 1.9627942293090358e-05, "loss": 1.492552490234375, "step": 50 }, { "epoch": 0.11389521640091116, "grad_norm": 5.445796966552734, "learning_rate": 1.9248291571753987e-05, "loss": 0.5149979019165039, "step": 100 }, { "epoch": 0.17084282460136674, "grad_norm": 14.582870483398438, "learning_rate": 1.8868640850417617e-05, "loss": 0.3201158142089844, "step": 150 }, { "epoch": 0.22779043280182232, "grad_norm": 16.977760314941406, "learning_rate": 1.8488990129081246e-05, "loss": 0.30428911209106446, "step": 200 }, { "epoch": 0.2847380410022779, "grad_norm": 10.173095703125, "learning_rate": 1.8109339407744876e-05, "loss": 0.2572408485412598, "step": 250 }, { "epoch": 0.3416856492027335, "grad_norm": 8.617637634277344, "learning_rate": 1.7729688686408505e-05, "loss": 0.21413419723510743, "step": 300 }, { "epoch": 0.39863325740318906, "grad_norm": 13.392831802368164, "learning_rate": 1.7350037965072134e-05, "loss": 0.1728438377380371, "step": 350 }, { "epoch": 0.45558086560364464, "grad_norm": 8.884440422058105, "learning_rate": 1.6970387243735764e-05, "loss": 0.17972419738769532, "step": 400 }, { "epoch": 0.5125284738041003, "grad_norm": 4.547406196594238, "learning_rate": 1.6590736522399393e-05, "loss": 0.1769469451904297, "step": 450 }, { "epoch": 0.5694760820045558, "grad_norm": 6.957844257354736, "learning_rate": 1.6211085801063023e-05, "loss": 0.19785234451293945, "step": 500 }, { "epoch": 0.6264236902050114, "grad_norm": 8.063850402832031, "learning_rate": 1.5831435079726652e-05, "loss": 0.13573334693908692, "step": 550 }, { "epoch": 0.683371298405467, "grad_norm": 3.266181468963623, "learning_rate": 1.545178435839028e-05, "loss": 0.16574913024902344, "step": 600 }, { "epoch": 0.7403189066059226, "grad_norm": 9.835487365722656, "learning_rate": 1.5072133637053911e-05, "loss": 0.14073962211608887, "step": 650 }, { "epoch": 0.7972665148063781, "grad_norm": 3.3095521926879883, "learning_rate": 1.469248291571754e-05, "loss": 0.13598749160766602, "step": 700 }, { "epoch": 0.8542141230068337, "grad_norm": 3.3438408374786377, "learning_rate": 1.431283219438117e-05, "loss": 0.13263339042663574, "step": 750 }, { "epoch": 0.9111617312072893, "grad_norm": 5.3593220710754395, "learning_rate": 1.39331814730448e-05, "loss": 0.1298038101196289, "step": 800 }, { "epoch": 0.9681093394077449, "grad_norm": 3.157667875289917, "learning_rate": 1.355353075170843e-05, "loss": 0.13011916160583495, "step": 850 }, { "epoch": 1.0, "eval_accuracy": 0.9873057902729645, "eval_f1": 0.9245929018789144, "eval_loss": 0.053863026201725006, "eval_precision": 0.9176197579976795, "eval_recall": 0.9316728374284753, "eval_runtime": 12.4555, "eval_samples_per_second": 260.93, "eval_steps_per_second": 32.676, "step": 878 }, { "epoch": 1.0250569476082005, "grad_norm": 8.064597129821777, "learning_rate": 1.317388003037206e-05, "loss": 0.12265810012817382, "step": 900 }, { "epoch": 1.082004555808656, "grad_norm": 4.101125717163086, "learning_rate": 1.2794229309035688e-05, "loss": 0.10085539817810059, "step": 950 }, { "epoch": 1.1389521640091116, "grad_norm": 6.349793910980225, "learning_rate": 1.2414578587699317e-05, "loss": 0.08602530479431153, "step": 1000 }, { "epoch": 1.1958997722095672, "grad_norm": 1.5306828022003174, "learning_rate": 1.2034927866362947e-05, "loss": 0.10054409980773926, "step": 1050 }, { "epoch": 1.2528473804100229, "grad_norm": 15.122303009033203, "learning_rate": 1.1655277145026576e-05, "loss": 0.08023444175720215, "step": 1100 }, { "epoch": 1.3097949886104785, "grad_norm": 7.477488994598389, "learning_rate": 1.1275626423690207e-05, "loss": 0.10240830421447754, "step": 1150 }, { "epoch": 1.366742596810934, "grad_norm": 10.633002281188965, "learning_rate": 1.0895975702353837e-05, "loss": 0.08978208541870117, "step": 1200 }, { "epoch": 1.4236902050113895, "grad_norm": 5.430278778076172, "learning_rate": 1.0516324981017464e-05, "loss": 0.08150110244750977, "step": 1250 }, { "epoch": 1.4806378132118452, "grad_norm": 2.003757953643799, "learning_rate": 1.0136674259681094e-05, "loss": 0.09516064643859863, "step": 1300 }, { "epoch": 1.5375854214123006, "grad_norm": 3.21618390083313, "learning_rate": 9.757023538344723e-06, "loss": 0.08989009857177735, "step": 1350 }, { "epoch": 1.5945330296127562, "grad_norm": 1.991673469543457, "learning_rate": 9.377372817008353e-06, "loss": 0.09590801239013672, "step": 1400 }, { "epoch": 1.6514806378132119, "grad_norm": 2.444417715072632, "learning_rate": 8.997722095671982e-06, "loss": 0.07498642921447754, "step": 1450 }, { "epoch": 1.7084282460136673, "grad_norm": 2.9712870121002197, "learning_rate": 8.618071374335612e-06, "loss": 0.07123741149902343, "step": 1500 }, { "epoch": 1.7653758542141231, "grad_norm": 7.146263599395752, "learning_rate": 8.238420652999241e-06, "loss": 0.07629355907440186, "step": 1550 }, { "epoch": 1.8223234624145785, "grad_norm": 72.53160858154297, "learning_rate": 7.85876993166287e-06, "loss": 0.08255298614501953, "step": 1600 }, { "epoch": 1.8792710706150342, "grad_norm": 27.653539657592773, "learning_rate": 7.4791192103265e-06, "loss": 0.09918544769287109, "step": 1650 }, { "epoch": 1.9362186788154898, "grad_norm": 3.6191632747650146, "learning_rate": 7.09946848899013e-06, "loss": 0.07828479290008544, "step": 1700 }, { "epoch": 1.9931662870159452, "grad_norm": 5.5964460372924805, "learning_rate": 6.719817767653759e-06, "loss": 0.05825142860412598, "step": 1750 }, { "epoch": 2.0, "eval_accuracy": 0.9899147229469257, "eval_f1": 0.9424689701442469, "eval_loss": 0.04798395186662674, "eval_precision": 0.9393179538615848, "eval_recall": 0.9456411982497476, "eval_runtime": 8.5758, "eval_samples_per_second": 378.974, "eval_steps_per_second": 47.459, "step": 1756 } ], "logging_steps": 50, "max_steps": 2634, "num_input_tokens_seen": 0, "num_train_epochs": 3, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": false }, "attributes": {} } }, "total_flos": 700775903584404.0, "train_batch_size": 8, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:a075ab1385e4379b6ad8bc9c23149a31b51d1f9ebf6b4c92b82e4648248b3d99size 52651234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ "add_cross_attention": false, "architectures": [ "RobertaForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "dtype": "float32", "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "B-PER", "2": "I-PER", "3": "B-ORG", "4": "I-ORG", "5": "B-LOC", "6": "I-LOC", "7": "B-MISC", "8": "I-MISC" }, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "label2id": { "B-LOC": 5, "B-MISC": 7, "B-ORG": 3, "B-PER": 1, "I-LOC": 6, "I-MISC": 8, "I-ORG": 4, "I-PER": 2, "O": 0 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "tie_word_embeddings": true, "transformers_version": "5.25.0", "type_vocab_size": 1, "use_cache": false, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:049f1567dbf873925a02b3966682b647aebf9123b1aa37993d9450f843649b7asize 496271772123version https://git-lfs.github.com/spec/v1oid sha256:ce1a027d8e6971b9f24ecb45692caabe79b8f0f84bc4278f261688caaf7feb81size 992665291123version https://git-lfs.github.com/spec/v1oid sha256:db4629a7aa0a2cfd8eaf3589cbf1049b6f6bd049a4a0be5cbe05d446ce4f58ddsize 14645123version https://git-lfs.github.com/spec/v1oid sha256:d22e379858e20af33e31115ac6c424b528baa2302043bb21651d571eeca8adfbsize 1383123version https://git-lfs.github.com/spec/v1oid sha256:07e9cffc625c33bb1c18ae821e4f620b88c866c5f3577ca44ebdc530925c7837size 14651234567891011121314151617{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "is_local": false, "local_files_only": false, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "unk_token": "<unk>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434{ "best_global_step": 2634, "best_metric": 0.9461067806554354, "best_model_checkpoint": "./roberta-conll2003-ner/checkpoint-2634", "epoch": 3.0, "eval_steps": 500, "global_step": 2634, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.05694760820045558, "grad_norm": 5.681536674499512, "learning_rate": 1.9627942293090358e-05, "loss": 1.492552490234375, "step": 50 }, { "epoch": 0.11389521640091116, "grad_norm": 5.445796966552734, "learning_rate": 1.9248291571753987e-05, "loss": 0.5149979019165039, "step": 100 }, { "epoch": 0.17084282460136674, "grad_norm": 14.582870483398438, "learning_rate": 1.8868640850417617e-05, "loss": 0.3201158142089844, "step": 150 }, { "epoch": 0.22779043280182232, "grad_norm": 16.977760314941406, "learning_rate": 1.8488990129081246e-05, "loss": 0.30428911209106446, "step": 200 }, { "epoch": 0.2847380410022779, "grad_norm": 10.173095703125, "learning_rate": 1.8109339407744876e-05, "loss": 0.2572408485412598, "step": 250 }, { "epoch": 0.3416856492027335, "grad_norm": 8.617637634277344, "learning_rate": 1.7729688686408505e-05, "loss": 0.21413419723510743, "step": 300 }, { "epoch": 0.39863325740318906, "grad_norm": 13.392831802368164, "learning_rate": 1.7350037965072134e-05, "loss": 0.1728438377380371, "step": 350 }, { "epoch": 0.45558086560364464, "grad_norm": 8.884440422058105, "learning_rate": 1.6970387243735764e-05, "loss": 0.17972419738769532, "step": 400 }, { "epoch": 0.5125284738041003, "grad_norm": 4.547406196594238, "learning_rate": 1.6590736522399393e-05, "loss": 0.1769469451904297, "step": 450 }, { "epoch": 0.5694760820045558, "grad_norm": 6.957844257354736, "learning_rate": 1.6211085801063023e-05, "loss": 0.19785234451293945, "step": 500 }, { "epoch": 0.6264236902050114, "grad_norm": 8.063850402832031, "learning_rate": 1.5831435079726652e-05, "loss": 0.13573334693908692, "step": 550 }, { "epoch": 0.683371298405467, "grad_norm": 3.266181468963623, "learning_rate": 1.545178435839028e-05, "loss": 0.16574913024902344, "step": 600 }, { "epoch": 0.7403189066059226, "grad_norm": 9.835487365722656, "learning_rate": 1.5072133637053911e-05, "loss": 0.14073962211608887, "step": 650 }, { "epoch": 0.7972665148063781, "grad_norm": 3.3095521926879883, "learning_rate": 1.469248291571754e-05, "loss": 0.13598749160766602, "step": 700 }, { "epoch": 0.8542141230068337, "grad_norm": 3.3438408374786377, "learning_rate": 1.431283219438117e-05, "loss": 0.13263339042663574, "step": 750 }, { "epoch": 0.9111617312072893, "grad_norm": 5.3593220710754395, "learning_rate": 1.39331814730448e-05, "loss": 0.1298038101196289, "step": 800 }, { "epoch": 0.9681093394077449, "grad_norm": 3.157667875289917, "learning_rate": 1.355353075170843e-05, "loss": 0.13011916160583495, "step": 850 }, { "epoch": 1.0, "eval_accuracy": 0.9873057902729645, "eval_f1": 0.9245929018789144, "eval_loss": 0.053863026201725006, "eval_precision": 0.9176197579976795, "eval_recall": 0.9316728374284753, "eval_runtime": 12.4555, "eval_samples_per_second": 260.93, "eval_steps_per_second": 32.676, "step": 878 }, { "epoch": 1.0250569476082005, "grad_norm": 8.064597129821777, "learning_rate": 1.317388003037206e-05, "loss": 0.12265810012817382, "step": 900 }, { "epoch": 1.082004555808656, "grad_norm": 4.101125717163086, "learning_rate": 1.2794229309035688e-05, "loss": 0.10085539817810059, "step": 950 }, { "epoch": 1.1389521640091116, "grad_norm": 6.349793910980225, "learning_rate": 1.2414578587699317e-05, "loss": 0.08602530479431153, "step": 1000 }, { "epoch": 1.1958997722095672, "grad_norm": 1.5306828022003174, "learning_rate": 1.2034927866362947e-05, "loss": 0.10054409980773926, "step": 1050 }, { "epoch": 1.2528473804100229, "grad_norm": 15.122303009033203, "learning_rate": 1.1655277145026576e-05, "loss": 0.08023444175720215, "step": 1100 }, { "epoch": 1.3097949886104785, "grad_norm": 7.477488994598389, "learning_rate": 1.1275626423690207e-05, "loss": 0.10240830421447754, "step": 1150 }, { "epoch": 1.366742596810934, "grad_norm": 10.633002281188965, "learning_rate": 1.0895975702353837e-05, "loss": 0.08978208541870117, "step": 1200 }, { "epoch": 1.4236902050113895, "grad_norm": 5.430278778076172, "learning_rate": 1.0516324981017464e-05, "loss": 0.08150110244750977, "step": 1250 }, { "epoch": 1.4806378132118452, "grad_norm": 2.003757953643799, "learning_rate": 1.0136674259681094e-05, "loss": 0.09516064643859863, "step": 1300 }, { "epoch": 1.5375854214123006, "grad_norm": 3.21618390083313, "learning_rate": 9.757023538344723e-06, "loss": 0.08989009857177735, "step": 1350 }, { "epoch": 1.5945330296127562, "grad_norm": 1.991673469543457, "learning_rate": 9.377372817008353e-06, "loss": 0.09590801239013672, "step": 1400 }, { "epoch": 1.6514806378132119, "grad_norm": 2.444417715072632, "learning_rate": 8.997722095671982e-06, "loss": 0.07498642921447754, "step": 1450 }, { "epoch": 1.7084282460136673, "grad_norm": 2.9712870121002197, "learning_rate": 8.618071374335612e-06, "loss": 0.07123741149902343, "step": 1500 }, { "epoch": 1.7653758542141231, "grad_norm": 7.146263599395752, "learning_rate": 8.238420652999241e-06, "loss": 0.07629355907440186, "step": 1550 }, { "epoch": 1.8223234624145785, "grad_norm": 72.53160858154297, "learning_rate": 7.85876993166287e-06, "loss": 0.08255298614501953, "step": 1600 }, { "epoch": 1.8792710706150342, "grad_norm": 27.653539657592773, "learning_rate": 7.4791192103265e-06, "loss": 0.09918544769287109, "step": 1650 }, { "epoch": 1.9362186788154898, "grad_norm": 3.6191632747650146, "learning_rate": 7.09946848899013e-06, "loss": 0.07828479290008544, "step": 1700 }, { "epoch": 1.9931662870159452, "grad_norm": 5.5964460372924805, "learning_rate": 6.719817767653759e-06, "loss": 0.05825142860412598, "step": 1750 }, { "epoch": 2.0, "eval_accuracy": 0.9899147229469257, "eval_f1": 0.9424689701442469, "eval_loss": 0.04798395186662674, "eval_precision": 0.9393179538615848, "eval_recall": 0.9456411982497476, "eval_runtime": 8.5758, "eval_samples_per_second": 378.974, "eval_steps_per_second": 47.459, "step": 1756 }, { "epoch": 2.050113895216401, "grad_norm": 14.040624618530273, "learning_rate": 6.340167046317388e-06, "loss": 0.062253961563110354, "step": 1800 }, { "epoch": 2.1070615034168565, "grad_norm": 4.405303001403809, "learning_rate": 5.960516324981019e-06, "loss": 0.04547236919403076, "step": 1850 }, { "epoch": 2.164009111617312, "grad_norm": 3.64687442779541, "learning_rate": 5.580865603644647e-06, "loss": 0.0529160213470459, "step": 1900 }, { "epoch": 2.2209567198177678, "grad_norm": 5.098416805267334, "learning_rate": 5.201214882308277e-06, "loss": 0.052508788108825685, "step": 1950 }, { "epoch": 2.277904328018223, "grad_norm": 24.813819885253906, "learning_rate": 4.821564160971906e-06, "loss": 0.06552162647247314, "step": 2000 }, { "epoch": 2.334851936218679, "grad_norm": 6.832108497619629, "learning_rate": 4.4419134396355355e-06, "loss": 0.05889130115509033, "step": 2050 }, { "epoch": 2.3917995444191344, "grad_norm": 6.358509540557861, "learning_rate": 4.062262718299165e-06, "loss": 0.05962067604064941, "step": 2100 }, { "epoch": 2.44874715261959, "grad_norm": 4.414428234100342, "learning_rate": 3.6826119969627944e-06, "loss": 0.04311379432678222, "step": 2150 }, { "epoch": 2.5056947608200457, "grad_norm": 3.7839555740356445, "learning_rate": 3.302961275626424e-06, "loss": 0.05632836818695068, "step": 2200 }, { "epoch": 2.562642369020501, "grad_norm": 3.4116477966308594, "learning_rate": 2.9233105542900537e-06, "loss": 0.04784432411193848, "step": 2250 }, { "epoch": 2.619589977220957, "grad_norm": 8.817717552185059, "learning_rate": 2.5436598329536827e-06, "loss": 0.051619191169738766, "step": 2300 }, { "epoch": 2.6765375854214124, "grad_norm": 5.8891801834106445, "learning_rate": 2.164009111617312e-06, "loss": 0.05060996532440185, "step": 2350 }, { "epoch": 2.733485193621868, "grad_norm": 5.991585731506348, "learning_rate": 1.7843583902809416e-06, "loss": 0.04409883499145508, "step": 2400 }, { "epoch": 2.7904328018223232, "grad_norm": 8.329001426696777, "learning_rate": 1.404707668944571e-06, "loss": 0.04827627658843994, "step": 2450 }, { "epoch": 2.847380410022779, "grad_norm": 2.6501247882843018, "learning_rate": 1.0250569476082005e-06, "loss": 0.0690996265411377, "step": 2500 }, { "epoch": 2.9043280182232345, "grad_norm": 3.873990297317505, "learning_rate": 6.4540622627183e-07, "loss": 0.03710851669311523, "step": 2550 }, { "epoch": 2.9612756264236904, "grad_norm": 2.5914618968963623, "learning_rate": 2.657555049354594e-07, "loss": 0.046188492774963376, "step": 2600 }, { "epoch": 3.0, "eval_accuracy": 0.99069350881975, "eval_f1": 0.9461067806554354, "eval_loss": 0.04585767164826393, "eval_precision": 0.9423943897144765, "eval_recall": 0.9498485358465163, "eval_runtime": 8.3569, "eval_samples_per_second": 388.899, "eval_steps_per_second": 48.702, "step": 2634 } ], "logging_steps": 50, "max_steps": 2634, "num_input_tokens_seen": 0, "num_train_epochs": 3, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 1053017036173512.0, "train_batch_size": 8, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:a075ab1385e4379b6ad8bc9c23149a31b51d1f9ebf6b4c92b82e4648248b3d99size 52651234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ "add_cross_attention": false, "architectures": [ "RobertaForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "dtype": "float32", "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "B-PER", "2": "I-PER", "3": "B-ORG", "4": "I-ORG", "5": "B-LOC", "6": "I-LOC", "7": "B-MISC", "8": "I-MISC" }, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "label2id": { "B-LOC": 5, "B-MISC": 7, "B-ORG": 3, "B-PER": 1, "I-LOC": 6, "I-MISC": 8, "I-ORG": 4, "I-PER": 2, "O": 0 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "tie_word_embeddings": true, "transformers_version": "5.25.0", "type_vocab_size": 1, "use_cache": false, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:049f1567dbf873925a02b3966682b647aebf9123b1aa37993d9450f843649b7asize 4962717721234567891011121314151617{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": "<s>", "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "is_local": false, "local_files_only": false, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:a075ab1385e4379b6ad8bc9c23149a31b51d1f9ebf6b4c92b82e4648248b3d99size 5265123456789101112131415161718192021222324252627282930313233343536{ "task": "Named Entity Recognition (token classification)", "dataset": "lhoestq/conll2003", "base_model": "FacebookAI/roberta-base", "model_architecture": "roberta", "labels": [ "O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-LOC", "I-LOC", "B-MISC", "I-MISC" ], "number_of_labels": 9, "max_sequence_length": 256, "train_examples": 14041, "validation_examples": 3250, "test_examples": 3453, "validation_metrics": { "eval_loss": 0.04585767164826393, "eval_precision": 0.9423943897144765, "eval_recall": 0.9498485358465163, "eval_f1": 0.9461067806554354, "eval_accuracy": 0.99069350881975 }, "test_metrics": { "test_loss": 0.153057262301445, "test_precision": 0.8865162734630618, "test_recall": 0.9114730878186968, "test_f1": 0.8988214753382803, "test_accuracy": 0.9791105846882739 }}README.mdAdded+76
checkpoint-1756/config.jsonAdded+50
checkpoint-1756/model.safetensorsAdded+3
checkpoint-1756/optimizer.ptAdded+3
checkpoint-1756/rng_state.pthAdded+3
checkpoint-1756/scaler.ptAdded+3
checkpoint-1756/scheduler.ptAdded+3
checkpoint-1756/tokenizer.jsonAdded
checkpoint-1756/tokenizer_config.jsonAdded+17
checkpoint-1756/trainer_state.jsonAdded+303
checkpoint-1756/training_args.binAdded+3
checkpoint-2634/config.jsonAdded+50
checkpoint-2634/model.safetensorsAdded+3
checkpoint-2634/optimizer.ptAdded+3
checkpoint-2634/rng_state.pthAdded+3
checkpoint-2634/scaler.ptAdded+3
checkpoint-2634/scheduler.ptAdded+3
checkpoint-2634/tokenizer.jsonAdded
checkpoint-2634/tokenizer_config.jsonAdded+17
checkpoint-2634/trainer_state.jsonAdded+434
checkpoint-2634/training_args.binAdded+3
config.jsonAdded+50
model.safetensorsAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+17
training_args.binAdded+3
training_info.jsonAdded+36