tiny-random-custom-architecture / modeling_fake_custom.py
Rocketknight1's picture
Update modeling_fake_custom.py (#2)
70decc5 verified
raw
history blame contribute delete
339 Bytes
from transformers import GPT2Model, GPT2LMHeadModel
from .configuration_fake_custom import FakeCustomConfig
class FakeCustomModel(GPT2Model):
_auto_class = "AutoModel"
config_class = FakeCustomConfig
class FakeCustomModelForCausalLM(GPT2LMHeadModel):
_auto_class = "AutoModelForCausalLM"
config_class = FakeCustomConfig