Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +56 -0
- config.json +3 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +3 -0
- vocab.json +3 -0
.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 |
+
*.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 |
+
- crodri/autotrain-data-wikicat_es
|
11 |
+
co2_eq_emissions:
|
12 |
+
emissions: 10.4216765068249
|
13 |
+
---
|
14 |
+
|
15 |
+
# Model Trained Using AutoTrain
|
16 |
+
|
17 |
+
- Problem type: Multi-class Classification
|
18 |
+
- Model ID: 2213570987
|
19 |
+
- CO2 Emissions (in grams): 10.4217
|
20 |
+
|
21 |
+
## Validation Metrics
|
22 |
+
|
23 |
+
- Loss: 0.713
|
24 |
+
- Accuracy: 0.786
|
25 |
+
- Macro F1: 0.758
|
26 |
+
- Micro F1: 0.786
|
27 |
+
- Weighted F1: 0.785
|
28 |
+
- Macro Precision: 0.762
|
29 |
+
- Micro Precision: 0.786
|
30 |
+
- Weighted Precision: 0.787
|
31 |
+
- Macro Recall: 0.757
|
32 |
+
- Micro Recall: 0.786
|
33 |
+
- Weighted Recall: 0.786
|
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/crodri/autotrain-wikicat_es-2213570987
|
42 |
+
```
|
43 |
+
|
44 |
+
Or Python API:
|
45 |
+
|
46 |
+
```
|
47 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
48 |
+
|
49 |
+
model = AutoModelForSequenceClassification.from_pretrained("crodri/autotrain-wikicat_es-2213570987", use_auth_token=True)
|
50 |
+
|
51 |
+
tokenizer = AutoTokenizer.from_pretrained("crodri/autotrain-wikicat_es-2213570987", 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,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:320e896278c4b7c97d1f130c115d2bd84e1b681a354ecb11f5f0c84572871b36
|
3 |
+
size 1474
|
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:24535ac1398133bf4681895a7606df3588ca16f35adb9e173a2e328140094ede
|
3 |
+
size 498681837
|
special_tokens_map.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8293ae960b0a0852d4d3813118030a1149a3ed9fe37bc2e1e7b3c2e62eb2d4b7
|
3 |
+
size 957
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ed373455d55c0b4eacc1385c8368780755126929c936337a664cdc065826a9d
|
3 |
+
size 2213820
|
tokenizer_config.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:483ef37e111539bf55836fafc69be8a4b0205f68f5e4f22c521d068d09345fba
|
3 |
+
size 1354
|
vocab.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:804c69c40e3060f52d9a4b27dde2569a183f252eb60072e5d6e0c6c126b2de3e
|
3 |
+
size 851290
|