system HF staff commited on
Commit
34aab41
1 Parent(s): abba310

Commit From AutoTrain

Browse files
.gitattributes CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
36
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - text-classification
5
+ language:
6
+ - unk
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - AyoubChLin/autotrain-data-longformer
11
+ co2_eq_emissions:
12
+ emissions: 1.738487465928671
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Multi-class Classification
18
+ - Model ID: 48941118448
19
+ - CO2 Emissions (in grams): 1.7385
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.104
24
+ - Accuracy: 0.971
25
+ - Macro F1: 0.970
26
+ - Micro F1: 0.971
27
+ - Weighted F1: 0.971
28
+ - Macro Precision: 0.970
29
+ - Micro Precision: 0.971
30
+ - Weighted Precision: 0.971
31
+ - Macro Recall: 0.969
32
+ - Micro Recall: 0.971
33
+ - Weighted Recall: 0.971
34
+
35
+
36
+ ## Usage
37
+
38
+ You can use cURL to access this model:
39
+
40
+ ```
41
+ $ 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/AyoubChLin/autotrain-longformer-48941118448
42
+ ```
43
+
44
+ Or Python API:
45
+
46
+ ```
47
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
48
+
49
+ model = AutoModelForSequenceClassification.from_pretrained("AyoubChLin/autotrain-longformer-48941118448", use_auth_token=True)
50
+
51
+ tokenizer = AutoTokenizer.from_pretrained("AyoubChLin/autotrain-longformer-48941118448", use_auth_token=True)
52
+
53
+ inputs = tokenizer("I love AutoTrain", return_tensors="pt")
54
+
55
+ outputs = model(**inputs)
56
+ ```
config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 5,
4
+ "architectures": [
5
+ "LongformerForSequenceClassification"
6
+ ],
7
+ "attention_mode": "longformer",
8
+ "attention_probs_dropout_prob": 0.1,
9
+ "attention_window": [
10
+ 512,
11
+ 512,
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512,
20
+ 512,
21
+ 512
22
+ ],
23
+ "bos_token_id": 0,
24
+ "classifier_dropout": null,
25
+ "eos_token_id": 2,
26
+ "gradient_checkpointing": false,
27
+ "hidden_act": "gelu",
28
+ "hidden_dropout_prob": 0.1,
29
+ "hidden_size": 768,
30
+ "id2label": {
31
+ "0": "0",
32
+ "1": "1",
33
+ "2": "2",
34
+ "3": "3",
35
+ "4": "4"
36
+ },
37
+ "ignore_attention_mask": false,
38
+ "initializer_range": 0.02,
39
+ "intermediate_size": 3072,
40
+ "label2id": {
41
+ "0": 0,
42
+ "1": 1,
43
+ "2": 2,
44
+ "3": 3,
45
+ "4": 4
46
+ },
47
+ "layer_norm_eps": 1e-05,
48
+ "max_length": 512,
49
+ "max_position_embeddings": 4098,
50
+ "model_type": "longformer",
51
+ "num_attention_heads": 12,
52
+ "num_hidden_layers": 12,
53
+ "onnx_export": false,
54
+ "pad_token_id": 1,
55
+ "padding": "max_length",
56
+ "position_embedding_type": "absolute",
57
+ "problem_type": "single_label_classification",
58
+ "sep_token_id": 2,
59
+ "torch_dtype": "float32",
60
+ "transformers_version": "4.25.1",
61
+ "type_vocab_size": 1,
62
+ "use_cache": true,
63
+ "vocab_size": 50265
64
+ }
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:b9276b4fdb3e0571836c3f8064d7baf679c0ecf78f90405ce00b6d5fb378ec07
3
+ size 594748497
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c2ecf365d372bb35a4fbab56555327876893a76958a3e5956a3fe54518f06f3
3
+ size 2108856
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "errors": "replace",
7
+ "mask_token": "<mask>",
8
+ "model_max_length": 4096,
9
+ "name_or_path": "AutoTrain",
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "special_tokens_map_file": null,
13
+ "tokenizer_class": "LongformerTokenizer",
14
+ "trim_offsets": true,
15
+ "unk_token": "<unk>"
16
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff