shhossain commited on
Commit
4f84af9
1 Parent(s): 84cf4ad

Upload model

Browse files
Files changed (2) hide show
  1. config.json +6 -1
  2. model.py +1 -1
config.json CHANGED
@@ -1,6 +1,10 @@
1
  {
 
 
 
2
  "auto_map": {
3
- "AutoConfig": "config.SentimentConfig"
 
4
  },
5
  "class_map": {
6
  "0": "sad",
@@ -14,5 +18,6 @@
14
  "h1": 44,
15
  "h2": 46,
16
  "model_type": "SententenceTransformerSentimentClassifier",
 
17
  "transformers_version": "4.29.0"
18
  }
 
1
  {
2
+ "architectures": [
3
+ "SententenceTransformerSentimentModel"
4
+ ],
5
  "auto_map": {
6
+ "AutoConfig": "config.SentimentConfig",
7
+ "AutoModelForSequenceClassification": "model.SententenceTransformerSentimentModel"
8
  },
9
  "class_map": {
10
  "0": "sad",
 
18
  "h1": 44,
19
  "h2": 46,
20
  "model_type": "SententenceTransformerSentimentClassifier",
21
+ "torch_dtype": "float32",
22
  "transformers_version": "4.29.0"
23
  }
model.py CHANGED
@@ -18,5 +18,5 @@ class SententenceTransformerSentimentModel(PreTrainedModel):
18
  x = F.relu(self.fc1(x))
19
  x = F.relu(self.fc2(x))
20
  x = self.out(x)
21
- out = F.softmax(x, dim=1)
22
  return out
 
18
  x = F.relu(self.fc1(x))
19
  x = F.relu(self.fc2(x))
20
  x = self.out(x)
21
+ out = F.softmax(x, dim=-1)
22
  return out