gpt2_baseline / __init__.py
shubham212's picture
Upload folder using huggingface_hub
2db8e8e verified
raw
history blame contribute delete
281 Bytes
# from .modeling_my_model import GPT, GPTConfig
from transformers import AutoConfig, AutoModelForCausalLM
from .configuration_my_model import GPTConfig
from .modeling_my_model import GPT
AutoConfig.register("custom_gpt", GPTConfig)
AutoModelForCausalLM.register(GPTConfig, GPT)