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.0609- Validation Loss: 0.0463- Epoch: 2- Train Loss: 0.6605- Validation Loss: 0.0675- 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': 420, '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': 603, '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.8613 | 0.1280 | 0 || 0.1030 | 0.0601 | 1 || 0.0609 | 0.0463 | 2 || 0.6605 | 0.0675 | 0 |
### Framework versions12323version https://git-lfs.github.com/spec/v1oid sha256:d17458969cb284073894062a37eefe59dcbcf8acf29ef84228949bf76863f8c4size 431352012oid sha256:217d16d3ced9f40492b7f68a0828d987ef9351448bc61542745e12456db87f4dsize 431364300README.md+5-7
tf_model.h5+2-2