Instructions to use KalaiselvanD/bigbert_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KalaiselvanD/bigbert_1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KalaiselvanD/bigbert_1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KalaiselvanD/bigbert_1") model = AutoModelForSequenceClassification.from_pretrained("KalaiselvanD/bigbert_1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from KalaiselvanD/bigbert_1: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/KalaiselvanD/bigbert_1/resolve/main/config.json
- Command line
-
hf download hf://KalaiselvanD/bigbert_1/config.json
-
curl -L -o config.json https://huggingface.co/KalaiselvanD/bigbert_1/resolve/main/config.json
1.09 kB
| { | |
| "_name_or_path": "l-yohai/bigbird-roberta-base-mnli", | |
| "architectures": [ | |
| "BigBirdForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "attention_type": "block_sparse", | |
| "block_size": 64, | |
| "bos_token_id": 1, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu_new", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "low", | |
| "1": "medium", | |
| "2": "high" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "high": 2, | |
| "low": 0, | |
| "medium": 1 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 4096, | |
| "model_type": "big_bird", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "num_random_blocks": 3, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "rescale_embeddings": false, | |
| "sep_token_id": 66, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.40.1", | |
| "type_vocab_size": 2, | |
| "use_bias": true, | |
| "use_cache": true, | |
| "vocab_size": 50358 | |
| } | |