Text Classification
Transformers
Safetensors
PyTorch
English
bert
biomedical
psynamic
text-embeddings-inference
Instructions to use STRIDE-lab/biobert-setting-20261106 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use STRIDE-lab/biobert-setting-20261106 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="STRIDE-lab/biobert-setting-20261106")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("STRIDE-lab/biobert-setting-20261106") model = AutoModelForSequenceClassification.from_pretrained("STRIDE-lab/biobert-setting-20261106", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from STRIDE-lab/biobert-setting-20261106: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/STRIDE-lab/biobert-setting-20261106/resolve/main/config.json
- Command line
-
hf download hf://STRIDE-lab/biobert-setting-20261106/config.json
-
curl -L -o config.json https://huggingface.co/STRIDE-lab/biobert-setting-20261106/resolve/main/config.json
1.07 kB
| { | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Clinical", | |
| "1": "Naturalistic", | |
| "2": "Party setting", | |
| "3": "Other setting", | |
| "4": "Unknown", | |
| "5": "Not applicable", | |
| "6": "Palliative Setting" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Clinical": "0", | |
| "Naturalistic": "1", | |
| "Not applicable": "5", | |
| "Other setting": "3", | |
| "Palliative Setting": "6", | |
| "Party setting": "2", | |
| "Unknown": "4" | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "multi_label_classification", | |
| "transformers_version": "4.57.6", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 28996 | |
| } | |