Clean repository file tree: remove custom .py wrappers and use native qwen2 backbone
Browse files- config.json +2 -6
- configuration_logic_l1.py +0 -7
- modeling_logic_l1.py +0 -8
config.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
-
"
|
| 6 |
-
"AutoConfig": "configuration_logic_l1.LogicL1Config",
|
| 7 |
-
"AutoModelForCausalLM": "modeling_logic_l1.LogicL1ForCausalLM"
|
| 8 |
-
},
|
| 9 |
"hidden_size": 2048,
|
| 10 |
"intermediate_size": 11008,
|
| 11 |
-
"model_type": "logic_l1",
|
| 12 |
"num_attention_heads": 16,
|
| 13 |
"num_hidden_layers": 28,
|
| 14 |
"torch_dtype": "float16",
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"Qwen2ForCausalLM"
|
| 4 |
],
|
| 5 |
+
"model_type": "qwen2",
|
|
|
|
|
|
|
|
|
|
| 6 |
"hidden_size": 2048,
|
| 7 |
"intermediate_size": 11008,
|
|
|
|
| 8 |
"num_attention_heads": 16,
|
| 9 |
"num_hidden_layers": 28,
|
| 10 |
"torch_dtype": "float16",
|
configuration_logic_l1.py
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
from transformers import Qwen2Config
|
| 2 |
-
|
| 3 |
-
class LogicL1Config(Qwen2Config):
|
| 4 |
-
model_type = "logic_l1"
|
| 5 |
-
|
| 6 |
-
def __init__(self, **kwargs):
|
| 7 |
-
super().__init__(**kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modeling_logic_l1.py
DELETED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
from transformers import Qwen2ForCausalLM
|
| 2 |
-
from configuration_logic_l1 import LogicL1Config
|
| 3 |
-
|
| 4 |
-
class LogicL1ForCausalLM(Qwen2ForCausalLM):
|
| 5 |
-
config_class = LogicL1Config
|
| 6 |
-
|
| 7 |
-
def __init__(self, config):
|
| 8 |
-
super().__init__(config)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|