tiny-random-custom-architecture / modeling_fake_custom.py
Rocketknight1's picture
Update modeling_fake_custom.py
2571544 verified
raw
history blame
268 Bytes
from transformers import GPT2Model, GPT2LMHeadModel
from .configuration_fake_custom import FakeCustomConfig
class FakeCustomModel(GPT2Model):
config_class = FakeCustomConfig
class FakeCustomModelForCausalLM(GPT2LMHeadModel):
config_class = FakeCustomConfig