Run this model with HF Jobs
Run LinYuting/bert-base-ner 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/LinYuting/bert-base-ner. 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/LinYuting/bert-base-ner 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 LinYuting/bert-base-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LinYuting/bert-base-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="LinYuting/bert-base-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("LinYuting/bert-base-ner") model = AutoModelForTokenClassification.from_pretrained("LinYuting/bert-base-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress epoch 0
Browse filesFiles changed (3)
14 unmodified lines15161718192018192021222312 unmodified lines36373839394041424344454647484647484914 unmodified lines
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.It achieves the following results on the evaluation set:- Train Loss: 0.0189- Validation Loss: 0.0104- Epoch: 2- Train Loss: 0.3378- Validation Loss: 0.0268- Epoch: 0
## Model description
12 unmodified lines### Training hyperparameters
The following hyperparameters were used during training:- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 849, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 1077, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}- training_precision: float32
### Training results
| Train Loss | Validation Loss | Epoch ||:----------:|:---------------:|:-----:|| 0.3846 | 0.0465 | 0 || 0.0412 | 0.0145 | 1 || 0.0189 | 0.0104 | 2 || 0.3378 | 0.0268 | 0 |
### Framework versions1223version https://git-lfs.github.com/spec/v1oid sha256:c88b5e8985daa8f5f90d82e154c3f494879476b2ed61633cdf9efde302e04663oid sha256:f5bbf4d362deecfebde2834b792a49056c6b81e2e83bc66d5c585bb6fa4e86a5size 43132125212345{ "add_prefix_space": false, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_lower_case": false,README.md+5-7
tf_model.h5+1-1
tokenizer_config.json+1