Instructions to use opsbr/eye-grep-electra-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use opsbr/eye-grep-electra-small with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'opsbr/eye-grep-electra-small');
| { | |
| "architectures": [ | |
| "ElectraForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "embedding_size": 128, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 256, | |
| "id2label": { | |
| "0": "PUNCT", | |
| "1": "WORD", | |
| "2": "NUM", | |
| "3": "RAND", | |
| "4": "IP", | |
| "5": "DURATION", | |
| "6": "SIZE", | |
| "7": "TIMESTAMP", | |
| "8": "LEVEL", | |
| "9": "URL", | |
| "10": "PATH" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1024, | |
| "label2id": { | |
| "DURATION": 5, | |
| "IP": 4, | |
| "LEVEL": 8, | |
| "NUM": 2, | |
| "PATH": 10, | |
| "PUNCT": 0, | |
| "RAND": 3, | |
| "SIZE": 6, | |
| "TIMESTAMP": 7, | |
| "URL": 9, | |
| "WORD": 1 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "electra", | |
| "num_attention_heads": 4, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "summary_activation": "gelu", | |
| "summary_last_dropout": 0.1, | |
| "summary_type": "first", | |
| "summary_use_proj": true, | |
| "transformers_version": "4.57.6", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 30522 | |
| } | |