add file
Browse files- config.json +1 -1
- modeling_qwen.py +1 -1
config.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
},
|
11 |
"bf16": false,
|
12 |
"emb_dropout_prob": 0.0,
|
13 |
-
"fp16":
|
14 |
"fp32": false,
|
15 |
"hidden_size": 4096,
|
16 |
"initializer_range": 0.02,
|
|
|
10 |
},
|
11 |
"bf16": false,
|
12 |
"emb_dropout_prob": 0.0,
|
13 |
+
"fp16": true,
|
14 |
"fp32": false,
|
15 |
"hidden_size": 4096,
|
16 |
"initializer_range": 0.02,
|
modeling_qwen.py
CHANGED
@@ -1057,7 +1057,7 @@ class QWenLMHeadModel(QWenPreTrainedModel):
|
|
1057 |
)
|
1058 |
hidden_states = transformer_outputs[0]
|
1059 |
|
1060 |
-
hidden_states = hidden_states.to(torch.
|
1061 |
|
1062 |
#解决self和mat2数据类型不一致的bug
|
1063 |
|
|
|
1057 |
)
|
1058 |
hidden_states = transformer_outputs[0]
|
1059 |
|
1060 |
+
#hidden_states = hidden_states.to(torch.float16)
|
1061 |
|
1062 |
#解决self和mat2数据类型不一致的bug
|
1063 |
|