Upload PDeepPP_DPPIV to Hugging Face Hub.
Browse files- config.json +0 -1
- configuration_pdeeppp.py +6 -6
config.json
CHANGED
|
@@ -15,7 +15,6 @@
|
|
| 15 |
"num_heads": 8,
|
| 16 |
"num_transformer_layers": 4,
|
| 17 |
"output_size": 128,
|
| 18 |
-
"ptm_type": "ACE",
|
| 19 |
"task_type": "DPPIV",
|
| 20 |
"torch_dtype": "float32",
|
| 21 |
"transformers_version": "4.35.2"
|
|
|
|
| 15 |
"num_heads": 8,
|
| 16 |
"num_transformer_layers": 4,
|
| 17 |
"output_size": 128,
|
|
|
|
| 18 |
"task_type": "DPPIV",
|
| 19 |
"torch_dtype": "float32",
|
| 20 |
"transformers_version": "4.35.2"
|
configuration_pdeeppp.py
CHANGED
|
@@ -18,9 +18,9 @@ class PDeepPPConfig(PretrainedConfig):
|
|
| 18 |
hidden_size=256,
|
| 19 |
num_transformer_layers=4,
|
| 20 |
dropout=0.3,
|
| 21 |
-
|
| 22 |
-
esm_ratio=
|
| 23 |
-
lambda_=
|
| 24 |
**kwargs
|
| 25 |
):
|
| 26 |
super().__init__(**kwargs)
|
|
@@ -30,8 +30,8 @@ class PDeepPPConfig(PretrainedConfig):
|
|
| 30 |
self.hidden_size = hidden_size
|
| 31 |
self.num_transformer_layers = num_transformer_layers
|
| 32 |
self.dropout = dropout
|
| 33 |
-
self.
|
| 34 |
-
self.esm_ratio = esm_ratio
|
| 35 |
-
self.lambda_ = lambda_
|
| 36 |
|
| 37 |
PDeepPPConfig.register_for_auto_class()
|
|
|
|
| 18 |
hidden_size=256,
|
| 19 |
num_transformer_layers=4,
|
| 20 |
dropout=0.3,
|
| 21 |
+
task_type="", # 留空,依赖 convert 文件动态补充
|
| 22 |
+
esm_ratio=None, # 留空,依赖 convert 文件动态补充
|
| 23 |
+
lambda_=None, # 留空,依赖 convert 文件动态补充
|
| 24 |
**kwargs
|
| 25 |
):
|
| 26 |
super().__init__(**kwargs)
|
|
|
|
| 30 |
self.hidden_size = hidden_size
|
| 31 |
self.num_transformer_layers = num_transformer_layers
|
| 32 |
self.dropout = dropout
|
| 33 |
+
self.task_type = task_type # 默认留空
|
| 34 |
+
self.esm_ratio = esm_ratio # 默认留空
|
| 35 |
+
self.lambda_ = lambda_ # 默认留空
|
| 36 |
|
| 37 |
PDeepPPConfig.register_for_auto_class()
|