Token Classification
Transformers
ONNX
Safetensors
English
ultrabert
information-extraction
extractive-qa
ner
span-extraction
tasksource
custom_code
Instructions to use tasksource/UltraBERT-150M-clairic-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tasksource/UltraBERT-150M-clairic-extraction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="tasksource/UltraBERT-150M-clairic-extraction", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("tasksource/UltraBERT-150M-clairic-extraction", trust_remote_code=True) model = AutoModelForTokenClassification.from_pretrained("tasksource/UltraBERT-150M-clairic-extraction", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,984 Bytes
e9c4ecd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | {
"architectures": [
"UltrabertForTokenClassification"
],
"attention_bias": false,
"attention_dropout": 0.0,
"attention_windows": [
128,
128,
null,
128,
128,
null,
128,
128,
null,
128,
128,
null,
128,
128,
null,
128,
128,
null,
128,
128,
null,
128,
128,
null
],
"auto_map": {
"AutoConfig": "configuration_ultrabert.UltrabertConfig",
"AutoModel": "modeling_ultrabert.UltrabertModel",
"AutoModelForMaskedLM": "modeling_ultrabert.UltrabertForMaskedLM",
"AutoModelForQuestionAnswering": "modeling_ultrabert.UltrabertForQuestionAnswering",
"AutoModelForSequenceClassification": "modeling_ultrabert.UltrabertForSequenceClassification",
"AutoModelForTokenClassification": "modeling_ultrabert.UltrabertForTokenClassification"
},
"bos_token_id": 0,
"classifier_dropout": 0.0,
"classifiers_size": [
3
],
"dtype": "float32",
"eos_token_id": 0,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 768,
"id2label": {
"0": "O",
"1": "B-answer",
"2": "I-answer"
},
"initializer_range": 0.02,
"intermediate_size": 1024,
"label2id": {
"B-answer": 1,
"I-answer": 2,
"O": 0
},
"max_position_embeddings": 2048,
"mlp_bias": false,
"model_type": "ultrabert",
"num_attention_heads": 6,
"num_hidden_layers": 24,
"num_key_value_heads": 6,
"pad_token_id": 0,
"prediction_head_size": 768,
"rms_norm_eps": 1e-06,
"rope_theta": [
10000.0,
10000.0,
2560000.0,
10000.0,
10000.0,
2560000.0,
10000.0,
10000.0,
2560000.0,
10000.0,
10000.0,
2560000.0,
10000.0,
10000.0,
2560000.0,
10000.0,
10000.0,
2560000.0,
10000.0,
10000.0,
2560000.0,
10000.0,
10000.0,
2560000.0
],
"tasks": [
"jev-extraction"
],
"tie_word_embeddings": false,
"transformers_version": "5.17.0",
"vocab_size": 49152
}
|