abhishek HF staff commited on
Commit
52b6ee8
1 Parent(s): 956e7ea

Commit From AutoNLP

Browse files
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: en
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - idjotherwise/autonlp-data-reading_prediction
8
+ ---
9
+
10
+ # Model Trained Using AutoNLP
11
+
12
+ - Problem type: Single Column Regression
13
+ - Model ID: 172506
14
+
15
+ ## Validation Metrics
16
+
17
+ - Loss: 0.03257797285914421
18
+ - MSE: 0.03257797285914421
19
+ - MAE: 0.14246532320976257
20
+ - R2: 0.9693824457290849
21
+ - RMSE: 0.18049369752407074
22
+ - Explained Variance: 0.9699198007583618
23
+
24
+ ## Usage
25
+
26
+ You can use cURL to access this model:
27
+
28
+ ```
29
+ $ 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/idjotherwise/autonlp-reading_prediction-172506
30
+ ```
31
+
32
+ Or Python API:
33
+
34
+ ```
35
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
36
+
37
+ model = AutoModelForSequenceClassification.from_pretrained("idjotherwise/autonlp-reading_prediction-172506", use_auth_token=True)
38
+
39
+ tokenizer = AutoTokenizer.from_pretrained("idjotherwise/autonlp-reading_prediction-172506", use_auth_token=True)
40
+
41
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
42
+
43
+ outputs = model(**inputs)
44
+ ```
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 1,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "target"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 4096,
19
+ "label2id": {
20
+ "target": "0"
21
+ },
22
+ "layer_norm_eps": 1e-05,
23
+ "max_length": 256,
24
+ "max_position_embeddings": 514,
25
+ "model_type": "roberta",
26
+ "num_attention_heads": 16,
27
+ "num_hidden_layers": 24,
28
+ "pad_token_id": 1,
29
+ "padding": "max_length",
30
+ "position_embedding_type": "absolute",
31
+ "transformers_version": "4.5.1",
32
+ "type_vocab_size": 1,
33
+ "use_cache": true,
34
+ "vocab_size": 50265
35
+ }
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:fc642ae2013ad2642744f271be055320917d5b71ce18ce2a8ffbff366e9e6562
3
+ size 1421616585
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7aceeb8faa821f9a3cb7268aaf72a5d080c5eccef03b4d07da5d3ef8eef263c8
3
+ size 5104
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_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>", "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "AutoNLP"}
vocab.json ADDED
The diff for this file is too large to render. See raw diff