Files
papuGaPT2-large/convert_to_pytorch.py

6 lines
154 B
Python
Raw Permalink Normal View History

#!/usr/bin/env pyton3
from transformers import GPT2LMHeadModel
model = GPT2LMHeadModel.from_pretrained("./", from_flax=True)
model.save_pretrained("./")