Instructions to use Laksh-Mendpara/MLOps-Assignment-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Laksh-Mendpara/MLOps-Assignment-3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Laksh-Mendpara/MLOps-Assignment-3")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Laksh-Mendpara/MLOps-Assignment-3") model = AutoModelForSequenceClassification.from_pretrained("Laksh-Mendpara/MLOps-Assignment-3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Laksh-Mendpara/MLOps-Assignment-3: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/Laksh-Mendpara/MLOps-Assignment-3/resolve/main/config.json
- Command line
-
hf download hf://Laksh-Mendpara/MLOps-Assignment-3/config.json
-
curl -L -o config.json https://huggingface.co/Laksh-Mendpara/MLOps-Assignment-3/resolve/main/config.json
1.18 kB
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "children", | |
| "1": "comics_graphic", | |
| "2": "fantasy_paranormal", | |
| "3": "history_biography", | |
| "4": "mystery_thriller_crime", | |
| "5": "poetry", | |
| "6": "romance", | |
| "7": "young_adult" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "is_decoder": false, | |
| "label2id": { | |
| "children": 0, | |
| "comics_graphic": 1, | |
| "fantasy_paranormal": 2, | |
| "history_biography": 3, | |
| "mystery_thriller_crime": 4, | |
| "poetry": 5, | |
| "romance": 6, | |
| "young_adult": 7 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 1, | |
| "problem_type": "single_label_classification", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.2.0", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 50265 | |
| } | |