Run this model with HF Jobs
Run textminr/ner-multilingual-bert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/textminr/ner-multilingual-bert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/textminr/ner-multilingual-bert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use textminr/ner-multilingual-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textminr/ner-multilingual-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="textminr/ner-multilingual-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("textminr/ner-multilingual-bert") model = AutoModelForTokenClassification.from_pretrained("textminr/ner-multilingual-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (8)
- README.mdAdded+69
- config.jsonAdded+41
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+56
- training_args.binAdded+3
- vocab.txtAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869---license: apache-2.0base_model: bert-base-multilingual-casedtags:- generated_from_trainermetrics:- precision- recall- f1- accuracymodel-index:- name: ner-multilingual-bert results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# ner-multilingual-bert
This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.0002- Precision: 0.9998- Recall: 0.9991- F1: 0.9994- Accuracy: 1.0000
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|| 0.0108 | 0.2 | 250 | 0.0039 | 0.9942 | 0.9818 | 0.9880 | 0.9992 || 0.0022 | 0.4 | 500 | 0.0021 | 0.9863 | 0.9861 | 0.9862 | 0.9993 || 0.0006 | 0.61 | 750 | 0.0007 | 0.9998 | 0.9975 | 0.9986 | 0.9999 || 0.0004 | 0.81 | 1000 | 0.0002 | 0.9998 | 0.9991 | 0.9994 | 1.0000 |
### Framework versions
- Transformers 4.37.0.dev0- Pytorch 2.1.1+cu121- Datasets 2.15.0- Tokenizers 0.15.01234567891011121314151617181920212223242526272829303132333435363738394041{ "_name_or_path": "bert-base-multilingual-cased", "architectures": [ "BertForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "directionality": "bidi", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "O", "1": "AUTHOR", "2": "DATE" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "AUTHOR": 1, "DATE": 2, "O": 0 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "pooler_fc_size": 768, "pooler_num_attention_heads": 12, "pooler_num_fc_layers": 3, "pooler_size_per_head": 128, "pooler_type": "first_token_transform", "position_embedding_type": "absolute", "torch_dtype": "float32", "transformers_version": "4.37.0.dev0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 119547}123version https://git-lfs.github.com/spec/v1oid sha256:0a3170a4617bab643677e8a2b073dc656154b914bcce8b5b5bb576565be69302size 7090839801234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ "add_prefix_space": true, "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_lower_case": false, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "BertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:b23698b5142647b613814f177f57b991e2f9d7912b756344158327a74473238bsize 4664README.mdAdded+69
config.jsonAdded+41
model.safetensorsAdded+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+56
training_args.binAdded+3
vocab.txtAdded