Instructions to use hf-tiny-model-private/tiny-random-IBertForSequenceClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tiny-model-private/tiny-random-IBertForSequenceClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hf-tiny-model-private/tiny-random-IBertForSequenceClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-IBertForSequenceClassification") model = AutoModelForSequenceClassification.from_pretrained("hf-tiny-model-private/tiny-random-IBertForSequenceClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hf-tiny-model-private/tiny-random-IBertForSequenceClassification: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/hf-tiny-model-private/tiny-random-IBertForSequenceClassification/resolve/b4bd3f273623ba1ab9341ef4a5b1d396bd04ef99/config.json
- Command line
-
hf download hf://hf-tiny-model-private/tiny-random-IBertForSequenceClassification@b4bd3f273623ba1ab9341ef4a5b1d396bd04ef99/config.json
-
curl -L -o config.json https://huggingface.co/hf-tiny-model-private/tiny-random-IBertForSequenceClassification/resolve/b4bd3f273623ba1ab9341ef4a5b1d396bd04ef99/config.json
645 Bytes
| { | |
| "architectures": [ | |
| "IBertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "eos_token_id": 2, | |
| "force_dequant": "none", | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 32, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 37, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "ibert", | |
| "num_attention_heads": 4, | |
| "num_hidden_layers": 5, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "quant_mode": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.28.0.dev0", | |
| "type_vocab_size": 16, | |
| "vocab_size": 1024 | |
| } | |