Commit
•
2571544
1
Parent(s):
097560e
Update modeling_fake_custom.py
Browse files- modeling_fake_custom.py +3 -2
modeling_fake_custom.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
from transformers import GPT2Model, GPT2LMHeadModel
|
|
|
2 |
|
3 |
class FakeCustomModel(GPT2Model):
|
4 |
-
|
5 |
|
6 |
|
7 |
class FakeCustomModelForCausalLM(GPT2LMHeadModel):
|
8 |
-
|
|
|
1 |
from transformers import GPT2Model, GPT2LMHeadModel
|
2 |
+
from .configuration_fake_custom import FakeCustomConfig
|
3 |
|
4 |
class FakeCustomModel(GPT2Model):
|
5 |
+
config_class = FakeCustomConfig
|
6 |
|
7 |
|
8 |
class FakeCustomModelForCausalLM(GPT2LMHeadModel):
|
9 |
+
config_class = FakeCustomConfig
|