tiny-random-custom-architecture / modeling_fake_custom.py
Rocketknight1's picture
Update modeling_fake_custom.py
0bfbc1f verified
raw
history blame
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