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 (2)
- README.md+5-7
- tf_model.h5+2-2
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.0134- Validation Loss: 0.0057- Epoch: 2- Train Loss: 0.3453- Validation Loss: 0.0195- 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': 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}- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 1098, '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.3570 | 0.0236 | 0 || 0.0243 | 0.0084 | 1 || 0.0134 | 0.0057 | 2 || 0.3453 | 0.0195 | 0 |
### Framework versions12323version https://git-lfs.github.com/spec/v1oid sha256:dce403043fe34fb8be872e1e5b61c96732e03b6ac7687ffbaf1fa9fccaef7c90size 431352012oid sha256:ff17c57d1c7d072cb602759c978c407aaf7e377f09caedba115652164003a532size 431364300README.md+5-7
tf_model.h5+2-2