Instructions to use annamp/classifying-courses-at-scale-two-digit-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use annamp/classifying-courses-at-scale-two-digit-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="annamp/classifying-courses-at-scale-two-digit-roberta-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("annamp/classifying-courses-at-scale-two-digit-roberta-base") model = AutoModelForSequenceClassification.from_pretrained("annamp/classifying-courses-at-scale-two-digit-roberta-base") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "../../ccm/models/transformers/roberta-base_classification_two_20221101/", | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "1", | |
| "1": "10", | |
| "2": "11", | |
| "3": "12", | |
| "4": "13", | |
| "5": "14", | |
| "6": "15", | |
| "7": "16", | |
| "8": "19", | |
| "9": "22", | |
| "10": "23", | |
| "11": "24", | |
| "12": "25", | |
| "13": "26", | |
| "14": "27", | |
| "15": "28", | |
| "16": "29", | |
| "17": "3", | |
| "18": "30", | |
| "19": "31", | |
| "20": "32", | |
| "21": "33", | |
| "22": "34", | |
| "23": "35", | |
| "24": "36", | |
| "25": "37", | |
| "26": "38", | |
| "27": "39", | |
| "28": "4", | |
| "29": "40", | |
| "30": "41", | |
| "31": "42", | |
| "32": "43", | |
| "33": "44", | |
| "34": "45", | |
| "35": "46", | |
| "36": "47", | |
| "37": "48", | |
| "38": "49", | |
| "39": "5", | |
| "40": "50", | |
| "41": "51", | |
| "42": "52", | |
| "43": "53", | |
| "44": "54", | |
| "45": "60", | |
| "46": "9", | |
| "47": "90" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "1": 0, | |
| "10": 1, | |
| "11": 2, | |
| "12": 3, | |
| "13": 4, | |
| "14": 5, | |
| "15": 6, | |
| "16": 7, | |
| "19": 8, | |
| "22": 9, | |
| "23": 10, | |
| "24": 11, | |
| "25": 12, | |
| "26": 13, | |
| "27": 14, | |
| "28": 15, | |
| "29": 16, | |
| "3": 17, | |
| "30": 18, | |
| "31": 19, | |
| "32": 20, | |
| "33": 21, | |
| "34": 22, | |
| "35": 23, | |
| "36": 24, | |
| "37": 25, | |
| "38": 26, | |
| "39": 27, | |
| "4": 28, | |
| "40": 29, | |
| "41": 30, | |
| "42": 31, | |
| "43": 32, | |
| "44": 33, | |
| "45": 34, | |
| "46": 35, | |
| "47": 36, | |
| "48": 37, | |
| "49": 38, | |
| "5": 39, | |
| "50": 40, | |
| "51": 41, | |
| "52": 42, | |
| "53": 43, | |
| "54": 44, | |
| "60": 45, | |
| "9": 46, | |
| "90": 47 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.39.3", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 50265 | |
| } | |