Update modeling_dd_gpt2.py
Browse files- modeling_dd_gpt2.py +1 -3
modeling_dd_gpt2.py
CHANGED
@@ -42,8 +42,6 @@ class DDGPT2Config(GPT2Config):
|
|
42 |
model_type = "dd-gpt2"
|
43 |
architectures = ["DDGPT2LMHeadModel"]
|
44 |
|
45 |
-
class DDGPT2PretrainedModel(GPT2PreTrainedModel):
|
46 |
-
config_class = DDGPT2Config
|
47 |
|
48 |
|
49 |
def load_tf_weights_in_gpt2(model, config, gpt2_checkpoint_path):
|
@@ -586,7 +584,7 @@ class DDGPT2PretrainedModel(PreTrainedModel):
|
|
586 |
models.
|
587 |
"""
|
588 |
|
589 |
-
config_class =
|
590 |
load_tf_weights = load_tf_weights_in_gpt2
|
591 |
base_model_prefix = "transformer"
|
592 |
is_parallelizable = True
|
|
|
42 |
model_type = "dd-gpt2"
|
43 |
architectures = ["DDGPT2LMHeadModel"]
|
44 |
|
|
|
|
|
45 |
|
46 |
|
47 |
def load_tf_weights_in_gpt2(model, config, gpt2_checkpoint_path):
|
|
|
584 |
models.
|
585 |
"""
|
586 |
|
587 |
+
config_class = DDGPT2Config
|
588 |
load_tf_weights = load_tf_weights_in_gpt2
|
589 |
base_model_prefix = "transformer"
|
590 |
is_parallelizable = True
|