tiny-random-custom-architecture / modeling_fake_custom.py
Rocketknight1's picture
Update modeling_fake_custom.py
54f90f2 verified
raw
history blame
364 Bytes
from transformers import PreTrainedModel
from .configuration_fake_custom import FakeCustomConfig
class FakeCustomPreTrainedModel(PreTrainedModel):
config_class = FakeCustomConfig
class FakeCustomModel(FakeCustomPreTrainedModel):
_auto_class = "AutoModel"
class FakeCustomForCausalLM(FakeCustomPreTrainedModel):
_auto_class = "AutoModelForCausalLM"