Instructions to use Umer1542/task-b-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Umer1542/task-b-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Umer1542/task-b-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Umer1542/task-b-classification") model = AutoModelForSequenceClassification.from_pretrained("Umer1542/task-b-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Umer1542/task-b-classification: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/Umer1542/task-b-classification/resolve/refs%2Fpr%2F1/config.json
- Command line
-
hf download hf://Umer1542/task-b-classification@refs/pr/1/config.json
-
curl -L -o config.json https://huggingface.co/Umer1542/task-b-classification/resolve/refs%2Fpr%2F1/config.json
1 kB
| { | |
| "_name_or_path": "facebook/opt-350m", | |
| "_remove_final_layer_norm": false, | |
| "activation_dropout": 0.0, | |
| "activation_function": "relu", | |
| "architectures": [ | |
| "OPTForSequenceClassification" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 2, | |
| "do_layer_norm_before": false, | |
| "dropout": 0.1, | |
| "enable_bias": true, | |
| "eos_token_id": 2, | |
| "ffn_dim": 4096, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1", | |
| "2": "LABEL_2", | |
| "3": "LABEL_3" | |
| }, | |
| "init_std": 0.02, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1, | |
| "LABEL_2": 2, | |
| "LABEL_3": 3 | |
| }, | |
| "layer_norm_elementwise_affine": true, | |
| "layerdrop": 0.0, | |
| "max_position_embeddings": 2048, | |
| "model_type": "opt", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "pad_token_id": 1, | |
| "prefix": "</s>", | |
| "problem_type": "single_label_classification", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.30.2", | |
| "use_cache": true, | |
| "vocab_size": 50272, | |
| "word_embed_proj_dim": 512 | |
| } | |