Token Classification
Transformers
TensorBoard
Safetensors
MLX
Norwegian
Norwegian Bokmål
Norwegian Nynorsk
bert
Trained with AutoTrain
Eval Results (legacy)
Instructions to use NbAiLab/nb-bert-base-pos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NbAiLab/nb-bert-base-pos with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="NbAiLab/nb-bert-base-pos")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("NbAiLab/nb-bert-base-pos") model = AutoModelForTokenClassification.from_pretrained("NbAiLab/nb-bert-base-pos", device_map="auto") - MLX
How to use NbAiLab/nb-bert-base-pos with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir nb-bert-base-pos NbAiLab/nb-bert-base-pos
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
| { | |
| "data_path": "ltgoslo/norne", | |
| "model": "NbAiLab/nb-bert-base", | |
| "lr": 3e-05, | |
| "epochs": 5, | |
| "max_seq_length": 512, | |
| "batch_size": 8, | |
| "warmup_ratio": 0.1, | |
| "gradient_accumulation": 1, | |
| "optimizer": "adamw_torch", | |
| "scheduler": "linear", | |
| "weight_decay": 0.0, | |
| "max_grad_norm": 1.0, | |
| "seed": 42, | |
| "train_split": "bokmaal:train", | |
| "valid_split": "bokmaal:test", | |
| "tokens_column": "tokens", | |
| "tags_column": "pos_tags", | |
| "logging_steps": -1, | |
| "project_name": "nb-bert-base-pos-ltgnorne-lr3e-5-e5", | |
| "auto_find_batch_size": false, | |
| "mixed_precision": "fp16", | |
| "save_total_limit": 1, | |
| "push_to_hub": true, | |
| "eval_strategy": "epoch", | |
| "username": "versae", | |
| "log": "tensorboard", | |
| "early_stopping_patience": 5, | |
| "early_stopping_threshold": 0.01 | |
| } |