abhishek HF staff commited on
Commit
a41d734
1 Parent(s): e2a3d25

Commit From AutoNLP

Browse files
Files changed (3) hide show
  1. README.md +43 -0
  2. config.json +53 -0
  3. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: bn
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - albertvillanova/autonlp-data-wikiann-entity_extraction-1e67664
8
+ ---
9
+
10
+ # Model Trained Using AutoNLP
11
+
12
+ - Problem type: Entity Extraction
13
+ - Model ID: 1301123
14
+
15
+ ## Validation Metrics
16
+
17
+ - Loss: 0.14097803831100464
18
+ - Accuracy: 0.9740097463451206
19
+ - Precision: 0.0
20
+ - Recall: 0.0
21
+ - F1: 0.0
22
+
23
+ ## Usage
24
+
25
+ You can use cURL to access this model:
26
+
27
+ ```
28
+ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/albertvillanova/autonlp-wikiann-entity_extraction-1e67664-1301123
29
+ ```
30
+
31
+ Or Python API:
32
+
33
+ ```
34
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
35
+
36
+ model = AutoModelForTokenClassification.from_pretrained("albertvillanova/autonlp-wikiann-entity_extraction-1e67664-1301123", use_auth_token=True)
37
+
38
+ tokenizer = AutoTokenizer.from_pretrained("albertvillanova/autonlp-wikiann-entity_extraction-1e67664-1301123", use_auth_token=True)
39
+
40
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
41
+
42
+ outputs = model(**inputs)
43
+ ```
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 7,
4
+ "architectures": [
5
+ "AlbertForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0,
8
+ "bos_token_id": 2,
9
+ "classifier_dropout_prob": 0.1,
10
+ "down_scale_factor": 1,
11
+ "embedding_size": 128,
12
+ "eos_token_id": 3,
13
+ "gap_size": 0,
14
+ "hidden_act": "gelu_new",
15
+ "hidden_dropout_prob": 0,
16
+ "hidden_size": 1024,
17
+ "id2label": {
18
+ "0": "0",
19
+ "1": "1",
20
+ "2": "2",
21
+ "3": "3",
22
+ "4": "4",
23
+ "5": "5",
24
+ "6": "6"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "inner_group_num": 1,
28
+ "intermediate_size": 4096,
29
+ "label2id": {
30
+ "0": 0,
31
+ "1": 1,
32
+ "2": 2,
33
+ "3": 3,
34
+ "4": 4,
35
+ "5": 5,
36
+ "6": 6
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "max_length": 96,
40
+ "max_position_embeddings": 512,
41
+ "model_type": "albert",
42
+ "net_structure_type": 0,
43
+ "num_attention_heads": 16,
44
+ "num_hidden_groups": 1,
45
+ "num_hidden_layers": 24,
46
+ "num_memory_blocks": 0,
47
+ "pad_token_id": 0,
48
+ "padding": "max_length",
49
+ "position_embedding_type": "absolute",
50
+ "transformers_version": "4.5.1",
51
+ "type_vocab_size": 2,
52
+ "vocab_size": 32000
53
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95150bb720fac158b432ae3fb17a5146456f0db9a918f9e242e8e28c9915b8d5
3
+ size 67605529