Commit
•
54f9606
1
Parent(s):
0e0495d
Upload model
Browse files- config.json +1 -1
- model_4m.py +0 -1
config.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "config_4m.SimpleStories4MConfig",
|
7 |
-
"
|
8 |
},
|
9 |
"block_size": 1080,
|
10 |
"dropout": 0.1,
|
|
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "config_4m.SimpleStories4MConfig",
|
7 |
+
"AutoModelForCausalLM": "model_4m.SimpleStories4MModel"
|
8 |
},
|
9 |
"block_size": 1080,
|
10 |
"dropout": 0.1,
|
model_4m.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
from transformers import PreTrainedModel
|
2 |
from simple_stories_4m_model.config_4m import SimpleStories4MConfig
|
3 |
from simple_stories_4m_model.nano_gpt_model import NanoGPT
|
4 |
-
import transformer_modules
|
5 |
|
6 |
class SimpleStories4MModel(PreTrainedModel):
|
7 |
config_class = SimpleStories4MConfig
|
|
|
1 |
from transformers import PreTrainedModel
|
2 |
from simple_stories_4m_model.config_4m import SimpleStories4MConfig
|
3 |
from simple_stories_4m_model.nano_gpt_model import NanoGPT
|
|
|
4 |
|
5 |
class SimpleStories4MModel(PreTrainedModel):
|
6 |
config_class = SimpleStories4MConfig
|