Upload folder using huggingface_hub
Browse files- config.json +1 -6
- model.py +2 -2
- tokenizer.json +2 -16
config.json
CHANGED
|
@@ -1,12 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
-
"auto_map": {
|
| 6 |
-
"AutoModel": "model.DebertV3SequenceClassifier",
|
| 7 |
-
"AutoModelForSequenceClassification":
|
| 8 |
-
"model.DebertaV3SequenceClassifier"
|
| 9 |
-
},
|
| 10 |
"attention_probs_dropout_prob": 0.1,
|
| 11 |
"hidden_act": "gelu",
|
| 12 |
"hidden_dropout_prob": 0.1,
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"DebertaSequenceClassifier"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"hidden_act": "gelu",
|
| 7 |
"hidden_dropout_prob": 0.1,
|
model.py
CHANGED
|
@@ -2,8 +2,8 @@ import torch
|
|
| 2 |
import torch.nn as nn
|
| 3 |
import torch.nn.functional as F
|
| 4 |
|
| 5 |
-
from transformers import (
|
| 6 |
-
DebertaV2Model,
|
| 7 |
DebertaV2PreTrainedModel,
|
| 8 |
DebertaV2Config,
|
| 9 |
)
|
|
|
|
| 2 |
import torch.nn as nn
|
| 3 |
import torch.nn.functional as F
|
| 4 |
|
| 5 |
+
from transformers import (
|
| 6 |
+
DebertaV2Model,
|
| 7 |
DebertaV2PreTrainedModel,
|
| 8 |
DebertaV2Config,
|
| 9 |
)
|
tokenizer.json
CHANGED
|
@@ -1,21 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
-
"truncation":
|
| 4 |
-
|
| 5 |
-
"max_length": 512,
|
| 6 |
-
"strategy": "LongestFirst",
|
| 7 |
-
"stride": 0
|
| 8 |
-
},
|
| 9 |
-
"padding": {
|
| 10 |
-
"strategy": {
|
| 11 |
-
"Fixed": 512
|
| 12 |
-
},
|
| 13 |
-
"direction": "Right",
|
| 14 |
-
"pad_to_multiple_of": null,
|
| 15 |
-
"pad_id": 0,
|
| 16 |
-
"pad_type_id": 0,
|
| 17 |
-
"pad_token": "[PAD]"
|
| 18 |
-
},
|
| 19 |
"added_tokens": [
|
| 20 |
{
|
| 21 |
"id": 0,
|
|
|
|
| 1 |
{
|
| 2 |
"version": "1.0",
|
| 3 |
+
"truncation": null,
|
| 4 |
+
"padding": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"added_tokens": [
|
| 6 |
{
|
| 7 |
"id": 0,
|