Instructions to use tner/roberta-large-bc5cdr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tner/roberta-large-bc5cdr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="tner/roberta-large-bc5cdr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("tner/roberta-large-bc5cdr") model = AutoModelForTokenClassification.from_pretrained("tner/roberta-large-bc5cdr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download trainer_config.json from tner/roberta-large-bc5cdr: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/tner/roberta-large-bc5cdr/resolve/main/trainer_config.json
- Command line
-
hf download hf://tner/roberta-large-bc5cdr/trainer_config.json
-
curl -L -o trainer_config.json https://huggingface.co/tner/roberta-large-bc5cdr/resolve/main/trainer_config.json
328 Bytes
| {"dataset": ["tner/bc5cdr"], "dataset_split": "train", "dataset_name": null, "local_dataset": null, "model": "roberta-large", "crf": true, "max_length": 128, "epoch": 15, "batch_size": 64, "lr": 1e-05, "random_seed": 42, "gradient_accumulation_steps": 1, "weight_decay": null, "lr_warmup_step_ratio": 0.1, "max_grad_norm": 10.0} |