Text Classification
Transformers
TensorFlow
distilbert
generated_from_keras_callback
text-embeddings-inference
Instructions to use ratish/DBERT_CleanDesc_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ratish/DBERT_CleanDesc_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ratish/DBERT_CleanDesc_v2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ratish/DBERT_CleanDesc_v2") model = AutoModelForSequenceClassification.from_pretrained("ratish/DBERT_CleanDesc_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,044 Bytes
c33ff65 | 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 41 42 43 44 45 46 47 48 49 50 51 52 | {
"_name_or_path": "distilbert-base-uncased",
"activation": "gelu",
"architectures": [
"DistilBertForSequenceClassification"
],
"attention_dropout": 0.1,
"dim": 768,
"dropout": 0.1,
"hidden_dim": 3072,
"id2label": {
"0": "lincoln",
"1": "toyota",
"2": "cruise",
"3": "autonomous",
"4": "jaguar",
"5": "ford",
"6": "nissan",
"7": "chevrolet",
"8": "lexus",
"9": "hyundai",
"10": "mercedes-benz",
"11": "chrysler"
},
"initializer_range": 0.02,
"label2id": {
"autonomous": 3,
"chevrolet": 7,
"chrysler": 11,
"cruise": 2,
"ford": 5,
"hyundai": 9,
"jaguar": 4,
"lexus": 8,
"lincoln": 0,
"mercedes-benz": 10,
"nissan": 6,
"toyota": 1
},
"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.27.4",
"vocab_size": 30522
}
|