system HF staff commited on
Commit
b363948
1 Parent(s): b1b7fe4

Commit From AutoTrain

Browse files
.gitattributes CHANGED
@@ -25,3 +25,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
30
+ *.pkl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autotrain
3
+ language: en
4
+ widget:
5
+ - text: "I love AutoTrain 🤗"
6
+ datasets:
7
+ - lucianpopa/autotrain-data-qn-classification
8
+ co2_eq_emissions: 0.013170440014043236
9
+ ---
10
+
11
+ # Model Trained Using AutoTrain
12
+
13
+ - Problem type: Multi-class Classification
14
+ - Model ID: 1015534072
15
+ - CO2 Emissions (in grams): 0.013170440014043236
16
+
17
+ ## Validation Metrics
18
+
19
+ - Loss: 1.493847370147705
20
+ - Accuracy: 0.7333333333333333
21
+ - Macro F1: 0.6777777777777777
22
+ - Micro F1: 0.7333333333333333
23
+ - Weighted F1: 0.6777777777777777
24
+ - Macro Precision: 0.6555555555555554
25
+ - Micro Precision: 0.7333333333333333
26
+ - Weighted Precision: 0.6555555555555554
27
+ - Macro Recall: 0.7333333333333333
28
+ - Micro Recall: 0.7333333333333333
29
+ - Weighted Recall: 0.7333333333333333
30
+
31
+
32
+ ## Usage
33
+
34
+ You can use cURL to access this model:
35
+
36
+ ```
37
+ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/lucianpopa/autotrain-qn-classification-1015534072
38
+ ```
39
+
40
+ Or Python API:
41
+
42
+ ```
43
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
+
45
+ model = AutoModelForSequenceClassification.from_pretrained("lucianpopa/autotrain-qn-classification-1015534072", use_auth_token=True)
46
+
47
+ tokenizer = AutoTokenizer.from_pretrained("lucianpopa/autotrain-qn-classification-1015534072", use_auth_token=True)
48
+
49
+ inputs = tokenizer("I love AutoTrain", return_tensors="pt")
50
+
51
+ outputs = model(**inputs)
52
+ ```
config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 15,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "atis_abbreviation",
16
+ "1": "atis_aircraft",
17
+ "2": "atis_airfare",
18
+ "3": "atis_airline",
19
+ "4": "atis_airport",
20
+ "5": "atis_capacity",
21
+ "6": "atis_city",
22
+ "7": "atis_distance",
23
+ "8": "atis_flight",
24
+ "9": "atis_flight#atis_airfare",
25
+ "10": "atis_flight_no",
26
+ "11": "atis_flight_time",
27
+ "12": "atis_ground_fare",
28
+ "13": "atis_ground_service",
29
+ "14": "atis_quantity"
30
+ },
31
+ "initializer_range": 0.02,
32
+ "intermediate_size": 4096,
33
+ "label2id": {
34
+ "atis_abbreviation": 0,
35
+ "atis_aircraft": 1,
36
+ "atis_airfare": 2,
37
+ "atis_airline": 3,
38
+ "atis_airport": 4,
39
+ "atis_capacity": 5,
40
+ "atis_city": 6,
41
+ "atis_distance": 7,
42
+ "atis_flight": 8,
43
+ "atis_flight#atis_airfare": 9,
44
+ "atis_flight_no": 10,
45
+ "atis_flight_time": 11,
46
+ "atis_ground_fare": 12,
47
+ "atis_ground_service": 13,
48
+ "atis_quantity": 14
49
+ },
50
+ "layer_norm_eps": 1e-05,
51
+ "max_length": 64,
52
+ "max_position_embeddings": 514,
53
+ "model_type": "roberta",
54
+ "num_attention_heads": 16,
55
+ "num_hidden_layers": 24,
56
+ "pad_token_id": 1,
57
+ "padding": "max_length",
58
+ "position_embedding_type": "absolute",
59
+ "problem_type": "single_label_classification",
60
+ "torch_dtype": "float32",
61
+ "transformers_version": "4.15.0",
62
+ "type_vocab_size": 1,
63
+ "use_cache": true,
64
+ "vocab_size": 50265
65
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69218d10ca0f8c52547fd1a261d47eb5a40fec30c30a58f3b827da18a095b04a
3
+ size 1421664557
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3483a9aa4b21e3fde6e25d67163352d7cf3e65b3eeb22ec6129d61b09688236
3
+ size 2034
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "trim_offsets": true, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoTrain", "tokenizer_class": "RobertaTokenizer"}
vocab.json ADDED
The diff for this file is too large to render. See raw diff