Text Classification
Transformers
TensorFlow
distilbert
generated_from_keras_callback
text-embeddings-inference
Instructions to use Humberto/MedicalArticlesClassificationModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Humberto/MedicalArticlesClassificationModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Humberto/MedicalArticlesClassificationModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Humberto/MedicalArticlesClassificationModel") model = AutoModelForSequenceClassification.from_pretrained("Humberto/MedicalArticlesClassificationModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 808 Bytes
ad6b239 9bd18c2 ad6b239 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | {
"_name_or_path": "distilbert-base-uncased",
"activation": "gelu",
"architectures": [
"DistilBertForSequenceClassification"
],
"attention_dropout": 0.1,
"dim": 768,
"dropout": 0.1,
"hidden_dim": 3072,
"id2label": {
"0": "Other",
"1": "Birth Control",
"2": "Depression",
"3": "Pain",
"4": "Anxiety",
"5": "Acne"
},
"initializer_range": 0.02,
"label2id": {
"Acne": 5,
"Anxiety": 4,
"Birth Control": 1,
"Depression": 2,
"Other": 0,
"Pain": 3
},
"max_position_embeddings": 512,
"model_type": "distilbert",
"n_heads": 12,
"n_layers": 6,
"pad_token_id": 0,
"qa_dropout": 0.1,
"seq_classif_dropout": 0.2,
"sinusoidal_pos_embds": false,
"tie_weights_": true,
"transformers_version": "4.28.1",
"vocab_size": 30522
}
|