Text Classification
Transformers
TensorBoard
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use Chima207/distilbert_amazon_book_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Chima207/distilbert_amazon_book_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Chima207/distilbert_amazon_book_classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Chima207/distilbert_amazon_book_classification") model = AutoModelForSequenceClassification.from_pretrained("Chima207/distilbert_amazon_book_classification") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "distilbert-base-uncased", | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "artsnphotography", | |
| "1": "biographiesnmemoirs", | |
| "2": "businessnmoney", | |
| "3": "childrensebooks", | |
| "4": "comics", | |
| "5": "computersntechnology", | |
| "6": "cookbooksnfoodnwine", | |
| "7": "craftsnhobbiesnhome", | |
| "8": "educationnteaching", | |
| "9": "engineeringntransportation", | |
| "10": "foreignlanguage", | |
| "11": "healthnfitnessndieting", | |
| "12": "history", | |
| "13": "humornentertainment", | |
| "14": "law", | |
| "15": "lgbtqplusebooks", | |
| "16": "literaturenfiction", | |
| "17": "medical", | |
| "18": "mysterynthrillernsuspense", | |
| "19": "nonfiction", | |
| "20": "parentingnrelationships", | |
| "21": "politicsnsocialsciences", | |
| "22": "reference", | |
| "23": "religionnspirituality", | |
| "24": "romance", | |
| "25": "sciencefictionnfantasy", | |
| "26": "sciencenmath", | |
| "27": "selfhelp", | |
| "28": "sportsnoutdoors", | |
| "29": "teennyoungadult", | |
| "30": "travel" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "artsnphotography": 0, | |
| "biographiesnmemoirs": 1, | |
| "businessnmoney": 2, | |
| "childrensebooks": 3, | |
| "comics": 4, | |
| "computersntechnology": 5, | |
| "cookbooksnfoodnwine": 6, | |
| "craftsnhobbiesnhome": 7, | |
| "educationnteaching": 8, | |
| "engineeringntransportation": 9, | |
| "foreignlanguage": 10, | |
| "healthnfitnessndieting": 11, | |
| "history": 12, | |
| "humornentertainment": 13, | |
| "law": 14, | |
| "lgbtqplusebooks": 15, | |
| "literaturenfiction": 16, | |
| "medical": 17, | |
| "mysterynthrillernsuspense": 18, | |
| "nonfiction": 19, | |
| "parentingnrelationships": 20, | |
| "politicsnsocialsciences": 21, | |
| "reference": 22, | |
| "religionnspirituality": 23, | |
| "romance": 24, | |
| "sciencefictionnfantasy": 25, | |
| "sciencenmath": 26, | |
| "selfhelp": 27, | |
| "sportsnoutdoors": 28, | |
| "teennyoungadult": 29, | |
| "travel": 30 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "pad_token_id": 0, | |
| "problem_type": "single_label_classification", | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.45.2", | |
| "vocab_size": 30522 | |
| } | |