Run this model with HF Jobs
Run NlpHUST/ner-vietnamese-electra-base 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/NlpHUST/ner-vietnamese-electra-base. 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/NlpHUST/ner-vietnamese-electra-base 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 NlpHUST/ner-vietnamese-electra-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NlpHUST/ner-vietnamese-electra-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="NlpHUST/ner-vietnamese-electra-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("NlpHUST/ner-vietnamese-electra-base") model = AutoModelForTokenClassification.from_pretrained("NlpHUST/ner-vietnamese-electra-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
nhanv commited on
Commit ·
83dbc58
1
Parent(s): 9df65fd
init project
Browse filesFiles changed (7)
- README.md+46
- config.jsonAdded+53
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+15
- vocab.txtAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546---tags:- generated_from_trainermodel-index:- name: ner-vietnamese-electra-baseresults: []---<!-- 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. --># cv-nerThis model is a fine-tuned version of [/datahdd/nhanv/git/nlp_toolkit/outputs/cv-ner](https://huggingface.co//datahdd/nhanv/git/nlp_toolkit/outputs/cv-ner) on an unknown dataset.## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 16- eval_batch_size: 4- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 10.0### Framework versions- Transformers 4.20.1- Pytorch 1.8.0+cu111- Datasets 2.4.0- Tokenizers 0.12.1
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ "_name_or_path": "NlpHUST/electra-base-vn", "architectures": [ "ElectraForTokenClassification" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "embedding_size": 768, "finetuning_task": "ner", "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "B-LOCATION", "1": "B-MISCELLANEOUS", "2": "B-ORGANIZATION", "3": "B-PERSON", "4": "I-LOCATION", "5": "I-MISCELLANEOUS", "6": "I-ORGANIZATION", "7": "I-PERSON", "8": "O" }, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "B-LOCATION": 0, "B-MISCELLANEOUS": 1, "B-ORGANIZATION": 2, "B-PERSON": 3, "I-LOCATION": 4, "I-MISCELLANEOUS": 5, "I-ORGANIZATION": 6, "I-PERSON": 7, "O": 8 }, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "electra", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "summary_activation": "gelu", "summary_last_dropout": 0.1, "summary_type": "first", "summary_use_proj": true, "torch_dtype": "float32", "transformers_version": "4.22.2", "type_vocab_size": 2, "use_cache": true, "vocab_size": 62000}123version https://git-lfs.github.com/spec/v1oid sha256:88bc614905a1f337a3b97190636dff75420d66b6b71a76c382ea5cfa8e0a381esize 5323656811234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123456789101112131415{ "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": false, "mask_token": "[MASK]", "name_or_path": "NlpHUST/electra-base-vn", "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "special_tokens_map_file": null, "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "ElectraTokenizer", "unk_token": "[UNK]"}README.md+46
config.jsonAdded+53
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+15
vocab.txtAdded