Text Classification
Transformers
Safetensors
English
distilbert
sdg
sustainable-development-goals
policy
text-embeddings-inference
Instructions to use Aakash1005/sdg-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aakash1005/sdg-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Aakash1005/sdg-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Aakash1005/sdg-classifier") model = AutoModelForSequenceClassification.from_pretrained("Aakash1005/sdg-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Aakash1005/sdg-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/Aakash1005/sdg-classifier/resolve/main/config.json
- Command line
-
hf download hf://Aakash1005/sdg-classifier/config.json
-
curl -L -o config.json https://huggingface.co/Aakash1005/sdg-classifier/resolve/main/config.json
1.27 kB
| { | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "bos_token_id": null, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "dtype": "float32", | |
| "eos_token_id": null, | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "SDG 1", | |
| "1": "SDG 2", | |
| "2": "SDG 3", | |
| "3": "SDG 4", | |
| "4": "SDG 5", | |
| "5": "SDG 6", | |
| "6": "SDG 7", | |
| "7": "SDG 8", | |
| "8": "SDG 9", | |
| "9": "SDG 10", | |
| "10": "SDG 11", | |
| "11": "SDG 12", | |
| "12": "SDG 13", | |
| "13": "SDG 14", | |
| "14": "SDG 15", | |
| "15": "SDG 16" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "SDG 1": 0, | |
| "SDG 10": 9, | |
| "SDG 11": 10, | |
| "SDG 12": 11, | |
| "SDG 13": 12, | |
| "SDG 14": 13, | |
| "SDG 15": 14, | |
| "SDG 16": 15, | |
| "SDG 2": 1, | |
| "SDG 3": 2, | |
| "SDG 4": 3, | |
| "SDG 5": 4, | |
| "SDG 6": 5, | |
| "SDG 7": 6, | |
| "SDG 8": 7, | |
| "SDG 9": 8 | |
| }, | |
| "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, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.0.0", | |
| "use_cache": false, | |
| "vocab_size": 30522 | |
| } | |